10 #ifndef _ST_FGT_CS_GEOM_H_
11 #define _ST_FGT_CS_GEOM_H_
20 #include "StRoot/StFgtUtil/geometry/StFgtGeom.h"
28 static Int_t getNaiveGeoIdFromElecCoord
30 Int_t rdo, Int_t arm, Int_t apv, Int_t channel
34 Short_t disc = int(arm/2) + (rdo-1)*3;
36 Short_t quadrant = (arm & 1)*2 +
int( apv/12 );
38 if ((arm==0)&&(apv<12)&&(apv>=0))
44 if ((arm==1)&&(apv<12)&&(apv>=0))
50 if ((arm ==1)&&(apv<24)&&(apv>=12))
60 ( disc*kFgtNumQuads + quadrant ) * kFgtNumLayers * kFgtNumStrips
61 + mNaiveMapping[ apv*128+channel ];
64 static void getNaiveElecCoordFromGeoId(
65 Int_t geoId, Int_t& rdo, Int_t& arm, Int_t& apv, Int_t& channel
69 Short_t disc, quadrant, strip;
72 decodeGeoId( geoId, disc, quadrant, layer, strip );
74 if( !mReverseNaiveMappingValid )
75 makeReverseNaiveMappingValid();
77 Int_t key = ( (layer==
'P')*kFgtNumStrips + strip );
78 channel = mReverseNaiveMapping[ key ];
86 arm = (disc % 3)*2 + (quadrant>1);
95 }
else if( disc == 1 ){
97 }
else if( disc == 2 ){