PandaRoot
PndSttCA Class Reference

#include <PndSttCA.h>

Public Member Functions

 PndSttCA (TClonesArray *tubeArray)
 
virtual ~PndSttCA ()
 
void FindTracks ()
 
void AddHits (TClonesArray *hits, TString branchName)
 
void SetDevTubeNeighboringsPointer (int *dev_pointer)
 
void SetUseGPU (Bool_t val)
 
PndSttCADataGetTrackFinderDataObject ()
 
int GetNumPrimaryTracklets ()
 
PndTrackCand GetFirstTrackCand (int i)
 
std::vector< std::vector< Double_t > > GetTimeStampsTrackletGen ()
 
std::vector< std::vector< Double_t > > GetTimeStampsGenerateNeighborhoodData ()
 
int NumFirstTrackCands ()
 
int NumHits ()
 
int NumHitsWithoutDouble ()
 
int NumUnambiguousNeighbors ()
 
void SetCalcFirstTrackletInf (Bool_t val)
 
void SetBz (Double_t val)
 
void StoreTrackData ()
 
void Reset ()
 

Detailed Description

Definition at line 34 of file PndSttCA.h.

Constructor & Destructor Documentation

◆ PndSttCA()

PndSttCA::PndSttCA ( TClonesArray *  tubeArray)
inline

Definition at line 36 of file PndSttCA.h.

36  : fBz(2.), fUseGPU(kFALSE), fDev_tubeNeighborings(nullptr), fTrackFinderData(nullptr), fTrackletGenerator(nullptr)
37  {
38 
39  // Generate TrackFinderData-Object
40  fTrackFinderData = new PndSttCAData(tubeArray);
41  };

◆ ~PndSttCA()

virtual PndSttCA::~PndSttCA ( )
inlinevirtual

Definition at line 43 of file PndSttCA.h.

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

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

Member Function Documentation

◆ AddHits()

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

Referenced by ~PndSttCA().

◆ FindTracks()

void PndSttCA::FindTracks ( )

Referenced by ~PndSttCA().

◆ GetFirstTrackCand()

PndTrackCand PndSttCA::GetFirstTrackCand ( int  i)
inline

Definition at line 68 of file PndSttCA.h.

References i.

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

◆ GetNumPrimaryTracklets()

int PndSttCA::GetNumPrimaryTracklets ( )
inline

Definition at line 65 of file PndSttCA.h.

References PndSttCATrackletGenerator::GetNumPrimaryTracklets().

65 { return fTrackletGenerator->GetNumPrimaryTracklets(); }

◆ GetTimeStampsGenerateNeighborhoodData()

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

Definition at line 72 of file PndSttCA.h.

72 { return fTimeStampsGenerateNeighborhoodData; };

◆ GetTimeStampsTrackletGen()

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

Definition at line 70 of file PndSttCA.h.

70 { return fTimeStampsTrackletGen; };

◆ GetTrackFinderDataObject()

PndSttCAData* PndSttCA::GetTrackFinderDataObject ( )
inline

Definition at line 63 of file PndSttCA.h.

63 { return fTrackFinderData; }

◆ NumFirstTrackCands()

int PndSttCA::NumFirstTrackCands ( )
inline

Definition at line 74 of file PndSttCA.h.

74 { return fFirstTrackCand.size(); };

◆ NumHits()

int PndSttCA::NumHits ( )
inline

Definition at line 76 of file PndSttCA.h.

References PndSttCAData::GetNumHits().

76 { return fTrackFinderData->GetNumHits(); }
int GetNumHits()
Definition: PndSttCAData.h:99

◆ NumHitsWithoutDouble()

int PndSttCA::NumHitsWithoutDouble ( )
inline

Definition at line 78 of file PndSttCA.h.

References PndSttCAData::GetNumHitsWithoutDouble().

78 { return fTrackFinderData->GetNumHitsWithoutDouble(); }
int GetNumHitsWithoutDouble()
Definition: PndSttCAData.h:101

◆ NumUnambiguousNeighbors()

int PndSttCA::NumUnambiguousNeighbors ( )
inline

Definition at line 80 of file PndSttCA.h.

References PndSttCAData::GetSeparations().

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

◆ Reset()

void PndSttCA::Reset ( )
inline

Definition at line 88 of file PndSttCA.h.

References PndSttCAData::clear().

Referenced by PndHoughTrackFinder::Reset().

89  {
90  fHits.clear();
91  fTrackFinderData->clear();
92 
93  fFirstTrackCand.clear();
94 
95  delete fTrackletGenerator;
96  }
void clear()
Definition: PndSttCAData.h:53

◆ SetBz()

void PndSttCA::SetBz ( Double_t  val)
inline

Definition at line 84 of file PndSttCA.h.

84 { fBz = val; };

◆ SetCalcFirstTrackletInf()

void PndSttCA::SetCalcFirstTrackletInf ( Bool_t  val)
inline

Definition at line 82 of file PndSttCA.h.

82 { fCalcFirstTrackletInf = val; };

◆ SetDevTubeNeighboringsPointer()

void PndSttCA::SetDevTubeNeighboringsPointer ( int *  dev_pointer)
inline

Definition at line 60 of file PndSttCA.h.

60 { fDev_tubeNeighborings = dev_pointer; }

◆ SetUseGPU()

void PndSttCA::SetUseGPU ( Bool_t  val)
inline

Definition at line 61 of file PndSttCA.h.

Referenced by PndHoughTrackFinder::Init(), and PndHoughTrackFinder::Reset().

61 { fUseGPU = val; }

◆ StoreTrackData()

void PndSttCA::StoreTrackData ( )
inline

Definition at line 86 of file PndSttCA.h.

References PndSttCATrackletGenerator::GetFirstTrackCands().

86 { fFirstTrackCand = fTrackletGenerator->GetFirstTrackCands(); };
std::vector< PndTrackCand > GetFirstTrackCands()

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