CandFitTrackMSList Class Reference

#include <CandFitTrackMSList.h>

Inheritance diagram for CandFitTrackMSList:
CandFitTrackList CandTrackList CandRecoList CandBase CandRefCounted

List of all members.

Public Member Functions

 CandFitTrackMSList ()

Static Public Member Functions

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

Protected Member Functions

 CandFitTrackMSList (AlgHandle &ah)
 CandFitTrackMSList (AlgHandle &ah, CandHandle &ch, CandContext &cx)
 CandFitTrackMSList (const CandFitTrackMSList &rhs)
virtual ~CandFitTrackMSList ()
virtual void CreateLocalHandle ()
virtual CandFitTrackMSListDup () const

Friends

class CandFitTrackMSListHandle

Detailed Description

Definition at line 20 of file CandFitTrackMSList.h.


Constructor & Destructor Documentation

CandFitTrackMSList::CandFitTrackMSList (  ) 

Definition at line 26 of file CandFitTrackMSList.cxx.

References Msg::kDebug, and MSG.

Referenced by Dup(), and MakeCandidate().

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

CandFitTrackMSList::CandFitTrackMSList ( AlgHandle ah  )  [protected]

Definition at line 37 of file CandFitTrackMSList.cxx.

00037                                                     :
00038   CandFitTrackList(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 
00047 }

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

Definition at line 50 of file CandFitTrackMSList.cxx.

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

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

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

Definition at line 72 of file CandFitTrackMSList.cxx.

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

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

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

Definition at line 85 of file CandFitTrackMSList.cxx.

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

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


Member Function Documentation

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

Reimplemented from CandFitTrackList.

Definition at line 96 of file CandFitTrackMSList.cxx.

References CandFitTrackMSListHandle, and CandBase::SetLocalHandle().

Referenced by CandFitTrackMSList(), and Dup().

00097 {
00098   SetLocalHandle(new CandFitTrackMSListHandle(this));
00099 }

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

Reimplemented from CandFitTrackList.

Definition at line 102 of file CandFitTrackMSList.cxx.

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

00103 {
00104 
00105 // Base copy ctor dups owned pointers, but defers copying Daughter List.
00106 // Daughter List copy is made in the derived class Dup() function.
00107 // This is because base class copy constructor hasn't yet created
00108 // fLocalHandle with a CandHandle* of the full derived type.
00109   CandFitTrackMSList *cb = new CandFitTrackMSList(*this);         // Copy-ctor
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 }

CandFitTrackMSListHandle CandFitTrackMSList::MakeCandidate ( AlgHandle ah,
CandContext cx 
) [static]

Reimplemented from CandFitTrackList.

Definition at line 118 of file CandFitTrackMSList.cxx.

References CandFitTrackMSList().

Referenced by FitTrackMSListModule::Reco().

00119 {
00120   CandFitTrackMSListHandle cshl;
00121   new CandFitTrackMSList(ah, cshl, cx); //cshl owns the new CandFitTrackMSList
00122   return cshl;
00123 }


Friends And Related Function Documentation

friend class CandFitTrackMSListHandle [friend]

Definition at line 23 of file CandFitTrackMSList.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