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_
 
int choiceType_
 
std::unordered_set< int > copies_
 
std::vector< int > copyNumber_
 
double cosAlpha_
 
int firstLayer_
 
double fracAreaMin_
 
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_
 
int nCutRadPar_
 
std::vector< double > rad100to200_
 
std::vector< double > rad200to300_
 
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< std::string > wafers_
 
double waferSepar_
 
double waferSize_
 
std::vector< int > waferTypes_
 
std::vector< double > zFrontB_
 
std::vector< double > zFrontT_
 
double zMinBlock_
 
double zMinRadPar_
 

Static Private Attributes

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

Detailed Description

Definition at line 34 of file DDHGCalEEFileAlgo.cc.

Constructor & Destructor Documentation

◆ DDHGCalEEFileAlgo()

DDHGCalEEFileAlgo::DDHGCalEEFileAlgo ( )

Definition at line 92 of file DDHGCalEEFileAlgo.cc.

92  {
93 #ifdef EDM_ML_DEBUG
94  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Creating an instance";
95 #endif
96 }

Member Function Documentation

◆ constructLayers()

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

Definition at line 234 of file DDHGCalEEFileAlgo.cc.

234  {
235 #ifdef EDM_ML_DEBUG
236  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: \t\tInside Layers";
237 #endif
238  double zi(zMinBlock_);
239  int laymin(0);
240  for (unsigned int i = 0; i < layers_.size(); i++) {
241  double zo = zi + layerThick_[i];
242  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
243  int laymax = laymin + layers_[i];
244  double zz = zi;
245  double thickTot(0);
246  for (int ly = laymin; ly < laymax; ++ly) {
247  int ii = layerType_[ly];
248  int copy = copyNumber_[ii];
249  double hthick = 0.5 * thick_[ii];
250  double rinB = HGCalGeomTools::radius(zo - tol1_, zFrontB_, rMinFront_, slopeB_);
251  zz += hthick;
252  thickTot += thick_[ii];
253 
254  std::string name = names_[ii] + std::to_string(copy);
255 #ifdef EDM_ML_DEBUG
256  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Layer " << ly << ":" << ii << " Front " << zi << ", "
257  << routF << " Back " << zo << ", " << rinB << " superlayer thickness "
258  << layerThick_[i];
259 #endif
261  DDMaterial matter(matName);
262  DDLogicalPart glog;
263  if (layerSense_[ly] < 1) {
264  std::vector<double> pgonZ, pgonRin, pgonRout;
265  if (layerSense_[ly] == 0 || absorbMode_ == 0) {
266  double rmax = routF * cosAlpha_ - tol1_;
267  pgonZ.emplace_back(-hthick);
268  pgonZ.emplace_back(hthick);
269  pgonRin.emplace_back(rinB);
270  pgonRin.emplace_back(rinB);
271  pgonRout.emplace_back(rmax);
272  pgonRout.emplace_back(rmax);
273  } else {
274  HGCalGeomTools::radius(zz - hthick,
275  zz + hthick,
276  zFrontB_,
277  rMinFront_,
278  slopeB_,
279  zFrontT_,
280  rMaxFront_,
281  slopeT_,
282  -layerSense_[ly],
283  pgonZ,
284  pgonRin,
285  pgonRout);
286 #ifdef EDM_ML_DEBUG
287  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: z " << (zz - hthick) << ":" << (zz + hthick) << " with "
288  << pgonZ.size() << " palnes";
289  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec)
290  edm::LogVerbatim("HGCalGeom")
291  << "[" << isec << "] z " << pgonZ[isec] << " R " << pgonRin[isec] << ":" << pgonRout[isec];
292 #endif
293  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
294  pgonZ[isec] -= zz;
295  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1_;
296  }
297  }
298  DDSolid solid =
299  DDSolidFactory::polyhedra(DDName(name, nameSpace_), sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
300  glog = DDLogicalPart(solid.ddname(), matter, solid);
301 #ifdef EDM_ML_DEBUG
302  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << solid.name() << " polyhedra of " << sectors_
303  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
304  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size()
305  << " sections and filled with " << matName << ":" << &matter;
306  for (unsigned int k = 0; k < pgonZ.size(); ++k)
307  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << pgonZ[k] << " R " << pgonRin[k] << ":" << pgonRout[k];
308 #endif
309  } else {
310  double rins =
312  double routs =
313  (sensitiveMode_ < 1) ? routF : HGCalGeomTools::radius(zz - hthick, zFrontT_, rMaxFront_, slopeT_);
314  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rins, routs, 0.0, 2._pi);
315  glog = DDLogicalPart(solid.ddname(), matter, solid);
316 #ifdef EDM_ML_DEBUG
317  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << solid.name() << " Tubs made of " << matName << ":"
318  << &matter << " of dimensions " << rinB << ":" << rins << ", " << routF << ":"
319  << routs << ", " << hthick << ", 0.0, 360.0 and position " << glog.name()
320  << " number " << copy << ":" << layerCenter_[copy - firstLayer_];
321 #endif
322  positionSensitive(glog, rins, routs, zz, layerSense_[ly], (copy - firstLayer_), cpv);
323  }
324  DDTranslation r1(0, 0, zz);
325  DDRotation rot;
326  cpv.position(glog, module, copy, r1, rot);
327  ++copyNumber_[ii];
328 #ifdef EDM_ML_DEBUG
329  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.name() << " number " << copy << " positioned in "
330  << module.name() << " at " << r1 << " with " << rot;
331 #endif
332  zz += hthick;
333  } // End of loop over layers in a block
334  zi = zo;
335  laymin = laymax;
336  // Make consistency check of all the partitions of the block
337  if (std::abs(thickTot - layerThick_[i]) >= tol2_) {
338  if (thickTot > layerThick_[i]) {
339  edm::LogError("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " is smaller than " << thickTot
340  << ": thickness of all its components **** ERROR ****";
341  } else {
342  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " does not match with "
343  << thickTot << " of the components";
344  }
345  }
346  } // End of loop over blocks
347 }

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

◆ execute()

void DDHGCalEEFileAlgo::execute ( DDCompactView cpv)
override

Definition at line 217 of file DDHGCalEEFileAlgo.cc.

217  {
218 #ifdef EDM_ML_DEBUG
219  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalEEFileAlgo...";
220  copies_.clear();
221 #endif
222  constructLayers(parent(), cpv);
223 #ifdef EDM_ML_DEBUG
224  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << copies_.size() << " different wafer copy numbers";
225  int k(0);
226  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
227  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
228  }
229  copies_.clear();
230  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalEEFileAlgo construction...";
231 #endif
232 }

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

◆ initialize()

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

Definition at line 98 of file DDHGCalEEFileAlgo.cc.

102  {
103  wafers_ = vsArgs["WaferNames"];
104 #ifdef EDM_ML_DEBUG
105  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << wafers_.size() << " wafers";
106  for (unsigned int i = 0; i < wafers_.size(); ++i)
107  edm::LogVerbatim("HGCalGeom") << "Wafer[" << i << "] " << wafers_[i];
108 #endif
109  materials_ = vsArgs["MaterialNames"];
110  names_ = vsArgs["VolumeNames"];
111  thick_ = vArgs["Thickness"];
112  copyNumber_.resize(materials_.size(), 1);
113 #ifdef EDM_ML_DEBUG
114  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << materials_.size() << " types of volumes";
115  for (unsigned int i = 0; i < names_.size(); ++i)
116  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness " << thick_[i]
117  << " filled with " << materials_[i] << " first copy number " << copyNumber_[i];
118 #endif
119  layers_ = dbl_to_int(vArgs["Layers"]);
120  layerThick_ = vArgs["LayerThick"];
121 #ifdef EDM_ML_DEBUG
122  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
123  for (unsigned int i = 0; i < layers_.size(); ++i)
124  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << layerThick_[i] << " with " << layers_[i]
125  << " layers";
126 #endif
127  layerType_ = dbl_to_int(vArgs["LayerType"]);
128  layerSense_ = dbl_to_int(vArgs["LayerSense"]);
129  firstLayer_ = (int)(nArgs["FirstLayer"]);
130  absorbMode_ = (int)(nArgs["AbsorberMode"]);
131  sensitiveMode_ = (int)(nArgs["SensitiveMode"]);
132 #ifdef EDM_ML_DEBUG
133  edm::LogVerbatim("HGCalGeom") << "First Layer " << firstLayer_ << " and "
134  << "Absober:Sensitive mode " << absorbMode_ << ":" << sensitiveMode_;
135 #endif
136  layerCenter_ = dbl_to_int(vArgs["LayerCenter"]);
137 #ifdef EDM_ML_DEBUG
138  for (unsigned int i = 0; i < layerCenter_.size(); ++i)
139  edm::LogVerbatim("HGCalGeom") << "LayerCenter [" << i << "] " << layerCenter_[i];
140 #endif
141  if (firstLayer_ > 0) {
142  for (unsigned int i = 0; i < layerType_.size(); ++i) {
143  if (layerSense_[i] > 0) {
144  int ii = layerType_[i];
146 #ifdef EDM_ML_DEBUG
147  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
148  << materials_[ii] << " changed to " << copyNumber_[ii];
149 #endif
150  break;
151  }
152  }
153  } else {
154  firstLayer_ = 1;
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  waferIndex_ = dbl_to_int(vArgs["WaferIndex"]);
184  waferTypes_ = dbl_to_int(vArgs["WaferTypes"]);
185 #ifdef EDM_ML_DEBUG
186  edm::LogVerbatim("HGCalGeom") << "waferTypes with " << waferTypes_.size() << " entries";
187  for (unsigned int k = 0; k < waferTypes_.size(); ++k)
188  edm::LogVerbatim("HGCalGeom") << "[" << k << "] " << waferIndex_[k] << " ("
192 #endif
193  slopeB_ = vArgs["SlopeBottom"];
194  zFrontB_ = vArgs["ZFrontBottom"];
195  rMinFront_ = vArgs["RMinFront"];
196  slopeT_ = vArgs["SlopeTop"];
197  zFrontT_ = vArgs["ZFrontTop"];
198  rMaxFront_ = vArgs["RMaxFront"];
199 #ifdef EDM_ML_DEBUG
200  for (unsigned int i = 0; i < slopeB_.size(); ++i)
201  edm::LogVerbatim("HGCalGeom") << "Bottom Block [" << i << "] Zmin " << zFrontB_[i] << " Rmin " << rMinFront_[i]
202  << " Slope " << slopeB_[i];
203  for (unsigned int i = 0; i < slopeT_.size(); ++i)
204  edm::LogVerbatim("HGCalGeom") << "Top Block [" << i << "] Zmin " << zFrontT_[i] << " Rmax " << rMaxFront_[i]
205  << " Slope " << slopeT_[i];
206 #endif
208 #ifdef EDM_ML_DEBUG
209  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: NameSpace " << nameSpace_;
210 #endif
211 }

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

◆ positionSensitive()

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

Definition at line 349 of file DDHGCalEEFileAlgo.cc.

350  {
351  static const double sqrt3 = std::sqrt(3.0);
352  int layercenter = layerCenter_[layer];
353  double r = 0.5 * (waferSize_ + waferSepar_);
354  double R = 2.0 * r / sqrt3;
355  double dy = 0.75 * R;
356  int N = (int)(0.5 * rout / r) + 2;
357  const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
358 #ifdef EDM_ML_DEBUG
359  int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0), nin(0);
360  std::vector<int> ntype(6, 0);
361  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.ddname() << " rin:rout " << rin << ":" << rout
362  << " zpos " << zpos << " N " << N << " for maximum u, v; r " << r << " R " << R
363  << " dy " << dy << " Shift " << xyoff.first << ":" << xyoff.second << " WaferSize "
364  << (waferSize_ + waferSepar_);
365 #endif
366  for (int u = -N; u <= N; ++u) {
367  for (int v = -N; v <= N; ++v) {
368 #ifdef EDM_ML_DEBUG
369  int iu = std::abs(u);
370  int iv = std::abs(v);
371 #endif
372  int nr = 2 * v;
373  int nc = -2 * u + v;
374  double xpos = xyoff.first + nc * r;
375  double ypos = xyoff.second + nr * dy;
376  const auto& corner = HGCalGeomTools::waferCorner(xpos, ypos, r, R, rin, rout, false);
377 #ifdef EDM_ML_DEBUG
378  ++ntot;
379  if (((corner.first <= 0) && std::abs(u) < 5 && std::abs(v) < 5) || (std::abs(u) < 2 && std::abs(v) < 2)) {
380  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.ddname() << " R " << rin << ":" << rout
381  << "\n Z " << zpos << " LayerType " << layertype << " u " << u << " v " << v
382  << " with " << corner.first << " corners";
383  }
384 #endif
385  int indx = HGCalWaferIndex::waferIndex((layer + firstLayer_), u, v, false);
387  if (corner.first > 0 && type >= 0) {
388  int copy = HGCalTypes::packTypeUV(type, u, v);
389 #ifdef EDM_ML_DEBUG
390  edm::LogVerbatim("HGCalGeom") << " DDHGCalHEFileAlgo: " << wafers_[type] << " number " << copy << " type "
391  << type << " layer:u:v:indx " << (layer + firstLayer_) << ":" << u << ":" << v
392  << ":" << indx;
393  if (iu > ium)
394  ium = iu;
395  if (iv > ivm)
396  ivm = iv;
397  kount++;
398  if (copies_.count(copy) == 0)
399  copies_.insert(copy);
400 #endif
401  if (corner.first == (int)(HGCalParameters::k_CornerSize)) {
402 #ifdef EDM_ML_DEBUG
403  if (iu > iumAll)
404  iumAll = iu;
405  if (iv > ivmAll)
406  ivmAll = iv;
407  ++nin;
408 #endif
409  DDTranslation tran(xpos, ypos, 0.0);
411  if (layertype > 1)
412  type += 3;
414  cpv.position(name, glog.ddname(), copy, tran, rotation);
415 #ifdef EDM_ML_DEBUG
416  ++ntype[type];
417  edm::LogVerbatim("HGCalGeom") << " DDHGCalEEFileAlgo: " << name << " number " << copy << " type " << layertype
418  << ":" << type << " positioned in " << glog.ddname() << " at " << tran
419  << " with " << rotation;
420 #endif
421  }
422  }
423  }
424  }
425 #ifdef EDM_ML_DEBUG
426  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Maximum # of u " << ium << ":" << iumAll << " # of v " << ivm
427  << ":" << ivmAll << " and " << nin << ":" << kount << ":" << ntot << " wafers ("
428  << ntype[0] << ":" << ntype[1] << ":" << ntype[2] << ":" << ntype[3] << ":" << ntype[4]
429  << ":" << ntype[5] << ") for " << glog.ddname() << " R " << rin << ":" << rout;
430 #endif
431 }

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

Member Data Documentation

◆ absorbMode_

int DDHGCalEEFileAlgo::absorbMode_
private

Definition at line 67 of file DDHGCalEEFileAlgo.cc.

◆ alpha_

double DDHGCalEEFileAlgo::alpha_
private

Definition at line 89 of file DDHGCalEEFileAlgo.cc.

◆ choiceType_

int DDHGCalEEFileAlgo::choiceType_
private

Definition at line 75 of file DDHGCalEEFileAlgo.cc.

◆ copies_

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

Definition at line 88 of file DDHGCalEEFileAlgo.cc.

◆ copyNumber_

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

Definition at line 60 of file DDHGCalEEFileAlgo.cc.

◆ cosAlpha_

double DDHGCalEEFileAlgo::cosAlpha_
private

Definition at line 89 of file DDHGCalEEFileAlgo.cc.

◆ firstLayer_

int DDHGCalEEFileAlgo::firstLayer_
private

Definition at line 66 of file DDHGCalEEFileAlgo.cc.

◆ fracAreaMin_

double DDHGCalEEFileAlgo::fracAreaMin_
private

Definition at line 77 of file DDHGCalEEFileAlgo.cc.

◆ geomTools_

HGCalGeomTools DDHGCalEEFileAlgo::geomTools_
private

Definition at line 51 of file DDHGCalEEFileAlgo.cc.

◆ layerCenter_

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

Definition at line 65 of file DDHGCalEEFileAlgo.cc.

◆ layers_

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

Definition at line 61 of file DDHGCalEEFileAlgo.cc.

◆ layerSense_

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

Definition at line 64 of file DDHGCalEEFileAlgo.cc.

◆ layerThick_

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

Definition at line 62 of file DDHGCalEEFileAlgo.cc.

◆ layerType_

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

Definition at line 63 of file DDHGCalEEFileAlgo.cc.

◆ materials_

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

Definition at line 57 of file DDHGCalEEFileAlgo.cc.

◆ names_

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

Definition at line 58 of file DDHGCalEEFileAlgo.cc.

◆ nameSpace_

std::string DDHGCalEEFileAlgo::nameSpace_
private

Definition at line 87 of file DDHGCalEEFileAlgo.cc.

◆ nCutRadPar_

int DDHGCalEEFileAlgo::nCutRadPar_
private

Definition at line 76 of file DDHGCalEEFileAlgo.cc.

◆ rad100to200_

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

Definition at line 70 of file DDHGCalEEFileAlgo.cc.

◆ rad200to300_

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

Definition at line 71 of file DDHGCalEEFileAlgo.cc.

◆ rMaxFront_

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

Definition at line 86 of file DDHGCalEEFileAlgo.cc.

◆ rMinFront_

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

Definition at line 83 of file DDHGCalEEFileAlgo.cc.

◆ sectors_

int DDHGCalEEFileAlgo::sectors_
private

Definition at line 80 of file DDHGCalEEFileAlgo.cc.

◆ sensitiveMode_

int DDHGCalEEFileAlgo::sensitiveMode_
private

Definition at line 68 of file DDHGCalEEFileAlgo.cc.

◆ slopeB_

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

Definition at line 81 of file DDHGCalEEFileAlgo.cc.

◆ slopeT_

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

Definition at line 84 of file DDHGCalEEFileAlgo.cc.

◆ thick_

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

Definition at line 59 of file DDHGCalEEFileAlgo.cc.

◆ tol1_

constexpr double DDHGCalEEFileAlgo::tol1_ = 0.01
staticconstexprprivate

Definition at line 53 of file DDHGCalEEFileAlgo.cc.

◆ tol2_

constexpr double DDHGCalEEFileAlgo::tol2_ = 0.00001
staticconstexprprivate

Definition at line 54 of file DDHGCalEEFileAlgo.cc.

◆ waferIndex_

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

Definition at line 73 of file DDHGCalEEFileAlgo.cc.

◆ wafers_

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

Definition at line 56 of file DDHGCalEEFileAlgo.cc.

◆ waferSepar_

double DDHGCalEEFileAlgo::waferSepar_
private

Definition at line 79 of file DDHGCalEEFileAlgo.cc.

◆ waferSize_

double DDHGCalEEFileAlgo::waferSize_
private

Definition at line 78 of file DDHGCalEEFileAlgo.cc.

◆ waferTypes_

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

Definition at line 74 of file DDHGCalEEFileAlgo.cc.

◆ zFrontB_

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

Definition at line 82 of file DDHGCalEEFileAlgo.cc.

◆ zFrontT_

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

Definition at line 85 of file DDHGCalEEFileAlgo.cc.

◆ zMinBlock_

double DDHGCalEEFileAlgo::zMinBlock_
private

Definition at line 69 of file DDHGCalEEFileAlgo.cc.

◆ zMinRadPar_

double DDHGCalEEFileAlgo::zMinRadPar_
private

Definition at line 72 of file DDHGCalEEFileAlgo.cc.

DDHGCalEEFileAlgo::choiceType_
int choiceType_
Definition: DDHGCalEEFileAlgo.cc:75
DDHGCalEEFileAlgo::zFrontT_
std::vector< double > zFrontT_
Definition: DDHGCalEEFileAlgo.cc:85
HGCalWaferIndex::waferV
static int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:42
DDHGCalEEFileAlgo::layerType_
std::vector< int > layerType_
Definition: DDHGCalEEFileAlgo.cc:63
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:223
mps_fire.i
i
Definition: mps_fire.py:428
geometryCSVtoXML.zz
zz
Definition: geometryCSVtoXML.py:19
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
DDHGCalEEFileAlgo::wafers_
std::vector< std::string > wafers_
Definition: DDHGCalEEFileAlgo.cc:56
DDHGCalEEFileAlgo::zMinRadPar_
double zMinRadPar_
Definition: DDHGCalEEFileAlgo.cc:72
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
DDHGCalEEFileAlgo::firstLayer_
int firstLayer_
Definition: DDHGCalEEFileAlgo.cc:66
DDHGCalEEFileAlgo::absorbMode_
int absorbMode_
Definition: DDHGCalEEFileAlgo.cc:67
DDHGCalEEFileAlgo::constructLayers
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Definition: DDHGCalEEFileAlgo.cc:234
DDHGCalEEFileAlgo::nameSpace_
std::string nameSpace_
Definition: DDHGCalEEFileAlgo.cc:87
HGCalParameters::k_CornerSize
static constexpr uint32_t k_CornerSize
Definition: HGCalParameters.h:38
DDHGCalEEFileAlgo::zFrontB_
std::vector< double > zFrontB_
Definition: DDHGCalEEFileAlgo.cc:82
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:222
HGCalGeomTools::shiftXY
std::pair< double, double > shiftXY(int waferPosition, double waferSize) const
Definition: HGCalGeomTools.cc:170
DDHGCalEEFileAlgo::layerSense_
std::vector< int > layerSense_
Definition: DDHGCalEEFileAlgo.cc:64
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
DDHGCalEEFileAlgo::copies_
std::unordered_set< int > copies_
Definition: DDHGCalEEFileAlgo.cc:88
dqmdumpme.first
first
Definition: dqmdumpme.py:55
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
DDHGCalEEFileAlgo::sectors_
int sectors_
Definition: DDHGCalEEFileAlgo.cc:80
DDHGCalEEFileAlgo::waferIndex_
std::vector< int > waferIndex_
Definition: DDHGCalEEFileAlgo.cc:73
DDHGCalEEFileAlgo::rad100to200_
std::vector< double > rad100to200_
Definition: DDHGCalEEFileAlgo.cc:70
DDHGCalEEFileAlgo::materials_
std::vector< std::string > materials_
Definition: DDHGCalEEFileAlgo.cc:57
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
DDHGCalEEFileAlgo::copyNumber_
std::vector< int > copyNumber_
Definition: DDHGCalEEFileAlgo.cc:60
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
DDHGCalEEFileAlgo::nCutRadPar_
int nCutRadPar_
Definition: DDHGCalEEFileAlgo.cc:76
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
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
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
DDBase::name
const N & name() const
Definition: DDBase.h:59
DDHGCalEEFileAlgo::geomTools_
HGCalGeomTools geomTools_
Definition: DDHGCalEEFileAlgo.cc:51
N
#define N
Definition: blowfish.cc:9
DDSolidFactory::tubs
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
Definition: DDSolid.cc:653
DDHGCalEEFileAlgo::layerCenter_
std::vector< int > layerCenter_
Definition: DDHGCalEEFileAlgo.cc:65
HGCalWaferType::getType
int getType(double xpos, double ypos, double zpos)
Definition: HGCalWaferType.cc:35
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DDHGCalEEFileAlgo::waferSepar_
double waferSepar_
Definition: DDHGCalEEFileAlgo.cc:79
DDHGCalEEFileAlgo::slopeT_
std::vector< double > slopeT_
Definition: DDHGCalEEFileAlgo.cc:84
HGCalWaferIndex::waferU
static int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:37
DDHGCalEEFileAlgo::zMinBlock_
double zMinBlock_
Definition: DDHGCalEEFileAlgo.cc:69
HGCalTypes::packTypeUV
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDHGCalEEFileAlgo::waferTypes_
std::vector< int > waferTypes_
Definition: DDHGCalEEFileAlgo.cc:74
DDHGCalEEFileAlgo::rad200to300_
std::vector< double > rad200to300_
Definition: DDHGCalEEFileAlgo.cc:71
DDHGCalEEFileAlgo::sensitiveMode_
int sensitiveMode_
Definition: DDHGCalEEFileAlgo.cc:68
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
EgHLTOffHistBins_cfi.nr
nr
Definition: EgHLTOffHistBins_cfi.py:4
DDBase::ddname
const N & ddname() const
Definition: DDBase.h:61
DDHGCalEEFileAlgo::tol2_
static constexpr double tol2_
Definition: DDHGCalEEFileAlgo.cc:54
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
DDHGCalEEFileAlgo::rMinFront_
std::vector< double > rMinFront_
Definition: DDHGCalEEFileAlgo.cc:83
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
DDHGCalEEFileAlgo::positionSensitive
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
Definition: DDHGCalEEFileAlgo.cc:349
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDHGCalEEFileAlgo::tol1_
static constexpr double tol1_
Definition: DDHGCalEEFileAlgo.cc:53
createfilelist.int
int
Definition: createfilelist.py:10
DDHGCalEEFileAlgo::names_
std::vector< std::string > names_
Definition: DDHGCalEEFileAlgo.cc:58
DDHGCalEEFileAlgo::waferSize_
double waferSize_
Definition: DDHGCalEEFileAlgo.cc:78
DDHGCalEEFileAlgo::thick_
std::vector< double > thick_
Definition: DDHGCalEEFileAlgo.cc:59
PVValHelper::dy
Definition: PVValidationHelpers.h:49
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
DDHGCalEEFileAlgo::rMaxFront_
std::vector< double > rMaxFront_
Definition: DDHGCalEEFileAlgo.cc:86
alignCSCRings.r
r
Definition: alignCSCRings.py:93
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
DDHGCalEEFileAlgo::layers_
std::vector< int > layers_
Definition: DDHGCalEEFileAlgo.cc:61
DDHGCalEEFileAlgo::slopeB_
std::vector< double > slopeB_
Definition: DDHGCalEEFileAlgo.cc:81
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
DDHGCalEEFileAlgo::cosAlpha_
double cosAlpha_
Definition: DDHGCalEEFileAlgo.cc:89
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
DDCurrentNamespace::ns
static std::string & ns()
Definition: DDCurrentNamespace.cc:3
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HGCalWaferIndex::waferIndex
static int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
Definition: HGCalWaferIndex.cc: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
DDHGCalEEFileAlgo::layerThick_
std::vector< double > layerThick_
Definition: DDHGCalEEFileAlgo.cc:62
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
DDHGCalEEFileAlgo::fracAreaMin_
double fracAreaMin_
Definition: DDHGCalEEFileAlgo.cc:77
edm::Log
Definition: MessageLogger.h:70
dttmaxenums::R
Definition: DTTMax.h:29
class-composition.parent
parent
Definition: class-composition.py:88
cuy.ii
ii
Definition: cuy.py:590
DDHGCalEEFileAlgo::alpha_
double alpha_
Definition: DDHGCalEEFileAlgo.cc:89
HGCalWaferIndex::waferLayer
static int32_t waferLayer(const int32_t index)
Definition: HGCalWaferIndex.cc:35
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:76