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