CandRmMuList Class Reference

#include <CandRmMuList.h>

Inheritance diagram for CandRmMuList:
CandBase CandRefCounted

List of all members.

Public Member Functions

 CandRmMuList ()

Static Public Member Functions

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

Protected Member Functions

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

Friends

class CandRmMuListHandle

Detailed Description

Definition at line 19 of file CandRmMuList.h.


Constructor & Destructor Documentation

CandRmMuList::CandRmMuList (  ) 

Definition at line 19 of file CandRmMuList.cxx.

References Msg::kDebug, and MSG.

Referenced by Dup(), and MakeCandidate().

00020 {
00021   MSG("Cand", Msg::kDebug)
00022           << "Begin CandRmMuList::CandRmMuList() ctor: " << endl
00023                                            << "UidInt = " << GetUidInt()
00024                            << ", ArchUidInt " << GetArchUidInt() << endl
00025                              << "No. of links = " << GetNLinks() << endl
00026             << "End CandRmMuList::CandRmMuList() ctor." << endl;
00027 }

CandRmMuList::CandRmMuList ( AlgHandle ah  )  [protected]

Definition at line 30 of file CandRmMuList.cxx.

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

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

Definition at line 42 of file CandRmMuList.cxx.

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

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

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

Definition at line 65 of file CandRmMuList.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 CandRmMuList::CandRmMuList"
00072                        << "(const CandRmMuList &rhs) ctor: " << endl
00073                                            << "UidInt = " << GetUidInt()
00074                            << ", ArchUidInt " << GetArchUidInt() << endl
00075                              << "No. of links = " << GetNLinks() << endl
00076                              << "End CandRmMuList::CandRmMuList"
00077                        << "(const CandRmMuList &rhs) ctor." << endl;
00078 }

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

Definition at line 81 of file CandRmMuList.cxx.

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

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


Member Function Documentation

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

Implements CandBase.

Definition at line 92 of file CandRmMuList.cxx.

References CandRmMuListHandle, and CandBase::SetLocalHandle().

Referenced by CandRmMuList(), and Dup().

00093 {
00094   SetLocalHandle(new CandRmMuListHandle(this));
00095 }

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

Implements CandBase.

Definition at line 98 of file CandRmMuList.cxx.

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

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

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

Reimplemented from CandBase.

Definition at line 114 of file CandRmMuList.cxx.

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

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

CandRmMuListHandle CandRmMuList::MakeCandidate ( AlgHandle ah,
CandContext cx 
) [static]

Definition at line 126 of file CandRmMuList.cxx.

References CandRmMuList().

Referenced by RemoveMuon::Reco().

00128 {
00129   CandRmMuListHandle cshl;
00130   new CandRmMuList(ah, cshl, cx);  // cshl owns new CandRmMuList
00131   return cshl;
00132 }


Friends And Related Function Documentation

friend class CandRmMuListHandle [friend]

Definition at line 21 of file CandRmMuList.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