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 
13 
14 #include "G4Step.hh"
15 #include <boost/cstdint.hpp>
16 #include <vector>
17 
19 
20 public:
21 
23 
25  int verbose);
26 
27  virtual ~HGCNumberingScheme();
28 
32  virtual uint32_t getUnitID(ForwardSubdetector subdet, int layer, int module, int iz, const G4ThreeVector &pos);
33 
37  int assignCell(float x, float y, int layer);
38 
42  std::pair<float,float> getLocalCoords(int cell, int layer);
43 
48 
49 private:
50 
52 
53  bool check_;
54  int verbosity;
56 };
57 
58 #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
const HGCalDDDConstants * getDDDConstants()
getter
virtual uint32_t getUnitID(ForwardSubdetector subdet, int layer, int module, int iz, const G4ThreeVector &pos)
assigns the det id to a hit
ForwardSubdetector
type of data representation of DDCompactView
Definition: DDCompactView.h:77
bool check(const std::string &)
HGCalDDDConstants * hgcons
Definition: vlib.h:208