20 #ifndef PNDSTTSTRAWMAP_H_ 21 #define PNDSTTSTRAWMAP_H_ 27 #include "TClonesArray.h" 41 const vector<int> &
GetStrawRow(
int sector,
int row)
const {
return (fStrawIndex.find(sector))->second.at(row); }
42 const vector<vector<int>> &
GetStrawSector(
int sector)
const {
return (fStrawIndex.find(sector))->second; }
43 int GetSector(
int strawindex)
const {
return fSectorOfStraw.at(strawindex); }
45 int GetRow(
int strawindex)
const {
return fRowOfStraw.at(strawindex); }
52 bool IsAxialStraw(
int strawindex)
const {
return fAxialStraw.at(strawindex); }
53 bool IsSkewedStraw(
int strawindex)
const {
return !(fAxialStraw.at(strawindex)); }
63 void GenerateAngles();
65 map<int, vector<vector<int>>> fStrawIndex;
66 vector<int> fSectorOfStraw;
67 vector<int> fRowOfStraw;
68 vector<bool> fAxialStraw;
69 bool fStrawMapInitialized;
71 TClonesArray *fTubeArray;
73 vector<double> fSectorStart;
74 vector<double> fSectorEnd;
bool IsAxialStraw(int strawindex) const
int FindPhiSector(double phi) const
bool IsAxialRow(int rowindex) const
const vector< vector< int > > & GetStrawSector(int sector) const
bool IsSkewedStraw(int strawindex) const
bool IsSkewedRow(int rowindex) const
int IsSectorBorderStraw(int strawindex) const
PndSttStrawMap & operator=(const PndSttStrawMap &)=delete
int GetSector(int strawindex) const
int GetRightSector(int sector) const
const vector< int > & GetStrawRow(int sector, int row) const
int GetLeftSector(int sector) const
void GenerateStrawMap(TClonesArray *const stt_tube_array)
PndSttTube * GetTube(int strawindex) const
int GetRow(int strawindex) const
bool IsEdgeStraw(int strawindex) const