|
|
|
void | constructLayers (const DDLogicalPart &, DDCompactView &cpv) |
|
void | positionMix (const DDLogicalPart &glog, const std::string &name, int copy, double thick, const DDMaterial &matter, double rin, double rmid, double routF, double zz, DDCompactView &cpv) |
|
void | positionSensitive (const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layercenter, DDCompactView &cpv) |
|
Definition at line 31 of file DDHGCalHEAlgo.cc.
◆ DDHGCalHEAlgo()
DDHGCalHEAlgo::DDHGCalHEAlgo |
( |
| ) |
|
◆ ~DDHGCalHEAlgo()
DDHGCalHEAlgo::~DDHGCalHEAlgo |
( |
| ) |
|
|
override |
◆ constructLayers()
Definition at line 285 of file DDHGCalHEAlgo.cc.
291 const double tol(0.01);
292 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
298 for (
int ly = laymin; ly < laymax; ++ly) {
308 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
309 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
315 std::vector<double> pgonZ, pgonRin, pgonRout;
319 pgonZ.emplace_back(-hthick);
320 pgonZ.emplace_back(hthick);
321 pgonRin.emplace_back(rinB);
322 pgonRin.emplace_back(rinB);
323 pgonRout.emplace_back(rmax);
324 pgonRout.emplace_back(rmax);
338 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
340 pgonRout[isec] = pgonRout[isec] *
cosAlpha_ - tol;
350 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
351 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
357 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << solid.
name() <<
" Tubs made of " << matName
358 <<
" of dimensions " << rinB <<
", " << routF <<
", " << hthick
359 <<
", 0.0, 360.0 and positioned in: " << glog.
name() <<
" number " <<
copy;
369 <<
module.name() <<
" at " <<
r1 <<
" with " <<
rot;
378 <<
": thickness of all its "
379 <<
"components **** ERROR ****";
382 << thickTot <<
" of the components";
References funct::abs(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), dqmdumpme::first, mps_fire::i, cuy::ii, dqmdumpme::k, min(), 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()
◆ initialize()
◆ positionMix()
void DDHGCalHEAlgo::positionMix |
( |
const DDLogicalPart & |
glog, |
|
|
const std::string & |
name, |
|
|
int |
copy, |
|
|
double |
thick, |
|
|
const DDMaterial & |
matter, |
|
|
double |
rin, |
|
|
double |
rmid, |
|
|
double |
routF, |
|
|
double |
zz, |
|
|
DDCompactView & |
cpv |
|
) |
| |
|
protected |
Definition at line 387 of file DDHGCalHEAlgo.cc.
408 double hthick = 0.5 * thick;
415 <<
" of dimensions " << rmid <<
", " << rout <<
", " << hthick <<
", 0.0, 360.0";
420 <<
" at " << tran <<
" with " <<
rot;
422 double thickTot(0), zpos(-hthick);
430 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Layer " << ly <<
":" <<
ii <<
" R " << rmid <<
":" << rout
442 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << solid.
name() <<
" Tubs made of " << matName
443 <<
" of dimensions " << rmid <<
", " << rout <<
", " << hthickl <<
", 0.0, 360.0";
450 << glog1.
name() <<
" at " <<
r1 <<
" with " <<
rot;
455 if (
std::abs(thickTot - thick) < 0.00001) {
456 }
else if (thickTot > thick) {
457 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" is smaller than " << thickTot
458 <<
": thickness of all its components in "
459 <<
"the top part **** ERROR ****";
460 }
else if (thickTot < thick) {
461 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" does not match with " << thickTot
462 <<
" of the components in top part";
466 name = nameM +
"Bottom";
471 <<
" of dimensions " << rin <<
", " << rmid <<
", " << hthick <<
", 0.0, 360.0";
476 <<
" at " << tran <<
" with " <<
rot;
487 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Layer " << ly <<
":" <<
ii <<
" R " << rin <<
":" << rmid
499 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << solid.
name() <<
" Tubs made of " << matName
500 <<
" of dimensions " << rin <<
", " << rmid <<
", " << hthickl <<
", 0.0, 360.0";
507 << glog1.
name() <<
" at " <<
r1 <<
" with " <<
rot;
519 if (
std::abs(thickTot - thick) < 0.00001) {
520 }
else if (thickTot > thick) {
521 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" is smaller than " << thickTot
522 <<
": thickness of all its components in "
523 <<
"the top part **** ERROR ****";
524 }
else if (thickTot < thick) {
525 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" does not match with " << thickTot
526 <<
" of the components in top part";
References funct::abs(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), HLT_2018_cff::eta1, HLT_2018_cff::eta2, dqmdumpme::first, cuy::ii, dqm-mbProfile::log, Skims_PA_cff::name, DDBase< N, C >::name(), DDCompactView::position(), diffTwoXMLs::r1, makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, funct::tan(), DDSolidFactory::tubs(), and geometryCSVtoXML::zz.
◆ positionSensitive()
void DDHGCalHEAlgo::positionSensitive |
( |
const DDLogicalPart & |
glog, |
|
|
double |
rin, |
|
|
double |
rout, |
|
|
double |
zpos, |
|
|
int |
layertype, |
|
|
int |
layercenter, |
|
|
DDCompactView & |
cpv |
|
) |
| |
|
protected |
Definition at line 530 of file DDHGCalHEAlgo.cc.
537 static const double sqrt3 =
std::sqrt(3.0);
539 double R = 2.0 *
r / sqrt3;
540 double dy = 0.75 *
R;
541 int N = (
int)(0.5 * rout /
r) + 2;
544 int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0),
nin(0);
545 std::vector<int> ntype(6, 0);
546 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << glog.
ddname() <<
" rin:rout " << rin <<
":" << rout <<
" zpos "
547 << zpos <<
" N " <<
N <<
" for maximum u, v Offset; Shift " << xyoff.first <<
":"
550 for (
int u = -
N; u <=
N; ++u) {
552 for (
int v = -
N;
v <=
N; ++
v) {
556 double xpos = xyoff.first + nc *
r;
557 double ypos = xyoff.second +
nr *
dy;
564 int copy =
type * 1000000 + iv * 100 + iu;
602 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Maximum # of u " << ium <<
":" << iumAll <<
" # of v " << ivm <<
":"
603 << ivmAll <<
" and " <<
nin <<
":" << kount <<
":" << ntot <<
" wafers (" << ntype[0]
604 <<
":" << ntype[1] <<
":" << ntype[2] <<
":" << ntype[3] <<
":" << ntype[4] <<
":"
605 << ntype[5] <<
") for " << glog.
ddname() <<
" R " << rin <<
":" << rout;
References funct::abs(), filterCSVwithJSON::copy, distTCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dy, dqmdumpme::first, createfilelist::int, HGCalParameters::k_CornerSize, N, Skims_PA_cff::name, nin, EgHLTOffHistBins_cfi::nr, DDCompactView::position(), dttmaxenums::R, alignCSCRings::r, idealTransformation::rotation, edm::second(), mathSSE::sqrt(), findQualityFiles::v, and HGCalGeomTools::waferCorner().
◆ absorbMode_
int DDHGCalHEAlgo::absorbMode_ |
|
private |
◆ alpha_
double DDHGCalHEAlgo::alpha_ |
|
private |
◆ choiceType_
int DDHGCalHEAlgo::choiceType_ |
|
private |
◆ copies_
std::unordered_set<int> DDHGCalHEAlgo::copies_ |
|
private |
◆ copyNumber_
std::vector<int> DDHGCalHEAlgo::copyNumber_ |
|
private |
◆ copyNumberBot_
std::vector<int> DDHGCalHEAlgo::copyNumberBot_ |
|
private |
◆ copyNumberTop_
std::vector<int> DDHGCalHEAlgo::copyNumberTop_ |
|
private |
◆ cosAlpha_
double DDHGCalHEAlgo::cosAlpha_ |
|
private |
◆ firstLayer_
int DDHGCalHEAlgo::firstLayer_ |
|
private |
◆ fracAreaMin_
double DDHGCalHEAlgo::fracAreaMin_ |
|
private |
◆ geomTools_
◆ layerCenter_
std::vector<int> DDHGCalHEAlgo::layerCenter_ |
|
private |
◆ layers_
std::vector<int> DDHGCalHEAlgo::layers_ |
|
private |
◆ layerSense_
std::vector<int> DDHGCalHEAlgo::layerSense_ |
|
private |
◆ layerSenseBot_
std::vector<int> DDHGCalHEAlgo::layerSenseBot_ |
|
private |
◆ layerThick_
std::vector<double> DDHGCalHEAlgo::layerThick_ |
|
private |
◆ layerThickBot_
std::vector<double> DDHGCalHEAlgo::layerThickBot_ |
|
private |
◆ layerThickTop_
std::vector<double> DDHGCalHEAlgo::layerThickTop_ |
|
private |
◆ layerType_
std::vector<int> DDHGCalHEAlgo::layerType_ |
|
private |
◆ layerTypeBot_
std::vector<int> DDHGCalHEAlgo::layerTypeBot_ |
|
private |
◆ layerTypeTop_
std::vector<int> DDHGCalHEAlgo::layerTypeTop_ |
|
private |
◆ materials_
std::vector<std::string> DDHGCalHEAlgo::materials_ |
|
private |
◆ materialsBot_
std::vector<std::string> DDHGCalHEAlgo::materialsBot_ |
|
private |
◆ materialsTop_
std::vector<std::string> DDHGCalHEAlgo::materialsTop_ |
|
private |
◆ names_
std::vector<std::string> DDHGCalHEAlgo::names_ |
|
private |
◆ namesBot_
std::vector<std::string> DDHGCalHEAlgo::namesBot_ |
|
private |
◆ nameSpace_
std::string DDHGCalHEAlgo::nameSpace_ |
|
private |
◆ namesTop_
std::vector<std::string> DDHGCalHEAlgo::namesTop_ |
|
private |
◆ nCutRadPar_
int DDHGCalHEAlgo::nCutRadPar_ |
|
private |
◆ rad100to200_
std::vector<double> DDHGCalHEAlgo::rad100to200_ |
|
private |
◆ rad200to300_
std::vector<double> DDHGCalHEAlgo::rad200to300_ |
|
private |
◆ rMaxFront_
std::vector<double> DDHGCalHEAlgo::rMaxFront_ |
|
private |
◆ rMinFront_
std::vector<double> DDHGCalHEAlgo::rMinFront_ |
|
private |
◆ rMixLayer_
std::vector<double> DDHGCalHEAlgo::rMixLayer_ |
|
private |
◆ sectors_
int DDHGCalHEAlgo::sectors_ |
|
private |
◆ slopeB_
std::vector<double> DDHGCalHEAlgo::slopeB_ |
|
private |
◆ slopeT_
std::vector<double> DDHGCalHEAlgo::slopeT_ |
|
private |
◆ thick_
std::vector<double> DDHGCalHEAlgo::thick_ |
|
private |
◆ wafers_
std::vector<std::string> DDHGCalHEAlgo::wafers_ |
|
private |
◆ waferSepar_
double DDHGCalHEAlgo::waferSepar_ |
|
private |
◆ waferSize_
double DDHGCalHEAlgo::waferSize_ |
|
private |
◆ waferType_
◆ zFrontB_
std::vector<double> DDHGCalHEAlgo::zFrontB_ |
|
private |
◆ zFrontT_
std::vector<double> DDHGCalHEAlgo::zFrontT_ |
|
private |
◆ zMinBlock_
double DDHGCalHEAlgo::zMinBlock_ |
|
private |
◆ zMinRadPar_
double DDHGCalHEAlgo::zMinRadPar_ |
|
private |
std::vector< double > layerThick_
std::vector< int > layerCenter_
std::unordered_set< int > copies_
std::vector< double > rMinFront_
std::vector< std::string > materials_
DDName is used to identify DDD entities uniquely.
std::unique_ptr< HGCalWaferType > waferType_
constexpr NumType convertRadToDeg(NumType radians)
std::vector< double > zFrontB_
static constexpr uint32_t k_CornerSize
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layercenter, DDCompactView &cpv)
std::vector< std::string > namesBot_
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
U second(std::pair< T, U > const &p)
std::vector< int > copyNumber_
std::vector< double > thick_
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::vector< int > layerTypeTop_
std::vector< int > copyNumberTop_
std::vector< int > layerSense_
std::vector< double > layerThickBot_
HGCalGeomTools geomTools_
DDMaterial is used to define and access material information.
Cos< T >::type cos(const T &t)
std::vector< double > zFrontT_
std::vector< std::string > names_
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)
std::vector< double > layerThickTop_
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
std::vector< double > rad100to200_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< double > rad200to300_
std::vector< std::string > namesTop_
std::vector< double > rMaxFront_
std::vector< std::string > wafers_
std::vector< int > layers_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Tan< T >::type tan(const T &t)
std::vector< std::pair< float, float > >::iterator itr
std::vector< double > slopeB_
std::vector< std::string > materialsBot_
std::vector< int > copyNumberBot_
static std::string & ns()
A DDSolid represents the shape of a part.
std::vector< int > layerTypeBot_
Represents a uniquely identifyable rotation matrix.
std::vector< double > rMixLayer_
Abs< T >::type abs(const T &t)
std::vector< std::string > materialsTop_
void positionMix(const DDLogicalPart &glog, const std::string &name, int copy, double thick, const DDMaterial &matter, double rin, double rmid, double routF, double zz, DDCompactView &cpv)
std::vector< double > slopeT_
std::vector< int > layerSenseBot_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< int > layerType_
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)