00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00019 #include "Algorithm/AlgHandle.h"
00020 #include "CandFitTrack3/CandFitTrack3List.h"
00021 #include "CandFitTrack3/CandFitTrack3ListHandle.h"
00022 #include "MessageService/MsgService.h"
00023
00024 ClassImp(CandFitTrack3List)
00025
00026
00027 CVSID("$Id: CandFitTrack3List.cxx,v 1.1 2003/06/05 16:24:55 rjn Exp $");
00028
00029
00030 CandFitTrack3List::CandFitTrack3List()
00031 {
00032 MSG("Cand", Msg::kDebug)
00033 << "Begin CandFitTrack3List::CandFitTrack3List() ctor: " << endl
00034 << "UidInt = " << GetUidInt()
00035 << ", ArchUidInt " << GetArchUidInt() << endl
00036 << "No. of links = " << GetNLinks() << endl
00037 << "End CandFitTrack3List::CandFitTrack3List() ctor." << endl;
00038 }
00039
00040
00041 CandFitTrack3List::CandFitTrack3List(AlgHandle &ah) :
00042 CandFitTrackList(ah)
00043 {
00044
00045
00046
00047
00048
00049
00050
00051 }
00052
00053
00054 CandFitTrack3List::CandFitTrack3List(AlgHandle &ah, CandHandle &ch, CandContext &cx) :
00055 CandFitTrackList(ah)
00056 {
00057 CreateLocalHandle();
00058 MSG("Cand", Msg::kDebug)
00059 << "Begin CandFitTrack3List::CandFitTrack3List(AlgHandle &, CandHandle &, "
00060 << "CandContext &) ctor: " << endl
00061 << "UidInt = " << GetUidInt()
00062 << ", ArchUidInt " << GetArchUidInt() << endl
00063 << "No. of links = " << GetNLinks() << endl
00064 << "End CandFitTrack3List::CandFitTrack3List(AlgHandle &, CandHandle &, "
00065 << "CandContext &) ctor." << endl;
00066
00067
00068 {
00069 CandFitTrack3ListHandle cftlh(this);
00070 ch = cftlh;
00071 }
00072 ah.RunAlg(ch, cx);
00073 }
00074
00075
00076 CandFitTrack3List::CandFitTrack3List(const CandFitTrack3List &rhs) :
00077 CandFitTrackList(rhs)
00078 {
00079
00080 MSG("Cand", Msg::kDebug)
00081 << "Begin CandFitTrack3List::CandFitTrack3List(const CandFitTrack3List &rhs) ctor: " << endl
00082 << "UidInt = " << GetUidInt()
00083 << ", ArchUidInt " << GetArchUidInt() << endl
00084 << "No. of links = " << GetNLinks() << endl
00085 << "End CandFitTrack3List::CandFitTrack3List(const CandFitTrack3List &rhs) ctor." << endl;
00086 }
00087
00088
00089 CandFitTrack3List::~CandFitTrack3List()
00090 {
00091 MSG("Cand", Msg::kDebug)
00092 << "Begin CandFitTrack3List::~CandFitTrack3List() dtor: " << endl
00093 << "UidInt = " << GetUidInt()
00094 << ", ArchUidInt " << GetArchUidInt() << endl
00095 << "No. of links = " << GetNLinks() << endl
00096 << "End CandFitTrack3List::~CandFitTrack3List() dtor." << endl;
00097 }
00098
00099
00100 void CandFitTrack3List::CreateLocalHandle()
00101 {
00102 SetLocalHandle(new CandFitTrack3ListHandle(this));
00103 }
00104
00105
00106 CandFitTrack3List *CandFitTrack3List::Dup() const
00107 {
00108
00109
00110
00111
00112
00113 CandFitTrack3List *cb = new CandFitTrack3List(*this);
00114 cb->CreateLocalHandle();
00115 TIter iterdau = GetDaughterIterator();
00116 CandHandle *dau;
00117 while ((dau=(CandHandle *) iterdau())) cb->AddDaughterLink(*dau);
00118 return cb;
00119 }
00120
00121
00122 CandFitTrack3ListHandle CandFitTrack3List::MakeCandidate(AlgHandle &ah, CandContext &cx)
00123 {
00124 CandFitTrack3ListHandle cftlh;
00125 new CandFitTrack3List(ah, cftlh, cx);
00126 return cftlh;
00127 }