CandSubShowerSRList Class Reference

#include <CandSubShowerSRList.h>

Inheritance diagram for CandSubShowerSRList:
CandRecoList CandBase CandRefCounted

List of all members.

Public Member Functions

 CandSubShowerSRList ()

Static Public Member Functions

static CandSubShowerSRListHandle MakeCandidate (AlgHandle &ah, CandContext &cx)

Protected Member Functions

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

Friends

class CandSubShowerSRListHandle

Detailed Description

Definition at line 19 of file CandSubShowerSRList.h.


Constructor & Destructor Documentation

CandSubShowerSRList::CandSubShowerSRList (  ) 

Definition at line 24 of file CandSubShowerSRList.cxx.

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

Referenced by Dup(), and MakeCandidate().

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

CandSubShowerSRList::CandSubShowerSRList ( AlgHandle ah  )  [protected]

Definition at line 35 of file CandSubShowerSRList.cxx.

00035                                                       :
00036   CandRecoList(ah) // Should be the next class up on inheritance chain
00037 {
00038 
00039 // The sole purpose of this constructor is to transmit the AlgHandle
00040 // up the inheritance chain to CandBase without having to invoke the
00041 // full constructor of an intermediate Candidate type which the highest
00042 // level Candidate might inherit from.  One only wants to create the
00043 // LocalHandle and invoke the RunAlg() method in the lowest level class.
00044 }

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

Definition at line 47 of file CandSubShowerSRList.cxx.

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

00048                                                           :
00049   CandRecoList(ah) // Should be the next class up on inheritance chain
00050 {
00051   CreateLocalHandle();
00052   MSG("Cand", Msg::kDebug)
00053     << "Begin CandSubShowerSRList::CandSubShowerSRList"
00054     << "(AlgHandle &, CandHandle &, " << "CandContext &) ctor: " << endl
00055     << "UidInt = " << GetUidInt()
00056     << ", ArchUidInt " << GetArchUidInt() << endl
00057     << "No. of links = " << GetNLinks() << endl
00058     << "End CandSubShowerSRList::CandSubShowerSRList"
00059     << "(AlgHandle &, CandHandle &, " << "CandContext &) ctor." << endl;
00060   
00061   // Run Algorithm to construct Candidate
00062   {                                                   // Start of scope
00063     CandSubShowerSRListHandle cshl(this);     // cshl will go out of scope
00064     ch = cshl;                                     // after setting ch.
00065   }                                                     // End of scope
00066   ah.RunAlg(ch, cx);
00067 }

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

Definition at line 70 of file CandSubShowerSRList.cxx.

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

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

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

Definition at line 86 of file CandSubShowerSRList.cxx.

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

00087 {
00088   MSG("Cand", Msg::kDebug)
00089     << "Begin CandSubShowerSRList::~CandSubShowerSRList() dtor: " << endl
00090     << "UidInt = " << GetUidInt()
00091     << ", ArchUidInt " << GetArchUidInt() << endl
00092     << "No. of links = " << GetNLinks() << endl
00093     << "End CandSubShowerSRList::~CandSubShowerSRList() dtor." << endl;
00094 }


Member Function Documentation

void CandSubShowerSRList::CreateLocalHandle (  )  [protected, virtual]

Reimplemented from CandRecoList.

Definition at line 97 of file CandSubShowerSRList.cxx.

References CandSubShowerSRListHandle, and CandBase::SetLocalHandle().

Referenced by CandSubShowerSRList(), and Dup().

00098 {
00099   SetLocalHandle(new CandSubShowerSRListHandle(this));
00100 }

CandSubShowerSRList * CandSubShowerSRList::Dup (  )  const [protected, virtual]

Reimplemented from CandRecoList.

Definition at line 103 of file CandSubShowerSRList.cxx.

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

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

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

Reimplemented from CandRecoList.

Definition at line 119 of file CandSubShowerSRList.cxx.

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

00120 {
00121   Bool_t result = true;
00122   if (!CandRecoList::IsEquivalent(rhs)) result = false;  // superclass
00123   TestDisplayCandBanner("CandSubShowerSRList");
00124   const CandSubShowerSRList* rCnd = dynamic_cast<const CandSubShowerSRList*>(rhs);
00125   if (rCnd == NULL) return false;
00126   TestNothing("CandSubShowerSRList");
00127   return result;  
00128 }

CandSubShowerSRListHandle CandSubShowerSRList::MakeCandidate ( AlgHandle ah,
CandContext cx 
) [static]

Definition at line 131 of file CandSubShowerSRList.cxx.

References CandSubShowerSRList().

Referenced by SubShowerSRListModule::Reco().

00133 {
00134   CandSubShowerSRListHandle cshl;
00135   new CandSubShowerSRList(ah, cshl, cx);  // cshl owns new CandSubShowerSRList
00136   return cshl;
00137 }


Friends And Related Function Documentation

friend class CandSubShowerSRListHandle [friend]

Definition at line 21 of file CandSubShowerSRList.h.

Referenced by CreateLocalHandle().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1