#include <CandChopList.h>
Inheritance diagram for CandChopList:

Public Member Functions | |
| CandChopList () | |
Static Public Member Functions | |
| CandChopListHandle | MakeCandidate (AlgHandle &ah, CandContext &cx) |
Protected Member Functions | |
| CandChopList (AlgHandle &ah) | |
| CandChopList (AlgHandle &ah, CandHandle &ch, CandContext &cx) | |
| CandChopList (const CandChopList &rhs) | |
| virtual | ~CandChopList () |
| virtual void | CreateLocalHandle () |
| virtual CandChopList * | Dup () const |
| virtual Bool_t | IsEquivalent (const TObject *rhs) const |
Friends | |
| class | CandChopListHandle |
|
|
Definition at line 26 of file CandChopList.cxx. References MSG. Referenced by Dup(), and MakeCandidate(). 00027 {
00028 MSG("Cand", Msg::kDebug)
00029 << "Begin CandChopList::CandChopList() ctor: " << endl
00030 << "UidInt = " << GetUidInt()
00031 << ", ArchUidInt " << GetArchUidInt() << endl
00032 << "No. of links = " << GetNLinks() << endl
00033 << "End CandChopList::CandChopList() ctor." << endl;
00034 }
|
|
|
Definition at line 37 of file CandChopList.cxx. 00037 : 00038 CandBase(ah) // Should be the next class up on inheritance chain 00039 { 00040 00041 // The sole purpose of this constructor is to transmit the AlgHandle 00042 // up the inheritance chain to CandBase without having to invoke the 00043 // full constructor of an intermediate Candidate type which the highest 00044 // level Candidate might inherit from. One only wants to create the 00045 // LocalHandle and invoke the RunAlg() method in the lowest level class. 00046 }
|
|
||||||||||||||||
|
Definition at line 49 of file CandChopList.cxx. References CreateLocalHandle(), CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), MSG, and AlgHandle::RunAlg(). 00050 : 00051 CandBase(ah) // Should be the next class up on inheritance chain 00052 { 00053 CreateLocalHandle(); 00054 MSG("Cand", Msg::kDebug) 00055 << "Begin CandChopList::CandChopList(AlgHandle &, CandHandle &, " 00056 << "CandContext &) ctor: " << endl 00057 << "UidInt = " << GetUidInt() 00058 << ", ArchUidInt " << GetArchUidInt() << endl 00059 << "No. of links = " << GetNLinks() << endl 00060 << "End CandChopList::CandChopList(AlgHandle &, CandHandle &, " 00061 << "CandContext &) ctor." << endl; 00062 00063 // Run Algorithm to construct Candidate 00064 { // Start of scope. 00065 CandChopListHandle cdh(this); // cdh will go out of scope 00066 ch = cdh; // after setting ch. 00067 } // End of scope. 00068 ah.RunAlg(ch, cx); 00069 }
|
|
|
Definition at line 72 of file CandChopList.cxx. References CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), and MSG. 00072 : 00073 CandBase(rhs) // Should be the next class up on inheritance chain 00074 { 00075 00076 //CreateLocalHandle(); // Moved to Dup function following copy-ctor call 00077 MSG("Cand", Msg::kDebug) << "Begin CandChopList::CandChopList" 00078 << "(const CandChopList &rhs) ctor: " << endl 00079 << "UidInt = " << GetUidInt() 00080 << ", ArchUidInt " << GetArchUidInt() << endl 00081 << "No. of links = " << GetNLinks() << endl 00082 << "End CandChopList::CandChopList" 00083 << "(const CandChopList &rhs) ctor." << endl; 00084 }
|
|
|
Definition at line 87 of file CandChopList.cxx. References CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), and MSG. 00088 {
00089 MSG("Cand", Msg::kDebug)
00090 << "Begin CandChopList::~CandChopList() dtor: " << endl
00091 << "UidInt = " << GetUidInt()
00092 << ", ArchUidInt " << GetArchUidInt() << endl
00093 << "No. of links = " << GetNLinks() << endl
00094 << "End CandChopList::~CandChopList() dtor." << endl;
00095 }
|
|
|
Implements CandBase. Definition at line 98 of file CandChopList.cxx. References CandChopListHandle, and CandBase::SetLocalHandle(). Referenced by CandChopList(), and Dup(). 00099 {
00100 SetLocalHandle(new CandChopListHandle(this));
00101 }
|
|
|
Implements CandBase. Definition at line 104 of file CandChopList.cxx. References CandBase::AddDaughterLink(), CandChopList(), CreateLocalHandle(), and CandBase::GetDaughterIterator(). 00105 {
00106
00107 // Base copy ctor dups owned pointers, but defers copying Daughter List.
00108 // Daughter List copy is made in the derived class Dup() function.
00109 // This is because base class copy constructor hasn't yet created
00110 // fLocalHandle with a CandHandle* of the full derived type.
00111 CandChopList *cb = new CandChopList(*this); // Copy-ctor dups ptrs
00112 cb->CreateLocalHandle(); // Initializes fLocalHandle after copy-ctor
00113 TIter iterdau = GetDaughterIterator();
00114 CandHandle *dau;
00115 while ((dau=(CandHandle *) iterdau())) cb->AddDaughterLink(*dau);
00116 return cb;
00117 }
|
|
|
Reimplemented from CandBase. Definition at line 120 of file CandChopList.cxx. References CandBase::IsEquivalent(), CandBase::TestDisplayCandBanner(), and CandBase::TestNothing(). 00121 {
00122 Bool_t result = true;
00123 if (!CandBase::IsEquivalent(rhs)) result = false; // superclass test
00124 TestDisplayCandBanner("CandChopList");
00125 const CandChopList* rCnd = dynamic_cast<const CandChopList*>(rhs);
00126 if (rCnd == NULL) return false;
00127
00128 TestNothing("CandChopList");
00129
00130 return result;
00131 }
|
|
||||||||||||
|
Definition at line 134 of file CandChopList.cxx. References CandChopList(). Referenced by ChopModule::Reco(). 00136 {
00137 CandChopListHandle cdh;
00138 new CandChopList(ah, cdh, cx); // cdh owns the new CandChopList
00139 return cdh;
00140 }
|
|
|
Definition at line 25 of file CandChopList.h. Referenced by CreateLocalHandle(). |
1.3.9.1