8 #ifndef PNDSTTSTRAWMAP_H_ 9 #define PNDSTTSTRAWMAP_H_ 15 #include "TClonesArray.h" 29 const vector<int> &
GetStrawRow(
int sector,
int row)
const {
return (fStrawIndex.find(sector))->second.at(row); }
30 const vector<vector<int>> &
GetStrawSector(
int sector)
const {
return (fStrawIndex.find(sector))->second; }
31 int GetSector(
int strawindex)
const {
return fSectorOfStraw.at(strawindex); }
33 int GetRow(
int strawindex)
const {
return fRowOfStraw.at(strawindex); }
40 bool IsAxialStraw(
int strawindex)
const {
return fAxialStraw.at(strawindex); }
41 bool IsSkewedStraw(
int strawindex)
const {
return !(fAxialStraw.at(strawindex)); }
51 void GenerateAngles();
53 map<int, vector<vector<int>>> fStrawIndex;
54 vector<int> fSectorOfStraw;
55 vector<int> fRowOfStraw;
56 vector<bool> fAxialStraw;
57 bool fStrawMapInitialized;
59 TClonesArray *fTubeArray;
61 vector<double> fSectorStart;
62 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