CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
DDHGCalEEFileAlgo Class Reference
Inheritance diagram for DDHGCalEEFileAlgo:

Public Member Functions

 DDHGCalEEFileAlgo ()
 
void execute (DDCompactView &cpv) override
 
void initialize (const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
 

Protected Member Functions

void constructLayers (const DDLogicalPart &, DDCompactView &cpv)
 
void positionSensitive (const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
 

Private Attributes

int absorbMode_
 
double alpha_
 
std::unordered_set< int > copies_
 
std::vector< int > copyNumber_
 
double cosAlpha_
 
int firstLayer_
 
HGCalGeomTools geomTools_
 
std::vector< int > layerCenter_
 
std::vector< int > layers_
 
std::vector< int > layerSense_
 
std::vector< double > layerThick_
 
std::vector< int > layerType_
 
std::vector< std::string > materials_
 
std::vector< std::string > names_
 
std::string nameSpace_
 
std::vector< double > rMaxFront_
 
std::vector< double > rMinFront_
 
int sectors_
 
int sensitiveMode_
 
std::vector< double > slopeB_
 
std::vector< double > slopeT_
 
std::vector< double > thick_
 
std::vector< int > waferIndex_
 
std::vector< int > waferProperty_
 
std::vector< std::string > wafers_
 
double waferSepar_
 
double waferSize_
 
std::vector< double > zFrontB_
 
std::vector< double > zFrontT_
 
double zMinBlock_
 

Static Private Attributes

static constexpr double tol1_ = 0.01
 
static constexpr double tol2_ = 0.00001
 

Detailed Description

Definition at line 35 of file DDHGCalEEFileAlgo.cc.

Constructor & Destructor Documentation

◆ DDHGCalEEFileAlgo()

DDHGCalEEFileAlgo::DDHGCalEEFileAlgo ( )

Definition at line 87 of file DDHGCalEEFileAlgo.cc.

87  {
88 #ifdef EDM_ML_DEBUG
89  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Creating an instance";
90 #endif
91 }
Log< level::Info, true > LogVerbatim

Member Function Documentation

◆ constructLayers()

void DDHGCalEEFileAlgo::constructLayers ( const DDLogicalPart module,
DDCompactView cpv 
)
protected

Definition at line 222 of file DDHGCalEEFileAlgo.cc.

References funct::abs(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), dqmdumpme::first, mps_fire::i, cuy::ii, dqmdumpme::k, callgraph::module, Skims_PA_cff::name, DDBase< N, C >::name(), DDSolidFactory::polyhedra(), DDCompactView::position(), HGCalGeomTools::radius(), makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, cond::impl::to_string(), DDSolidFactory::tubs(), and geometryCSVtoXML::zz.

222  {
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 
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
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 =
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 }
Log< level::Info, true > LogVerbatim
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_
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
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
std::vector< double > zFrontT_
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:17
std::string to_string(const V &value)
Definition: OMSAccess.h:71
Log< level::Error, false > LogError
std::vector< std::string > materials_
std::vector< int > copyNumber_
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
std::vector< double > zFrontB_
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
U second(std::pair< T, U > const &p)
static constexpr double tol2_
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
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
std::vector< std::string > names_
std::vector< int > layerCenter_
ii
Definition: cuy.py:589
const N & name() const
Definition: DDBase.h:59
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)
static constexpr double tol1_
std::vector< int > layerType_
Log< level::Warning, false > LogWarning
std::vector< double > layerThick_
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
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

◆ execute()

void DDHGCalEEFileAlgo::execute ( DDCompactView cpv)
override

Definition at line 205 of file DDHGCalEEFileAlgo.cc.

References DDHGCalGeom::constructLayers(), dqmdumpme::k, and class-composition::parent.

205  {
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 }
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Log< level::Info, true > LogVerbatim
std::unordered_set< int > copies_

◆ initialize()

void DDHGCalEEFileAlgo::initialize ( const DDNumericArguments nArgs,
const DDVectorArguments vArgs,
const DDMapArguments mArgs,
const DDStringArguments sArgs,
const DDStringVectorArguments vsArgs 
)
override

Definition at line 93 of file DDHGCalEEFileAlgo.cc.

References angle_units::operators::convertRadToDeg(), funct::cos(), dbl_to_int(), mps_fire::i, cuy::ii, createfilelist::int, dqmdumpme::k, DDCurrentNamespace::ns(), HGCalWaferIndex::waferLayer(), HGCalProperty::waferOrient(), HGCalProperty::waferPartial(), HGCalProperty::waferThick(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().

97  {
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];
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] << " ("
176  << HGCalWaferIndex::waferV(waferIndex_[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
196 #ifdef EDM_ML_DEBUG
197  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: NameSpace " << nameSpace_ << ":";
198 #endif
199 }
Log< level::Info, true > LogVerbatim
std::vector< int > layerSense_
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_
static std::string & ns()
std::vector< std::string > materials_
std::vector< int > copyNumber_
int32_t waferOrient(const int32_t property)
std::vector< double > zFrontB_
std::vector< int > waferIndex_
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
std::vector< double > slopeT_
int32_t waferThick(const int32_t property)
std::vector< std::string > names_
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
std::vector< double > thick_
std::vector< double > slopeB_
std::vector< double > rMaxFront_
std::vector< double > rMinFront_
int32_t waferPartial(const int32_t property)
int32_t waferV(const int32_t index)
std::vector< int > layerType_
std::vector< double > layerThick_
std::vector< int > waferProperty_
std::vector< int > layers_

◆ positionSensitive()

void DDHGCalEEFileAlgo::positionSensitive ( const DDLogicalPart glog,
double  rin,
double  rout,
double  zpos,
int  layertype,
int  layer,
DDCompactView cpv 
)
protected

Definition at line 321 of file DDHGCalEEFileAlgo.cc.

References funct::abs(), filterCSVwithJSON::copy, TCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dy, dqmdumpme::first, HGCalWaferType::getType(), createfilelist::int, gpuVertexFinder::iv, HGCalParameters::k_CornerSize, N, Skims_PA_cff::name, EgHLTOffHistBins_cfi::nr, gpuPixelDoublets::ntot, HGCalTypes::packTypeUV(), DDCompactView::position(), dttmaxenums::R, idealTransformation::rotation, edm::second(), mathSSE::sqrt(), findQualityFiles::v, HGCalGeomTools::waferCorner(), and HGCalWaferIndex::waferIndex().

322  {
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);
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);
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 }
Log< level::Info, true > LogVerbatim
static int getType(int index, const HGCalParameters::waferInfo_map &wafers)
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)
std::vector< std::string > wafers_
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:17
std::pair< double, double > shiftXY(int waferPosition, double waferSize) const
static constexpr uint32_t k_CornerSize
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
std::vector< int > waferIndex_
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
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
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
std::vector< int > layerCenter_
#define N
Definition: blowfish.cc:9
const N & ddname() const
Definition: DDBase.h:61
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
std::vector< int > waferProperty_
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

Member Data Documentation

◆ absorbMode_

int DDHGCalEEFileAlgo::absorbMode_
private

Definition at line 68 of file DDHGCalEEFileAlgo.cc.

◆ alpha_

double DDHGCalEEFileAlgo::alpha_
private

Definition at line 84 of file DDHGCalEEFileAlgo.cc.

◆ copies_

std::unordered_set<int> DDHGCalEEFileAlgo::copies_
private

Definition at line 83 of file DDHGCalEEFileAlgo.cc.

◆ copyNumber_

std::vector<int> DDHGCalEEFileAlgo::copyNumber_
private

Definition at line 61 of file DDHGCalEEFileAlgo.cc.

◆ cosAlpha_

double DDHGCalEEFileAlgo::cosAlpha_
private

Definition at line 84 of file DDHGCalEEFileAlgo.cc.

◆ firstLayer_

int DDHGCalEEFileAlgo::firstLayer_
private

Definition at line 67 of file DDHGCalEEFileAlgo.cc.

◆ geomTools_

HGCalGeomTools DDHGCalEEFileAlgo::geomTools_
private

Definition at line 52 of file DDHGCalEEFileAlgo.cc.

◆ layerCenter_

std::vector<int> DDHGCalEEFileAlgo::layerCenter_
private

Definition at line 66 of file DDHGCalEEFileAlgo.cc.

◆ layers_

std::vector<int> DDHGCalEEFileAlgo::layers_
private

Definition at line 62 of file DDHGCalEEFileAlgo.cc.

◆ layerSense_

std::vector<int> DDHGCalEEFileAlgo::layerSense_
private

Definition at line 65 of file DDHGCalEEFileAlgo.cc.

◆ layerThick_

std::vector<double> DDHGCalEEFileAlgo::layerThick_
private

Definition at line 63 of file DDHGCalEEFileAlgo.cc.

◆ layerType_

std::vector<int> DDHGCalEEFileAlgo::layerType_
private

Definition at line 64 of file DDHGCalEEFileAlgo.cc.

◆ materials_

std::vector<std::string> DDHGCalEEFileAlgo::materials_
private

Definition at line 58 of file DDHGCalEEFileAlgo.cc.

◆ names_

std::vector<std::string> DDHGCalEEFileAlgo::names_
private

Definition at line 59 of file DDHGCalEEFileAlgo.cc.

◆ nameSpace_

std::string DDHGCalEEFileAlgo::nameSpace_
private

Definition at line 82 of file DDHGCalEEFileAlgo.cc.

◆ rMaxFront_

std::vector<double> DDHGCalEEFileAlgo::rMaxFront_
private

Definition at line 81 of file DDHGCalEEFileAlgo.cc.

◆ rMinFront_

std::vector<double> DDHGCalEEFileAlgo::rMinFront_
private

Definition at line 78 of file DDHGCalEEFileAlgo.cc.

◆ sectors_

int DDHGCalEEFileAlgo::sectors_
private

Definition at line 75 of file DDHGCalEEFileAlgo.cc.

◆ sensitiveMode_

int DDHGCalEEFileAlgo::sensitiveMode_
private

Definition at line 69 of file DDHGCalEEFileAlgo.cc.

◆ slopeB_

std::vector<double> DDHGCalEEFileAlgo::slopeB_
private

Definition at line 76 of file DDHGCalEEFileAlgo.cc.

◆ slopeT_

std::vector<double> DDHGCalEEFileAlgo::slopeT_
private

Definition at line 79 of file DDHGCalEEFileAlgo.cc.

◆ thick_

std::vector<double> DDHGCalEEFileAlgo::thick_
private

Definition at line 60 of file DDHGCalEEFileAlgo.cc.

◆ tol1_

constexpr double DDHGCalEEFileAlgo::tol1_ = 0.01
staticprivate

Definition at line 54 of file DDHGCalEEFileAlgo.cc.

◆ tol2_

constexpr double DDHGCalEEFileAlgo::tol2_ = 0.00001
staticprivate

Definition at line 55 of file DDHGCalEEFileAlgo.cc.

◆ waferIndex_

std::vector<int> DDHGCalEEFileAlgo::waferIndex_
private

Definition at line 71 of file DDHGCalEEFileAlgo.cc.

◆ waferProperty_

std::vector<int> DDHGCalEEFileAlgo::waferProperty_
private

Definition at line 72 of file DDHGCalEEFileAlgo.cc.

◆ wafers_

std::vector<std::string> DDHGCalEEFileAlgo::wafers_
private

Definition at line 57 of file DDHGCalEEFileAlgo.cc.

◆ waferSepar_

double DDHGCalEEFileAlgo::waferSepar_
private

Definition at line 74 of file DDHGCalEEFileAlgo.cc.

◆ waferSize_

double DDHGCalEEFileAlgo::waferSize_
private

Definition at line 73 of file DDHGCalEEFileAlgo.cc.

◆ zFrontB_

std::vector<double> DDHGCalEEFileAlgo::zFrontB_
private

Definition at line 77 of file DDHGCalEEFileAlgo.cc.

◆ zFrontT_

std::vector<double> DDHGCalEEFileAlgo::zFrontT_
private

Definition at line 80 of file DDHGCalEEFileAlgo.cc.

◆ zMinBlock_

double DDHGCalEEFileAlgo::zMinBlock_
private

Definition at line 70 of file DDHGCalEEFileAlgo.cc.