CandFitShowerEMList Class Reference

#include <CandFitShowerEMList.h>

Inheritance diagram for CandFitShowerEMList:
CandShowerEMList CandShowerList CandRecoList CandBase CandRefCounted

List of all members.

Public Member Functions

 CandFitShowerEMList ()

Static Public Member Functions

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

Protected Member Functions

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

Friends

class CandFitShowerEMListHandle

Detailed Description

Definition at line 20 of file CandFitShowerEMList.h.


Constructor & Destructor Documentation

CandFitShowerEMList::CandFitShowerEMList (  ) 

Definition at line 22 of file CandFitShowerEMList.cxx.

References Msg::kDebug, and MSG.

Referenced by Dup(), and MakeCandidate().

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 }

CandFitShowerEMList::CandFitShowerEMList ( AlgHandle ah  )  [protected]

Definition at line 33 of file CandFitShowerEMList.cxx.

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

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

Definition at line 45 of file CandFitShowerEMList.cxx.

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

00046                                                                        :
00047   CandShowerEMList(ah)  // Should be the next class up on inheritance chain
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 // Run Algorithm to construct Candidate
00060   {                                                   // Start of scope.
00061     CandFitShowerEMListHandle cdh(this);        // cdh will go out of scope
00062     ch = cdh;                                       // after setting ch.
00063   }                                                     // End of scope.
00064   ah.RunAlg(ch, cx);
00065 }

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

Definition at line 68 of file CandFitShowerEMList.cxx.

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

00068                                                                        :
00069   CandShowerEMList(rhs) // Should be the next class up on inheritance chain
00070 {
00071 
00072 //CreateLocalHandle(); // Moved to Dup function following copy-ctor call
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 }

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

Definition at line 84 of file CandFitShowerEMList.cxx.

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

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 }


Member Function Documentation

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

Reimplemented from CandShowerEMList.

Definition at line 95 of file CandFitShowerEMList.cxx.

References CandFitShowerEMListHandle, and CandBase::SetLocalHandle().

Referenced by CandFitShowerEMList(), and Dup().

00096 {
00097   SetLocalHandle(new CandFitShowerEMListHandle(this));
00098 }

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

Reimplemented from CandShowerEMList.

Definition at line 101 of file CandFitShowerEMList.cxx.

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

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

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

Reimplemented from CandShowerEMList.

Definition at line 118 of file CandFitShowerEMList.cxx.

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

00119 {
00120   Bool_t result = true;
00121   if (!CandShowerEMList::IsEquivalent(rhs)) result = false;   // superclass
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 }

CandFitShowerEMListHandle CandFitShowerEMList::MakeCandidate ( AlgHandle ah,
CandContext cx 
) [static]

Reimplemented from CandShowerEMList.

Definition at line 133 of file CandFitShowerEMList.cxx.

References CandFitShowerEMList().

Referenced by FitShowerEMListModule::Reco().

00135 {
00136   CandFitShowerEMListHandle cdh;
00137   new CandFitShowerEMList(ah, cdh, cx);    // cdh owns new CandFitShowerEMList
00138   return cdh;
00139 }


Friends And Related Function Documentation

friend class CandFitShowerEMListHandle [friend]

Definition at line 22 of file CandFitShowerEMList.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