CandAtNuRecoHandle Class Reference

#include <CandAtNuRecoHandle.h>

Inheritance diagram for CandAtNuRecoHandle:
CandRecoHandle CandHandle

List of all members.

Public Member Functions

 CandAtNuRecoHandle ()
 CandAtNuRecoHandle (const CandAtNuRecoHandle &cdh)
 CandAtNuRecoHandle (CandAtNuReco *cd)
virtual ~CandAtNuRecoHandle ()
virtual CandAtNuRecoHandleDupHandle () const
virtual void Trace (const char *c="") const
void AddShower (CandShowerAtNuHandle *shower)
void AddTrack (CandTrackAtNuHandle *track)
CandShowerAtNuHandleGetShower (Int_t i)
CandTrackAtNuHandleGetTrack (Int_t i)
Int_t GetLastShower () const
Int_t GetLastTrack () const
Int_t GetNtracks () const
Int_t GetNshowers () const
void SetAtNuRecoScore (Double_t scr)
Double_t GetAtNuRecoScore () const
void SetCPUTime (Double_t time)
Double_t GetCPUTime () const
void SetNBlocks (Int_t nblocks)
Int_t GetNBlocks () const

Detailed Description

Definition at line 8 of file CandAtNuRecoHandle.h.


Constructor & Destructor Documentation

CandAtNuRecoHandle::CandAtNuRecoHandle (  ) 

Definition at line 24 of file CandAtNuRecoHandle.cxx.

References Msg::kDebug, and MSG.

Referenced by DupHandle().

00025 {
00026   MSG("CandAtNuRecoHandle", Msg::kDebug) << " " << endl;
00027 }

CandAtNuRecoHandle::CandAtNuRecoHandle ( const CandAtNuRecoHandle cdh  ) 

Definition at line 29 of file CandAtNuRecoHandle.cxx.

00029                                                                     :
00030   CandRecoHandle(cdh)
00031 {
00032 
00033 }

CandAtNuRecoHandle::CandAtNuRecoHandle ( CandAtNuReco cd  ) 

Definition at line 35 of file CandAtNuRecoHandle.cxx.

00035                                                        :
00036   CandRecoHandle(cd)
00037 {
00038 
00039 }

CandAtNuRecoHandle::~CandAtNuRecoHandle (  )  [virtual]

Definition at line 41 of file CandAtNuRecoHandle.cxx.

00042 {
00043 
00044 }


Member Function Documentation

void CandAtNuRecoHandle::AddShower ( CandShowerAtNuHandle shower  ) 

Definition at line 56 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00057 {
00058   TObjArray *fShowerList = &(dynamic_cast<CandAtNuReco*>(GetOwnedCandBase())->fShowerList);
00059   Bool_t found = 0;
00060   for (Int_t i=0; i<=fShowerList->GetLast() && !found; i++) {
00061     CandShowerAtNuHandle *target = dynamic_cast<CandShowerAtNuHandle*>(fShowerList->At(i));
00062     if (*shower == *target) {
00063       found = 1;
00064     }
00065   }
00066   if (found) {
00067     return;
00068   }
00069   fShowerList->Add(shower);
00070 }

void CandAtNuRecoHandle::AddTrack ( CandTrackAtNuHandle track  ) 

Definition at line 72 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgAtNuRecoMCTruth::RunAlg(), and AlgAtNuReco::RunAlg().

00073 {
00074   TObjArray *fTrackList = &(dynamic_cast<CandAtNuReco*>(GetOwnedCandBase())->fTrackList);
00075   Bool_t found = 0;
00076   for (Int_t i=0; i<=fTrackList->GetLast() && !found; i++) {
00077     CandTrackAtNuHandle *target = dynamic_cast<CandTrackAtNuHandle*>(fTrackList->At(i));
00078     if (*track == *target) {
00079       found = 1;
00080     }
00081   }
00082   if (found) {
00083     return;
00084   }
00085   fTrackList->Add(track);
00086 }

CandAtNuRecoHandle * CandAtNuRecoHandle::DupHandle (  )  const [virtual]

Reimplemented from CandRecoHandle.

Definition at line 46 of file CandAtNuRecoHandle.cxx.

References CandAtNuRecoHandle().

00047 {
00048    return (new CandAtNuRecoHandle(*this));
00049 }

Double_t CandAtNuRecoHandle::GetAtNuRecoScore (  )  const

Definition at line 131 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00132 {
00133   return dynamic_cast<const CandAtNuReco*>(GetCandBase())->fAtNuRecoScore;
00134 }

Double_t CandAtNuRecoHandle::GetCPUTime (  )  const

Definition at line 141 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00142 {
00143   return dynamic_cast<const CandAtNuReco*>(GetCandBase())->fCPUTime;
00144 }

Int_t CandAtNuRecoHandle::GetLastShower (  )  const

Definition at line 106 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00107 {
00108   return dynamic_cast<const CandAtNuReco*>(GetCandBase())->fShowerList.GetLast();
00109 }

Int_t CandAtNuRecoHandle::GetLastTrack (  )  const

Definition at line 111 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00112 {
00113   return dynamic_cast<const CandAtNuReco*>(GetCandBase())->fTrackList.GetLast();
00114 }

Int_t CandAtNuRecoHandle::GetNBlocks (  )  const

Definition at line 151 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00152 {
00153   return dynamic_cast<const CandAtNuReco*>(GetCandBase())->fNBlocks;
00154 }

Int_t CandAtNuRecoHandle::GetNshowers (  )  const

Definition at line 121 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00122 {
00123   return dynamic_cast<const CandAtNuReco*>(GetCandBase())->fShowerList.GetLast()+1;
00124 }

Int_t CandAtNuRecoHandle::GetNtracks (  )  const

Definition at line 116 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00117 {
00118   return dynamic_cast<const CandAtNuReco*>(GetCandBase())->fTrackList.GetLast()+1;
00119 }

CandShowerAtNuHandle * CandAtNuRecoHandle::GetShower ( Int_t  i  ) 

Definition at line 88 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00089 {
00090   const TObjArray* fShowerList = &(dynamic_cast<const CandAtNuReco*>(GetCandBase())->fShowerList);
00091   if (i>fShowerList->GetLast()) {
00092     return 0;
00093   }
00094   return dynamic_cast<CandShowerAtNuHandle*>(fShowerList->At(i));
00095 }

CandTrackAtNuHandle * CandAtNuRecoHandle::GetTrack ( Int_t  i  ) 

Definition at line 97 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetCandBase().

00098 {
00099   const TObjArray* fTrackList = &(dynamic_cast<const CandAtNuReco*>(GetCandBase())->fTrackList);
00100   if (i>fTrackList->GetLast()) {
00101     return 0;
00102   }
00103   return dynamic_cast<CandTrackAtNuHandle*>(fTrackList->At(i));
00104 }

void CandAtNuRecoHandle::SetAtNuRecoScore ( Double_t  scr  ) 

Definition at line 126 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgAtNuReco::RunAlg().

00127 {
00128   dynamic_cast<CandAtNuReco*>(GetOwnedCandBase())->fAtNuRecoScore=scr;
00129 }

void CandAtNuRecoHandle::SetCPUTime ( Double_t  time  ) 

Definition at line 136 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgAtNuReco::RunAlg().

00137 {
00138   dynamic_cast<CandAtNuReco*>(GetOwnedCandBase())->fCPUTime=time;
00139 }

void CandAtNuRecoHandle::SetNBlocks ( Int_t  nblocks  ) 

Definition at line 146 of file CandAtNuRecoHandle.cxx.

References CandHandle::GetOwnedCandBase().

Referenced by AlgAtNuReco::RunAlg().

00147 {
00148   dynamic_cast<CandAtNuReco*>(GetOwnedCandBase())->fNBlocks=nblocks;
00149 }

void CandAtNuRecoHandle::Trace ( const char *  c = ""  )  const [virtual]

Reimplemented from CandRecoHandle.

Definition at line 51 of file CandAtNuRecoHandle.cxx.

00052 {
00053   CandHandle::Trace(c);
00054 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1