CMS 3D CMS Logo

HGCalParameters.h
Go to the documentation of this file.
1 #ifndef Geometry_HGCalCommonData_HGCalParameters_h
2 #define Geometry_HGCalCommonData_HGCalParameters_h
3 
7 #include <CLHEP/Geometry/Transform3D.h>
8 #include <string>
9 #include <vector>
10 #include <iostream>
11 #include <cstdint>
12 #include <unordered_map>
13 
15 
16 public:
17 
18  typedef std::vector<std::unordered_map<int32_t,int32_t> > layer_map;
19  typedef std::unordered_map<int32_t, int32_t> wafer_map;
20 
21  static constexpr double k_ScaleFromDDD = 0.1;
22  static constexpr double k_ScaleToDDD = 10.0;
23  static constexpr uint32_t k_CornerSize = 6;
24 
25  struct hgtrap {
26  int lay;
27  float bl, tl, h, dz, alpha, cellSize;
28  };
29 
30  struct hgtrform {
31  int zp, lay, sec, subsec;
32  CLHEP::Hep3Vector h3v;
33  CLHEP::HepRotation hr;
34  };
35 
36  HGCalParameters(const std::string& nam);
37  ~HGCalParameters( void );
38  void fillModule(const hgtrap& mytr, bool reco);
39  hgtrap getModule(unsigned int k, bool reco) const;
40  void fillTrForm(const hgtrform& mytr);
41  hgtrform getTrForm(unsigned int k) const;
42  void addTrForm(const CLHEP::Hep3Vector& h3v);
43  void scaleTrForm(double);
44  std::array<int,4> getID(unsigned int k) const;
45 
47  int nCells_;
48  int nSectors_;
49  std::vector<double> cellSize_;
50  std::vector<int> moduleLayS_;
51  std::vector<double> moduleBlS_;
52  std::vector<double> moduleTlS_;
53  std::vector<double> moduleHS_;
54  std::vector<double> moduleDzS_;
55  std::vector<double> moduleAlphaS_;
56  std::vector<double> moduleCellS_;
57  std::vector<int> moduleLayR_;
58  std::vector<double> moduleBlR_;
59  std::vector<double> moduleTlR_;
60  std::vector<double> moduleHR_;
61  std::vector<double> moduleDzR_;
62  std::vector<double> moduleAlphaR_;
63  std::vector<double> moduleCellR_;
64  std::vector<uint32_t> trformIndex_;
65  std::vector<double> trformTranX_;
66  std::vector<double> trformTranY_;
67  std::vector<double> trformTranZ_;
68  std::vector<double> trformRotXX_;
69  std::vector<double> trformRotYX_;
70  std::vector<double> trformRotZX_;
71  std::vector<double> trformRotXY_;
72  std::vector<double> trformRotYY_;
73  std::vector<double> trformRotZY_;
74  std::vector<double> trformRotXZ_;
75  std::vector<double> trformRotYZ_;
76  std::vector<double> trformRotZZ_;
77  std::vector<int> layer_;
78  std::vector<int> layerIndex_;
79  std::vector<int> layerGroup_;
80  std::vector<int> cellFactor_;
81  std::vector<int> depth_;
82  std::vector<int> depthIndex_;
83  std::vector<int> depthLayerF_;
84  std::vector<double> zLayerHex_;
85  std::vector<double> rMinLayHex_;
86  std::vector<double> rMaxLayHex_;
87  std::vector<int> waferCopy_;
88  std::vector<int> waferTypeL_;
89  std::vector<int> waferTypeT_;
90  std::vector<double> waferPosX_;
91  std::vector<double> waferPosY_;
92  std::vector<double> cellFineX_;
93  std::vector<double> cellFineY_;
94  wafer_map cellFineIndex_;
95  std::vector<bool> cellFineHalf_;
96  std::vector<double> cellCoarseX_;
97  std::vector<double> cellCoarseY_;
98  wafer_map cellCoarseIndex_;
99  std::vector<bool> cellCoarseHalf_;
100  std::vector<int> layerGroupM_;
101  std::vector<int> layerGroupO_;
102  std::vector<double> boundR_;
103  std::vector<double> rLimit_;
104  std::vector<int> cellFine_;
105  std::vector<int> cellCoarse_;
106  double waferR_;
107  std::vector<int> levelT_;
109  double slopeMin_;
110  layer_map copiesInLayers_;
113  double waferSize_;
114  double waferThick_;
116  double mouseBite_;
118  std::vector<int> waferUVMaxLayer_;
120  std::vector<double> cellThickness_;
121  std::vector<double> radius100to200_;
122  std::vector<double> radius200to300_;
125  double fracAreaMin_;
126  double zMinForRad_;
127  std::vector<double> radiusMixBoundary_;
128  std::vector<int> nPhiBinBH_;
129  std::vector<double> dPhiEtaBH_;
130  std::vector<int> firstModule_;
131  std::vector<int> lastModule_;
132  std::vector<double> slopeTop_;
133  std::vector<double> zFront_;
134  std::vector<double> rMaxFront_;
135  std::vector<double> zRanges_;
136  double etaMinBH_;
137  std::vector<int> iEtaMinBH_;
139  wafer_map wafersInLayers_;
140  wafer_map typesInLayers_;
141 
143 
144 private:
145 
146  const int kMaskZside = 0x1;
147  const int kMaskLayer = 0x7F;
148  const int kMaskSector = 0x3FF;
149  const int kMaskSubSec = 0x1;
150  const int kShiftZside = 19;
151  const int kShiftLayer = 12;
152  const int kShiftSector = 1;
153  const int kShiftSubSec = 0;
154 
155 };
156 
157 #endif
std::vector< double > waferPosY_
std::vector< int > layer_
std::vector< int > iEtaMinBH_
std::vector< double > moduleDzR_
std::vector< int > depthLayerF_
std::vector< int > depth_
std::vector< double > moduleCellR_
std::vector< double > moduleHR_
wafer_map cellFineIndex_
layer_map copiesInLayers_
std::vector< bool > cellCoarseHalf_
std::vector< bool > cellFineHalf_
std::vector< int > moduleLayR_
const int kMaskSubSec
std::vector< int > cellFine_
std::vector< double > moduleHS_
std::vector< double > trformTranY_
const int kMaskLayer
std::vector< double > cellFineY_
std::vector< double > trformRotZY_
std::vector< uint32_t > trformIndex_
std::vector< int > layerGroupM_
HGCalGeometryMode::GeometryMode mode_
#define constexpr
std::vector< int > cellFactor_
std::vector< double > trformRotXX_
std::vector< int > nPhiBinBH_
void fillTrForm(const hgtrform &mytr)
wafer_map wafersInLayers_
HGCalParameters(const std::string &nam)
std::vector< double > trformRotZX_
std::vector< double > cellCoarseX_
std::vector< int > firstModule_
std::vector< int > cellCoarse_
std::vector< double > trformRotYZ_
const int kMaskSector
std::vector< double > boundR_
std::array< int, 4 > getID(unsigned int k) const
std::vector< double > cellSize_
std::vector< int > waferUVMaxLayer_
std::vector< double > moduleDzS_
std::vector< int > layerIndex_
std::vector< double > moduleAlphaR_
hgtrform getTrForm(unsigned int k) const
static double k_ScaleFromDDD
std::vector< double > trformRotXY_
std::vector< double > rMaxFront_
std::vector< double > trformRotYX_
hgtrap getModule(unsigned int k, bool reco) const
std::vector< std::unordered_map< int32_t, int32_t > > layer_map
std::vector< double > slopeTop_
std::vector< double > moduleBlR_
std::vector< double > rMinLayHex_
void fillModule(const hgtrap &mytr, bool reco)
std::vector< double > moduleTlS_
std::vector< double > zLayerHex_
int k[5][pyjets_maxn]
std::vector< double > rMaxLayHex_
static uint32_t k_CornerSize
std::vector< double > trformTranX_
std::vector< double > zRanges_
std::vector< int > lastModule_
std::vector< double > radiusMixBoundary_
std::vector< double > cellThickness_
std::vector< double > trformRotXZ_
void scaleTrForm(double)
std::vector< int > layerGroup_
std::unordered_map< int32_t, int32_t > wafer_map
std::vector< double > moduleCellS_
static double k_ScaleToDDD
std::vector< double > radius200to300_
std::vector< double > radius100to200_
wafer_map cellCoarseIndex_
#define COND_SERIALIZABLE
Definition: Serializable.h:38
std::vector< double > trformRotYY_
std::vector< double > cellFineX_
wafer_map typesInLayers_
const int kShiftSector
std::vector< double > trformRotZZ_
std::vector< double > moduleAlphaS_
std::vector< int > layerGroupO_
const int kShiftZside
fixed size matrix
std::vector< double > moduleBlS_
std::vector< int > waferCopy_
std::vector< int > depthIndex_
std::vector< double > rLimit_
std::vector< int > waferTypeT_
std::vector< int > levelT_
std::vector< double > cellCoarseY_
std::vector< int > moduleLayS_
std::vector< double > trformTranZ_
std::vector< double > dPhiEtaBH_
const int kMaskZside
CLHEP::HepRotation hr
std::vector< double > waferPosX_
std::vector< double > zFront_
void addTrForm(const CLHEP::Hep3Vector &h3v)
std::vector< double > moduleTlR_
std::vector< int > waferTypeL_
std::string name_
const int kShiftSubSec
const int kShiftLayer