PandaRoot
PndSttCellTrackFinder Class Reference

#include <PndSttCellTrackFinder.h>

Public Member Functions

 PndSttCellTrackFinder (TClonesArray *tubeArray)
 
virtual ~PndSttCellTrackFinder ()
 
void FindTracks ()
 
void AddHits (TClonesArray *hits, TString branchName)
 
void SetUseGPU (Bool_t val)
 
void SetRunTimeBased (Bool_t val)
 
void SetClusterTime (double val)
 
void SetDevTubeNeighboringsPointer (int *dev_pointer)
 
void SetCalcWithCorrectedIsochrones (Bool_t val)
 
PndSttCellTrackFinderDataGetTrackFinderDataObject ()
 
std::map< Int_t, FairHit * > GetCorrectedIsochrones ()
 
int GetNumPrimaryTracklets ()
 
PndTrackCand GetFirstTrackCand (int i)
 
PndRiemannTrack GetFirstRiemannTrack (int i)
 
PndTrackCand GetCombiTrackCand (int i)
 
PndTrack GetCombiTrack (int i)
 
PndRiemannTrack GetCombiRiemannTrack (int i)
 
std::vector< std::vector< Double_t > > GetTimeStampsTrackletGen ()
 
std::vector< std::vector< Double_t > > GetTimeStampsGenerateNeighborhoodData ()
 
int NumFirstTrackCands ()
 
int NumFirstRiemannTracks ()
 
int NumCombinedTracks ()
 
int NumCombinedRiemannTracks ()
 
int NumHits ()
 
int NumHitsWithoutDouble ()
 
int NumUnambiguousNeighbors ()
 
void SetCalcFirstTrackletInf (Bool_t val)
 
void SetVerbose (Int_t val)
 
void SetBz (Double_t val)
 
void StoreTrackData ()
 
void Reset ()
 

Detailed Description

Definition at line 24 of file PndSttCellTrackFinder.h.

Constructor & Destructor Documentation

◆ PndSttCellTrackFinder()

PndSttCellTrackFinder::PndSttCellTrackFinder ( TClonesArray *  tubeArray)
inline

Definition at line 26 of file PndSttCellTrackFinder.h.

27  : fVerbose(0), fBz(2.), fClusterTime(250.0), fUseGPU(kFALSE), fRunTimeBased(kFALSE), fDev_tubeNeighborings(nullptr), fCalcWithCorrectedIsochrones(kFALSE),
28  fCalcFirstTrackletInf(kFALSE), fTrackFinderData(nullptr), fTrackletGenerator(nullptr), fHitCorrector(nullptr)
29  {
30 
31  // Generate TrackFinderData-Object
32  fTrackFinderData = new PndSttCellTrackFinderData(tubeArray);
33  };

◆ ~PndSttCellTrackFinder()

virtual PndSttCellTrackFinder::~PndSttCellTrackFinder ( )
inlinevirtual

Definition at line 35 of file PndSttCellTrackFinder.h.

References AddHits(), FindTracks(), and i.

36  {
37  delete fTrackFinderData;
38  delete fHitCorrector;
39  delete fTrackletGenerator;
40 
41  for (size_t i = 0; i < fHits.size(); ++i) {
42  delete fHits.at(i);
43  }
44  for (std::multimap<int, PndSttSkewedHit *>::iterator it = fCombinedSkewedHits.begin(); it != fCombinedSkewedHits.end(); ++it) {
45  delete (*it).second;
46  }
47  }
unsigned int i
Definition: P4_F32vec4.h:21

Member Function Documentation

◆ AddHits()

void PndSttCellTrackFinder::AddHits ( TClonesArray *  hits,
TString  branchName 
)

Referenced by ~PndSttCellTrackFinder().

◆ FindTracks()

void PndSttCellTrackFinder::FindTracks ( )

Referenced by ~PndSttCellTrackFinder().

◆ GetCombiRiemannTrack()

PndRiemannTrack PndSttCellTrackFinder::GetCombiRiemannTrack ( int  i)
inline

Definition at line 78 of file PndSttCellTrackFinder.h.

References i.

78 { return fCombiRiemannTrack[i]; };
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetCombiTrack()

PndTrack PndSttCellTrackFinder::GetCombiTrack ( int  i)
inline

Definition at line 76 of file PndSttCellTrackFinder.h.

References i.

76 { return fCombiTrack[i]; };
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetCombiTrackCand()

PndTrackCand PndSttCellTrackFinder::GetCombiTrackCand ( int  i)
inline

Definition at line 73 of file PndSttCellTrackFinder.h.

References i.

73 { return fCombiTrackCand[i]; };
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetCorrectedIsochrones()

std::map<Int_t, FairHit *> PndSttCellTrackFinder::GetCorrectedIsochrones ( )
inline

Definition at line 62 of file PndSttCellTrackFinder.h.

References PndSttHitCorrector::GetCorrectedHits().

62 { return fHitCorrector->GetCorrectedHits(); }
std::map< int, FairHit * > GetCorrectedHits()

◆ GetFirstRiemannTrack()

PndRiemannTrack PndSttCellTrackFinder::GetFirstRiemannTrack ( int  i)
inline

Definition at line 70 of file PndSttCellTrackFinder.h.

References i.

70 { return fFirstRiemannTrack[i]; };
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetFirstTrackCand()

PndTrackCand PndSttCellTrackFinder::GetFirstTrackCand ( int  i)
inline

Definition at line 67 of file PndSttCellTrackFinder.h.

References i.

67 { return fFirstTrackCand[i]; };
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetNumPrimaryTracklets()

int PndSttCellTrackFinder::GetNumPrimaryTracklets ( )
inline

Definition at line 64 of file PndSttCellTrackFinder.h.

References PndSttCellTrackletGenerator::GetNumPrimaryTracklets().

64 { return fTrackletGenerator->GetNumPrimaryTracklets(); }

◆ GetTimeStampsGenerateNeighborhoodData()

std::vector<std::vector<Double_t> > PndSttCellTrackFinder::GetTimeStampsGenerateNeighborhoodData ( )
inline

Definition at line 82 of file PndSttCellTrackFinder.h.

82 { return fTimeStampsGenerateNeighborhoodData; };

◆ GetTimeStampsTrackletGen()

std::vector<std::vector<Double_t> > PndSttCellTrackFinder::GetTimeStampsTrackletGen ( )
inline

Definition at line 80 of file PndSttCellTrackFinder.h.

80 { return fTimeStampsTrackletGen; };

◆ GetTrackFinderDataObject()

PndSttCellTrackFinderData* PndSttCellTrackFinder::GetTrackFinderDataObject ( )
inline

Definition at line 60 of file PndSttCellTrackFinder.h.

60 { return fTrackFinderData; }

◆ NumCombinedRiemannTracks()

int PndSttCellTrackFinder::NumCombinedRiemannTracks ( )
inline

Definition at line 90 of file PndSttCellTrackFinder.h.

90 { return fCombiRiemannTrack.size(); };

◆ NumCombinedTracks()

int PndSttCellTrackFinder::NumCombinedTracks ( )
inline

Definition at line 88 of file PndSttCellTrackFinder.h.

88 { return fCombiTrackCand.size(); };

◆ NumFirstRiemannTracks()

int PndSttCellTrackFinder::NumFirstRiemannTracks ( )
inline

Definition at line 86 of file PndSttCellTrackFinder.h.

86 { return fFirstRiemannTrack.size(); };

◆ NumFirstTrackCands()

int PndSttCellTrackFinder::NumFirstTrackCands ( )
inline

Definition at line 84 of file PndSttCellTrackFinder.h.

84 { return fFirstTrackCand.size(); };

◆ NumHits()

int PndSttCellTrackFinder::NumHits ( )
inline

Definition at line 92 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::GetNumHits().

92 { return fTrackFinderData->GetNumHits(); }

◆ NumHitsWithoutDouble()

int PndSttCellTrackFinder::NumHitsWithoutDouble ( )
inline

Definition at line 94 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::GetNumHitsWithoutDouble().

94 { return fTrackFinderData->GetNumHitsWithoutDouble(); }

◆ NumUnambiguousNeighbors()

int PndSttCellTrackFinder::NumUnambiguousNeighbors ( )
inline

Definition at line 96 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::GetSeparations().

96 { return fTrackFinderData->GetSeparations()[1].size() + fTrackFinderData->GetSeparations()[2].size(); }
std::map< int, std::vector< int > > GetSeparations() const

◆ Reset()

void PndSttCellTrackFinder::Reset ( )
inline

Definition at line 116 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::clear().

117  {
118  fHits.clear();
119  fTrackFinderData->clear();
120 
121  fFirstTrackCand.clear();
122  fFirstRiemannTrack.clear();
123 
124  fCombiTrackCand.clear();
125  fCombiTrack.clear();
126  fCombiRiemannTrack.clear();
127 
128  delete fHitCorrector;
129  delete fTrackletGenerator;
130  }

◆ SetBz()

void PndSttCellTrackFinder::SetBz ( Double_t  val)
inline

Definition at line 102 of file PndSttCellTrackFinder.h.

102 { fBz = val; };

◆ SetCalcFirstTrackletInf()

void PndSttCellTrackFinder::SetCalcFirstTrackletInf ( Bool_t  val)
inline

Definition at line 98 of file PndSttCellTrackFinder.h.

98 { fCalcFirstTrackletInf = val; };

◆ SetCalcWithCorrectedIsochrones()

void PndSttCellTrackFinder::SetCalcWithCorrectedIsochrones ( Bool_t  val)
inline

Definition at line 58 of file PndSttCellTrackFinder.h.

58 { fCalcWithCorrectedIsochrones = val; }

◆ SetClusterTime()

void PndSttCellTrackFinder::SetClusterTime ( double  val)
inline

Definition at line 55 of file PndSttCellTrackFinder.h.

55 { fClusterTime = val; }; // J.R. 20/04-2018

◆ SetDevTubeNeighboringsPointer()

void PndSttCellTrackFinder::SetDevTubeNeighboringsPointer ( int *  dev_pointer)
inline

Definition at line 56 of file PndSttCellTrackFinder.h.

56 { fDev_tubeNeighborings = dev_pointer; }

◆ SetRunTimeBased()

void PndSttCellTrackFinder::SetRunTimeBased ( Bool_t  val)
inline

Definition at line 54 of file PndSttCellTrackFinder.h.

54 { fRunTimeBased = val; }

◆ SetUseGPU()

void PndSttCellTrackFinder::SetUseGPU ( Bool_t  val)
inline

Definition at line 53 of file PndSttCellTrackFinder.h.

53 { fUseGPU = val; }

◆ SetVerbose()

void PndSttCellTrackFinder::SetVerbose ( Int_t  val)
inline

Definition at line 100 of file PndSttCellTrackFinder.h.

100 { fVerbose = val; };

◆ StoreTrackData()

void PndSttCellTrackFinder::StoreTrackData ( )
inline

Definition at line 104 of file PndSttCellTrackFinder.h.

References PndSttCellTrackletGenerator::GetCombiRiemannTracks(), PndSttCellTrackletGenerator::GetCombiTrackCands(), PndSttCellTrackletGenerator::GetCombiTracks(), PndSttCellTrackletGenerator::GetFirstRiemannTracks(), and PndSttCellTrackletGenerator::GetFirstTrackCands().

105  {
106  fFirstTrackCand = fTrackletGenerator->GetFirstTrackCands();
107 
108  if (fCalcFirstTrackletInf)
109  fFirstRiemannTrack = fTrackletGenerator->GetFirstRiemannTracks();
110 
111  fCombiTrackCand = fTrackletGenerator->GetCombiTrackCands();
112  fCombiRiemannTrack = fTrackletGenerator->GetCombiRiemannTracks();
113  fCombiTrack = fTrackletGenerator->GetCombiTracks();
114  };
std::vector< PndTrackCand > GetFirstTrackCands()
std::vector< PndRiemannTrack > GetCombiRiemannTracks()
std::vector< PndTrackCand > GetCombiTrackCands()
std::vector< PndRiemannTrack > GetFirstRiemannTracks()
std::vector< PndTrack > GetCombiTracks()

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