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>
24 
25 #include <unordered_map>
26 
28 public:
31 
32  std::pair<int, int> assignCell(float x, float y, int lay, int subSec, bool reco) const;
33  std::array<int, 5> assignCellHex(float x, float y, int lay, bool reco) const;
34  std::array<int, 3> assignCellTrap(float x, float y, float z, int lay, bool reco) const;
35  std::pair<double, double> cellEtaPhiTrap(int type, int irad) const;
36  bool cellInLayer(int waferU, int waferV, int cellU, int cellV, int lay, bool reco) const;
37  double cellSizeHex(int type) const;
38  std::pair<double, double> cellSizeTrap(int type, int irad) const {
39  return std::make_pair(hgpar_->radiusLayer_[type][irad - 1], hgpar_->radiusLayer_[type][irad]);
40  }
41  double cellThickness(int layer, int waferU, int waferV) const;
42  HGCalTypes::CellType cellType(int type, int waferU, int waferV) const;
43  double distFromEdgeHex(double x, double y, double z) const;
44  double distFromEdgeTrap(double x, double y, double z) const;
45  void etaPhiFromPosition(const double x,
46  const double y,
47  const double z,
48  const int layer,
49  int& ieta,
50  int& iphi,
51  int& type,
52  double& wt) const;
53  int firstLayer() const { return hgpar_->firstLayer_; }
55  int getLayer(double z, bool reco) const;
56  int getLayerOffset() const { return hgpar_->layerOffset_; }
57  HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const;
58  std::vector<HGCalParameters::hgtrap> getModules() const;
59  const HGCalParameters* getParameter() const { return hgpar_; }
60  int getPhiBins(int lay) const;
61  std::pair<int, int> getREtaRange(int lay) const;
62  const std::vector<double>& getRadiusLayer(int layer) const {
63  int type = (tileTrapezoid() ? hgpar_->scintType(layer) : 0);
64  return hgpar_->radiusLayer_[type];
65  }
66  HGCalParameters::hgtrform getTrForm(unsigned int k) const { return hgpar_->getTrForm(k); }
67  unsigned int getTrFormN() const { return hgpar_->trformIndex_.size(); }
68  std::vector<HGCalParameters::hgtrform> getTrForms() const;
69  int getTypeTrap(int layer) const;
70  int getTypeHex(int layer, int waferU, int waferV) const;
71  std::pair<double, double> getXY(int layer, double x, double y, bool forwd) const;
72  int getUVMax(int type) const { return ((type == 0) ? hgpar_->nCellsFine_ : hgpar_->nCellsCoarse_); }
73  bool isHalfCell(int waferType, int cell) const;
74  bool isValidHex(int lay, int mod, int cell, bool reco) const;
75  bool isValidHex8(int lay, int waferU, int waferV, bool fullAndPart = false) const;
76  bool isValidHex8(int lay, int modU, int modV, int cellU, int cellV, bool fullAndPart = false) const;
77  bool isValidTrap(int lay, int ieta, int iphi) const;
78  int lastLayer(bool reco) const;
79  int layerIndex(int lay, bool reco) const;
80  unsigned int layers(bool reco) const;
81  unsigned int layersInit(bool reco) const;
82  std::pair<float, float> locateCell(int cell, int lay, int type, bool reco) const;
83  std::pair<float, float> locateCell(
84  int lay, int waferU, int waferV, int cellU, int cellV, bool reco, bool all, bool debug = false) const;
85  std::pair<float, float> locateCell(const HGCSiliconDetId&, bool debug = false) const;
86  std::pair<float, float> locateCell(const HGCScintillatorDetId&, bool debug = false) const;
87  std::pair<float, float> locateCellHex(int cell, int wafer, bool reco) const;
88  std::pair<float, float> locateCellTrap(int lay, int ieta, int iphi, bool reco) const;
89  int levelTop(int ind = 0) const { return hgpar_->levelT_[ind]; }
90  bool maskCell(const DetId& id, int corners) const;
91  int maxCellUV() const { return (tileTrapezoid() ? hgpar_->nCellsFine_ : 2 * hgpar_->nCellsFine_); }
92  int maxCells(bool reco) const;
93  int maxCells(int lay, bool reco) const;
94  int maxModules() const { return modHalf_; }
95  int maxModulesPerLayer() const { return maxWafersPerLayer_; }
96  int maxRows(int lay, bool reco) const;
97  double minSlope() const { return hgpar_->slopeMin_[0]; }
98  int modifyUV(int uv, int type1, int type2) const;
99  int modules(int lay, bool reco) const;
100  int modulesInit(int lay, bool reco) const;
101  double mouseBite(bool reco) const;
102  int numberCells(bool reco) const;
103  std::vector<int> numberCells(int lay, bool reco) const;
104  int numberCellsHexagon(int wafer) const;
105  int numberCellsHexagon(int lay, int waferU, int waferV, bool flag) const;
106  std::pair<double, double> rangeR(double z, bool reco) const;
107  std::pair<double, double> rangeRLayer(int lay, bool reco) const;
108  std::pair<double, double> rangeZ(bool reco) const;
109  std::pair<int, int> rowColumnWafer(const int wafer) const;
110  int sectors() const { return hgpar_->nSectors_; }
111  std::pair<int, int> simToReco(int cell, int layer, int mod, bool half) const;
112  int tileSiPM(int sipm) const { return ((sipm > 0) ? HGCalTypes::SiPMSmall : HGCalTypes::SiPMLarge); }
113  bool tileTrapezoid() const {
116  }
117  std::pair<int, int> tileType(int layer, int ring, int phi) const {
118  int indx = HGCalTileIndex::tileIndex(layer, ring, phi);
119  int type(-1), sipm(-1);
120  auto itr = hgpar_->tileInfoMap_.find(indx);
121  if (itr != hgpar_->tileInfoMap_.end()) {
122  type = 1 + (itr->second).type;
123  sipm = ((itr->second).sipm == HGCalTypes::SiPMLarge) ? 0 : 1;
124  }
125  return std::make_pair(type, sipm);
126  }
127  unsigned int volumes() const { return hgpar_->moduleLayR_.size(); }
128  int waferFromCopy(int copy) const;
129  void waferFromPosition(const double x, const double y, int& wafer, int& icell, int& celltyp) const;
130  void waferFromPosition(const double x,
131  const double y,
132  const int layer,
133  int& waferU,
134  int& waferV,
135  int& cellU,
136  int& cellV,
137  int& celltype,
138  double& wt,
139  bool debug = false) const;
140  bool waferHexagon6() const {
142  }
143  bool waferHexagon8() const {
146  }
147  bool waferInLayer(int wafer, int lay, bool reco) const;
148  bool waferFullInLayer(int wafer, int lay, bool reco) const;
149  int waferCount(const int type) const { return ((type == 0) ? waferMax_[2] : waferMax_[3]); }
150  int waferMax() const { return waferMax_[1]; }
151  int waferMin() const { return waferMax_[0]; }
152  std::pair<double, double> waferParameters(bool reco) const;
153  std::pair<double, double> waferPosition(int wafer, bool reco) const;
154  std::pair<double, double> waferPosition(int lay, int waferU, int waferV, bool reco, bool debug = false) const;
155  unsigned int waferFileSize() const { return hgpar_->waferInfoMap_.size(); }
156  int waferFileIndex(unsigned int kk) const {
157  if (kk < hgpar_->waferInfoMap_.size()) {
158  auto itr = hgpar_->waferInfoMap_.begin();
159  std::advance(itr, kk);
160  return itr->first;
161  } else
162  return 0;
163  }
164  std::tuple<int, int, int> waferFileInfo(unsigned int kk) const {
165  if (kk < hgpar_->waferInfoMap_.size()) {
166  auto itr = hgpar_->waferInfoMap_.begin();
167  std::advance(itr, kk);
168  return std::make_tuple(itr->second.type, itr->second.part, itr->second.orient);
169  } else
170  return std::make_tuple(0, 0, 0);
171  }
172  std::tuple<int, int, int> waferFileInfoFromIndex(int kk) const {
173  auto itr = hgpar_->waferInfoMap_.find(kk);
174  if (itr != hgpar_->waferInfoMap_.end()) {
175  return std::make_tuple(itr->second.type, itr->second.part, itr->second.orient);
176  } else
177  return std::make_tuple(0, 0, 0);
178  }
179  bool waferFileInfoExist(int kk) const { return (hgpar_->waferInfoMap_.find(kk) != hgpar_->waferInfoMap_.end()); }
180  double waferSepar(bool reco) const {
182  }
183  double waferSize(bool reco) const {
185  }
186  int wafers() const;
187  int wafers(int layer, int type) const;
188  int waferToCopy(int wafer) const {
189  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferCopy_.size()))) ? hgpar_->waferCopy_[wafer]
190  : (int)(hgpar_->waferCopy_.size());
191  }
192  // wafer transverse thickness classification (2 = coarse, 1 = fine)
193  int waferTypeT(int wafer) const {
194  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferTypeT_.size()))) ? hgpar_->waferTypeT_[wafer] : 0;
195  }
196  // wafer longitudinal thickness classification (1 = 100um, 2 = 200um, 3=300um)
197  int waferTypeL(int wafer) const {
198  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferTypeL_.size()))) ? hgpar_->waferTypeL_[wafer] : 0;
199  }
200  int waferType(DetId const& id, bool fromFile = false) const;
201  int waferType(int layer, int waferU, int waferV, bool fromFile = false) const;
202  std::tuple<int, int, int> waferType(HGCSiliconDetId const& id, bool fromFile = false) const;
203  std::pair<int, int> waferTypeRotation(
204  int layer, int waferU, int waferV, bool fromFile = false, bool debug = false) const;
205  int waferUVMax() const { return hgpar_->waferUVMax_; }
206  bool waferVirtual(int layer, int waferU, int waferV) const;
207  double waferZ(int layer, bool reco) const;
208 
209 private:
210  int cellHex(double xx,
211  double yy,
212  const double& cellR,
213  const std::vector<double>& posX,
214  const std::vector<double>& posY) const;
215  void cellHex(double xloc, double yloc, int cellType, int& cellU, int& cellV, bool debug = false) const;
216  std::pair<int, float> getIndex(int lay, bool reco) const;
217  int layerFromIndex(int index, bool reco) const;
218  bool isValidCell(int layindex, int wafer, int cell) const;
219  bool isValidCell8(int lay, int waferU, int waferV, int cellU, int cellV, int type) const;
220  int32_t waferIndex(int wafer, int index) const;
221  bool waferInLayerTest(int wafer, int lay, bool full) const;
222  std::pair<double, double> waferPosition(int waferU, int waferV, bool reco) const;
223 
225  const double k_horizontalShift = 1.0;
226  const float dPhiMin = 0.02;
227  typedef std::array<std::vector<int32_t>, 2> Simrecovecs;
228  typedef std::array<int, 3> HGCWaferParam;
230  constexpr static double tan30deg_ = 0.5773502693;
231  const double sqrt3_;
232  double rmax_, hexside_;
236  std::array<uint32_t, 2> tot_layers_;
239  std::map<int, HGCWaferParam> waferLayer_;
240  std::array<int, 4> waferMax_;
241  std::unordered_map<int32_t, bool> waferIn_;
242 };
243 
244 #endif
HGCalDDDConstants::k_horizontalShift
const double k_horizontalShift
Definition: HGCalDDDConstants.h:225
HGCalDDDConstants::cellSizeTrap
std::pair< double, double > cellSizeTrap(int type, int irad) const
Definition: HGCalDDDConstants.h:38
DDAxes::y
HGCalDDDConstants::tot_wafers_
int32_t tot_wafers_
Definition: HGCalDDDConstants.h:235
HGCalParameters::nSectors_
int nSectors_
Definition: HGCalParameters.h:74
HGCalGeometryMode::TrapezoidFile
Definition: HGCalGeometryMode.h:33
HGCalDDDConstants::tan30deg_
constexpr static double tan30deg_
Definition: HGCalDDDConstants.h:230
HGCalParameters::firstLayer_
int firstLayer_
Definition: HGCalParameters.h:173
HGCalDDDConstants::waferTypeT
int waferTypeT(int wafer) const
Definition: HGCalDDDConstants.h:193
HGCalDDDConstants::getXY
std::pair< double, double > getXY(int layer, double x, double y, bool forwd) const
Definition: HGCalDDDConstants.cc:439
HGCScintillatorDetId.h
HGCalDDDConstants::waferFromPosition
void waferFromPosition(const double x, const double y, int &wafer, int &icell, int &celltyp) const
Definition: HGCalDDDConstants.cc:1089
HGCalDDDConstants::maxWafersPerLayer_
int32_t maxWafersPerLayer_
Definition: HGCalDDDConstants.h:238
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:1448
HGCalDDDConstants::rangeZ
std::pair< double, double > rangeZ(bool reco) const
Definition: HGCalDDDConstants.cc:1011
HGCalDDDConstants::sqrt3_
const double sqrt3_
Definition: HGCalDDDConstants.h:231
HGCalDDDConstants::modulesInit
int modulesInit(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:881
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
HGCalDDDConstants::waferIn_
std::unordered_map< int32_t, bool > waferIn_
Definition: HGCalDDDConstants.h:241
HGCalDDDConstants::isValidCell
bool isValidCell(int layindex, int wafer, int cell) const
Definition: HGCalDDDConstants.cc:1554
HGCalDDDConstants::firstLayer
int firstLayer() const
Definition: HGCalDDDConstants.h:53
HGCalDDDConstants::locateCellTrap
std::pair< float, float > locateCellTrap(int lay, int ieta, int iphi, bool reco) const
Definition: HGCalDDDConstants.cc:734
HGCalDDDConstants::isValidHex
bool isValidHex(int lay, int mod, int cell, bool reco) const
Definition: HGCalDDDConstants.cc:460
HGCalDDDConstants::geomMode
HGCalGeometryMode::GeometryMode geomMode() const
Definition: HGCalDDDConstants.h:54
HGCalDDDConstants::waferMin
int waferMin() const
Definition: HGCalDDDConstants.h:151
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:56
HGCalDDDConstants::waferCount
int waferCount(const int type) const
Definition: HGCalDDDConstants.h:149
HGCalDDDConstants::waferUVMax
int waferUVMax() const
Definition: HGCalDDDConstants.h:205
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:993
HGCalDDDConstants::waferZ
double waferZ(int layer, bool reco) const
Definition: HGCalDDDConstants.cc:1412
HGCalDDDConstants::getREtaRange
std::pair< int, int > getREtaRange(int lay) const
Definition: HGCalDDDConstants.cc:401
HGCSiliconDetId.h
HGCalWaferIndex::waferU
int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:27
HGCalDDDConstants::waferHexagon8
bool waferHexagon8() const
Definition: HGCalDDDConstants.h:143
HGCalDDDConstants::waferFullInLayer
bool waferFullInLayer(int wafer, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1215
HGCalDDDConstants::distFromEdgeTrap
double distFromEdgeTrap(double x, double y, double z) const
Definition: HGCalDDDConstants.cc:326
HGCalDDDConstants::Simrecovecs
std::array< std::vector< int32_t >, 2 > Simrecovecs
Definition: HGCalDDDConstants.h:227
HGCalDDDConstants::dPhiMin
const float dPhiMin
Definition: HGCalDDDConstants.h:226
HGCalParameters::nCellsCoarse_
int nCellsCoarse_
Definition: HGCalParameters.h:143
HGCalParameters::waferSize_
double waferSize_
Definition: HGCalParameters.h:144
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
HGCalGeometryMode::Hexagon8Module
Definition: HGCalGeometryMode.h:34
HGCalDDDConstants::getPhiBins
int getPhiBins(int lay) const
Definition: HGCalDDDConstants.cc:399
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
HGCalParameters::moduleLayR_
std::vector< int > moduleLayR_
Definition: HGCalParameters.h:83
HGCalDDDConstants::getTypeHex
int getTypeHex(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:429
HGCalDDDConstants::isHalfCell
bool isHalfCell(int waferType, int cell) const
Definition: HGCalDDDConstants.cc:454
HGCalDDDConstants::waferParameters
std::pair< double, double > waferParameters(bool reco) const
Definition: HGCalDDDConstants.cc:1222
HGCalDDDConstants::lastLayer
int lastLayer(bool reco) const
Definition: HGCalDDDConstants.cc:575
HGCalTileIndex::tileIndex
int32_t tileIndex(int32_t layer, int32_t ring, int32_t phi)
Definition: HGCalTileIndex.cc:4
HGCSiliconDetId
Definition: HGCSiliconDetId.h:22
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:25
HGCalTypes::SiPMLarge
Definition: HGCalTypes.h:107
HGCalDDDConstants::max_modules_layer_
Simrecovecs max_modules_layer_
Definition: HGCalDDDConstants.h:237
HGCalDDDConstants::geomTools_
HGCalGeomTools geomTools_
Definition: HGCalDDDConstants.h:224
HGCalDDDConstants
Definition: HGCalDDDConstants.h:27
HGCalDDDConstants::waferFileInfoFromIndex
std::tuple< int, int, int > waferFileInfoFromIndex(int kk) const
Definition: HGCalDDDConstants.h:172
HGCalDDDConstants::maxModulesPerLayer
int maxModulesPerLayer() const
Definition: HGCalDDDConstants.h:95
HGCalDDDConstants::layerFromIndex
int layerFromIndex(int index, bool reco) const
Definition: HGCalDDDConstants.cc:1534
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
HGCalParameters::sensorSeparation_
double sensorSeparation_
Definition: HGCalParameters.h:146
HGCalTileIndex.h
HGCalDDDConstants::waferMax
int waferMax() const
Definition: HGCalDDDConstants.h:150
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:1353
HGCalDDDConstants::isValidHex8
bool isValidHex8(int lay, int waferU, int waferV, bool fullAndPart=false) const
Definition: HGCalDDDConstants.cc:502
HGCalDDDConstants::waferType
int waferType(DetId const &id, bool fromFile=false) const
Definition: HGCalDDDConstants.cc:1267
HGCalDDDConstants::waferHexagon6
bool waferHexagon6() const
Definition: HGCalDDDConstants.h:140
HGCalDDDConstants::getRadiusLayer
const std::vector< double > & getRadiusLayer(int layer) const
Definition: HGCalDDDConstants.h:62
debug
#define debug
Definition: HDRShower.cc:19
HGCalGeometryMode::Trapezoid
Definition: HGCalGeometryMode.h:31
HGCalParameters::trformIndex_
std::vector< uint32_t > trformIndex_
Definition: HGCalParameters.h:90
HGCalDDDConstants::simToReco
std::pair< int, int > simToReco(int cell, int layer, int mod, bool half) const
Definition: HGCalDDDConstants.cc:1035
HGCalDDDConstants::isValidCell8
bool isValidCell8(int lay, int waferU, int waferV, int cellU, int cellV, int type) const
Definition: HGCalDDDConstants.cc:1578
HGCalDDDConstants::mode_
HGCalGeometryMode::GeometryMode mode_
Definition: HGCalDDDConstants.h:233
trackingPlots.hp
hp
Definition: trackingPlots.py:1231
HGCalParameters::radiusLayer_
std::vector< double > radiusLayer_[2]
Definition: HGCalParameters.h:163
HGCalDDDConstants::maxCells
int maxCells(bool reco) const
Definition: HGCalDDDConstants.cc:804
HGCalDDDConstants::maxCellUV
int maxCellUV() const
Definition: HGCalDDDConstants.h:91
HGCalDDDConstants::tileType
std::pair< int, int > tileType(int layer, int ring, int phi) const
Definition: HGCalDDDConstants.h:117
HGCalDDDConstants::waferInLayer
bool waferInLayer(int wafer, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1208
HGCalParameters::waferUVMax_
int waferUVMax_
Definition: HGCalParameters.h:148
DDAxes::z
HGCalDDDConstants::HGCalDDDConstants
HGCalDDDConstants(const HGCalParameters *hp, const std::string &name)
Definition: HGCalDDDConstants.cc:25
HGCalDDDConstants::layerIndex
int layerIndex(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:579
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:32
RecoTauValidation_cfi.posX
posX
Definition: RecoTauValidation_cfi.py:287
HGCalDDDConstants::waferFileSize
unsigned int waferFileSize() const
Definition: HGCalDDDConstants.h:155
HGCalDDDConstants::wafers
int wafers() const
Definition: HGCalDDDConstants.cc:1420
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:115
HGCalDDDConstants::rangeR
std::pair< double, double > rangeR(double z, bool reco) const
Definition: HGCalDDDConstants.cc:966
HGCalDDDConstants::assignCell
std::pair< int, int > assignCell(float x, float y, int lay, int subSec, bool reco) const
Definition: HGCalDDDConstants.cc:120
HGCalDDDConstants::mouseBite
double mouseBite(bool reco) const
Definition: HGCalDDDConstants.cc:897
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
HGCalDDDConstants::tileTrapezoid
bool tileTrapezoid() const
Definition: HGCalDDDConstants.h:113
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:142
HGCalDDDConstants::hexside_
double hexside_
Definition: HGCalDDDConstants.h:232
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
HGCalDDDConstants::waferLayer_
std::map< int, HGCWaferParam > waferLayer_
Definition: HGCalDDDConstants.h:239
HGCalDDDConstants::modHalf_
int32_t modHalf_
Definition: HGCalDDDConstants.h:235
HGCalDDDConstants::numberCells
int numberCells(bool reco) const
Definition: HGCalDDDConstants.cc:901
HGCalGeometryMode::TrapezoidModule
Definition: HGCalGeometryMode.h:35
geometryCSVtoXML.yy
yy
Definition: geometryCSVtoXML.py:19
HGCalDDDConstants::getIndex
std::pair< int, float > getIndex(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1517
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
HGCalDDDConstants::tileSiPM
int tileSiPM(int sipm) const
Definition: HGCalDDDConstants.h:112
HGCalGeometryMode::Hexagon8Full
Definition: HGCalGeometryMode.h:30
HGCalDDDConstants::waferFileInfoExist
bool waferFileInfoExist(int kk) const
Definition: HGCalDDDConstants.h:179
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
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:40
HGCalDDDConstants::layers
unsigned int layers(bool reco) const
Definition: HGCalDDDConstants.cc:577
HGCalDDDConstants::waferFileIndex
int waferFileIndex(unsigned int kk) const
Definition: HGCalDDDConstants.h:156
HGCalParameters::scintType
int scintType(const int layer) const
Definition: HGCalParameters.h:68
HGCalGeometryMode::GeometryMode
GeometryMode
Definition: HGCalGeometryMode.h:25
HGCalDDDConstants::getTrForms
std::vector< HGCalParameters::hgtrform > getTrForms() const
Definition: HGCalDDDConstants.cc:413
HGCalDDDConstants::getTypeTrap
int getTypeTrap(int layer) const
Definition: HGCalDDDConstants.cc:420
HGCalGeomTools
Definition: HGCalGeomTools.h:8
HGCalDDDConstants::cellSizeHex
double cellSizeHex(int type) const
Definition: HGCalDDDConstants.cc:233
HGCalDDDConstants::cellThickness
double cellThickness(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:220
HGCalDDDConstants::sectors
int sectors() const
Definition: HGCalDDDConstants.h:110
HGCalDDDConstants::isValidTrap
bool isValidTrap(int lay, int ieta, int iphi) const
Definition: HGCalDDDConstants.cc:566
HGCalDDDConstants::getUVMax
int getUVMax(int type) const
Definition: HGCalDDDConstants.h:72
HGCalParameters::layerOffset_
int layerOffset_
Definition: HGCalParameters.h:175
HGCalDDDConstants::rmax_
double rmax_
Definition: HGCalDDDConstants.h:232
HGCalDDDConstants::rowColumnWafer
std::pair< int, int > rowColumnWafer(const int wafer) const
Definition: HGCalDDDConstants.cc:1024
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalDDDConstants::waferVirtual
bool waferVirtual(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:1400
HGCalDDDConstants::getTrForm
HGCalParameters::hgtrform getTrForm(unsigned int k) const
Definition: HGCalDDDConstants.h:66
HGCalDDDConstants::getModules
std::vector< HGCalParameters::hgtrap > getModules() const
Definition: HGCalDDDConstants.cc:392
HGCalGeometryMode::Hexagon
Definition: HGCalGeometryMode.h:27
HGCalDDDConstants::maxModules
int maxModules() const
Definition: HGCalDDDConstants.h:94
HGCalParameters::waferTypeT_
std::vector< int > waferTypeT_
Definition: HGCalParameters.h:117
HGCalDDDConstants::waferMax_
std::array< int, 4 > waferMax_
Definition: HGCalDDDConstants.h:240
HGCalDDDConstants::tot_layers_
std::array< uint32_t, 2 > tot_layers_
Definition: HGCalDDDConstants.h:236
HGCalDDDConstants::numberCellsHexagon
int numberCellsHexagon(int wafer) const
Definition: HGCalDDDConstants.cc:944
HGCalParameters
Definition: HGCalParameters.h:14
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:37
DDAxes::phi
HGCalDDDConstants::minSlope
double minSlope() const
Definition: HGCalDDDConstants.h:97
HGCalGeomTools.h
HGCalGeometryMode::HexagonFull
Definition: HGCalGeometryMode.h:28
HGCalDDDConstants::cellType
HGCalTypes::CellType cellType(int type, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:240
HGCalDDDConstants::locateCellHex
std::pair< float, float > locateCellHex(int cell, int wafer, bool reco) const
Definition: HGCalDDDConstants.cc:718
HGCalParameters::waferInfoMap_
waferInfo_map waferInfoMap_
Definition: HGCalParameters.h:184
HGCalParameters::slopeMin_
std::vector< double > slopeMin_
Definition: HGCalParameters.h:138
DetId.h
HGCScintillatorDetId
Definition: HGCScintillatorDetId.h:23
HGCalDDDConstants::waferPosition
std::pair< double, double > waferPosition(int wafer, bool reco) const
Definition: HGCalDDDConstants.cc:1229
HGCalDDDConstants::maxRows
int maxRows(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:849
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
HGCalGeometryMode::Hexagon8File
Definition: HGCalGeometryMode.h:32
HGCalDDDConstants::modules
int modules(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:874
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:280
HGCalDDDConstants::getLayer
int getLayer(double z, bool reco) const
Definition: HGCalDDDConstants.cc:356
HGCalGeometryMode::Hexagon8
Definition: HGCalGeometryMode.h:29
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HGCalParameters::hgtrform
Definition: HGCalParameters.h:52
HGCalDDDConstants::waferTypeL
int waferTypeL(int wafer) const
Definition: HGCalDDDConstants.h:197
HGCalDDDConstants::levelTop
int levelTop(int ind=0) const
Definition: HGCalDDDConstants.h:89
HGCalParameters::waferTypeL_
std::vector< int > waferTypeL_
Definition: HGCalParameters.h:116
HGCalDDDConstants::~HGCalDDDConstants
~HGCalDDDConstants()
Definition: HGCalDDDConstants.cc:118
HGCalDDDConstants::getTrFormN
unsigned int getTrFormN() const
Definition: HGCalDDDConstants.h:67
HGCalDDDConstants::fullAndPart_
bool fullAndPart_
Definition: HGCalDDDConstants.h:234
HGCalDDDConstants::layersInit
unsigned int layersInit(bool reco) const
Definition: HGCalDDDConstants.cc:592
HGCalDDDConstants::locateCell
std::pair< float, float > locateCell(int cell, int lay, int type, bool reco) const
Definition: HGCalDDDConstants.cc:596
HGCalDDDConstants::waferToCopy
int waferToCopy(int wafer) const
Definition: HGCalDDDConstants.h:188
HGCalDDDConstants::waferFileInfo
std::tuple< int, int, int > waferFileInfo(unsigned int kk) const
Definition: HGCalDDDConstants.h:164
HGCalTypes.h
HGCalDDDConstants::waferIndex
int32_t waferIndex(int wafer, int index) const
Definition: HGCalDDDConstants.cc:1629
HGCalParameters::hgtrap
Definition: HGCalParameters.h:47
HGCalDDDConstants::waferSize
double waferSize(bool reco) const
Definition: HGCalDDDConstants.h:183
HGCalDDDConstants::modifyUV
int modifyUV(int uv, int type1, int type2) const
Definition: HGCalDDDConstants.cc:869
HGCalDDDConstants::waferFromCopy
int waferFromCopy(int copy) const
Definition: HGCalDDDConstants.cc:1064
HGCalParameters.h
HGCalDDDConstants::waferSepar
double waferSepar(bool reco) const
Definition: HGCalDDDConstants.h:180
HGCalTypes::SiPMSmall
Definition: HGCalTypes.h:107
HGCalParameters::levelT_
std::vector< int > levelT_
Definition: HGCalParameters.h:135
HGCalDDDConstants::getParameter
const HGCalParameters * getParameter() const
Definition: HGCalDDDConstants.h:59
HGCalDDDConstants::volumes
unsigned int volumes() const
Definition: HGCalDDDConstants.h:127
HGCalDDDConstants::hgpar_
const HGCalParameters * hgpar_
Definition: HGCalDDDConstants.h:229
HGCalDDDConstants::maskCell
bool maskCell(const DetId &id, int corners) const
Definition: HGCalDDDConstants.cc:764
geometryCSVtoXML.xx
xx
Definition: geometryCSVtoXML.py:19
RecoTauValidation_cfi.posY
posY
Definition: RecoTauValidation_cfi.py:288
HGCalDDDConstants::HGCWaferParam
std::array< int, 3 > HGCWaferParam
Definition: HGCalDDDConstants.h:228
HGCalDDDConstants::waferInLayerTest
bool waferInLayerTest(int wafer, int lay, bool full) const
Definition: HGCalDDDConstants.cc:1641
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:117
HGCalParameters::tileInfoMap_
tileInfo_map tileInfoMap_
Definition: HGCalParameters.h:186
HGCalDDDConstants::getModule
HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const
Definition: HGCalDDDConstants.cc:376