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 36 of file PndSttCellTrackFinder.h.

Constructor & Destructor Documentation

◆ PndSttCellTrackFinder()

PndSttCellTrackFinder::PndSttCellTrackFinder ( TClonesArray *  tubeArray)
inline

Definition at line 38 of file PndSttCellTrackFinder.h.

39  : fVerbose(0), fBz(2.), fClusterTime(250.0), fUseGPU(kFALSE), fRunTimeBased(kFALSE), fDev_tubeNeighborings(nullptr), fCalcWithCorrectedIsochrones(kFALSE),
40  fCalcFirstTrackletInf(kFALSE), fTrackFinderData(nullptr), fTrackletGenerator(nullptr), fHitCorrector(nullptr)
41  {
42 
43  // Generate TrackFinderData-Object
44  fTrackFinderData = new PndSttCellTrackFinderData(tubeArray);
45  };

◆ ~PndSttCellTrackFinder()

virtual PndSttCellTrackFinder::~PndSttCellTrackFinder ( )
inlinevirtual

Definition at line 47 of file PndSttCellTrackFinder.h.

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

48  {
49  delete fTrackFinderData;
50  delete fHitCorrector;
51  delete fTrackletGenerator;
52 
53  for (size_t i = 0; i < fHits.size(); ++i) {
54  delete fHits.at(i);
55  }
56  for (std::multimap<int, PndSttSkewedHit *>::iterator it = fCombinedSkewedHits.begin(); it != fCombinedSkewedHits.end(); ++it) {
57  delete (*it).second;
58  }
59  }
unsigned int i
Definition: P4_F32vec4.h:33

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 90 of file PndSttCellTrackFinder.h.

References i.

90 { return fCombiRiemannTrack[i]; };
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetCombiTrack()

PndTrack PndSttCellTrackFinder::GetCombiTrack ( int  i)
inline

Definition at line 88 of file PndSttCellTrackFinder.h.

References i.

88 { return fCombiTrack[i]; };
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetCombiTrackCand()

PndTrackCand PndSttCellTrackFinder::GetCombiTrackCand ( int  i)
inline

Definition at line 85 of file PndSttCellTrackFinder.h.

References i.

85 { return fCombiTrackCand[i]; };
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetCorrectedIsochrones()

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

Definition at line 74 of file PndSttCellTrackFinder.h.

References PndSttHitCorrector::GetCorrectedHits().

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

◆ GetFirstRiemannTrack()

PndRiemannTrack PndSttCellTrackFinder::GetFirstRiemannTrack ( int  i)
inline

Definition at line 82 of file PndSttCellTrackFinder.h.

References i.

82 { return fFirstRiemannTrack[i]; };
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetFirstTrackCand()

PndTrackCand PndSttCellTrackFinder::GetFirstTrackCand ( int  i)
inline

Definition at line 79 of file PndSttCellTrackFinder.h.

References i.

79 { return fFirstTrackCand[i]; };
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetNumPrimaryTracklets()

int PndSttCellTrackFinder::GetNumPrimaryTracklets ( )
inline

Definition at line 76 of file PndSttCellTrackFinder.h.

References PndSttCellTrackletGenerator::GetNumPrimaryTracklets().

76 { return fTrackletGenerator->GetNumPrimaryTracklets(); }

◆ GetTimeStampsGenerateNeighborhoodData()

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

Definition at line 94 of file PndSttCellTrackFinder.h.

94 { return fTimeStampsGenerateNeighborhoodData; };

◆ GetTimeStampsTrackletGen()

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

Definition at line 92 of file PndSttCellTrackFinder.h.

92 { return fTimeStampsTrackletGen; };

◆ GetTrackFinderDataObject()

PndSttCellTrackFinderData* PndSttCellTrackFinder::GetTrackFinderDataObject ( )
inline

Definition at line 72 of file PndSttCellTrackFinder.h.

72 { return fTrackFinderData; }

◆ NumCombinedRiemannTracks()

int PndSttCellTrackFinder::NumCombinedRiemannTracks ( )
inline

Definition at line 102 of file PndSttCellTrackFinder.h.

102 { return fCombiRiemannTrack.size(); };

◆ NumCombinedTracks()

int PndSttCellTrackFinder::NumCombinedTracks ( )
inline

Definition at line 100 of file PndSttCellTrackFinder.h.

100 { return fCombiTrackCand.size(); };

◆ NumFirstRiemannTracks()

int PndSttCellTrackFinder::NumFirstRiemannTracks ( )
inline

Definition at line 98 of file PndSttCellTrackFinder.h.

98 { return fFirstRiemannTrack.size(); };

◆ NumFirstTrackCands()

int PndSttCellTrackFinder::NumFirstTrackCands ( )
inline

Definition at line 96 of file PndSttCellTrackFinder.h.

96 { return fFirstTrackCand.size(); };

◆ NumHits()

int PndSttCellTrackFinder::NumHits ( )
inline

Definition at line 104 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::GetNumHits().

104 { return fTrackFinderData->GetNumHits(); }

◆ NumHitsWithoutDouble()

int PndSttCellTrackFinder::NumHitsWithoutDouble ( )
inline

Definition at line 106 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::GetNumHitsWithoutDouble().

106 { return fTrackFinderData->GetNumHitsWithoutDouble(); }

◆ NumUnambiguousNeighbors()

int PndSttCellTrackFinder::NumUnambiguousNeighbors ( )
inline

Definition at line 108 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::GetSeparations().

108 { 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 128 of file PndSttCellTrackFinder.h.

References PndSttCellTrackFinderData::clear().

129  {
130  fHits.clear();
131  fTrackFinderData->clear();
132 
133  fFirstTrackCand.clear();
134  fFirstRiemannTrack.clear();
135 
136  fCombiTrackCand.clear();
137  fCombiTrack.clear();
138  fCombiRiemannTrack.clear();
139 
140  delete fHitCorrector;
141  delete fTrackletGenerator;
142  }

◆ SetBz()

void PndSttCellTrackFinder::SetBz ( Double_t  val)
inline

Definition at line 114 of file PndSttCellTrackFinder.h.

114 { fBz = val; };

◆ SetCalcFirstTrackletInf()

void PndSttCellTrackFinder::SetCalcFirstTrackletInf ( Bool_t  val)
inline

Definition at line 110 of file PndSttCellTrackFinder.h.

110 { fCalcFirstTrackletInf = val; };

◆ SetCalcWithCorrectedIsochrones()

void PndSttCellTrackFinder::SetCalcWithCorrectedIsochrones ( Bool_t  val)
inline

Definition at line 70 of file PndSttCellTrackFinder.h.

70 { fCalcWithCorrectedIsochrones = val; }

◆ SetClusterTime()

void PndSttCellTrackFinder::SetClusterTime ( double  val)
inline

Definition at line 67 of file PndSttCellTrackFinder.h.

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

◆ SetDevTubeNeighboringsPointer()

void PndSttCellTrackFinder::SetDevTubeNeighboringsPointer ( int *  dev_pointer)
inline

Definition at line 68 of file PndSttCellTrackFinder.h.

68 { fDev_tubeNeighborings = dev_pointer; }

◆ SetRunTimeBased()

void PndSttCellTrackFinder::SetRunTimeBased ( Bool_t  val)
inline

Definition at line 66 of file PndSttCellTrackFinder.h.

66 { fRunTimeBased = val; }

◆ SetUseGPU()

void PndSttCellTrackFinder::SetUseGPU ( Bool_t  val)
inline

Definition at line 65 of file PndSttCellTrackFinder.h.

65 { fUseGPU = val; }

◆ SetVerbose()

void PndSttCellTrackFinder::SetVerbose ( Int_t  val)
inline

Definition at line 112 of file PndSttCellTrackFinder.h.

112 { fVerbose = val; };

◆ StoreTrackData()

void PndSttCellTrackFinder::StoreTrackData ( )
inline

Definition at line 116 of file PndSttCellTrackFinder.h.

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

117  {
118  fFirstTrackCand = fTrackletGenerator->GetFirstTrackCands();
119 
120  if (fCalcFirstTrackletInf)
121  fFirstRiemannTrack = fTrackletGenerator->GetFirstRiemannTracks();
122 
123  fCombiTrackCand = fTrackletGenerator->GetCombiTrackCands();
124  fCombiRiemannTrack = fTrackletGenerator->GetCombiRiemannTracks();
125  fCombiTrack = fTrackletGenerator->GetCombiTracks();
126  };
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: