CMS 3D CMS Logo

DDHGCalEEFileAlgo.cc
Go to the documentation of this file.
1 // File: DDHGCalEEFileAlgo.cc
3 // Description: Geometry factory class for HGCal (EE and HESil) using
4 // information from the file
6 
25 
26 #include <cmath>
27 #include <memory>
28 #include <string>
29 #include <unordered_set>
30 #include <vector>
31 
32 //#define EDM_ML_DEBUG
33 using namespace angle_units::operators;
34 
35 class DDHGCalEEFileAlgo : public DDAlgorithm {
36 public:
38 
39  void initialize(const DDNumericArguments& nArgs,
40  const DDVectorArguments& vArgs,
41  const DDMapArguments& mArgs,
42  const DDStringArguments& sArgs,
43  const DDStringVectorArguments& vsArgs) override;
44  void execute(DDCompactView& cpv) override;
45 
46 protected:
47  void constructLayers(const DDLogicalPart&, DDCompactView& cpv);
48  void positionSensitive(
49  const DDLogicalPart& glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView& cpv);
50 
51 private:
53 
54  static constexpr double tol1_ = 0.01;
55  static constexpr double tol2_ = 0.00001;
56 
57  std::vector<std::string> wafers_; // Wafers
58  std::vector<std::string> materials_; // Materials
59  std::vector<std::string> names_; // Names
60  std::vector<double> thick_; // Thickness of the material
61  std::vector<int> copyNumber_; // Initial copy numbers
62  std::vector<int> layers_; // Number of layers in a section
63  std::vector<double> layerThick_; // Thickness of each section
64  std::vector<int> layerType_; // Type of the layer
65  std::vector<int> layerSense_; // Content of a layer (sensitive?)
66  std::vector<int> layerCenter_; // Centering of the wafers
67  int firstLayer_; // Copy # of the first sensitive layer
68  int absorbMode_; // Absorber mode
69  int sensitiveMode_; // Sensitive mode
70  double zMinBlock_; // Starting z-value of the block
71  std::vector<int> waferIndex_; // Wafer index for the types
72  std::vector<int> waferProperty_; // Wafer property
73  double waferSize_; // Width of the wafer
74  double waferSepar_; // Sensor separation
75  int sectors_; // Sectors
76  std::vector<double> slopeB_; // Slope at the lower R
77  std::vector<double> zFrontB_; // Starting Z values for the slopes
78  std::vector<double> rMinFront_; // Corresponding rMin's
79  std::vector<double> slopeT_; // Slopes at the larger R
80  std::vector<double> zFrontT_; // Starting Z values for the slopes
81  std::vector<double> rMaxFront_; // Corresponding rMax's
82  std::string nameSpace_; // Namespace of this and ALL sub-parts
83  std::unordered_set<int> copies_; // List of copy #'s
84  double alpha_, cosAlpha_;
85 };
86 
88 #ifdef EDM_ML_DEBUG
89  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Creating an instance";
90 #endif
91 }
92 
94  const DDVectorArguments& vArgs,
95  const DDMapArguments&,
96  const DDStringArguments& sArgs,
97  const DDStringVectorArguments& vsArgs) {
98  wafers_ = vsArgs["WaferNames"];
99 #ifdef EDM_ML_DEBUG
100  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << wafers_.size() << " wafers";
101  for (unsigned int i = 0; i < wafers_.size(); ++i)
102  edm::LogVerbatim("HGCalGeom") << "Wafer[" << i << "] " << wafers_[i];
103 #endif
104  materials_ = vsArgs["MaterialNames"];
105  names_ = vsArgs["VolumeNames"];
106  thick_ = vArgs["Thickness"];
107  copyNumber_.resize(materials_.size(), 1);
108 #ifdef EDM_ML_DEBUG
109  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << materials_.size() << " types of volumes";
110  for (unsigned int i = 0; i < names_.size(); ++i)
111  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness " << thick_[i]
112  << " filled with " << materials_[i] << " first copy number " << copyNumber_[i];
113 #endif
114  layers_ = dbl_to_int(vArgs["Layers"]);
115  layerThick_ = vArgs["LayerThick"];
116 #ifdef EDM_ML_DEBUG
117  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
118  for (unsigned int i = 0; i < layers_.size(); ++i)
119  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << layerThick_[i] << " with " << layers_[i]
120  << " layers";
121 #endif
122  layerType_ = dbl_to_int(vArgs["LayerType"]);
123  layerSense_ = dbl_to_int(vArgs["LayerSense"]);
124  firstLayer_ = (int)(nArgs["FirstLayer"]);
125  absorbMode_ = (int)(nArgs["AbsorberMode"]);
126  sensitiveMode_ = (int)(nArgs["SensitiveMode"]);
127 #ifdef EDM_ML_DEBUG
128  edm::LogVerbatim("HGCalGeom") << "First Layer " << firstLayer_ << " and "
129  << "Absober:Sensitive mode " << absorbMode_ << ":" << sensitiveMode_;
130 #endif
131  layerCenter_ = dbl_to_int(vArgs["LayerCenter"]);
132 #ifdef EDM_ML_DEBUG
133  for (unsigned int i = 0; i < layerCenter_.size(); ++i)
134  edm::LogVerbatim("HGCalGeom") << "LayerCenter [" << i << "] " << layerCenter_[i];
135 #endif
136  if (firstLayer_ > 0) {
137  for (unsigned int i = 0; i < layerType_.size(); ++i) {
138  if (layerSense_[i] > 0) {
139  int ii = layerType_[i];
140  copyNumber_[ii] = firstLayer_;
141 #ifdef EDM_ML_DEBUG
142  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
143  << materials_[ii] << " changed to " << copyNumber_[ii];
144 #endif
145  break;
146  }
147  }
148  } else {
149  firstLayer_ = 1;
150  }
151 #ifdef EDM_ML_DEBUG
152  edm::LogVerbatim("HGCalGeom") << "There are " << layerType_.size() << " layers";
153  for (unsigned int i = 0; i < layerType_.size(); ++i)
154  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerType_[i] << " sensitive class "
155  << layerSense_[i];
156 #endif
157  zMinBlock_ = nArgs["zMinBlock"];
158  waferSize_ = nArgs["waferSize"];
159  waferSepar_ = nArgs["SensorSeparation"];
160  sectors_ = (int)(nArgs["Sectors"]);
161  alpha_ = (1._pi) / sectors_;
162  cosAlpha_ = cos(alpha_);
163 #ifdef EDM_ML_DEBUG
164  edm::LogVerbatim("HGCalGeom") << "zStart " << zMinBlock_ << " wafer width " << waferSize_ << " separations "
165  << waferSepar_ << " sectors " << sectors_ << ":" << convertRadToDeg(alpha_) << ":"
166  << cosAlpha_;
167 #endif
168  waferIndex_ = dbl_to_int(vArgs["WaferIndex"]);
169  waferProperty_ = dbl_to_int(vArgs["WaferProperties"]);
170 #ifdef EDM_ML_DEBUG
171  edm::LogVerbatim("HGCalGeom") << "waferProperties with " << waferIndex_.size() << " entries";
172  for (unsigned int k = 0; k < waferIndex_.size(); ++k)
173  edm::LogVerbatim("HGCalGeom") << "[" << k << "] " << waferIndex_[k] << " ("
174  << HGCalWaferIndex::waferLayer(waferIndex_[k]) << ", "
175  << HGCalWaferIndex::waferU(waferIndex_[k]) << ", "
176  << HGCalWaferIndex::waferV(waferIndex_[k]) << ") : ("
177  << HGCalProperty::waferThick(waferProperty_[k]) << ":"
178  << HGCalProperty::waferPartial(waferProperty_[k]) << ":"
179  << HGCalProperty::waferOrient(waferProperty_[k]) << ")";
180 #endif
181  slopeB_ = vArgs["SlopeBottom"];
182  zFrontB_ = vArgs["ZFrontBottom"];
183  rMinFront_ = vArgs["RMinFront"];
184  slopeT_ = vArgs["SlopeTop"];
185  zFrontT_ = vArgs["ZFrontTop"];
186  rMaxFront_ = vArgs["RMaxFront"];
187 #ifdef EDM_ML_DEBUG
188  for (unsigned int i = 0; i < slopeB_.size(); ++i)
189  edm::LogVerbatim("HGCalGeom") << "Bottom Block [" << i << "] Zmin " << zFrontB_[i] << " Rmin " << rMinFront_[i]
190  << " Slope " << slopeB_[i];
191  for (unsigned int i = 0; i < slopeT_.size(); ++i)
192  edm::LogVerbatim("HGCalGeom") << "Top Block [" << i << "] Zmin " << zFrontT_[i] << " Rmax " << rMaxFront_[i]
193  << " Slope " << slopeT_[i];
194 #endif
195  nameSpace_ = DDCurrentNamespace::ns();
196 #ifdef EDM_ML_DEBUG
197  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: NameSpace " << nameSpace_ << ":";
198 #endif
199 }
200 
202 // DDHGCalEEFileAlgo methods...
204 
206 #ifdef EDM_ML_DEBUG
207  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalEEFileAlgo...";
208  copies_.clear();
209 #endif
210  constructLayers(parent(), cpv);
211 #ifdef EDM_ML_DEBUG
212  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << copies_.size() << " different wafer copy numbers";
213  int k(0);
214  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
215  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
216  }
217  copies_.clear();
218  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalEEFileAlgo construction...";
219 #endif
220 }
221 
223  double zi(zMinBlock_);
224  int laymin(0);
225  for (unsigned int i = 0; i < layers_.size(); i++) {
226  double zo = zi + layerThick_[i];
227  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
228  int laymax = laymin + layers_[i];
229  double zz = zi;
230  double thickTot(0);
231  for (int ly = laymin; ly < laymax; ++ly) {
232  int ii = layerType_[ly];
233  int copy = copyNumber_[ii];
234  double hthick = 0.5 * thick_[ii];
235  double rinB = HGCalGeomTools::radius(zo - tol1_, zFrontB_, rMinFront_, slopeB_);
236  zz += hthick;
237  thickTot += thick_[ii];
238 
239  std::string name = names_[ii] + std::to_string(copy);
240 #ifdef EDM_ML_DEBUG
241  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Layer " << ly << ":" << ii << " Front " << zi << ", "
242  << routF << " Back " << zo << ", " << rinB << " superlayer thickness "
243  << layerThick_[i];
244 #endif
245  DDName matName(DDSplit(materials_[ii]).first, DDSplit(materials_[ii]).second);
246  DDMaterial matter(matName);
247  DDLogicalPart glog;
248  if (layerSense_[ly] < 1) {
249  std::vector<double> pgonZ, pgonRin, pgonRout;
250  double rmax = routF * cosAlpha_ - tol1_;
251  HGCalGeomTools::radius(zz - hthick,
252  zz + hthick,
253  zFrontB_,
254  rMinFront_,
255  slopeB_,
256  zFrontT_,
257  rMaxFront_,
258  slopeT_,
259  -layerSense_[ly],
260  pgonZ,
261  pgonRin,
262  pgonRout);
263  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
264  pgonZ[isec] -= zz;
265  if (layerSense_[ly] == 0 || absorbMode_ == 0)
266  pgonRout[isec] = rmax;
267  else
268  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1_;
269  }
270  DDSolid solid =
271  DDSolidFactory::polyhedra(DDName(name, nameSpace_), sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
272  glog = DDLogicalPart(solid.ddname(), matter, solid);
273 #ifdef EDM_ML_DEBUG
274  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << solid.name() << " polyhedra of " << sectors_
275  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
276  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size()
277  << " sections and filled with " << matName;
278  for (unsigned int k = 0; k < pgonZ.size(); ++k)
279  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << pgonZ[k] << " R " << pgonRin[k] << ":" << pgonRout[k];
280 #endif
281  } else {
282  double rins =
283  (sensitiveMode_ < 1) ? rinB : HGCalGeomTools::radius(zz + hthick - tol1_, zFrontB_, rMinFront_, slopeB_);
284  double routs =
285  (sensitiveMode_ < 1) ? routF : HGCalGeomTools::radius(zz - hthick, zFrontT_, rMaxFront_, slopeT_);
286  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rins, routs, 0.0, 2._pi);
287  glog = DDLogicalPart(solid.ddname(), matter, solid);
288 #ifdef EDM_ML_DEBUG
289  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << solid.name() << " Tubs made of " << matName
290  << " of dimensions " << rinB << ":" << rins << ", " << routF << ":" << routs
291  << ", " << hthick << ", 0.0, 360.0 and position " << glog.name() << " number "
292  << copy << ":" << layerCenter_[copy - firstLayer_];
293 #endif
294  positionSensitive(glog, rins, routs, zz, layerSense_[ly], (copy - firstLayer_), cpv);
295  }
296  DDTranslation r1(0, 0, zz);
297  DDRotation rot;
298  cpv.position(glog, module, copy, r1, rot);
299  ++copyNumber_[ii];
300 #ifdef EDM_ML_DEBUG
301  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.name() << " number " << copy << " positioned in "
302  << module.name() << " at " << r1 << " with no rotation";
303 #endif
304  zz += hthick;
305  } // End of loop over layers in a block
306  zi = zo;
307  laymin = laymax;
308  // Make consistency check of all the partitions of the block
309  if (std::abs(thickTot - layerThick_[i]) >= tol2_) {
310  if (thickTot > layerThick_[i]) {
311  edm::LogError("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " is smaller than " << thickTot
312  << ": thickness of all its components **** ERROR ****";
313  } else {
314  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " does not match with "
315  << thickTot << " of the components";
316  }
317  }
318  } // End of loop over blocks
319 }
320 
322  const DDLogicalPart& glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView& cpv) {
323  static const double sqrt3 = std::sqrt(3.0);
324  int layercenter = layerCenter_[layer];
325  double r = 0.5 * (waferSize_ + waferSepar_);
326  double R = 2.0 * r / sqrt3;
327  double dy = 0.75 * R;
328  int N = (int)(0.5 * rout / r) + 2;
329  const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
330 #ifdef EDM_ML_DEBUG
331  int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0), nin(0);
332  std::vector<int> ntype(6, 0);
333  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.ddname() << " rin:rout " << rin << ":" << rout
334  << " zpos " << zpos << " N " << N << " for maximum u, v; r " << r << " R " << R
335  << " dy " << dy << " Shift " << xyoff.first << ":" << xyoff.second << " WaferSize "
336  << (waferSize_ + waferSepar_);
337 #endif
338  for (int u = -N; u <= N; ++u) {
339  for (int v = -N; v <= N; ++v) {
340 #ifdef EDM_ML_DEBUG
341  int iu = std::abs(u);
342  int iv = std::abs(v);
343 #endif
344  int nr = 2 * v;
345  int nc = -2 * u + v;
346  double xpos = xyoff.first + nc * r;
347  double ypos = xyoff.second + nr * dy;
348  const auto& corner = HGCalGeomTools::waferCorner(xpos, ypos, r, R, rin, rout, false);
349 #ifdef EDM_ML_DEBUG
350  ++ntot;
351  if (((corner.first <= 0) && std::abs(u) < 5 && std::abs(v) < 5) || (std::abs(u) < 2 && std::abs(v) < 2)) {
352  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.ddname() << " R " << rin << ":" << rout
353  << "\n Z " << zpos << " LayerType " << layertype << " u " << u << " v " << v
354  << " with " << corner.first << " corners";
355  }
356 #endif
357  int indx = HGCalWaferIndex::waferIndex((layer + firstLayer_), u, v, false);
358  int type = HGCalWaferType::getType(indx, waferIndex_, waferProperty_);
359  if (corner.first > 0 && type >= 0) {
360  int copy = HGCalTypes::packTypeUV(type, u, v);
361  if (layertype > 1)
362  type += 3;
363 #ifdef EDM_ML_DEBUG
364  edm::LogVerbatim("HGCalGeom") << " DDHGCalEEFileAlgo: " << wafers_[type] << " number " << copy << " type "
365  << type << " layer:u:v:indx " << (layer + firstLayer_) << ":" << u << ":" << v
366  << ":" << indx;
367  if (iu > ium)
368  ium = iu;
369  if (iv > ivm)
370  ivm = iv;
371  kount++;
372  if (copies_.count(copy) == 0)
373  copies_.insert(copy);
374 #endif
375  if (corner.first == (int)(HGCalParameters::k_CornerSize)) {
376 #ifdef EDM_ML_DEBUG
377  if (iu > iumAll)
378  iumAll = iu;
379  if (iv > ivmAll)
380  ivmAll = iv;
381  ++nin;
382 #endif
383  DDTranslation tran(xpos, ypos, 0.0);
385  DDName name = DDName(DDSplit(wafers_[type]).first, DDSplit(wafers_[type]).second);
386  cpv.position(name, glog.ddname(), copy, tran, rotation);
387 #ifdef EDM_ML_DEBUG
388  ++ntype[type];
389  edm::LogVerbatim("HGCalGeom") << " DDHGCalEEFileAlgo: " << name << " number " << copy << " type " << layertype
390  << ":" << type << " positioned in " << glog.ddname() << " at " << tran
391  << " with no rotation";
392 #endif
393  }
394  }
395  }
396  }
397 #ifdef EDM_ML_DEBUG
398  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Maximum # of u " << ium << ":" << iumAll << " # of v " << ivm
399  << ":" << ivmAll << " and " << nin << ":" << kount << ":" << ntot << " wafers ("
400  << ntype[0] << ":" << ntype[1] << ":" << ntype[2] << ":" << ntype[3] << ":" << ntype[4]
401  << ":" << ntype[5] << ") for " << glog.ddname() << " R " << rin << ":" << rout;
402 #endif
403 }
404 
405 DEFINE_EDM_PLUGIN(DDAlgorithmFactory, DDHGCalEEFileAlgo, "hgcal:DDHGCalEEFileAlgo");
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Log< level::Info, true > LogVerbatim
static AlgebraicMatrix initialize()
static int getType(int index, const HGCalParameters::waferInfo_map &wafers)
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)
std::vector< int > layerSense_
int32_t *__restrict__ iv
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string &copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
int32_t waferU(const int32_t index)
int32_t waferLayer(const int32_t index)
std::vector< std::string > wafers_
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
std::vector< double > zFrontT_
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:17
std::string to_string(const V &value)
Definition: OMSAccess.h:71
static std::string & ns()
void execute(DDCompactView &cpv) override
Log< level::Error, false > LogError
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
std::vector< std::string > materials_
std::vector< int > copyNumber_
int32_t waferOrient(const int32_t property)
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
std::vector< double > zFrontB_
static constexpr uint32_t k_CornerSize
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
std::vector< int > waferIndex_
U second(std::pair< T, U > const &p)
HGCalGeomTools geomTools_
static std::pair< int32_t, int32_t > waferCorner(double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug=false)
std::unordered_set< int > copies_
T sqrt(T t)
Definition: SSEVec.h:19
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
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)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93
std::vector< double > slopeT_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
Definition: DDSolid.cc:667
int32_t waferThick(const int32_t property)
std::vector< std::string > names_
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
std::vector< int > layerCenter_
ii
Definition: cuy.py:589
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
const N & name() const
Definition: DDBase.h:59
#define N
Definition: blowfish.cc:9
std::vector< double > thick_
const N & ddname() const
Definition: DDBase.h:61
std::vector< double > slopeB_
std::vector< double > rMaxFront_
std::vector< double > rMinFront_
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
int32_t waferPartial(const int32_t property)
int32_t waferV(const int32_t index)
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< int > layerType_
Log< level::Warning, false > LogWarning
std::vector< double > layerThick_
std::vector< int > waferProperty_
std::vector< int > layers_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = &#39;:&#39;
Definition: DDSplit.cc:3
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
__shared__ uint32_t ntot
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:565