00001
00002
00003
00004
00005
00006
00007
00008
00010
00011 #include "Algorithm/AlgHandle.h"
00012 #include "MessageService/MsgService.h"
00013 #include "CandFitShowerEM/CandFitShowerEMList.h"
00014 #include "CandFitShowerEM/CandFitShowerEMListHandle.h"
00015
00016 ClassImp(CandFitShowerEMList)
00017
00018
00019 CVSID("$Id: CandFitShowerEMList.cxx,v 1.1 2004/08/11 13:18:04 cbs Exp $");
00020
00021
00022 CandFitShowerEMList::CandFitShowerEMList()
00023 {
00024 MSG("Cand", Msg::kDebug)
00025 << "Begin CandFitShowerEMList::CandFitShowerEMList() ctor: " << endl
00026 << "UidInt = " << GetUidInt()
00027 << ", ArchUidInt " << GetArchUidInt() << endl
00028 << "No. of links = " << GetNLinks() << endl
00029 << "End CandFitShowerEMList::CandFitShowerEMList() ctor." << endl;
00030 }
00031
00032
00033 CandFitShowerEMList::CandFitShowerEMList(AlgHandle &ah) :
00034 CandShowerEMList(ah)
00035 {
00036
00037
00038
00039
00040
00041
00042 }
00043
00044
00045 CandFitShowerEMList::CandFitShowerEMList(AlgHandle &ah, CandHandle &ch,
00046 CandContext &cx) :
00047 CandShowerEMList(ah)
00048 {
00049 CreateLocalHandle();
00050 MSG("FitShowerEM", Msg::kDebug)
00051 << "Begin CandFitShowerEMList::CandFitShowerEMList"
00052 << "(AlgHandle &, CandHandle &, " << "CandContext &) ctor: " << endl
00053 << "UidInt = " << GetUidInt()
00054 << ", ArchUidInt " << GetArchUidInt() << endl
00055 << "No. of links = " << GetNLinks() << endl
00056 << "End CandFitShowerEMList::CandFitShowerEMList"
00057 << "(AlgHandle &, CandHandle &, " << "CandContext &) ctor." << endl;
00058
00059
00060 {
00061 CandFitShowerEMListHandle cdh(this);
00062 ch = cdh;
00063 }
00064 ah.RunAlg(ch, cx);
00065 }
00066
00067
00068 CandFitShowerEMList::CandFitShowerEMList(const CandFitShowerEMList &rhs) :
00069 CandShowerEMList(rhs)
00070 {
00071
00072
00073 MSG("FitShowerEM", Msg::kDebug)
00074 << "Begin CandFitShowerEMList::CandFitShowerEMList"
00075 << "(const CandFitShowerEMList &rhs) ctor: " << endl
00076 << "UidInt = " << GetUidInt()
00077 << ", ArchUidInt " << GetArchUidInt() << endl
00078 << "No. of links = " << GetNLinks() << endl
00079 << "End CandFitShowerEMList::CandFitShowerEMList"
00080 << "(const CandFitShowerEMList &rhs) ctor." << endl;
00081 }
00082
00083
00084 CandFitShowerEMList::~CandFitShowerEMList()
00085 {
00086 MSG("FitShowerEM", Msg::kDebug)
00087 << "Begin CandFitShowerEMList::~CandFitShowerEMList() dtor: " << endl
00088 << "UidInt = " << GetUidInt()
00089 << ", ArchUidInt " << GetArchUidInt() << endl
00090 << "No. of links = " << GetNLinks() << endl
00091 << "End CandFitShowerEMList::~CandFitShowerEMList() dtor." << endl;
00092 }
00093
00094
00095 void CandFitShowerEMList::CreateLocalHandle()
00096 {
00097 SetLocalHandle(new CandFitShowerEMListHandle(this));
00098 }
00099
00100
00101 CandFitShowerEMList *CandFitShowerEMList::Dup() const
00102 {
00103
00104
00105
00106
00107
00108 CandFitShowerEMList *cb = new CandFitShowerEMList(*this);
00109
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 Bool_t CandFitShowerEMList::IsEquivalent(const TObject *rhs) const
00119 {
00120 Bool_t result = true;
00121 if (!CandShowerEMList::IsEquivalent(rhs)) result = false;
00122 TestDisplayCandBanner("CandFitShowerEMList");
00123 const CandFitShowerEMList* rCnd =
00124 dynamic_cast<const CandFitShowerEMList*>(rhs);
00125 if (rCnd == NULL) return false;
00126
00127 TestNothing("CandFitShowerEMList");
00128
00129 return result;
00130 }
00131
00132
00133 CandFitShowerEMListHandle CandFitShowerEMList::MakeCandidate(AlgHandle &ah,
00134 CandContext &cx)
00135 {
00136 CandFitShowerEMListHandle cdh;
00137 new CandFitShowerEMList(ah, cdh, cx);
00138 return cdh;
00139 }