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 
20  struct hgtrap {
21  int lay;
22  float bl, tl, h, dz, alpha, cellSize;
23  };
24 
25  struct hgtrform {
26  int zp, lay, sec, subsec;
27  CLHEP::Hep3Vector h3v;
28  CLHEP::HepRotation hr;
29  };
30 
31  HGCalParameters(const std::string& nam);
32  ~HGCalParameters( void );
33  void fillModule(const hgtrap& mytr, bool reco);
34  hgtrap getModule(unsigned int k, bool reco) const;
35  void fillTrForm(const hgtrform& mytr);
36  hgtrform getTrForm(unsigned int k) const;
37  void addTrForm(const CLHEP::Hep3Vector& h3v);
38  void scaleTrForm(double);
39 
40  static const int kMaskZside = 0x1;
41  static const int kMaskLayer = 0x7F;
42  static const int kMaskSector = 0x3FF;
43  static const int kMaskSubSec = 0x1;
44  static const int kShiftZside = 19;
45  static const int kShiftLayer = 12;
46  static const int kShiftSector = 1;
47  static const int kShiftSubSec = 0;
48 
50  int nCells_;
51  int nSectors_;
52  std::vector<double> cellSize_;
53  std::vector<int> moduleLayS_;
54  std::vector<double> moduleBlS_;
55  std::vector<double> moduleTlS_;
56  std::vector<double> moduleHS_;
57  std::vector<double> moduleDzS_;
58  std::vector<double> moduleAlphaS_;
59  std::vector<double> moduleCellS_;
60  std::vector<int> moduleLayR_;
61  std::vector<double> moduleBlR_;
62  std::vector<double> moduleTlR_;
63  std::vector<double> moduleHR_;
64  std::vector<double> moduleDzR_;
65  std::vector<double> moduleAlphaR_;
66  std::vector<double> moduleCellR_;
67  std::vector<uint32_t> trformIndex_;
68  std::vector<double> trformTranX_;
69  std::vector<double> trformTranY_;
70  std::vector<double> trformTranZ_;
71  std::vector<double> trformRotXX_;
72  std::vector<double> trformRotYX_;
73  std::vector<double> trformRotZX_;
74  std::vector<double> trformRotXY_;
75  std::vector<double> trformRotYY_;
76  std::vector<double> trformRotZY_;
77  std::vector<double> trformRotXZ_;
78  std::vector<double> trformRotYZ_;
79  std::vector<double> trformRotZZ_;
80  std::vector<int> layer_;
81  std::vector<int> layerIndex_;
82  std::vector<int> layerGroup_;
83  std::vector<int> cellFactor_;
84  std::vector<int> depth_;
85  std::vector<int> depthIndex_;
86  std::vector<int> depthLayerF_;
87  std::vector<double> zLayerHex_;
88  std::vector<double> rMinLayHex_;
89  std::vector<double> rMaxLayHex_;
90  std::vector<int> waferCopy_;
91  std::vector<int> waferTypeL_;
92  std::vector<int> waferTypeT_;
93  std::vector<double> waferPosX_;
94  std::vector<double> waferPosY_;
95  std::vector<double> cellFineX_;
96  std::vector<double> cellFineY_;
97  std::vector<bool> cellFineHalf_;
98  std::vector<double> cellCoarseX_;
99  std::vector<double> cellCoarseY_;
100  std::vector<bool> cellCoarseHalf_;
101  std::vector<int> layerGroupM_;
102  std::vector<int> layerGroupO_;
103  std::vector<double> boundR_;
104  std::vector<double> rLimit_;
105  std::vector<int> cellFine_;
106  std::vector<int> cellCoarse_;
107  double waferR_;
108  int levelT_;
110  double slopeMin_;
111  layer_map copiesInLayers_;
112 
114 };
115 
116 #endif
std::vector< double > waferPosY_
std::vector< int > layer_
std::vector< double > moduleDzR_
std::vector< int > depthLayerF_
std::vector< int > depth_
std::vector< double > moduleCellR_
std::vector< double > moduleHR_
layer_map copiesInLayers_
std::vector< bool > cellCoarseHalf_
std::vector< bool > cellFineHalf_
std::vector< int > moduleLayR_
static const int kMaskSubSec
std::vector< int > cellFine_
std::vector< double > moduleHS_
std::vector< double > trformTranY_
static const int kMaskLayer
std::vector< double > cellFineY_
std::vector< double > trformRotZY_
std::vector< uint32_t > trformIndex_
std::vector< int > layerGroupM_
HGCalGeometryMode::GeometryMode mode_
std::vector< int > cellFactor_
std::vector< double > trformRotXX_
void fillTrForm(const hgtrform &mytr)
HGCalParameters(const std::string &nam)
std::vector< double > trformRotZX_
std::vector< double > cellCoarseX_
std::vector< int > cellCoarse_
std::vector< double > trformRotYZ_
static const int kMaskSector
std::vector< double > boundR_
std::vector< double > cellSize_
std::vector< double > moduleDzS_
std::vector< int > layerIndex_
std::vector< double > moduleAlphaR_
hgtrform getTrForm(unsigned int k) const
std::vector< double > trformRotXY_
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 > 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_
std::vector< double > trformTranX_
std::vector< double > trformRotXZ_
void scaleTrForm(double)
std::vector< int > layerGroup_
std::vector< double > moduleCellS_
#define COND_SERIALIZABLE
Definition: Serializable.h:38
std::vector< double > trformRotYY_
std::vector< double > cellFineX_
static const int kShiftSector
std::vector< double > trformRotZZ_
std::vector< double > moduleAlphaS_
std::vector< int > layerGroupO_
static 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< double > cellCoarseY_
std::vector< int > moduleLayS_
std::vector< double > trformTranZ_
static const int kMaskZside
CLHEP::HepRotation hr
std::vector< double > waferPosX_
void addTrForm(const CLHEP::Hep3Vector &h3v)
std::vector< double > moduleTlR_
std::vector< int > waferTypeL_
std::string name_
static const int kShiftSubSec
static const int kShiftLayer