CandFitTrackSRList Class Reference

#include <CandFitTrackSRList.h>

Inheritance diagram for CandFitTrackSRList:
CandFitTrackList CandTrackList CandRecoList CandBase CandRefCounted

List of all members.

Public Member Functions

 CandFitTrackSRList ()

Static Public Member Functions

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

Protected Member Functions

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

Friends

class CandFitTrackSRListHandle

Detailed Description

Definition at line 20 of file CandFitTrackSRList.h.


Constructor & Destructor Documentation

CandFitTrackSRList::CandFitTrackSRList (  ) 

Definition at line 26 of file CandFitTrackSRList.cxx.

References Msg::kDebug, and MSG.

Referenced by Dup(), and MakeCandidate().

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

CandFitTrackSRList::CandFitTrackSRList ( AlgHandle ah  )  [protected]

Definition at line 37 of file CandFitTrackSRList.cxx.

00037                                                     :
00038   CandFitTrackList(ah)   // Should be 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 }

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

Definition at line 49 of file CandFitTrackSRList.cxx.

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

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

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

Definition at line 72 of file CandFitTrackSRList.cxx.

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

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

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

Definition at line 88 of file CandFitTrackSRList.cxx.

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

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


Member Function Documentation

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

Reimplemented from CandFitTrackList.

Definition at line 99 of file CandFitTrackSRList.cxx.

References CandFitTrackSRListHandle, and CandBase::SetLocalHandle().

Referenced by CandFitTrackSRList(), and Dup().

00100 {
00101   SetLocalHandle(new CandFitTrackSRListHandle(this));
00102 }

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

Reimplemented from CandFitTrackList.

Definition at line 105 of file CandFitTrackSRList.cxx.

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

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

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

Reimplemented from CandFitTrackList.

Definition at line 121 of file CandFitTrackSRList.cxx.

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

00122 {
00123   Bool_t result = true;
00124   if (!CandFitTrackList::IsEquivalent(rhs)) result = false;// superclass
00125   TestDisplayCandBanner("CandFitTrackSRList");
00126   const CandFitTrackSRList* rCnd =
00127                            dynamic_cast<const CandFitTrackSRList*>(rhs);
00128   if (rCnd == NULL) return false;
00129 
00130   TestNothing("CandFitTrackSRList");
00131 
00132   return result;
00133 }

CandFitTrackSRListHandle CandFitTrackSRList::MakeCandidate ( AlgHandle ah,
CandContext cx 
) [static]

Reimplemented from CandFitTrackList.

Definition at line 136 of file CandFitTrackSRList.cxx.

References CandFitTrackSRList().

Referenced by FitTrackSRListModule::Reco().

00138 {
00139   CandFitTrackSRListHandle cshl;
00140   new CandFitTrackSRList(ah, cshl, cx);  // cshl owns CandFitTrackSRList
00141   return cshl;
00142 }


Friends And Related Function Documentation

friend class CandFitTrackSRListHandle [friend]

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