CandRecoList Class Reference

#include <CandRecoList.h>

Inheritance diagram for CandRecoList:
CandBase CandRefCounted CandCluster3DList CandShowerList CandSubShowerSRList CandTrackList CandShowerAtNuList CandShowerEMList CandShowerSRList CandFitTrackList CandTrackAtNuList CandTrackCamList CandTrackSRList CandFitShowerEMList CandFitTrackAtNuList CandFitTrackCamList CandFitTrackMSList CandFitTrackSRList

List of all members.

Public Member Functions

 CandRecoList ()

Protected Member Functions

 CandRecoList (AlgHandle &ah)
 CandRecoList (AlgHandle &ah, CandHandle &ch, CandContext &cx)
 CandRecoList (const CandRecoList &rhs)
virtual ~CandRecoList ()
virtual void CreateLocalHandle ()
virtual CandRecoListDup () const
virtual Bool_t IsEquivalent (const TObject *rhs) const

Friends

class CandRecoListHandle

Detailed Description

Definition at line 22 of file CandRecoList.h.


Constructor & Destructor Documentation

CandRecoList::CandRecoList (  ) 

Definition at line 26 of file CandRecoList.cxx.

References Msg::kDebug, and MSG.

Referenced by Dup().

00027 {
00028   MSG("Cand", Msg::kDebug)
00029                   << "Begin CandRecoList::CandRecoList() ctor: " << endl
00030                                            << "UidInt = " << GetUidInt()
00031                            << ", ArchUidInt " << GetArchUidInt() << endl
00032                              << "No. of links = " << GetNLinks() << endl
00033                     << "End CandRecoList::CandRecoList() ctor." << endl;
00034 }

CandRecoList::CandRecoList ( AlgHandle ah  )  [protected]

Definition at line 37 of file CandRecoList.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 }

CandRecoList::CandRecoList ( AlgHandle ah,
CandHandle ch,
CandContext cx 
) [protected]

Definition at line 49 of file CandRecoList.cxx.

References CreateLocalHandle(), CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), Msg::kDebug, and MSG.

00050                                                                        :
00051   CandBase(ah)       // Should be the next class up on inheritance chain
00052 {
00053   CreateLocalHandle();
00054   MSG("Cand", Msg::kDebug)
00055        << "Begin CandRecoList::CandRecoList(AlgHandle &, CandHandle &, "
00056                                       << "CandContext &) ctor: " << endl
00057                                            << "UidInt = " << GetUidInt()
00058                            << ", ArchUidInt " << GetArchUidInt() << endl
00059                              << "No. of links = " << GetNLinks() << endl
00060          << "End CandRecoList::CandRecoList(AlgHandle &, CandHandle &, "
00061                                       << "CandContext &) ctor." << endl;
00062 }

CandRecoList::CandRecoList ( const CandRecoList rhs  )  [protected]

Definition at line 65 of file CandRecoList.cxx.

References CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), Msg::kDebug, and MSG.

00065                                                   :
00066   CandBase(rhs)      // Should be the next class up on inheritance chain
00067 {
00068 
00069 //CreateLocalHandle(); // Moved to Dup function following copy-ctor call
00070   MSG("Cand", Msg::kDebug)
00071     << "Begin CandRecoList::CandRecoList(const CandRecoList &rhs) ctor:"
00072                                    << endl << "UidInt = " << GetUidInt()
00073                            << ", ArchUidInt " << GetArchUidInt() << endl
00074                              << "No. of links = " << GetNLinks() << endl
00075       << "End CandRecoList::CandRecoList(const CandRecoList &rhs) ctor."
00076                                                                 << endl;
00077 }

CandRecoList::~CandRecoList (  )  [protected, virtual]

Definition at line 80 of file CandRecoList.cxx.

References CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), Msg::kDebug, and MSG.

00081 {
00082   MSG("Cand", Msg::kDebug)
00083                  << "Begin CandRecoList::~CandRecoList() dtor: " << endl
00084                                            << "UidInt = " << GetUidInt()
00085                            << ", ArchUidInt " << GetArchUidInt() << endl
00086                              << "No. of links = " << GetNLinks() << endl
00087                    << "End CandRecoList::~CandRecoList() dtor." << endl;
00088 }


Member Function Documentation

void CandRecoList::CreateLocalHandle (  )  [protected, virtual]
CandRecoList * CandRecoList::Dup (  )  const [protected, virtual]

Implements CandBase.

Reimplemented in CandFitTrackAtNuList, CandShowerAtNuList, CandTrackAtNuList, CandFitShowerEMList, CandFitTrackCamList, CandFitTrackMSList, CandFitTrackSRList, CandShowerEMList, CandShowerSRList, CandSubShowerSRList, CandTrackCamList, CandTrackSRList, CandCluster3DList, CandFitTrackList, CandShowerList, and CandTrackList.

Definition at line 97 of file CandRecoList.cxx.

References CandBase::AddDaughterLink(), CandRecoList(), CreateLocalHandle(), and CandBase::GetDaughterIterator().

00098 {
00099 
00100 // Base copy ctor dups owned pointers, but defers copying Daughter List.
00101 // Daughter List copy is made in the derived class Dup() function.
00102 // This is because base class copy constructor hasn't yet created
00103 // fLocalHandle with a CandHandle* of the full derived type.
00104   CandRecoList *cb = new CandRecoList(*this);     // Copy-ctor dups ptrs
00105   cb->CreateLocalHandle();   // Initializes fLocalHandle after copy-ctor
00106   TIter iterdau = GetDaughterIterator();
00107   CandHandle *dau;
00108   while ((dau=(CandHandle *) iterdau())) cb->AddDaughterLink(*dau);
00109   return cb;
00110 }

Bool_t CandRecoList::IsEquivalent ( const TObject *  rhs  )  const [protected, virtual]

Reimplemented from CandBase.

Reimplemented in CandFitShowerEMList, CandFitTrackSRList, CandShowerEMList, CandShowerSRList, CandSubShowerSRList, CandTrackSRList, CandCluster3DList, CandFitTrackList, CandShowerList, and CandTrackList.

Definition at line 113 of file CandRecoList.cxx.

References CandBase::IsEquivalent(), CandBase::TestDisplayCandBanner(), and CandBase::TestNothing().

Referenced by CandShowerList::IsEquivalent(), CandSubShowerSRList::IsEquivalent(), CandTrackList::IsEquivalent(), and CandCluster3DList::IsEquivalent().

00114 {
00115   Bool_t result = true;
00116   if (!CandBase::IsEquivalent(rhs)) result = false;   // superclass test
00117   TestDisplayCandBanner("CandRecoList");
00118   const CandRecoList* rCnd = dynamic_cast<const CandRecoList*>(rhs);
00119   if (rCnd == NULL) return false;
00120 
00121   TestNothing("CandRecoList");
00122 
00123   return result;
00124 }


Friends And Related Function Documentation

friend class CandRecoListHandle [friend]

Definition at line 24 of file CandRecoList.h.

Referenced by CreateLocalHandle().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1