PandaRoot
PndTrackCand Class Reference

#include <PndTrackCand.h>

Inheritance diagram for PndTrackCand:
PndFtsHoughTracklet

Public Member Functions

 PndTrackCand ()
 
 ~PndTrackCand ()
 
bool operator== (const PndTrackCand &rhs)
 
PndTrackCandHit GetSortedHit (UInt_t i)
 
UInt_t GetNHits () const
 
int getMcTrackId () const
 
UInt_t GetNHitsDet (Int_t detId)
 
std::vector< PndTrackCandHitGetSortedHits ()
 
void Sort ()
 
void AddHit (UInt_t detId, UInt_t hitId, Double_t rho)
 
void AddHit (TString branchName, UInt_t hitId, Double_t rho)
 
void AddHit (FairLink link, Double_t rho)
 
void DeleteHit (UInt_t detId, UInt_t hitId)
 
Int_t HitInTrack (UInt_t detId, UInt_t hitId) const
 
void setMcTrackId (int i)
 
void CalcTimeStamp ()
 
void ResetLinks ()
 
void Print () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
 ClassDef (PndTrackCand, 3)
 

Detailed Description

Definition at line 41 of file PndTrackCand.h.

Constructor & Destructor Documentation

◆ PndTrackCand()

PndTrackCand::PndTrackCand ( )

◆ ~PndTrackCand()

PndTrackCand::~PndTrackCand ( )

Member Function Documentation

◆ AddHit() [1/3]

void PndTrackCand::AddHit ( UInt_t  detId,
UInt_t  hitId,
Double_t  rho 
)

Referenced by getMcTrackId().

◆ AddHit() [2/3]

void PndTrackCand::AddHit ( TString  branchName,
UInt_t  hitId,
Double_t  rho 
)

◆ AddHit() [3/3]

void PndTrackCand::AddHit ( FairLink  link,
Double_t  rho 
)

◆ CalcTimeStamp()

void PndTrackCand::CalcTimeStamp ( )

Referenced by setMcTrackId().

◆ ClassDef()

PndTrackCand::ClassDef ( PndTrackCand  ,
 
)

Referenced by serialize().

◆ DeleteHit()

void PndTrackCand::DeleteHit ( UInt_t  detId,
UInt_t  hitId 
)

Referenced by getMcTrackId().

◆ getMcTrackId()

int PndTrackCand::getMcTrackId ( ) const
inline

Definition at line 58 of file PndTrackCand.h.

References AddHit(), DeleteHit(), GetNHitsDet(), GetSortedHits(), HitInTrack(), and Sort().

58 { return fMcTrackId; }

◆ GetNHits()

UInt_t PndTrackCand::GetNHits ( ) const
inline

◆ GetNHitsDet()

UInt_t PndTrackCand::GetNHitsDet ( Int_t  detId)

Referenced by getMcTrackId().

◆ GetSortedHit()

PndTrackCandHit PndTrackCand::GetSortedHit ( UInt_t  i)
inline

Definition at line 51 of file PndTrackCand.h.

References Sort().

Referenced by PndApollonius::ApolloniusTripletFunctions::GetHitsToCAMap(), and PndApollonius::ApolloniusTripletFunctions::ReduceCombinatorics().

52  {
53  if (sorted == false)
54  Sort();
55  return fHitId.at(i);
56  }
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetSortedHits()

std::vector<PndTrackCandHit> PndTrackCand::GetSortedHits ( )

Referenced by getMcTrackId().

◆ HitInTrack()

Int_t PndTrackCand::HitInTrack ( UInt_t  detId,
UInt_t  hitId 
) const

Referenced by getMcTrackId().

◆ operator==()

bool PndTrackCand::operator== ( const PndTrackCand rhs)

◆ Print()

void PndTrackCand::Print ( ) const

Referenced by setMcTrackId().

◆ ResetLinks()

void PndTrackCand::ResetLinks ( )

Referenced by setMcTrackId().

◆ serialize()

template<class Archive >
void PndTrackCand::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

Definition at line 80 of file PndTrackCand.h.

References ClassDef().

81  {
82  ar &boost::serialization::base_object<FairTimeStamp>(*this);
83  ar &fHitId;
84  ar &sorted;
85  ar &fMcTrackId;
86  }

◆ setMcTrackId()

void PndTrackCand::setMcTrackId ( int  i)
inline

Definition at line 70 of file PndTrackCand.h.

References CalcTimeStamp(), i, Print(), and ResetLinks().

70 { fMcTrackId = i; }
unsigned int i
Definition: P4_F32vec4.h:21

◆ Sort()

void PndTrackCand::Sort ( )

Referenced by getMcTrackId(), and GetSortedHit().


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