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