PandaRoot
PndSttStrawMap Class Reference

#include <PndSttStrawMap.h>

Inheritance diagram for PndSttStrawMap:

Public Member Functions

 PndSttStrawMap ()
 
 PndSttStrawMap (TClonesArray *const stt_tube_array)
 
 PndSttStrawMap (const PndSttStrawMap &)=delete
 
PndSttStrawMapoperator= (const PndSttStrawMap &)=delete
 
const vector< int > & GetStrawRow (int sector, int row) const
 
const vector< vector< int > > & GetStrawSector (int sector) const
 
int GetSector (int strawindex) const
 
int FindPhiSector (double phi) const
 
int GetRow (int strawindex) const
 
int GetLeftSector (int sector) const
 
int GetRightSector (int sector) const
 
bool IsEdgeStraw (int strawindex) const
 
int IsSectorBorderStraw (int strawindex) const
 
bool IsAxialStraw (int strawindex) const
 
bool IsSkewedStraw (int strawindex) const
 
bool IsAxialRow (int rowindex) const
 
bool IsSkewedRow (int rowindex) const
 
PndSttTubeGetTube (int strawindex) const
 
void GenerateStrawMap (TClonesArray *const stt_tube_array)
 

Detailed Description

Definition at line 22 of file PndSttStrawMap.h.

Constructor & Destructor Documentation

◆ PndSttStrawMap() [1/3]

PndSttStrawMap::PndSttStrawMap ( )

◆ PndSttStrawMap() [2/3]

PndSttStrawMap::PndSttStrawMap ( TClonesArray *const  stt_tube_array)

◆ PndSttStrawMap() [3/3]

PndSttStrawMap::PndSttStrawMap ( const PndSttStrawMap )
delete

Member Function Documentation

◆ FindPhiSector()

int PndSttStrawMap::FindPhiSector ( double  phi) const

Referenced by GetSector().

◆ GenerateStrawMap()

void PndSttStrawMap::GenerateStrawMap ( TClonesArray *const  stt_tube_array)

◆ GetLeftSector()

int PndSttStrawMap::GetLeftSector ( int  sector) const
inline

Definition at line 34 of file PndSttStrawMap.h.

34 { return ((sector + 1) % 6); }

◆ GetRightSector()

int PndSttStrawMap::GetRightSector ( int  sector) const
inline

Definition at line 35 of file PndSttStrawMap.h.

References IsEdgeStraw(), and IsSectorBorderStraw().

35 { return ((sector + 5) % 6); }

◆ GetRow()

int PndSttStrawMap::GetRow ( int  strawindex) const
inline

Definition at line 33 of file PndSttStrawMap.h.

33 { return fRowOfStraw.at(strawindex); }

◆ GetSector()

int PndSttStrawMap::GetSector ( int  strawindex) const
inline

Definition at line 31 of file PndSttStrawMap.h.

References FindPhiSector().

Referenced by PndApollonius::ApolloniusTripletFunctions::AddOtherDetectors().

31 { return fSectorOfStraw.at(strawindex); }

◆ GetStrawRow()

const vector<int>& PndSttStrawMap::GetStrawRow ( int  sector,
int  row 
) const
inline

Definition at line 29 of file PndSttStrawMap.h.

Referenced by PndApollonius::ApolloniusTripletFunctions::AddOtherDetectors().

29 { return (fStrawIndex.find(sector))->second.at(row); }

◆ GetStrawSector()

const vector<vector<int> >& PndSttStrawMap::GetStrawSector ( int  sector) const
inline

Definition at line 30 of file PndSttStrawMap.h.

30 { return (fStrawIndex.find(sector))->second; }

◆ GetTube()

PndSttTube* PndSttStrawMap::GetTube ( int  strawindex) const
inline

Definition at line 46 of file PndSttStrawMap.h.

References GenerateStrawMap().

Referenced by PndApollonius::ApolloniusTripletFunctions::AddOtherDetectors().

46 { return (PndSttTube *)fTubeArray->At(strawindex); }

◆ IsAxialRow()

bool PndSttStrawMap::IsAxialRow ( int  rowindex) const

Referenced by IsSkewedStraw().

◆ IsAxialStraw()

bool PndSttStrawMap::IsAxialStraw ( int  strawindex) const
inline

Definition at line 40 of file PndSttStrawMap.h.

40 { return fAxialStraw.at(strawindex); }

◆ IsEdgeStraw()

bool PndSttStrawMap::IsEdgeStraw ( int  strawindex) const

Referenced by GetRightSector().

◆ IsSectorBorderStraw()

int PndSttStrawMap::IsSectorBorderStraw ( int  strawindex) const

Referenced by GetRightSector().

◆ IsSkewedRow()

bool PndSttStrawMap::IsSkewedRow ( int  rowindex) const

Referenced by IsSkewedStraw().

◆ IsSkewedStraw()

bool PndSttStrawMap::IsSkewedStraw ( int  strawindex) const
inline

Definition at line 41 of file PndSttStrawMap.h.

References IsAxialRow(), and IsSkewedRow().

Referenced by PndApollonius::ApolloniusTripletFunctions::AddOtherDetectors().

41 { return !(fAxialStraw.at(strawindex)); }

◆ operator=()

PndSttStrawMap& PndSttStrawMap::operator= ( const PndSttStrawMap )
delete

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