CandFitTrackMS Class Reference

#include <CandFitTrackMS.h>

Inheritance diagram for CandFitTrackMS:
CandFitTrack CandTrack CandReco CandBase CandRefCounted

List of all members.

Public Member Functions

 CandFitTrackMS ()

Static Public Member Functions

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

Protected Member Functions

 CandFitTrackMS (AlgHandle &ah)
 CandFitTrackMS (AlgHandle &ah, CandHandle &ch, CandContext &cx)
 CandFitTrackMS (const CandFitTrackMS &rhs)
virtual ~CandFitTrackMS ()
virtual void CreateLocalHandle ()
virtual CandFitTrackMSDup () const
void Init ()

Protected Attributes

Int_t fFlag
Double_t fMomentumL
Double_t fMomentumBF
Double_t fMomentumMS
Double_t fMomentumBoth
Double_t fMomentumAlt
Double_t fChi2L
Double_t fChi2BF
Double_t fChi2MS
Double_t fChi2Both
Double_t fChi2Alt
Double_t fEMChargeD
Int_t fIter

Friends

class CandFitTrackMSHandle

Detailed Description

Definition at line 23 of file CandFitTrackMS.h.


Constructor & Destructor Documentation

CandFitTrackMS::CandFitTrackMS (  ) 

Definition at line 27 of file CandFitTrackMS.cxx.

References Msg::kDebug, and MSG.

Referenced by Dup(), and MakeCandidate().

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

CandFitTrackMS::CandFitTrackMS ( AlgHandle ah  )  [protected]

Definition at line 39 of file CandFitTrackMS.cxx.

References Init().

00039                                             :
00040   CandFitTrack(ah)      // Should be the next class up on inheritance chain
00041 {
00042 
00043 // The sole purpose of this constructor is to transmit the AlgHandle
00044 // up the inheritance chain to CandBase without having to invoke the
00045 // full constructor of an intermediate Candidate type which the highest
00046 // level Candidate might inherit from.  One only wants to create the
00047 // LocalHandle and invoke the RunAlg() method in the lowest level class.
00048 
00049   Init();
00050 
00051 }

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

Definition at line 54 of file CandFitTrackMS.cxx.

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

00054                                                                              :
00055   CandFitTrack(ah)      // Should be the next class up on inheritance chain
00056 {
00057   CreateLocalHandle();
00058   MSG("Cand", Msg::kDebug)
00059              << "Begin CandFitTrackMS::CandFitTrackMS(AlgHandle &, CandHandle &, "
00060                                       << "CandContext &) ctor: " << endl
00061                                            << "UidInt = " << GetUidInt()
00062                            << ", ArchUidInt " << GetArchUidInt() << endl
00063                              << "No. of links = " << GetNLinks() << endl
00064                << "End CandFitTrackMS::CandFitTrackMS(AlgHandle &, CandHandle &, "
00065                                       << "CandContext &) ctor." << endl;
00066 
00067   Init();
00068 
00069   {                                         // Start of scope.
00070     CandFitTrackMSHandle csh(this);              // csh will go out of scope
00071     ch = csh;                               // after setting ch.
00072   }
00073   ah.RunAlg(ch, cx);
00074 }

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

Definition at line 77 of file CandFitTrackMS.cxx.

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

00077                                                         :
00078   CandFitTrack(rhs)     // Should be the next class up on inheritance chain
00079 {
00080   Init();
00081   MSG("Cand", Msg::kDebug)
00082     << "Begin CandFitTrackMS::CandFitTrackMS(const CandFitTrackMS &rhs) ctor: " << endl
00083                                            << "UidInt = " << GetUidInt()
00084                            << ", ArchUidInt " << GetArchUidInt() << endl
00085                              << "No. of links = " << GetNLinks() << endl
00086       << "End CandFitTrackMS::CandFitTrackMS(const CandFitTrackMS &rhs) ctor." << endl;
00087 }

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

Definition at line 90 of file CandFitTrackMS.cxx.

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

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


Member Function Documentation

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

Reimplemented from CandFitTrack.

Definition at line 102 of file CandFitTrackMS.cxx.

References CandFitTrackMSHandle, and CandBase::SetLocalHandle().

Referenced by CandFitTrackMS(), and Dup().

00103 {
00104   SetLocalHandle(new CandFitTrackMSHandle(this));
00105 }

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

Reimplemented from CandFitTrack.

Definition at line 108 of file CandFitTrackMS.cxx.

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

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

void CandFitTrackMS::Init ( void   )  [protected]

Definition at line 132 of file CandFitTrackMS.cxx.

References fChi2Alt, fChi2BF, fChi2Both, fChi2L, fChi2MS, fEMChargeD, fFlag, fIter, fMomentumAlt, fMomentumBF, fMomentumBoth, fMomentumL, and fMomentumMS.

Referenced by CandFitTrackMS().

00133 {
00134   fMomentumL = 0;
00135   fMomentumBF = 0;
00136   fMomentumMS = 0;
00137   fMomentumBoth = 0;
00138   fMomentumAlt = 0;
00139 
00140   fChi2L = 0;
00141   fChi2BF = 0;
00142   fChi2MS = 0;
00143   fChi2Both = 0;
00144   fChi2Alt = 0;
00145   
00146   fFlag = 0;
00147   fIter = 0;
00148 
00149   fEMChargeD = 0;
00150 }

CandFitTrackMSHandle CandFitTrackMS::MakeCandidate ( AlgHandle ah,
CandContext cx 
) [static]

Reimplemented from CandFitTrack.

Definition at line 124 of file CandFitTrackMS.cxx.

References CandFitTrackMS().

Referenced by AlgFitTrackMSList::RunAlg().

00125 {
00126   CandFitTrackMSHandle csh;
00127   new CandFitTrackMS(ah, csh, cx);          // csh owns the new CandFitTrackMS
00128   return csh;
00129 }


Friends And Related Function Documentation

friend class CandFitTrackMSHandle [friend]

Definition at line 26 of file CandFitTrackMS.h.

Referenced by CreateLocalHandle().


Member Data Documentation

Double_t CandFitTrackMS::fChi2Alt [protected]

Definition at line 60 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fChi2BF [protected]

Definition at line 57 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fChi2Both [protected]

Definition at line 59 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fChi2L [protected]

Definition at line 56 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fChi2MS [protected]

Definition at line 58 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fEMChargeD [protected]

Definition at line 62 of file CandFitTrackMS.h.

Referenced by Init().

Int_t CandFitTrackMS::fFlag [protected]

Definition at line 49 of file CandFitTrackMS.h.

Referenced by Init().

Int_t CandFitTrackMS::fIter [protected]

Definition at line 64 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fMomentumAlt [protected]

Definition at line 54 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fMomentumBF [protected]

Definition at line 51 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fMomentumBoth [protected]

Definition at line 53 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fMomentumL [protected]

Definition at line 50 of file CandFitTrackMS.h.

Referenced by Init().

Double_t CandFitTrackMS::fMomentumMS [protected]

Definition at line 52 of file CandFitTrackMS.h.

Referenced by Init().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1