CMS 3D CMS Logo

HGCalDDDConstants.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_HGCalDDDConstants_h
2 #define HGCalCommonData_HGCalDDDConstants_h
3 
14 #include <string>
15 #include <vector>
22 
23 #include <unordered_map>
24 
26 public:
29 
30  std::pair<int, int> assignCell(float x, float y, int lay, int subSec, bool reco) const;
31  std::array<int, 5> assignCellHex(float x, float y, int lay, bool reco) const;
32  std::array<int, 3> assignCellTrap(float x, float y, float z, int lay, bool reco) const;
33  std::pair<double, double> cellEtaPhiTrap(int type, int irad) const;
34  bool cellInLayer(int waferU, int waferV, int cellU, int cellV, int lay, bool reco) const;
35  double cellSizeHex(int type) const;
36  std::pair<double, double> cellSizeTrap(int type, int irad) const {
37  return std::make_pair(hgpar_->radiusLayer_[type][irad - 1], hgpar_->radiusLayer_[type][irad]);
38  }
39  double cellThickness(int layer, int waferU, int waferV) const;
40  HGCalTypes::CellType cellType(int type, int waferU, int waferV) const;
41  double distFromEdgeHex(double x, double y, double z) const;
42  double distFromEdgeTrap(double x, double y, double z) const;
43  void etaPhiFromPosition(const double x,
44  const double y,
45  const double z,
46  const int layer,
47  int& ieta,
48  int& iphi,
49  int& type,
50  double& wt) const;
51  int firstLayer() const { return hgpar_->firstLayer_; }
53  int getLayer(double z, bool reco) const;
54  int getLayerOffset() const { return hgpar_->layerOffset_; }
55  HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const;
56  std::vector<HGCalParameters::hgtrap> getModules() const;
57  const HGCalParameters* getParameter() const { return hgpar_; }
58  int getPhiBins(int lay) const;
59  std::pair<int, int> getREtaRange(int lay) const;
60  const std::vector<double>& getRadiusLayer(int layer) const {
61  int type = ((mode_ == HGCalGeometryMode::Trapezoid) ? hgpar_->scintType(layer) : 0);
62  return hgpar_->radiusLayer_[type];
63  }
64  HGCalParameters::hgtrform getTrForm(unsigned int k) const { return hgpar_->getTrForm(k); }
65  unsigned int getTrFormN() const { return hgpar_->trformIndex_.size(); }
66  std::vector<HGCalParameters::hgtrform> getTrForms() const;
67  int getTypeTrap(int layer) const;
68  int getTypeHex(int layer, int waferU, int waferV) const;
69  int getUVMax(int type) const { return ((type == 0) ? hgpar_->nCellsFine_ : hgpar_->nCellsCoarse_); }
70  bool isHalfCell(int waferType, int cell) const;
71  bool isValidHex(int lay, int mod, int cell, bool reco) const;
72  bool isValidHex8(int lay, int waferU, int waferV, bool fullAndPart = false) const;
73  bool isValidHex8(int lay, int modU, int modV, int cellU, int cellV, bool fullAndPart = false) const;
74  bool isValidTrap(int lay, int ieta, int iphi) const;
75  int lastLayer(bool reco) const;
76  int layerIndex(int lay, bool reco) const;
77  unsigned int layers(bool reco) const;
78  unsigned int layersInit(bool reco) const;
79  std::pair<float, float> locateCell(int cell, int lay, int type, bool reco) const;
80  std::pair<float, float> locateCell(
81  int lay, int waferU, int waferV, int cellU, int cellV, bool reco, bool all, bool debug = false) const;
82  std::pair<float, float> locateCell(const HGCSiliconDetId&, bool debug = false) const;
83  std::pair<float, float> locateCellHex(int cell, int wafer, bool reco) const;
84  std::pair<float, float> locateCellTrap(int lay, int ieta, int iphi, bool reco) const;
85  int levelTop(int ind = 0) const { return hgpar_->levelT_[ind]; }
86  bool maskCell(const DetId& id, int corners) const;
87  int maxCellUV() const {
89  }
90  int maxCells(bool reco) const;
91  int maxCells(int lay, bool reco) const;
92  int maxModules() const { return modHalf_; }
93  int maxModulesPerLayer() const { return maxWafersPerLayer_; }
94  int maxRows(int lay, bool reco) const;
95  double minSlope() const { return hgpar_->slopeMin_[0]; }
96  int modifyUV(int uv, int type1, int type2) const;
97  int modules(int lay, bool reco) const;
98  int modulesInit(int lay, bool reco) const;
99  double mouseBite(bool reco) const;
100  int numberCells(bool reco) const;
101  std::vector<int> numberCells(int lay, bool reco) const;
102  int numberCellsHexagon(int wafer) const;
103  int numberCellsHexagon(int lay, int waferU, int waferV, bool flag) const;
104  std::pair<double, double> rangeR(double z, bool reco) const;
105  std::pair<double, double> rangeRLayer(int lay, bool reco) const;
106  std::pair<double, double> rangeZ(bool reco) const;
107  std::pair<int, int> rowColumnWafer(const int wafer) const;
108  int sectors() const { return hgpar_->nSectors_; }
109  std::pair<int, int> simToReco(int cell, int layer, int mod, bool half) const;
110  unsigned int volumes() const { return hgpar_->moduleLayR_.size(); }
111  int waferFromCopy(int copy) const;
112  void waferFromPosition(const double x, const double y, int& wafer, int& icell, int& celltyp) const;
113  void waferFromPosition(const double x,
114  const double y,
115  const int layer,
116  int& waferU,
117  int& waferV,
118  int& cellU,
119  int& cellV,
120  int& celltype,
121  double& wt,
122  bool debug = false) const;
123  bool waferInLayer(int wafer, int lay, bool reco) const;
124  bool waferFullInLayer(int wafer, int lay, bool reco) const;
125  int waferCount(const int type) const { return ((type == 0) ? waferMax_[2] : waferMax_[3]); }
126  int waferMax() const { return waferMax_[1]; }
127  int waferMin() const { return waferMax_[0]; }
128  std::pair<double, double> waferParameters(bool reco) const;
129  std::pair<double, double> waferPosition(int wafer, bool reco) const;
130  std::pair<double, double> waferPosition(int lay, int waferU, int waferV, bool reco, bool debug = false) const;
131  unsigned int waferFileSize() const { return hgpar_->waferInfoMap_.size(); }
132  int waferFileIndex(unsigned int kk) const {
133  if (kk < hgpar_->waferInfoMap_.size()) {
134  auto itr = hgpar_->waferInfoMap_.begin();
135  std::advance(itr, kk);
136  return itr->first;
137  } else
138  return 0;
139  }
140  std::tuple<int, int, int> waferFileInfo(unsigned int kk) const {
141  if (kk < hgpar_->waferInfoMap_.size()) {
142  auto itr = hgpar_->waferInfoMap_.begin();
143  std::advance(itr, kk);
144  return std::make_tuple(itr->second.type, itr->second.part, itr->second.orient);
145  } else
146  return std::make_tuple(0, 0, 0);
147  }
148  std::tuple<int, int, int> waferFileInfoFromIndex(int kk) const {
149  auto itr = hgpar_->waferInfoMap_.find(kk);
150  if (itr != hgpar_->waferInfoMap_.end()) {
151  return std::make_tuple(itr->second.type, itr->second.part, itr->second.orient);
152  } else
153  return std::make_tuple(0, 0, 0);
154  }
155  bool waferFileInfoExist(int kk) const { return (hgpar_->waferInfoMap_.find(kk) != hgpar_->waferInfoMap_.end()); }
156  double waferSepar(bool reco) const {
158  }
159  double waferSize(bool reco) const {
161  }
162  int wafers() const;
163  int wafers(int layer, int type) const;
164  int waferToCopy(int wafer) const {
165  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferCopy_.size()))) ? hgpar_->waferCopy_[wafer]
166  : (int)(hgpar_->waferCopy_.size());
167  }
168  // wafer transverse thickness classification (2 = coarse, 1 = fine)
169  int waferTypeT(int wafer) const {
170  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferTypeT_.size()))) ? hgpar_->waferTypeT_[wafer] : 0;
171  }
172  // wafer longitudinal thickness classification (1 = 100um, 2 = 200um, 3=300um)
173  int waferTypeL(int wafer) const {
174  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferTypeL_.size()))) ? hgpar_->waferTypeL_[wafer] : 0;
175  }
176  int waferType(DetId const& id, bool fromFile = false) const;
177  int waferType(int layer, int waferU, int waferV, bool fromFile = false) const;
178  std::tuple<int, int, int> waferType(HGCSiliconDetId const& id, bool fromFile = false) const;
179  std::pair<int, int> waferTypeRotation(
180  int layer, int waferU, int waferV, bool fromFile = false, bool debug = false) const;
181  int waferUVMax() const { return hgpar_->waferUVMax_; }
182  bool waferVirtual(int layer, int waferU, int waferV) const;
183  double waferZ(int layer, bool reco) const;
184 
185 private:
186  int cellHex(double xx,
187  double yy,
188  const double& cellR,
189  const std::vector<double>& posX,
190  const std::vector<double>& posY) const;
191  void cellHex(double xloc, double yloc, int cellType, int& cellU, int& cellV, bool debug = false) const;
192  std::pair<int, float> getIndex(int lay, bool reco) const;
193  bool isValidCell(int layindex, int wafer, int cell) const;
194  bool isValidCell8(int lay, int waferU, int waferV, int cellU, int cellV, int type) const;
195  bool waferInLayerTest(int wafer, int lay, bool full) const;
196  std::pair<double, double> waferPosition(int waferU, int waferV, bool reco) const;
197 
199  const double k_horizontalShift = 1.0;
200  const float dPhiMin = 0.02;
201  typedef std::array<std::vector<int32_t>, 2> Simrecovecs;
202  typedef std::array<int, 3> HGCWaferParam;
204  constexpr static double tan30deg_ = 0.5773502693;
205  const double sqrt3_;
206  double rmax_, hexside_;
209  std::array<uint32_t, 2> tot_layers_;
212  std::map<int, HGCWaferParam> waferLayer_;
213  std::array<int, 4> waferMax_;
214  std::unordered_map<int32_t, bool> waferIn_;
215 };
216 
217 #endif
HGCalDDDConstants::k_horizontalShift
const double k_horizontalShift
Definition: HGCalDDDConstants.h:199
HGCalDDDConstants::cellSizeTrap
std::pair< double, double > cellSizeTrap(int type, int irad) const
Definition: HGCalDDDConstants.h:36
DDAxes::y
HGCalDDDConstants::tot_wafers_
int32_t tot_wafers_
Definition: HGCalDDDConstants.h:208
HGCalParameters::nSectors_
int nSectors_
Definition: HGCalParameters.h:68
HGCalDDDConstants::tan30deg_
constexpr static double tan30deg_
Definition: HGCalDDDConstants.h:204
HGCalParameters::firstLayer_
int firstLayer_
Definition: HGCalParameters.h:166
HGCalDDDConstants::waferTypeT
int waferTypeT(int wafer) const
Definition: HGCalDDDConstants.h:169
HGCalDDDConstants::waferFromPosition
void waferFromPosition(const double x, const double y, int &wafer, int &icell, int &celltyp) const
Definition: HGCalDDDConstants.cc:1060
HGCalDDDConstants::maxWafersPerLayer_
int32_t maxWafersPerLayer_
Definition: HGCalDDDConstants.h:211
HGCalDDDConstants::cellHex
int cellHex(double xx, double yy, const double &cellR, const std::vector< double > &posX, const std::vector< double > &posY) const
Definition: HGCalDDDConstants.cc:1403
HGCalDDDConstants::rangeZ
std::pair< double, double > rangeZ(bool reco) const
Definition: HGCalDDDConstants.cc:979
HGCalDDDConstants::sqrt3_
const double sqrt3_
Definition: HGCalDDDConstants.h:205
HGCalDDDConstants::modulesInit
int modulesInit(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:849
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
HGCalDDDConstants::waferIn_
std::unordered_map< int32_t, bool > waferIn_
Definition: HGCalDDDConstants.h:214
HGCalDDDConstants::isValidCell
bool isValidCell(int layindex, int wafer, int cell) const
Definition: HGCalDDDConstants.cc:1489
HGCalDDDConstants::firstLayer
int firstLayer() const
Definition: HGCalDDDConstants.h:51
HGCalDDDConstants::locateCellTrap
std::pair< float, float > locateCellTrap(int lay, int ieta, int iphi, bool reco) const
Definition: HGCalDDDConstants.cc:703
HGCalDDDConstants::isValidHex
bool isValidHex(int lay, int mod, int cell, bool reco) const
Definition: HGCalDDDConstants.cc:452
HGCalDDDConstants::geomMode
HGCalGeometryMode::GeometryMode geomMode() const
Definition: HGCalDDDConstants.h:52
HGCalDDDConstants::waferMin
int waferMin() const
Definition: HGCalDDDConstants.h:127
HGCalGeometryMode.h
HGCalDDDConstants::cellEtaPhiTrap
std::pair< double, double > cellEtaPhiTrap(int type, int irad) const
Definition: HGCalDDDConstants.cc:194
HGCalDDDConstants::getLayerOffset
int getLayerOffset() const
Definition: HGCalDDDConstants.h:54
HGCalDDDConstants::waferCount
int waferCount(const int type) const
Definition: HGCalDDDConstants.h:125
HGCalDDDConstants::waferUVMax
int waferUVMax() const
Definition: HGCalDDDConstants.h:181
mod
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
HGCalDDDConstants::rangeRLayer
std::pair< double, double > rangeRLayer(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:961
HGCalDDDConstants::waferZ
double waferZ(int layer, bool reco) const
Definition: HGCalDDDConstants.cc:1367
HGCalDDDConstants::getREtaRange
std::pair< int, int > getREtaRange(int lay) const
Definition: HGCalDDDConstants.cc:408
HGCSiliconDetId.h
HGCalDDDConstants::waferFullInLayer
bool waferFullInLayer(int wafer, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1176
HGCalDDDConstants::distFromEdgeTrap
double distFromEdgeTrap(double x, double y, double z) const
Definition: HGCalDDDConstants.cc:331
HGCalDDDConstants::Simrecovecs
std::array< std::vector< int32_t >, 2 > Simrecovecs
Definition: HGCalDDDConstants.h:201
HGCalDDDConstants::dPhiMin
const float dPhiMin
Definition: HGCalDDDConstants.h:200
HGCalParameters::nCellsCoarse_
int nCellsCoarse_
Definition: HGCalParameters.h:137
HGCalParameters::waferSize_
double waferSize_
Definition: HGCalParameters.h:138
full
Definition: GenABIO.cc:168
DDAxes::x
HGCalDDDConstants::assignCellHex
std::array< int, 5 > assignCellHex(float x, float y, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:160
HGCalDDDConstants::getPhiBins
int getPhiBins(int lay) const
Definition: HGCalDDDConstants.cc:404
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
HGCalParameters::moduleLayR_
std::vector< int > moduleLayR_
Definition: HGCalParameters.h:77
HGCalDDDConstants::getTypeHex
int getTypeHex(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:436
HGCalDDDConstants::isHalfCell
bool isHalfCell(int waferType, int cell) const
Definition: HGCalDDDConstants.cc:446
HGCalDDDConstants::waferParameters
std::pair< double, double > waferParameters(bool reco) const
Definition: HGCalDDDConstants.cc:1183
HGCalDDDConstants::lastLayer
int lastLayer(bool reco) const
Definition: HGCalDDDConstants.cc:556
HGCSiliconDetId
Definition: HGCSiliconDetId.h:22
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:26
HGCalDDDConstants::max_modules_layer_
Simrecovecs max_modules_layer_
Definition: HGCalDDDConstants.h:210
HGCalDDDConstants::geomTools_
HGCalGeomTools geomTools_
Definition: HGCalDDDConstants.h:198
HGCalDDDConstants
Definition: HGCalDDDConstants.h:25
HGCalDDDConstants::waferFileInfoFromIndex
std::tuple< int, int, int > waferFileInfoFromIndex(int kk) const
Definition: HGCalDDDConstants.h:148
HGCalDDDConstants::maxModulesPerLayer
int maxModulesPerLayer() const
Definition: HGCalDDDConstants.h:93
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
HGCalParameters::sensorSeparation_
double sensorSeparation_
Definition: HGCalParameters.h:140
HGCalDDDConstants::waferMax
int waferMax() const
Definition: HGCalDDDConstants.h:126
DetId
Definition: DetId.h:17
HGCalDDDConstants::waferTypeRotation
std::pair< int, int > waferTypeRotation(int layer, int waferU, int waferV, bool fromFile=false, bool debug=false) const
Definition: HGCalDDDConstants.cc:1314
HGCalDDDConstants::isValidHex8
bool isValidHex8(int lay, int waferU, int waferV, bool fullAndPart=false) const
Definition: HGCalDDDConstants.cc:494
HGCalDDDConstants::waferType
int waferType(DetId const &id, bool fromFile=false) const
Definition: HGCalDDDConstants.cc:1228
HGCalDDDConstants::getRadiusLayer
const std::vector< double > & getRadiusLayer(int layer) const
Definition: HGCalDDDConstants.h:60
debug
#define debug
Definition: HDRShower.cc:19
HGCalGeometryMode::Trapezoid
Definition: HGCalGeometryMode.h:25
HGCalParameters::trformIndex_
std::vector< uint32_t > trformIndex_
Definition: HGCalParameters.h:84
HGCalDDDConstants::simToReco
std::pair< int, int > simToReco(int cell, int layer, int mod, bool half) const
Definition: HGCalDDDConstants.cc:1006
HGCalDDDConstants::isValidCell8
bool isValidCell8(int lay, int waferU, int waferV, int cellU, int cellV, int type) const
Definition: HGCalDDDConstants.cc:1513
HGCalDDDConstants::mode_
HGCalGeometryMode::GeometryMode mode_
Definition: HGCalDDDConstants.h:207
trackingPlots.hp
hp
Definition: trackingPlots.py:1246
HGCalParameters::radiusLayer_
std::vector< double > radiusLayer_[2]
Definition: HGCalParameters.h:156
HGCalDDDConstants::maxCells
int maxCells(bool reco) const
Definition: HGCalDDDConstants.cc:772
HGCalDDDConstants::maxCellUV
int maxCellUV() const
Definition: HGCalDDDConstants.h:87
HGCalDDDConstants::waferInLayer
bool waferInLayer(int wafer, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1169
HGCalParameters::waferUVMax_
int waferUVMax_
Definition: HGCalParameters.h:142
DDAxes::z
HGCalDDDConstants::HGCalDDDConstants
HGCalDDDConstants(const HGCalParameters *hp, const std::string &name)
Definition: HGCalDDDConstants.cc:23
HGCalDDDConstants::layerIndex
int layerIndex(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:560
RecoTauValidation_cfi.posX
posX
Definition: RecoTauValidation_cfi.py:288
HGCalDDDConstants::waferFileSize
unsigned int waferFileSize() const
Definition: HGCalDDDConstants.h:131
HGCalDDDConstants::wafers
int wafers() const
Definition: HGCalDDDConstants.cc:1375
GetRecoTauVFromDQM_MC_cff.kk
kk
Definition: GetRecoTauVFromDQM_MC_cff.py:84
HGCalTypes::CellType
CellType
Definition: HGCalTypes.h:12
HGCalParameters::getTrForm
hgtrform getTrForm(unsigned int k) const
Definition: HGCalParameters.cc:108
dqmdumpme.k
k
Definition: dqmdumpme.py:60
HGCalParameters::waferCopy_
std::vector< int > waferCopy_
Definition: HGCalParameters.h:109
HGCalDDDConstants::rangeR
std::pair< double, double > rangeR(double z, bool reco) const
Definition: HGCalDDDConstants.cc:934
HGCalDDDConstants::assignCell
std::pair< int, int > assignCell(float x, float y, int lay, int subSec, bool reco) const
Definition: HGCalDDDConstants.cc:121
HGCalDDDConstants::mouseBite
double mouseBite(bool reco) const
Definition: HGCalDDDConstants.cc:865
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalDDDConstants::cellInLayer
bool cellInLayer(int waferU, int waferV, int cellU, int cellV, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:204
HGCalParameters::nCellsFine_
int nCellsFine_
Definition: HGCalParameters.h:136
HGCalDDDConstants::hexside_
double hexside_
Definition: HGCalDDDConstants.h:206
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
HGCalDDDConstants::waferLayer_
std::map< int, HGCWaferParam > waferLayer_
Definition: HGCalDDDConstants.h:212
HGCalDDDConstants::modHalf_
int32_t modHalf_
Definition: HGCalDDDConstants.h:208
HGCalDDDConstants::numberCells
int numberCells(bool reco) const
Definition: HGCalDDDConstants.cc:869
geometryCSVtoXML.yy
yy
Definition: geometryCSVtoXML.py:19
HGCalDDDConstants::getIndex
std::pair< int, float > getIndex(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1472
HGCalDDDConstants::waferFileInfoExist
bool waferFileInfoExist(int kk) const
Definition: HGCalDDDConstants.h:155
HGCalDDDConstants::etaPhiFromPosition
void etaPhiFromPosition(const double x, const double y, const double z, const int layer, int &ieta, int &iphi, int &type, double &wt) const
HGCalDDDConstants::layers
unsigned int layers(bool reco) const
Definition: HGCalDDDConstants.cc:558
HGCalDDDConstants::waferFileIndex
int waferFileIndex(unsigned int kk) const
Definition: HGCalDDDConstants.h:132
HGCalParameters::scintType
int scintType(const int layer) const
Definition: HGCalParameters.h:62
HGCalGeometryMode::GeometryMode
GeometryMode
Definition: HGCalGeometryMode.h:25
HGCalDDDConstants::getTrForms
std::vector< HGCalParameters::hgtrform > getTrForms() const
Definition: HGCalDDDConstants.cc:420
HGCalDDDConstants::getTypeTrap
int getTypeTrap(int layer) const
Definition: HGCalDDDConstants.cc:427
HGCalGeomTools
Definition: HGCalGeomTools.h:8
HGCalDDDConstants::cellSizeHex
double cellSizeHex(int type) const
Definition: HGCalDDDConstants.cc:235
HGCalDDDConstants::cellThickness
double cellThickness(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:222
HGCalDDDConstants::sectors
int sectors() const
Definition: HGCalDDDConstants.h:108
HGCalDDDConstants::isValidTrap
bool isValidTrap(int lay, int ieta, int iphi) const
Definition: HGCalDDDConstants.cc:547
HGCalDDDConstants::getUVMax
int getUVMax(int type) const
Definition: HGCalDDDConstants.h:69
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:28
HGCalParameters::layerOffset_
int layerOffset_
Definition: HGCalParameters.h:168
HGCalDDDConstants::rmax_
double rmax_
Definition: HGCalDDDConstants.h:206
HGCalDDDConstants::rowColumnWafer
std::pair< int, int > rowColumnWafer(const int wafer) const
Definition: HGCalDDDConstants.cc:992
HGCalDDDConstants::waferVirtual
bool waferVirtual(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:1355
HGCalDDDConstants::getTrForm
HGCalParameters::hgtrform getTrForm(unsigned int k) const
Definition: HGCalDDDConstants.h:64
HGCalDDDConstants::getModules
std::vector< HGCalParameters::hgtrap > getModules() const
Definition: HGCalDDDConstants.cc:397
HGCalDDDConstants::maxModules
int maxModules() const
Definition: HGCalDDDConstants.h:92
HGCalParameters::waferTypeT_
std::vector< int > waferTypeT_
Definition: HGCalParameters.h:111
HGCalDDDConstants::waferMax_
std::array< int, 4 > waferMax_
Definition: HGCalDDDConstants.h:213
HGCalDDDConstants::tot_layers_
std::array< uint32_t, 2 > tot_layers_
Definition: HGCalDDDConstants.h:209
HGCalDDDConstants::numberCellsHexagon
int numberCellsHexagon(int wafer) const
Definition: HGCalDDDConstants.cc:912
HGCalParameters
Definition: HGCalParameters.h:13
HGCalDDDConstants::assignCellTrap
std::array< int, 3 > assignCellTrap(float x, float y, float z, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:171
HGCalParameters::k_ScaleToDDD
static constexpr double k_ScaleToDDD
Definition: HGCalParameters.h:31
HGCalDDDConstants::minSlope
double minSlope() const
Definition: HGCalDDDConstants.h:95
HGCalGeomTools.h
type
type
Definition: HCALResponse.h:21
HGCalDDDConstants::cellType
HGCalTypes::CellType cellType(int type, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:245
HGCalDDDConstants::locateCellHex
std::pair< float, float > locateCellHex(int cell, int wafer, bool reco) const
Definition: HGCalDDDConstants.cc:687
HGCalParameters::waferInfoMap_
waferInfo_map waferInfoMap_
Definition: HGCalParameters.h:174
HGCalParameters::slopeMin_
std::vector< double > slopeMin_
Definition: HGCalParameters.h:132
DetId.h
HGCalDDDConstants::waferPosition
std::pair< double, double > waferPosition(int wafer, bool reco) const
Definition: HGCalDDDConstants.cc:1190
HGCalDDDConstants::maxRows
int maxRows(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:817
HGCalDDDConstants::modules
int modules(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:842
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HGCalDDDConstants::distFromEdgeHex
double distFromEdgeHex(double x, double y, double z) const
Definition: HGCalDDDConstants.cc:285
HGCalDDDConstants::getLayer
int getLayer(double z, bool reco) const
Definition: HGCalDDDConstants.cc:361
HGCalParameters::hgtrform
Definition: HGCalParameters.h:46
HGCalDDDConstants::waferTypeL
int waferTypeL(int wafer) const
Definition: HGCalDDDConstants.h:173
HGCalDDDConstants::levelTop
int levelTop(int ind=0) const
Definition: HGCalDDDConstants.h:85
HGCalParameters::waferTypeL_
std::vector< int > waferTypeL_
Definition: HGCalParameters.h:110
HGCalDDDConstants::~HGCalDDDConstants
~HGCalDDDConstants()
Definition: HGCalDDDConstants.cc:119
HGCalDDDConstants::getTrFormN
unsigned int getTrFormN() const
Definition: HGCalDDDConstants.h:65
HGCalDDDConstants::layersInit
unsigned int layersInit(bool reco) const
Definition: HGCalDDDConstants.cc:573
HGCalDDDConstants::locateCell
std::pair< float, float > locateCell(int cell, int lay, int type, bool reco) const
Definition: HGCalDDDConstants.cc:577
HGCalDDDConstants::waferToCopy
int waferToCopy(int wafer) const
Definition: HGCalDDDConstants.h:164
HGCalDDDConstants::waferFileInfo
std::tuple< int, int, int > waferFileInfo(unsigned int kk) const
Definition: HGCalDDDConstants.h:140
HGCalTypes.h
HGCalParameters::hgtrap
Definition: HGCalParameters.h:41
HGCalDDDConstants::waferSize
double waferSize(bool reco) const
Definition: HGCalDDDConstants.h:159
HGCalDDDConstants::modifyUV
int modifyUV(int uv, int type1, int type2) const
Definition: HGCalDDDConstants.cc:837
HGCalDDDConstants::waferFromCopy
int waferFromCopy(int copy) const
Definition: HGCalDDDConstants.cc:1035
HGCalParameters.h
HGCalDDDConstants::waferSepar
double waferSepar(bool reco) const
Definition: HGCalDDDConstants.h:156
HGCalParameters::levelT_
std::vector< int > levelT_
Definition: HGCalParameters.h:129
HGCalDDDConstants::getParameter
const HGCalParameters * getParameter() const
Definition: HGCalDDDConstants.h:57
HGCalDDDConstants::volumes
unsigned int volumes() const
Definition: HGCalDDDConstants.h:110
HGCalDDDConstants::hgpar_
const HGCalParameters * hgpar_
Definition: HGCalDDDConstants.h:203
HGCalDDDConstants::maskCell
bool maskCell(const DetId &id, int corners) const
Definition: HGCalDDDConstants.cc:732
geometryCSVtoXML.xx
xx
Definition: geometryCSVtoXML.py:19
RecoTauValidation_cfi.posY
posY
Definition: RecoTauValidation_cfi.py:289
HGCalDDDConstants::HGCWaferParam
std::array< int, 3 > HGCWaferParam
Definition: HGCalDDDConstants.h:202
HGCalDDDConstants::waferInLayerTest
bool waferInLayerTest(int wafer, int lay, bool full) const
Definition: HGCalDDDConstants.cc:1554
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116
HGCalDDDConstants::getModule
HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const
Definition: HGCalDDDConstants.cc:381