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