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  int getUVMax(int type) const { return ((type == 0) ? hgpar_->nCellsFine_ : hgpar_->nCellsCoarse_); }
72  bool isHalfCell(int waferType, int cell) const;
73  bool isValidHex(int lay, int mod, int cell, bool reco) const;
74  bool isValidHex8(int lay, int waferU, int waferV, bool fullAndPart = false) const;
75  bool isValidHex8(int lay, int modU, int modV, int cellU, int cellV, bool fullAndPart = false) const;
76  bool isValidTrap(int lay, int ieta, int iphi) const;
77  int lastLayer(bool reco) const;
78  int layerIndex(int lay, bool reco) const;
79  unsigned int layers(bool reco) const;
80  unsigned int layersInit(bool reco) const;
81  std::pair<float, float> locateCell(int cell, int lay, int type, bool reco) const;
82  std::pair<float, float> locateCell(
83  int lay, int waferU, int waferV, int cellU, int cellV, bool reco, bool all, bool debug = false) const;
84  std::pair<float, float> locateCell(const HGCSiliconDetId&, bool debug = false) const;
85  std::pair<float, float> locateCell(const HGCScintillatorDetId&, bool debug = false) const;
86  std::pair<float, float> locateCellHex(int cell, int wafer, bool reco) const;
87  std::pair<float, float> locateCellTrap(int lay, int ieta, int iphi, bool reco) const;
88  int levelTop(int ind = 0) const { return hgpar_->levelT_[ind]; }
89  bool maskCell(const DetId& id, int corners) const;
90  int maxCellUV() const { return (tileTrapezoid() ? hgpar_->nCellsFine_ : 2 * hgpar_->nCellsFine_); }
91  int maxCells(bool reco) const;
92  int maxCells(int lay, bool reco) const;
93  int maxModules() const { return modHalf_; }
94  int maxModulesPerLayer() const { return maxWafersPerLayer_; }
95  int maxRows(int lay, bool reco) const;
96  double minSlope() const { return hgpar_->slopeMin_[0]; }
97  int modifyUV(int uv, int type1, int type2) const;
98  int modules(int lay, bool reco) const;
99  int modulesInit(int lay, bool reco) const;
100  double mouseBite(bool reco) const;
101  int numberCells(bool reco) const;
102  std::vector<int> numberCells(int lay, bool reco) const;
103  int numberCellsHexagon(int wafer) const;
104  int numberCellsHexagon(int lay, int waferU, int waferV, bool flag) const;
105  std::pair<double, double> rangeR(double z, bool reco) const;
106  std::pair<double, double> rangeRLayer(int lay, bool reco) const;
107  std::pair<double, double> rangeZ(bool reco) const;
108  std::pair<int, int> rowColumnWafer(const int wafer) const;
109  int sectors() const { return hgpar_->nSectors_; }
110  std::pair<int, int> simToReco(int cell, int layer, int mod, bool half) const;
111  int tileSiPM(int sipm) const { return ((sipm > 0) ? HGCalTypes::SiPMSmall : HGCalTypes::SiPMLarge); }
112  bool tileTrapezoid() const {
115  }
116  std::pair<int, int> tileType(int layer, int ring, int phi) const {
117  int indx = HGCalTileIndex::tileIndex(layer, ring, phi);
118  int type(-1), sipm(-1);
119  auto itr = hgpar_->tileInfoMap_.find(indx);
120  if (itr != hgpar_->tileInfoMap_.end()) {
121  type = 1 + (itr->second).type;
122  sipm = ((itr->second).sipm == HGCalTypes::SiPMLarge) ? 0 : 1;
123  }
124  return std::make_pair(type, sipm);
125  }
126  unsigned int volumes() const { return hgpar_->moduleLayR_.size(); }
127  int waferFromCopy(int copy) const;
128  void waferFromPosition(const double x, const double y, int& wafer, int& icell, int& celltyp) const;
129  void waferFromPosition(const double x,
130  const double y,
131  const int layer,
132  int& waferU,
133  int& waferV,
134  int& cellU,
135  int& cellV,
136  int& celltype,
137  double& wt,
138  bool debug = false) const;
139  bool waferHexagon6() const {
141  }
142  bool waferHexagon8() const {
145  }
146  bool waferInLayer(int wafer, int lay, bool reco) const;
147  bool waferFullInLayer(int wafer, int lay, bool reco) const;
148  int waferCount(const int type) const { return ((type == 0) ? waferMax_[2] : waferMax_[3]); }
149  int waferMax() const { return waferMax_[1]; }
150  int waferMin() const { return waferMax_[0]; }
151  std::pair<double, double> waferParameters(bool reco) const;
152  std::pair<double, double> waferPosition(int wafer, bool reco) const;
153  std::pair<double, double> waferPosition(int lay, int waferU, int waferV, bool reco, bool debug = false) const;
154  unsigned int waferFileSize() const { return hgpar_->waferInfoMap_.size(); }
155  int waferFileIndex(unsigned int kk) const {
156  if (kk < hgpar_->waferInfoMap_.size()) {
157  auto itr = hgpar_->waferInfoMap_.begin();
158  std::advance(itr, kk);
159  return itr->first;
160  } else
161  return 0;
162  }
163  std::tuple<int, int, int> waferFileInfo(unsigned int kk) const {
164  if (kk < hgpar_->waferInfoMap_.size()) {
165  auto itr = hgpar_->waferInfoMap_.begin();
166  std::advance(itr, kk);
167  return std::make_tuple(itr->second.type, itr->second.part, itr->second.orient);
168  } else
169  return std::make_tuple(0, 0, 0);
170  }
171  std::tuple<int, int, int> waferFileInfoFromIndex(int kk) const {
172  auto itr = hgpar_->waferInfoMap_.find(kk);
173  if (itr != hgpar_->waferInfoMap_.end()) {
174  return std::make_tuple(itr->second.type, itr->second.part, itr->second.orient);
175  } else
176  return std::make_tuple(0, 0, 0);
177  }
178  bool waferFileInfoExist(int kk) const { return (hgpar_->waferInfoMap_.find(kk) != hgpar_->waferInfoMap_.end()); }
179  double waferSepar(bool reco) const {
181  }
182  double waferSize(bool reco) const {
184  }
185  int wafers() const;
186  int wafers(int layer, int type) const;
187  int waferToCopy(int wafer) const {
188  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferCopy_.size()))) ? hgpar_->waferCopy_[wafer]
189  : (int)(hgpar_->waferCopy_.size());
190  }
191  // wafer transverse thickness classification (2 = coarse, 1 = fine)
192  int waferTypeT(int wafer) const {
193  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferTypeT_.size()))) ? hgpar_->waferTypeT_[wafer] : 0;
194  }
195  // wafer longitudinal thickness classification (1 = 100um, 2 = 200um, 3=300um)
196  int waferTypeL(int wafer) const {
197  return ((wafer >= 0) && (wafer < (int)(hgpar_->waferTypeL_.size()))) ? hgpar_->waferTypeL_[wafer] : 0;
198  }
199  int waferType(DetId const& id, bool fromFile = false) const;
200  int waferType(int layer, int waferU, int waferV, bool fromFile = false) const;
201  std::tuple<int, int, int> waferType(HGCSiliconDetId const& id, bool fromFile = false) const;
202  std::pair<int, int> waferTypeRotation(
203  int layer, int waferU, int waferV, bool fromFile = false, bool debug = false) const;
204  int waferUVMax() const { return hgpar_->waferUVMax_; }
205  bool waferVirtual(int layer, int waferU, int waferV) const;
206  double waferZ(int layer, bool reco) const;
207 
208 private:
209  int cellHex(double xx,
210  double yy,
211  const double& cellR,
212  const std::vector<double>& posX,
213  const std::vector<double>& posY) const;
214  void cellHex(double xloc, double yloc, int cellType, int& cellU, int& cellV, bool debug = false) const;
215  std::pair<int, float> getIndex(int lay, bool reco) const;
216  int layerFromIndex(int index, bool reco) const;
217  bool isValidCell(int layindex, int wafer, int cell) const;
218  bool isValidCell8(int lay, int waferU, int waferV, int cellU, int cellV, int type) const;
219  int32_t waferIndex(int wafer, int index) const;
220  bool waferInLayerTest(int wafer, int lay, bool full) const;
221  std::pair<double, double> waferPosition(int waferU, int waferV, bool reco) const;
222 
224  const double k_horizontalShift = 1.0;
225  const float dPhiMin = 0.02;
226  typedef std::array<std::vector<int32_t>, 2> Simrecovecs;
227  typedef std::array<int, 3> HGCWaferParam;
229  constexpr static double tan30deg_ = 0.5773502693;
230  const double sqrt3_;
231  double rmax_, hexside_;
235  std::array<uint32_t, 2> tot_layers_;
238  std::map<int, HGCWaferParam> waferLayer_;
239  std::array<int, 4> waferMax_;
240  std::unordered_map<int32_t, bool> waferIn_;
241 };
242 
243 #endif
HGCalDDDConstants::k_horizontalShift
const double k_horizontalShift
Definition: HGCalDDDConstants.h:224
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:234
HGCalParameters::nSectors_
int nSectors_
Definition: HGCalParameters.h:74
HGCalGeometryMode::TrapezoidFile
Definition: HGCalGeometryMode.h:33
HGCalDDDConstants::tan30deg_
constexpr static double tan30deg_
Definition: HGCalDDDConstants.h:229
HGCalParameters::firstLayer_
int firstLayer_
Definition: HGCalParameters.h:172
HGCalDDDConstants::waferTypeT
int waferTypeT(int wafer) const
Definition: HGCalDDDConstants.h:192
HGCScintillatorDetId.h
HGCalDDDConstants::waferFromPosition
void waferFromPosition(const double x, const double y, int &wafer, int &icell, int &celltyp) const
Definition: HGCalDDDConstants.cc:1072
HGCalDDDConstants::maxWafersPerLayer_
int32_t maxWafersPerLayer_
Definition: HGCalDDDConstants.h:237
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:1426
HGCalDDDConstants::rangeZ
std::pair< double, double > rangeZ(bool reco) const
Definition: HGCalDDDConstants.cc:994
HGCalDDDConstants::sqrt3_
const double sqrt3_
Definition: HGCalDDDConstants.h:230
HGCalDDDConstants::modulesInit
int modulesInit(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:864
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
HGCalDDDConstants::waferIn_
std::unordered_map< int32_t, bool > waferIn_
Definition: HGCalDDDConstants.h:240
HGCalDDDConstants::isValidCell
bool isValidCell(int layindex, int wafer, int cell) const
Definition: HGCalDDDConstants.cc:1532
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:717
HGCalDDDConstants::isValidHex
bool isValidHex(int lay, int mod, int cell, bool reco) const
Definition: HGCalDDDConstants.cc:444
HGCalDDDConstants::geomMode
HGCalGeometryMode::GeometryMode geomMode() const
Definition: HGCalDDDConstants.h:54
HGCalDDDConstants::waferMin
int waferMin() const
Definition: HGCalDDDConstants.h:150
HGCalGeometryMode.h
HGCalDDDConstants::cellEtaPhiTrap
std::pair< double, double > cellEtaPhiTrap(int type, int irad) const
Definition: HGCalDDDConstants.cc:193
HGCalDDDConstants::getLayerOffset
int getLayerOffset() const
Definition: HGCalDDDConstants.h:56
HGCalDDDConstants::waferCount
int waferCount(const int type) const
Definition: HGCalDDDConstants.h:148
HGCalDDDConstants::waferUVMax
int waferUVMax() const
Definition: HGCalDDDConstants.h:204
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:976
HGCalDDDConstants::waferZ
double waferZ(int layer, bool reco) const
Definition: HGCalDDDConstants.cc:1390
HGCalDDDConstants::getREtaRange
std::pair< int, int > getREtaRange(int lay) const
Definition: HGCalDDDConstants.cc:400
HGCSiliconDetId.h
HGCalWaferIndex::waferU
int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:27
HGCalDDDConstants::waferHexagon8
bool waferHexagon8() const
Definition: HGCalDDDConstants.h:142
HGCalDDDConstants::waferFullInLayer
bool waferFullInLayer(int wafer, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1193
HGCalDDDConstants::distFromEdgeTrap
double distFromEdgeTrap(double x, double y, double z) const
Definition: HGCalDDDConstants.cc:325
HGCalDDDConstants::Simrecovecs
std::array< std::vector< int32_t >, 2 > Simrecovecs
Definition: HGCalDDDConstants.h:226
HGCalDDDConstants::dPhiMin
const float dPhiMin
Definition: HGCalDDDConstants.h:225
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:159
HGCalGeometryMode::Hexagon8Module
Definition: HGCalGeometryMode.h:34
HGCalDDDConstants::getPhiBins
int getPhiBins(int lay) const
Definition: HGCalDDDConstants.cc:398
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
HGCalParameters::moduleLayR_
std::vector< int > moduleLayR_
Definition: HGCalParameters.h:83
HGCalDDDConstants::getTypeHex
int getTypeHex(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:428
HGCalDDDConstants::isHalfCell
bool isHalfCell(int waferType, int cell) const
Definition: HGCalDDDConstants.cc:438
HGCalDDDConstants::waferParameters
std::pair< double, double > waferParameters(bool reco) const
Definition: HGCalDDDConstants.cc:1200
HGCalDDDConstants::lastLayer
int lastLayer(bool reco) const
Definition: HGCalDDDConstants.cc:559
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:26
HGCalTypes::SiPMLarge
Definition: HGCalTypes.h:78
HGCalDDDConstants::max_modules_layer_
Simrecovecs max_modules_layer_
Definition: HGCalDDDConstants.h:236
HGCalDDDConstants::geomTools_
HGCalGeomTools geomTools_
Definition: HGCalDDDConstants.h:223
HGCalDDDConstants
Definition: HGCalDDDConstants.h:27
HGCalDDDConstants::waferFileInfoFromIndex
std::tuple< int, int, int > waferFileInfoFromIndex(int kk) const
Definition: HGCalDDDConstants.h:171
HGCalDDDConstants::maxModulesPerLayer
int maxModulesPerLayer() const
Definition: HGCalDDDConstants.h:94
HGCalDDDConstants::layerFromIndex
int layerFromIndex(int index, bool reco) const
Definition: HGCalDDDConstants.cc:1512
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:149
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:1331
HGCalDDDConstants::isValidHex8
bool isValidHex8(int lay, int waferU, int waferV, bool fullAndPart=false) const
Definition: HGCalDDDConstants.cc:486
HGCalDDDConstants::waferType
int waferType(DetId const &id, bool fromFile=false) const
Definition: HGCalDDDConstants.cc:1245
HGCalDDDConstants::waferHexagon6
bool waferHexagon6() const
Definition: HGCalDDDConstants.h:139
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:1018
HGCalDDDConstants::isValidCell8
bool isValidCell8(int lay, int waferU, int waferV, int cellU, int cellV, int type) const
Definition: HGCalDDDConstants.cc:1556
HGCalDDDConstants::mode_
HGCalGeometryMode::GeometryMode mode_
Definition: HGCalDDDConstants.h:232
trackingPlots.hp
hp
Definition: trackingPlots.py:1230
HGCalParameters::radiusLayer_
std::vector< double > radiusLayer_[2]
Definition: HGCalParameters.h:162
HGCalDDDConstants::maxCells
int maxCells(bool reco) const
Definition: HGCalDDDConstants.cc:787
HGCalDDDConstants::maxCellUV
int maxCellUV() const
Definition: HGCalDDDConstants.h:90
HGCalDDDConstants::tileType
std::pair< int, int > tileType(int layer, int ring, int phi) const
Definition: HGCalDDDConstants.h:116
HGCalDDDConstants::waferInLayer
bool waferInLayer(int wafer, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:1186
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:563
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:32
RecoTauValidation_cfi.posX
posX
Definition: RecoTauValidation_cfi.py:288
HGCalDDDConstants::waferFileSize
unsigned int waferFileSize() const
Definition: HGCalDDDConstants.h:154
HGCalDDDConstants::wafers
int wafers() const
Definition: HGCalDDDConstants.cc:1398
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:949
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:880
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalDDDConstants::tileTrapezoid
bool tileTrapezoid() const
Definition: HGCalDDDConstants.h:112
HGCalDDDConstants::cellInLayer
bool cellInLayer(int waferU, int waferV, int cellU, int cellV, int lay, bool reco) const
Definition: HGCalDDDConstants.cc:203
HGCalParameters::nCellsFine_
int nCellsFine_
Definition: HGCalParameters.h:142
HGCalDDDConstants::hexside_
double hexside_
Definition: HGCalDDDConstants.h:231
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
HGCalDDDConstants::waferLayer_
std::map< int, HGCWaferParam > waferLayer_
Definition: HGCalDDDConstants.h:238
HGCalDDDConstants::modHalf_
int32_t modHalf_
Definition: HGCalDDDConstants.h:234
HGCalDDDConstants::numberCells
int numberCells(bool reco) const
Definition: HGCalDDDConstants.cc:884
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:1495
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
HGCalDDDConstants::tileSiPM
int tileSiPM(int sipm) const
Definition: HGCalDDDConstants.h:111
HGCalGeometryMode::Hexagon8Full
Definition: HGCalGeometryMode.h:30
HGCalDDDConstants::waferFileInfoExist
bool waferFileInfoExist(int kk) const
Definition: HGCalDDDConstants.h:178
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:561
HGCalDDDConstants::waferFileIndex
int waferFileIndex(unsigned int kk) const
Definition: HGCalDDDConstants.h:155
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:412
HGCalDDDConstants::getTypeTrap
int getTypeTrap(int layer) const
Definition: HGCalDDDConstants.cc:419
HGCalGeomTools
Definition: HGCalGeomTools.h:8
HGCalDDDConstants::cellSizeHex
double cellSizeHex(int type) const
Definition: HGCalDDDConstants.cc:232
HGCalDDDConstants::cellThickness
double cellThickness(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:219
HGCalDDDConstants::sectors
int sectors() const
Definition: HGCalDDDConstants.h:109
HGCalDDDConstants::isValidTrap
bool isValidTrap(int lay, int ieta, int iphi) const
Definition: HGCalDDDConstants.cc:550
HGCalDDDConstants::getUVMax
int getUVMax(int type) const
Definition: HGCalDDDConstants.h:71
HGCalParameters::layerOffset_
int layerOffset_
Definition: HGCalParameters.h:174
HGCalDDDConstants::rmax_
double rmax_
Definition: HGCalDDDConstants.h:231
HGCalDDDConstants::rowColumnWafer
std::pair< int, int > rowColumnWafer(const int wafer) const
Definition: HGCalDDDConstants.cc:1007
HGCalDDDConstants::waferVirtual
bool waferVirtual(int layer, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:1378
HGCalDDDConstants::getTrForm
HGCalParameters::hgtrform getTrForm(unsigned int k) const
Definition: HGCalDDDConstants.h:66
HGCalDDDConstants::getModules
std::vector< HGCalParameters::hgtrap > getModules() const
Definition: HGCalDDDConstants.cc:391
HGCalGeometryMode::Hexagon
Definition: HGCalGeometryMode.h:27
HGCalDDDConstants::maxModules
int maxModules() const
Definition: HGCalDDDConstants.h:93
HGCalParameters::waferTypeT_
std::vector< int > waferTypeT_
Definition: HGCalParameters.h:117
HGCalDDDConstants::waferMax_
std::array< int, 4 > waferMax_
Definition: HGCalDDDConstants.h:239
HGCalDDDConstants::tot_layers_
std::array< uint32_t, 2 > tot_layers_
Definition: HGCalDDDConstants.h:235
HGCalDDDConstants::numberCellsHexagon
int numberCellsHexagon(int wafer) const
Definition: HGCalDDDConstants.cc:927
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:170
HGCalParameters::k_ScaleToDDD
static constexpr double k_ScaleToDDD
Definition: HGCalParameters.h:37
DDAxes::phi
HGCalDDDConstants::minSlope
double minSlope() const
Definition: HGCalDDDConstants.h:96
HGCalGeomTools.h
HGCalGeometryMode::HexagonFull
Definition: HGCalGeometryMode.h:28
HGCalDDDConstants::cellType
HGCalTypes::CellType cellType(int type, int waferU, int waferV) const
Definition: HGCalDDDConstants.cc:239
HGCalDDDConstants::locateCellHex
std::pair< float, float > locateCellHex(int cell, int wafer, bool reco) const
Definition: HGCalDDDConstants.cc:701
HGCalParameters::waferInfoMap_
waferInfo_map waferInfoMap_
Definition: HGCalParameters.h:181
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:1207
HGCalDDDConstants::maxRows
int maxRows(int lay, bool reco) const
Definition: HGCalDDDConstants.cc:832
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:857
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:279
HGCalDDDConstants::getLayer
int getLayer(double z, bool reco) const
Definition: HGCalDDDConstants.cc:355
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:196
HGCalDDDConstants::levelTop
int levelTop(int ind=0) const
Definition: HGCalDDDConstants.h:88
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:233
HGCalDDDConstants::layersInit
unsigned int layersInit(bool reco) const
Definition: HGCalDDDConstants.cc:576
HGCalDDDConstants::locateCell
std::pair< float, float > locateCell(int cell, int lay, int type, bool reco) const
Definition: HGCalDDDConstants.cc:580
HGCalDDDConstants::waferToCopy
int waferToCopy(int wafer) const
Definition: HGCalDDDConstants.h:187
HGCalDDDConstants::waferFileInfo
std::tuple< int, int, int > waferFileInfo(unsigned int kk) const
Definition: HGCalDDDConstants.h:163
HGCalTypes.h
HGCalDDDConstants::waferIndex
int32_t waferIndex(int wafer, int index) const
Definition: HGCalDDDConstants.cc:1605
HGCalParameters::hgtrap
Definition: HGCalParameters.h:47
HGCalDDDConstants::waferSize
double waferSize(bool reco) const
Definition: HGCalDDDConstants.h:182
HGCalDDDConstants::modifyUV
int modifyUV(int uv, int type1, int type2) const
Definition: HGCalDDDConstants.cc:852
HGCalDDDConstants::waferFromCopy
int waferFromCopy(int copy) const
Definition: HGCalDDDConstants.cc:1047
HGCalParameters.h
HGCalDDDConstants::waferSepar
double waferSepar(bool reco) const
Definition: HGCalDDDConstants.h:179
HGCalTypes::SiPMSmall
Definition: HGCalTypes.h:78
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:126
HGCalDDDConstants::hgpar_
const HGCalParameters * hgpar_
Definition: HGCalDDDConstants.h:228
HGCalDDDConstants::maskCell
bool maskCell(const DetId &id, int corners) const
Definition: HGCalDDDConstants.cc:747
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:227
HGCalDDDConstants::waferInLayerTest
bool waferInLayerTest(int wafer, int lay, bool full) const
Definition: HGCalDDDConstants.cc:1617
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116
HGCalParameters::tileInfoMap_
tileInfo_map tileInfoMap_
Definition: HGCalParameters.h:182
HGCalDDDConstants::getModule
HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const
Definition: HGCalDDDConstants.cc:375