CMS 3D CMS Logo

HGCalNumberingScheme.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_Calo_HGCalNumberingScheme_h
2 #define SimG4CMS_Calo_HGCalNumberingScheme_h
3 // File: HGCalNumberingScheme.h
5 // Description: Definition of sensitive unit numbering schema for HGC
7 
13 
14 #include "G4ThreeVector.hh"
15 
16 #include <string>
17 #include <vector>
18 
20 public:
22  const DetId::Detector& det,
23  const std::string& name,
24  const std::string& fileName);
25  HGCalNumberingScheme() = delete;
27 
31  uint32_t getUnitID(int layer, int module, int cell, int iz, const G4ThreeVector& pos, double& wt);
32 
33 private:
34  void checkPosition(uint32_t index, const G4ThreeVector& pos, bool matchOnly, bool debug) const;
35 
41  std::vector<int> indices_;
42  std::vector<int> dumpDets_;
43  std::vector<int> dumpCassette_;
44 };
45 
46 #endif
HGCalNumberingScheme()=delete
const DetId::Detector det_
const HGCalGeometryMode::GeometryMode mode_
const HGCalDDDConstants & hgcons_
std::vector< int > indices_
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
std::vector< int > dumpDets_
uint32_t getUnitID(int layer, int module, int cell, int iz, const G4ThreeVector &pos, double &wt)
assigns the det id to a hit
#define debug
Definition: HDRShower.cc:19
Detector
Definition: DetId.h:24
void checkPosition(uint32_t index, const G4ThreeVector &pos, bool matchOnly, bool debug) const
std::vector< int > dumpCassette_
const std::string name_