CandFitTrackSA Class Reference

#include <CandFitTrackSA.h>

Inheritance diagram for CandFitTrackSA:
CandFitTrack CandTrack CandReco CandBase CandRefCounted

List of all members.

Public Member Functions

 CandFitTrackSA ()

Static Public Member Functions

static CandFitTrackSAHandle MakeCandidate (AlgHandle &ah, CandContext &ch)

Protected Member Functions

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

Protected Attributes

TClonesArray fFits

Friends

class CandFitTrackSAHandle

Detailed Description

Definition at line 31 of file CandFitTrackSA.h.


Constructor & Destructor Documentation

CandFitTrackSA::CandFitTrackSA (  ) 

Definition at line 29 of file CandFitTrackSA.cxx.

Referenced by Dup(), and MakeCandidate().

00029                                 :
00030     fFits("NtpFitSA", 50)
00031 {
00032 }

CandFitTrackSA::CandFitTrackSA ( AlgHandle ah  )  [protected]

Definition at line 34 of file CandFitTrackSA.cxx.

00034                                             :
00035     CandFitTrack(ah) ,
00036     fFits("NtpFitSA", 50)
00037 {
00038 }

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

Definition at line 40 of file CandFitTrackSA.cxx.

References CreateLocalHandle(), and AlgHandle::RunAlg().

00040                                                                              :
00041     CandFitTrack(ah) ,
00042     fFits("NtpFitSA", 50)
00043 {
00044     TracerSA trace(
00045         "CandFitTrackSA::CandFitTrackSA(AlgHandle& ,CandHandle& , CandContext&)"
00046     );
00047     this->CreateLocalHandle();
00048     {
00049         CandFitTrackSAHandle a_handle(this);
00050         ch = a_handle;
00051     }
00052     ah.RunAlg(ch,cx);
00053 }

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

Definition at line 55 of file CandFitTrackSA.cxx.

References fFits.

00055                                                         :
00056     CandFitTrack(rhs) ,
00057     fFits("NtpFitSA", 50)    
00058 {
00059     NtpFitSA* ntpfitsa;
00060     for (Int_t i = 0; i < rhs.fFits.GetEntriesFast(); i++) {
00061         ntpfitsa = new((fFits)[i]) NtpFitSA(*(NtpFitSA*) rhs.fFits[i]);
00062     }
00063 }

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

Definition at line 65 of file CandFitTrackSA.cxx.

References fFits.

00066 {
00067     fFits.Delete();
00068 }


Member Function Documentation

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

Reimplemented from CandFitTrack.

Definition at line 70 of file CandFitTrackSA.cxx.

References CandFitTrackSAHandle, and CandBase::SetLocalHandle().

Referenced by CandFitTrackSA(), and Dup().

00071 {
00072     this->SetLocalHandle(new CandFitTrackSAHandle(this));
00073 }

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

Reimplemented from CandFitTrack.

Definition at line 75 of file CandFitTrackSA.cxx.

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

00076 {
00077     CandFitTrackSA* newone = new CandFitTrackSA(*this);
00078     newone->CreateLocalHandle();
00079     TIter iter = this->GetDaughterIterator();
00080     CandHandle* ch;
00081     while ((ch=(CandHandle*)iter())) newone->AddDaughterLink(*ch);
00082     return newone;
00083 }

CandFitTrackSAHandle CandFitTrackSA::MakeCandidate ( AlgHandle ah,
CandContext ch 
) [static]

Reimplemented from CandFitTrack.

Definition at line 85 of file CandFitTrackSA.cxx.

References CandFitTrackSA().

Referenced by AlgFitTrackSAList::RunAlg().

00086 {
00087     CandFitTrackSAHandle a_handle;
00088     new CandFitTrackSA(ah,a_handle,cx);
00089     return a_handle;
00090 }


Friends And Related Function Documentation

friend class CandFitTrackSAHandle [friend]

Definition at line 32 of file CandFitTrackSA.h.

Referenced by CreateLocalHandle().


Member Data Documentation

TClonesArray CandFitTrackSA::fFits [protected]

Definition at line 49 of file CandFitTrackSA.h.

Referenced by CandFitTrackSA(), and ~CandFitTrackSA().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1