CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HGCNumberingScheme.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HGCNumberingScheme_h
2 #define SimG4CMS_HGCNumberingScheme_h
3 // File: HGCNumberingScheme.h
5 // Description: Definition of sensitive unit numbering schema for HGC
7 
10 
11 #include "G4Step.hh"
12 
14 
15 public:
16 
18 
20 
22 
26  uint32_t getUnitID(ForwardSubdetector subdet, int layer, int module,
27  int cell, int iz, const G4ThreeVector &pos);
28 
32  int assignCell(float x, float y, int layer);
33 
37  std::pair<float,float> getLocalCoords(int cell, int layer);
38 
39 private:
40 
43 };
44 
45 #endif
int assignCell(float x, float y, int layer)
maps a hit position to a sequential cell in a trapezoid surface defined by h,b,t
std::pair< float, float > getLocalCoords(int cell, int layer)
inverts the cell number in a trapezoid surface to local coordinates
uint32_t getUnitID(ForwardSubdetector subdet, int layer, int module, int cell, int iz, const G4ThreeVector &pos)
assigns the det id to a hit
ForwardSubdetector
Definition: vlib.h:208
const HGCalDDDConstants & hgcons_