CMS 3D CMS Logo

DDHGCalEEAlgo.cc
Go to the documentation of this file.
1 // File: DDHGCalEEAlgo.cc
3 // Description: Geometry factory class for HGCal (EE and HESil)
5 
21 
22 #include <cmath>
23 #include <memory>
24 #include <string>
25 #include <unordered_set>
26 #include <vector>
27 
28 //#define EDM_ML_DEBUG
29 using namespace geant_units::operators;
30 
31 class DDHGCalEEAlgo : public DDAlgorithm {
32 public:
33  // Constructor and Destructor
34  DDHGCalEEAlgo(); // const std::string & name);
35  ~DDHGCalEEAlgo() override;
36 
37  void initialize(const DDNumericArguments& nArgs,
38  const DDVectorArguments& vArgs,
39  const DDMapArguments& mArgs,
40  const DDStringArguments& sArgs,
41  const DDStringVectorArguments& vsArgs) override;
42  void execute(DDCompactView& cpv) override;
43 
44 protected:
45  void constructLayers(const DDLogicalPart&, DDCompactView& cpv);
46  void positionSensitive(const DDLogicalPart& glog,
47  double rin,
48  double rout,
49  double zpos,
50  int layertype,
51  int layercenter,
52  DDCompactView& cpv);
53 
54 private:
56  std::unique_ptr<HGCalWaferType> waferType_;
57 
58  std::vector<std::string> wafers_; // Wafers
59  std::vector<std::string> materials_; // Materials
60  std::vector<std::string> names_; // Names
61  std::vector<double> thick_; // Thickness of the material
62  std::vector<int> copyNumber_; // Initial copy numbers
63  std::vector<int> layers_; // Number of layers in a section
64  std::vector<double> layerThick_; // Thickness of each section
65  std::vector<int> layerType_; // Type of the layer
66  std::vector<int> layerSense_; // Content of a layer (sensitive?)
67  std::vector<int> layerCenter_; // Centering of the wafers
68  int firstLayer_; // Copy # of the first sensitive layer
69  int absorbMode_; // Absorber mode
70  double zMinBlock_; // Starting z-value of the block
71  std::vector<double> rad100to200_; // Parameters for 120-200mum trans.
72  std::vector<double> rad200to300_; // Parameters for 200-300mum trans.
73  double zMinRadPar_; // Minimum z for radius parametriz.
74  int choiceType_; // Type of parametrization to be used
75  int nCutRadPar_; // Cut off threshold for corners
76  double fracAreaMin_; // Minimum fractional conatined area
77  double waferSize_; // Width of the wafer
78  double waferSepar_; // Sensor separation
79  int sectors_; // Sectors
80  std::vector<double> slopeB_; // Slope at the lower R
81  std::vector<double> zFrontB_; // Starting Z values for the slopes
82  std::vector<double> rMinFront_; // Corresponding rMin's
83  std::vector<double> slopeT_; // Slopes at the larger R
84  std::vector<double> zFrontT_; // Starting Z values for the slopes
85  std::vector<double> rMaxFront_; // Corresponding rMax's
86  std::string nameSpace_; // Namespace of this and ALL sub-parts
87  std::unordered_set<int> copies_; // List of copy #'s
88  double alpha_, cosAlpha_;
89 };
90 
92 #ifdef EDM_ML_DEBUG
93  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: Creating an instance";
94 #endif
95 }
96 
98 
100  const DDVectorArguments& vArgs,
101  const DDMapArguments&,
102  const DDStringArguments& sArgs,
103  const DDStringVectorArguments& vsArgs) {
104  wafers_ = vsArgs["WaferNames"];
105 #ifdef EDM_ML_DEBUG
106  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << wafers_.size() << " wafers";
107  for (unsigned int i = 0; i < wafers_.size(); ++i)
108  edm::LogVerbatim("HGCalGeom") << "Wafer[" << i << "] " << wafers_[i];
109 #endif
110  materials_ = vsArgs["MaterialNames"];
111  names_ = vsArgs["VolumeNames"];
112  thick_ = vArgs["Thickness"];
113  for (unsigned int i = 0; i < materials_.size(); ++i) {
114  copyNumber_.emplace_back(1);
115  }
116 #ifdef EDM_ML_DEBUG
117  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << materials_.size() << " types of volumes";
118  for (unsigned int i = 0; i < names_.size(); ++i)
119  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness " << thick_[i]
120  << " filled with " << materials_[i] << " first copy number " << copyNumber_[i];
121 #endif
122  layers_ = dbl_to_int(vArgs["Layers"]);
123  layerThick_ = vArgs["LayerThick"];
124 #ifdef EDM_ML_DEBUG
125  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
126  for (unsigned int i = 0; i < layers_.size(); ++i)
127  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << layerThick_[i] << " with " << layers_[i]
128  << " layers";
129 #endif
130  layerType_ = dbl_to_int(vArgs["LayerType"]);
131  layerSense_ = dbl_to_int(vArgs["LayerSense"]);
132  firstLayer_ = (int)(nArgs["FirstLayer"]);
133  absorbMode_ = (int)(nArgs["AbsorberMode"]);
134 #ifdef EDM_ML_DEBUG
135  edm::LogVerbatim("HGCalGeom") << "First Layere " << firstLayer_ << " and "
136  << "Absober mode " << absorbMode_;
137 #endif
138  layerCenter_ = dbl_to_int(vArgs["LayerCenter"]);
139 #ifdef EDM_ML_DEBUG
140  for (unsigned int i = 0; i < layerCenter_.size(); ++i)
141  edm::LogVerbatim("HGCalGeom") << "LayerCenter [" << i << "] " << layerCenter_[i];
142 #endif
143  if (firstLayer_ > 0) {
144  for (unsigned int i = 0; i < layerType_.size(); ++i) {
145  if (layerSense_[i] > 0) {
146  int ii = layerType_[i];
147  copyNumber_[ii] = firstLayer_;
148 #ifdef EDM_ML_DEBUG
149  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
150  << materials_[ii] << " changed to " << copyNumber_[ii];
151 #endif
152  break;
153  }
154  }
155  }
156 #ifdef EDM_ML_DEBUG
157  edm::LogVerbatim("HGCalGeom") << "There are " << layerType_.size() << " layers";
158  for (unsigned int i = 0; i < layerType_.size(); ++i)
159  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerType_[i] << " sensitive class "
160  << layerSense_[i];
161 #endif
162  zMinBlock_ = nArgs["zMinBlock"];
163  rad100to200_ = vArgs["rad100to200"];
164  rad200to300_ = vArgs["rad200to300"];
165  zMinRadPar_ = nArgs["zMinForRadPar"];
166  choiceType_ = (int)(nArgs["choiceType"]);
167  nCutRadPar_ = (int)(nArgs["nCornerCut"]);
168  fracAreaMin_ = nArgs["fracAreaMin"];
169  waferSize_ = nArgs["waferSize"];
170  waferSepar_ = nArgs["SensorSeparation"];
171  sectors_ = (int)(nArgs["Sectors"]);
172  alpha_ = (1._pi) / sectors_;
173  cosAlpha_ = cos(alpha_);
174 #ifdef EDM_ML_DEBUG
175  edm::LogVerbatim("HGCalGeom") << "zStart " << zMinBlock_ << " radius for wafer type separation uses "
176  << rad100to200_.size() << " parameters; zmin " << zMinRadPar_ << " cutoff "
177  << choiceType_ << ":" << nCutRadPar_ << ":" << fracAreaMin_ << " wafer width "
178  << waferSize_ << " separations " << waferSepar_ << " sectors " << sectors_ << ":"
179  << convertRadToDeg(alpha_) << ":" << cosAlpha_;
180  for (unsigned int k = 0; k < rad100to200_.size(); ++k)
181  edm::LogVerbatim("HGCalGeom") << "[" << k << "] 100-200 " << rad100to200_[k] << " 200-300 " << rad200to300_[k];
182 #endif
183  slopeB_ = vArgs["SlopeBottom"];
184  zFrontB_ = vArgs["ZFrontBottom"];
185  rMinFront_ = vArgs["RMinFront"];
186  slopeT_ = vArgs["SlopeTop"];
187  zFrontT_ = vArgs["ZFrontTop"];
188  rMaxFront_ = vArgs["RMaxFront"];
189 #ifdef EDM_ML_DEBUG
190  for (unsigned int i = 0; i < slopeB_.size(); ++i)
191  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] Zmin " << zFrontB_[i] << " Rmin " << rMinFront_[i]
192  << " Slope " << slopeB_[i];
193  for (unsigned int i = 0; i < slopeT_.size(); ++i)
194  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] Zmin " << zFrontT_[i] << " Rmax " << rMaxFront_[i]
195  << " Slope " << slopeT_[i];
196 #endif
197  nameSpace_ = DDCurrentNamespace::ns();
198 #ifdef EDM_ML_DEBUG
199  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: NameSpace " << nameSpace_;
200 #endif
201 
202  waferType_ = std::make_unique<HGCalWaferType>(
203  rad100to200_, rad200to300_, (waferSize_ + waferSepar_), zMinRadPar_, choiceType_, nCutRadPar_, fracAreaMin_);
204 }
205 
207 // DDHGCalEEAlgo methods...
209 
211 #ifdef EDM_ML_DEBUG
212  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalEEAlgo...";
213  copies_.clear();
214 #endif
215  constructLayers(parent(), cpv);
216 #ifdef EDM_ML_DEBUG
217  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << copies_.size() << " different wafer copy numbers";
218  int k(0);
219  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
220  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
221  }
222  copies_.clear();
223  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalEEAlgo construction...";
224 #endif
225 }
226 
228 #ifdef EDM_ML_DEBUG
229  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: \t\tInside Layers";
230 #endif
231  double zi(zMinBlock_);
232  int laymin(0);
233  const double tol(0.01);
234  for (unsigned int i = 0; i < layers_.size(); i++) {
235  double zo = zi + layerThick_[i];
236  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
237  int laymax = laymin + layers_[i];
238  double zz = zi;
239  double thickTot(0);
240  for (int ly = laymin; ly < laymax; ++ly) {
241  int ii = layerType_[ly];
242  int copy = copyNumber_[ii];
243  double hthick = 0.5 * thick_[ii];
244  double rinB = HGCalGeomTools::radius(zo, zFrontB_, rMinFront_, slopeB_);
245  zz += hthick;
246  thickTot += thick_[ii];
247 
248  std::string name = names_[ii] + std::to_string(copy);
249 #ifdef EDM_ML_DEBUG
250  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: Layer " << ly << ":" << ii << " Front " << zi << ", " << routF
251  << " Back " << zo << ", " << rinB << " superlayer thickness " << layerThick_[i];
252 #endif
253  DDName matName(DDSplit(materials_[ii]).first, DDSplit(materials_[ii]).second);
254  DDMaterial matter(matName);
255  DDLogicalPart glog;
256  if (layerSense_[ly] < 1) {
257  std::vector<double> pgonZ, pgonRin, pgonRout;
258  if (layerSense_[ly] == 0 || absorbMode_ == 0) {
259  double rmax = routF * cosAlpha_ - tol;
260  pgonZ.emplace_back(-hthick);
261  pgonZ.emplace_back(hthick);
262  pgonRin.emplace_back(rinB);
263  pgonRin.emplace_back(rinB);
264  pgonRout.emplace_back(rmax);
265  pgonRout.emplace_back(rmax);
266  } else {
267  HGCalGeomTools::radius(zz - hthick,
268  zz + hthick,
269  zFrontB_,
270  rMinFront_,
271  slopeB_,
272  zFrontT_,
273  rMaxFront_,
274  slopeT_,
275  -layerSense_[ly],
276  pgonZ,
277  pgonRin,
278  pgonRout);
279 #ifdef EDM_ML_DEBUG
280  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: z " << (zz - hthick) << ":" << (zz + hthick) << " with "
281  << pgonZ.size() << " palnes";
282  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec)
283  edm::LogVerbatim("HGCalGeom")
284  << "[" << isec << "] z " << pgonZ[isec] << " R " << pgonRin[isec] << ":" << pgonRout[isec];
285 #endif
286  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
287  pgonZ[isec] -= zz;
288  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol;
289  }
290  }
291  DDSolid solid =
292  DDSolidFactory::polyhedra(DDName(name, nameSpace_), sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
293  glog = DDLogicalPart(solid.ddname(), matter, solid);
294 #ifdef EDM_ML_DEBUG
295  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << solid.name() << " polyhedra of " << sectors_
296  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
297  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size()
298  << " sections and filled with " << matName << ":" << &matter;
299  for (unsigned int k = 0; k < pgonZ.size(); ++k)
300  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << pgonZ[k] << " R " << pgonRin[k] << ":" << pgonRout[k];
301 #endif
302  } else {
303  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rinB, routF, 0.0, 2._pi);
304  glog = DDLogicalPart(solid.ddname(), matter, solid);
305 #ifdef EDM_ML_DEBUG
306  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << solid.name() << " Tubs made of " << matName << ":"
307  << &matter << " of dimensions " << rinB << ", " << routF << ", " << hthick
308  << ", 0.0, 360.0 and position " << glog.name() << " number " << copy << ":"
309  << layerCenter_[copy - 1];
310 #endif
311  positionSensitive(glog, rinB, routF, zz, layerSense_[ly], layerCenter_[copy - 1], cpv);
312  }
313  DDTranslation r1(0, 0, zz);
314  DDRotation rot;
315  cpv.position(glog, module, copy, r1, rot);
316  ++copyNumber_[ii];
317 #ifdef EDM_ML_DEBUG
318  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << glog.name() << " number " << copy << " positioned in "
319  << module.name() << " at " << r1 << " with " << rot;
320 #endif
321  zz += hthick;
322  } // End of loop over layers in a block
323  zi = zo;
324  laymin = laymax;
325  if (std::abs(thickTot - layerThick_[i]) < 0.00001) {
326  } else if (thickTot > layerThick_[i]) {
327  edm::LogError("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " is smaller than " << thickTot
328  << ": thickness of all its "
329  << "components **** ERROR ****";
330  } else if (thickTot < layerThick_[i]) {
331  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " does not match with "
332  << thickTot << " of the components";
333  }
334  } // End of loop over blocks
335 }
336 
338  double rin,
339  double rout,
340  double zpos,
341  int layertype,
342  int layercenter,
343  DDCompactView& cpv) {
344  static const double sqrt3 = std::sqrt(3.0);
345  double r = 0.5 * (waferSize_ + waferSepar_);
346  double R = 2.0 * r / sqrt3;
347  double dy = 0.75 * R;
348  int N = (int)(0.5 * rout / r) + 2;
349  std::pair<double, double> xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
350 #ifdef EDM_ML_DEBUG
351  int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0), nin(0);
352  std::vector<int> ntype(6, 0);
353  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << glog.ddname() << " rin:rout " << rin << ":" << rout << " zpos "
354  << zpos << " N " << N << " for maximum u, v; r " << r << " R " << R << " dy " << dy
355  << " Shift " << xyoff.first << ":" << xyoff.second << " WaferSize "
356  << (waferSize_ + waferSepar_);
357 #endif
358  for (int u = -N; u <= N; ++u) {
359  int iu = std::abs(u);
360  for (int v = -N; v <= N; ++v) {
361  int iv = std::abs(v);
362  int nr = 2 * v;
363  int nc = -2 * u + v;
364  double xpos = xyoff.first + nc * r;
365  double ypos = xyoff.second + nr * dy;
366  std::pair<int, int> corner = HGCalGeomTools::waferCorner(xpos, ypos, r, R, rin, rout, false);
367 #ifdef EDM_ML_DEBUG
368  ++ntot;
369  if (((corner.first <= 0) && std::abs(u) < 5 && std::abs(v) < 5) || (std::abs(u) < 2 && std::abs(v) < 2)) {
370  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << glog.ddname() << " R " << rin << ":" << rout << "\n Z "
371  << zpos << " LayerType " << layertype << " u " << u << " v " << v << " with "
372  << corner.first << " corners";
373  }
374 #endif
375  if (corner.first > 0) {
376  int type = waferType_->getType(xpos, ypos, zpos);
377  int copy = type * 1000000 + iv * 100 + iu;
378  if (u < 0)
379  copy += 10000;
380  if (v < 0)
381  copy += 100000;
382 #ifdef EDM_ML_DEBUG
383  if (iu > ium)
384  ium = iu;
385  if (iv > ivm)
386  ivm = iv;
387  kount++;
388  if (copies_.count(copy) == 0)
389  copies_.insert(copy);
390 #endif
391  if (corner.first == (int)(HGCalParameters::k_CornerSize)) {
392 #ifdef EDM_ML_DEBUG
393  if (iu > iumAll)
394  iumAll = iu;
395  if (iv > ivmAll)
396  ivmAll = iv;
397  ++nin;
398 #endif
399  DDTranslation tran(xpos, ypos, 0.0);
401  if (layertype > 1)
402  type += 3;
403  DDName name = DDName(DDSplit(wafers_[type]).first, DDSplit(wafers_[type]).second);
404  cpv.position(name, glog.ddname(), copy, tran, rotation);
405 #ifdef EDM_ML_DEBUG
406  ++ntype[type];
407  edm::LogVerbatim("HGCalGeom") << " DDHGCalEEAlgo: " << name << " number " << copy << " positioned in "
408  << glog.ddname() << " at " << tran << " with " << rotation;
409 #endif
410  }
411  }
412  }
413  }
414 #ifdef EDM_ML_DEBUG
415  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: Maximum # of u " << ium << ":" << iumAll << " # of v " << ivm << ":"
416  << ivmAll << " and " << nin << ":" << kount << ":" << ntot << " wafers (" << ntype[0]
417  << ":" << ntype[1] << ":" << ntype[2] << ":" << ntype[3] << ":" << ntype[4] << ":"
418  << ntype[5] << ") for " << glog.ddname() << " R " << rin << ":" << rout;
419 #endif
420 }
421 
422 DEFINE_EDM_PLUGIN(DDAlgorithmFactory, DDHGCalEEAlgo, "hgcal:DDHGCalEEAlgo");
PluginFactory.h
HGCalGeomTools::waferCorner
static std::pair< int32_t, int32_t > waferCorner(double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug=false)
Definition: HGCalGeomTools.cc:219
DDCurrentNamespace.h
DDHGCalEEAlgo::layerThick_
std::vector< double > layerThick_
Definition: DDHGCalEEAlgo.cc:64
mps_fire.i
i
Definition: mps_fire.py:355
geometryCSVtoXML.zz
zz
Definition: geometryCSVtoXML.py:19
MessageLogger.h
DDHGCalEEAlgo::slopeT_
std::vector< double > slopeT_
Definition: DDHGCalEEAlgo.cc:83
DDHGCalEEAlgo::layerCenter_
std::vector< int > layerCenter_
Definition: DDHGCalEEAlgo.cc:67
DDHGCalEEAlgo::waferSize_
double waferSize_
Definition: DDHGCalEEAlgo.cc:77
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
DDHGCalEEAlgo::rMinFront_
std::vector< double > rMinFront_
Definition: DDHGCalEEAlgo.cc:82
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
DDHGCalEEAlgo::geomTools_
HGCalGeomTools geomTools_
Definition: DDHGCalEEAlgo.cc:55
DDHGCalEEAlgo::waferSepar_
double waferSepar_
Definition: DDHGCalEEAlgo.cc:78
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
DDSplit.h
HGCalParameters::k_CornerSize
static constexpr uint32_t k_CornerSize
Definition: HGCalParameters.h:38
distTCMET_cfi.corner
corner
Definition: distTCMET_cfi.py:38
nin
int nin
Definition: CascadeWrapper.h:114
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
DDHGCalEEAlgo::layerType_
std::vector< int > layerType_
Definition: DDHGCalEEAlgo.cc:65
DDHGCalEEAlgo::constructLayers
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Definition: DDHGCalEEAlgo.cc:227
geant_units::operators
Definition: GeantUnits.h:18
findQualityFiles.v
v
Definition: findQualityFiles.py:179
dbl_to_int
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
Definition: DDutils.h:7
DDHGCalEEAlgo::DDHGCalEEAlgo
DDHGCalEEAlgo()
Definition: DDHGCalEEAlgo.cc:91
dqmdumpme.first
first
Definition: dqmdumpme.py:55
DDHGCalEEAlgo::positionSensitive
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layercenter, DDCompactView &cpv)
Definition: DDHGCalEEAlgo.cc:337
DDHGCalEEAlgo::materials_
std::vector< std::string > materials_
Definition: DDHGCalEEAlgo.cc:59
DDHGCalEEAlgo::waferType_
std::unique_ptr< HGCalWaferType > waferType_
Definition: DDHGCalEEAlgo.cc:56
DDHGCalEEAlgo::layers_
std::vector< int > layers_
Definition: DDHGCalEEAlgo.cc:63
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
DDHGCalEEAlgo::rad200to300_
std::vector< double > rad200to300_
Definition: DDHGCalEEAlgo.cc:72
DDHGCalEEAlgo::thick_
std::vector< double > thick_
Definition: DDHGCalEEAlgo.cc:61
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
DDSolidFactory::polyhedra
static DDSolid polyhedra(const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polyhedra (refere to Geant3 or Geant4 documentation)
Definition: DDSolid.cc:551
DDHGCalEEAlgo::copyNumber_
std::vector< int > copyNumber_
Definition: DDHGCalEEAlgo.cc:62
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
DDBase::name
const N & name() const
Definition: DDBase.h:59
HGCalWaferType.h
N
#define N
Definition: blowfish.cc:9
DDHGCalEEAlgo::layerSense_
std::vector< int > layerSense_
Definition: DDHGCalEEAlgo.cc:66
DDSolidFactory::tubs
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
Definition: DDSolid.cc:653
DDSolid.h
DDHGCalEEAlgo::cosAlpha_
double cosAlpha_
Definition: DDHGCalEEAlgo.cc:88
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
DDHGCalEEAlgo::fracAreaMin_
double fracAreaMin_
Definition: DDHGCalEEAlgo.cc:76
DDHGCalEEAlgo::zMinRadPar_
double zMinRadPar_
Definition: DDHGCalEEAlgo.cc:73
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogWarning
Definition: MessageLogger.h:141
DDHGCalEEAlgo::choiceType_
int choiceType_
Definition: DDHGCalEEAlgo.cc:74
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
edm::LogError
Definition: MessageLogger.h:183
EgHLTOffHistBins_cfi.nr
nr
Definition: EgHLTOffHistBins_cfi.py:4
DDBase::ddname
const N & ddname() const
Definition: DDBase.h:61
DDHGCalEEAlgo::sectors_
int sectors_
Definition: DDHGCalEEAlgo.cc:79
GeantUnits.h
edmplugin::PluginFactory
Definition: PluginFactory.h:34
DDHGCalEEAlgo::nCutRadPar_
int nCutRadPar_
Definition: DDHGCalEEAlgo.cc:75
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDTypes.h
DDHGCalEEAlgo::rad100to200_
std::vector< double > rad100to200_
Definition: DDHGCalEEAlgo.cc:71
DDMaterial.h
DDHGCalEEAlgo::nameSpace_
std::string nameSpace_
Definition: DDHGCalEEAlgo.cc:86
createfilelist.int
int
Definition: createfilelist.py:10
DDutils.h
edm::LogVerbatim
Definition: MessageLogger.h:297
HGCalGeomTools
Definition: HGCalGeomTools.h:8
PVValHelper::dy
Definition: PVValidationHelpers.h:49
DDHGCalEEAlgo::zMinBlock_
double zMinBlock_
Definition: DDHGCalEEAlgo.cc:70
DDHGCalEEAlgo::rMaxFront_
std::vector< double > rMaxFront_
Definition: DDHGCalEEAlgo.cc:85
DDLogicalPart.h
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:28
module
Definition: vlib.h:198
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DDHGCalEEAlgo::initialize
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Definition: DDHGCalEEAlgo.cc:99
DDHGCalEEAlgo::slopeB_
std::vector< double > slopeB_
Definition: DDHGCalEEAlgo.cc:80
ReadMapType< double >
HGCalGeomTools.h
HGCalGeomTools::radius
static void radius(double zf, double zb, std::vector< double > const &zFront1, std::vector< double > const &rFront1, std::vector< double > const &slope1, std::vector< double > const &zFront2, std::vector< double > const &rFront2, std::vector< double > const &slope2, int flag, std::vector< double > &zz, std::vector< double > &rin, std::vector< double > &rout)
Definition: HGCalGeomTools.cc:11
DDAlgorithm.h
type
type
Definition: HCALResponse.h:21
DDHGCalEEAlgo::firstLayer_
int firstLayer_
Definition: DDHGCalEEAlgo.cc:68
DDHGCalGeom::constructLayers
void constructLayers(const cms::DDNamespace &ns, const std::vector< std::string > &wafers, const std::vector< std::string > &covers, const std::vector< int > &layerType, const std::vector< int > &layerSense, const std::vector< int > &maxModule, const std::vector< std::string > &names, const std::vector< std::string > &materials, std::vector< int > &copyNumber, const std::vector< double > &layerThick, const double &absorbW, const double &absorbH, const double &waferTot, const double &rMax, const double &rMaxFine, std::unordered_set< int > &copies, int firstLayer, int lastLayer, double zFront, double totalWidth, bool ignoreCenter, dd4hep::Volume &module)
Definition: DDHGCalTBModuleX.cc:21
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
DDCurrentNamespace::ns
static std::string & ns()
Definition: DDCurrentNamespace.cc:3
DDHGCalEEAlgo::zFrontT_
std::vector< double > zFrontT_
Definition: DDHGCalEEAlgo.cc:84
DDHGCalEEAlgo
Definition: DDHGCalEEAlgo.cc:31
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
DDHGCalEEAlgo::copies_
std::unordered_set< int > copies_
Definition: DDHGCalEEAlgo.cc:87
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DDSolid
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
DDRotation
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
DDHGCalEEAlgo::wafers_
std::vector< std::string > wafers_
Definition: DDHGCalEEAlgo.cc:58
initialize
static AlgebraicMatrix initialize()
Definition: BeamSpotTransientTrackingRecHit.cc:24
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
DDHGCalEEAlgo::zFrontB_
std::vector< double > zFrontB_
Definition: DDHGCalEEAlgo.cc:81
DDHGCalEEAlgo::absorbMode_
int absorbMode_
Definition: DDHGCalEEAlgo.cc:69
DDAlgorithmFactory.h
dttmaxenums::R
Definition: DTTMax.h:29
HGCalParameters.h
class-composition.parent
parent
Definition: class-composition.py:88
cuy.ii
ii
Definition: cuy.py:590
DDHGCalEEAlgo::~DDHGCalEEAlgo
~DDHGCalEEAlgo() override
Definition: DDHGCalEEAlgo.cc:97
DDSplit
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
Definition: DDSplit.cc:3
DDCompactView::position
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string &copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
Definition: DDCompactView.cc:66
DDHGCalEEAlgo::execute
void execute(DDCompactView &cpv) override
Definition: DDHGCalEEAlgo.cc:210
DDHGCalEEAlgo::names_
std::vector< std::string > names_
Definition: DDHGCalEEAlgo.cc:60