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