|
|
|
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) |
|
|
static constexpr double | tol1_ = 0.01 |
|
static constexpr double | tol2_ = 0.00001 |
|
Definition at line 32 of file DDHGCalHEAlgo.cc.
◆ DDHGCalHEAlgo()
DDHGCalHEAlgo::DDHGCalHEAlgo |
( |
| ) |
|
◆ ~DDHGCalHEAlgo()
DDHGCalHEAlgo::~DDHGCalHEAlgo |
( |
| ) |
|
|
override |
◆ constructLayers()
Definition at line 285 of file DDHGCalHEAlgo.cc.
291 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
297 for (
int ly = laymin; ly < laymax; ++ly) {
307 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
308 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
314 std::vector<double> pgonZ, pgonRin, pgonRout;
318 pgonZ.emplace_back(-hthick);
319 pgonZ.emplace_back(hthick);
320 pgonRin.emplace_back(rinB);
321 pgonRin.emplace_back(rinB);
322 pgonRout.emplace_back(rmax);
323 pgonRout.emplace_back(rmax);
337 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
349 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
350 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
359 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << solid.
name() <<
" Tubs made of " << matName
360 <<
" of dimensions " << rinB <<
":" << rins <<
", " << routF <<
":" << routs
361 <<
", " << hthick <<
", 0.0, 360.0 and positioned in: " << glog.
name()
362 <<
" number " <<
copy;
372 <<
module.name() <<
" at " <<
r1 <<
" with no rotation";
381 <<
": thickness of all its components **** ERROR ****";
384 << thickTot <<
" of the components";
References funct::abs(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), first, mps_fire::i, cuy::ii, dqmdumpme::k, min(), callgraph::module, 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 390 of file DDHGCalHEAlgo.cc.
411 double hthick = 0.5 * thick;
418 <<
" of dimensions " << rmid <<
", " << rout <<
", " << hthick <<
", 0.0, 360.0";
423 <<
" at " << tran <<
" with no rotation";
425 double thickTot(0), zpos(-hthick);
433 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Layer " << ly <<
":" <<
ii <<
" R " << rmid <<
":" << rout
445 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << solid.
name() <<
" Tubs made of " << matName
446 <<
" of dimensions " << rmid <<
", " << rout <<
", " << hthickl <<
", 0.0, 360.0";
453 << glog1.
name() <<
" at " <<
r1 <<
" with no rotation";
459 if (thickTot > thick) {
460 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" is smaller than " << thickTot
461 <<
": thickness of all its components in the top part **** ERROR ****";
463 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" does not match with " << thickTot
464 <<
" of the components in top part";
469 name = nameM +
"Bottom";
474 <<
" of dimensions " << rin <<
", " << rmid <<
", " << hthick <<
", 0.0, 360.0";
479 <<
" at " << tran <<
" with no rotation";
490 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Layer " << ly <<
":" <<
ii <<
" R " << rin <<
":" << rmid
502 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << solid.
name() <<
" Tubs made of " << matName
503 <<
" of dimensions " << rin <<
", " << rmid <<
", " << hthickl <<
", 0.0, 360.0";
510 << glog1.
name() <<
" at " <<
r1 <<
" with no rotation";
523 if (thickTot > thick) {
524 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" is smaller than " << thickTot
525 <<
": thickness of all its components in the top part **** ERROR ****";
527 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" does not match with " << thickTot
528 <<
" of the components in top part";
References funct::abs(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), HLT_FULL_cff::eta1, HLT_FULL_cff::eta2, 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 533 of file DDHGCalHEAlgo.cc.
540 static const double sqrt3 =
std::sqrt(3.0);
542 double R = 2.0 *
r / sqrt3;
543 double dy = 0.75 *
R;
544 int N = (
int)(0.5 * rout /
r) + 2;
547 int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0),
ntot(0),
nin(0);
548 std::vector<int> ntype(6, 0);
549 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: " << glog.
ddname() <<
" rin:rout " << rin <<
":" << rout <<
" zpos "
550 << zpos <<
" N " <<
N <<
" for maximum u, v Offset; Shift " << xyoff.first <<
":"
553 for (
int u = -
N; u <=
N; ++u) {
554 for (
int v = -
N;
v <=
N; ++
v) {
557 double xpos = xyoff.first + nc *
r;
558 double ypos = xyoff.second +
nr *
dy;
594 << glog.
ddname() <<
" at " << tran <<
" with no rotation";
601 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEAlgo: Maximum # of u " << ium <<
":" << iumAll <<
" # of v " << ivm <<
":"
602 << ivmAll <<
" and " <<
nin <<
":" << kount <<
":" <<
ntot <<
" wafers (" << ntype[0]
603 <<
":" << ntype[1] <<
":" << ntype[2] <<
":" << ntype[3] <<
":" << ntype[4] <<
":"
604 << ntype[5] <<
") for " << glog.
ddname() <<
" R " << rin <<
":" << rout;
References funct::abs(), filterCSVwithJSON::copy, TCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dy, first, createfilelist::int, gpuVertexFinder::iv, HGCalParameters::k_CornerSize, N, Skims_PA_cff::name, nin, EgHLTOffHistBins_cfi::nr, gpuPixelDoublets::ntot, HGCalTypes::packTypeUV(), 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 |
◆ sensitiveMode_
int DDHGCalHEAlgo::sensitiveMode_ |
|
private |
◆ slopeB_
std::vector<double> DDHGCalHEAlgo::slopeB_ |
|
private |
◆ slopeT_
std::vector<double> DDHGCalHEAlgo::slopeT_ |
|
private |
◆ thick_
std::vector<double> DDHGCalHEAlgo::thick_ |
|
private |
◆ tol1_
constexpr double DDHGCalHEAlgo::tol1_ = 0.01 |
|
staticconstexprprivate |
◆ tol2_
constexpr double DDHGCalHEAlgo::tol2_ = 0.00001 |
|
staticconstexprprivate |
◆ 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 double tol2_
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_
Log< level::Warning, false > LogWarning
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_
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
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_
std::vector< double > rad100to200_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
static int32_t packTypeUV(int type, int u, int v)
std::vector< double > rad200to300_
std::vector< std::string > namesTop_
std::vector< double > rMaxFront_
std::vector< std::string > wafers_
static constexpr double tol1_
std::vector< int > layers_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Tan< T >::type tan(const T &t)
Log< level::Error, false > LogError
std::vector< double > slopeB_
std::vector< std::string > materialsBot_
std::vector< int > copyNumberBot_
Log< level::Info, true > LogVerbatim
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< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
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)