File tree Expand file tree Collapse file tree
Detectors/Upgrades/ALICE3/TRK/base Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
8989 int getSubDetID (int index) const ;
9090 int getPetalCase (int index) const ;
9191 int getDisk (int index) const ;
92- int getLayer (int index) const ;
92+ int getLayer (int index) const ; // /< local layer index within the sub-detector (0-based per VD/MLOT)
93+ int getLayerTRK (int index) const ; // /< global layer index across the full TRK (VD layers 0..nVD-1, MLOT layers nVD..nTotal-1)
9394 int getStave (int index) const ;
9495 int getHalfStave (int index) const ;
9596 int getModule (int index) const ;
Original file line number Diff line number Diff line change @@ -203,6 +203,15 @@ int GeometryTGeo::getLayer(int index) const
203203 return -1 ; // / -1 if not found
204204}
205205// __________________________________________________________________________
206+ int GeometryTGeo::getLayerTRK (int index) const
207+ {
208+ if (getDisk (index) != -1 ) {
209+ return -1 ; // / disks do not have a global layer index
210+ }
211+ int subDetID = getSubDetID (index);
212+ return subDetID * o2::trk::constants::VD::petal::nLayers + getLayer (index); // MLOT: offset by number of VD layers
213+ }
214+ // __________________________________________________________________________
206215int GeometryTGeo::getStave (int index) const
207216{
208217 int subDetID = getSubDetID (index);
You can’t perform that action at this time.
0 commit comments