|
|
|
static constexpr double | tol1_ = 0.01 |
|
static constexpr double | tol2_ = 0.00001 |
|
Definition at line 35 of file DDHGCalMixLayer.cc.
◆ DDHGCalMixLayer()
DDHGCalMixLayer::DDHGCalMixLayer |
( |
| ) |
|
◆ constructLayers()
Definition at line 310 of file DDHGCalMixLayer.cc.
313 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
319 for (
int ly = laymin; ly < laymax; ++ly) {
329 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
330 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
336 std::vector<double> pgonZ, pgonRin, pgonRout;
351 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
354 pgonRout[isec] = rmax;
365 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
366 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
375 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: " << solid.
name() <<
" Tubs made of " << matName
376 <<
" of dimensions " << rinB <<
":" << rins <<
", " << routF <<
":" << routs
377 <<
", " << hthick <<
", 0.0, 360.0 and positioned in: " << glog.
name()
378 <<
" number " <<
copy;
388 <<
module.name() <<
" at " <<
r1 <<
" with no rotation";
398 <<
": thickness of all its components **** ERROR ****";
401 << 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()
Definition at line 114 of file DDHGCalMixLayer.cc.
119 waferTypes_ = static_cast<int>(nArgs[
"WaferTypes"]);
148 slopeB_ = vArgs[
"SlopeBottom"];
155 for (
unsigned int i = 0;
i <
slopeB_.size(); ++
i)
158 for (
unsigned int i = 0;
i <
slopeT_.size(); ++
i)
166 <<
" partial modules\nDDHGCalMixLayer:Full Modules:";
167 unsigned int i1max = static_cast<unsigned int>(
waferFull_.size());
168 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
169 std::ostringstream st1;
171 for (
unsigned int i =
i1;
i <
i2; ++
i)
176 i1max = static_cast<unsigned int>(
waferPart_.size());
177 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
178 std::ostringstream st1;
180 for (
unsigned int i =
i1;
i <
i2; ++
i)
186 names_ = vsArgs[
"VolumeNames"];
187 thick_ = vArgs[
"Thickness"];
191 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
199 for (
unsigned int i = 0;
i <
layers_.size(); ++
i)
216 edm::LogVerbatim(
"HGCalGeom") <<
"First copy number for layer type " <<
i <<
":" <<
ii <<
" with "
References angle_units::operators::convertRadToDeg(), funct::cos(), dbl_to_int(), mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, cuy::ii, createfilelist::int, dqmdumpme::k, min(), DDCurrentNamespace::ns(), HGCalTileIndex::tileUnpack(), HGCalWaferIndex::waferLayer(), HGCalProperty::waferOrient(), HGCalProperty::waferPartial(), HGCalProperty::waferThick(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
◆ positionMix()
Definition at line 407 of file DDHGCalMixLayer.cc.
420 double hthick = 0.5 * thick;
422 double thickTot(0), zpos(-hthick);
437 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: Layer " << ly <<
":" <<
ii <<
" Copy " <<
copy <<
" Tiles "
438 << firstTile <<
":" << lastTile;
440 for (
int ti = firstTile; ti < lastTile; ++ti) {
445 double phi1 = dphi * (fimin - 1);
446 double phi2 = dphi * (fimax - fimin + 1);
451 <<
r2 <<
" Thick " << (2.0 * hthickl) <<
" phi " << fimin <<
":" << fimax <<
":"
460 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: " << glog1.
name() <<
" Tubs made of " << matName
461 <<
" of dimensions " <<
r1 <<
", " <<
r2 <<
", " << hthickl <<
", "
468 << glog.
name() <<
" at " << tran <<
" with no rotation";
475 if (thickTot > thick) {
476 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" is smaller than " << thickTot
477 <<
": thickness of all its components in the top part **** ERROR ****";
479 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" does not match with " << thickTot
480 <<
" of the components in top part";
486 static const double sqrt3 =
std::sqrt(3.0);
495 double R = 2.0 *
r / sqrt3;
496 double dy = 0.75 *
R;
499 int ium(0), ivm(0), kount(0);
500 std::vector<int> ntype(3, 0);
502 <<
" Shift " << xyoff.first <<
":" << xyoff.second <<
" WaferSize "
505 for (
int k = firstWafer;
k < lastWafer; ++
k) {
514 double xpos = xyoff.first + nc *
r;
515 double ypos = xyoff.second +
nr *
dy;
529 <<
":" << orien <<
":" <<
i <<
":" <<
waferPart_.size();
536 <<
" Wafer " << wafer <<
" number " <<
copy <<
" type :part:orien:ind " <<
type <<
":"
553 <<
type <<
" positioned in " << glog.
ddname() <<
" at " << tran
554 <<
" with no rotation";
558 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: Maximum # of u " << ium <<
" # of v " << ivm <<
" and " << kount
559 <<
" wafers (" << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
") for "
References funct::abs(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, HGCalTypes::CornerCenteredLambda, HGCalTypes::CornerCenteredY, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dy, first, mps_fire::i, cuy::ii, gpuVertexFinder::iv, dqmdumpme::k, phase1PixelTopology::layer, Skims_PA_cff::name, DDBase< N, C >::name(), EgHLTOffHistBins_cfi::nr, HGCalTypes::packTypeUV(), DDCompactView::position(), dttmaxenums::R, alignCSCRings::r, diffTwoXMLs::r1, diffTwoXMLs::r2, makeMuonMisalignmentScenario::rot, edm::second(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, HGCalTileIndex::tileUnpack(), DDSolidFactory::tubs(), findQualityFiles::v, HGCalTypes::WaferCenteredBack, HGCalTypes::WaferFull, HGCalWaferIndex::waferLayer(), HGCalProperty::waferOrient(), HGCalProperty::waferPartial(), HGCalProperty::waferThick(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
◆ absorbMode_
int DDHGCalMixLayer::absorbMode_ |
|
private |
◆ alpha_
double DDHGCalMixLayer::alpha_ |
|
private |
◆ copies_
std::unordered_set<int> DDHGCalMixLayer::copies_ |
|
private |
◆ copyNumber_
std::vector<int> DDHGCalMixLayer::copyNumber_ |
|
private |
◆ copyNumberTop_
std::vector<int> DDHGCalMixLayer::copyNumberTop_ |
|
private |
◆ cosAlpha_
double DDHGCalMixLayer::cosAlpha_ |
|
private |
◆ facingTypes_
int DDHGCalMixLayer::facingTypes_ |
|
private |
◆ firstLayer_
int DDHGCalMixLayer::firstLayer_ |
|
private |
◆ geomTools_
◆ layers_
std::vector<int> DDHGCalMixLayer::layers_ |
|
private |
◆ layerSense_
std::vector<int> DDHGCalMixLayer::layerSense_ |
|
private |
◆ layerThick_
std::vector<double> DDHGCalMixLayer::layerThick_ |
|
private |
◆ layerThickTop_
std::vector<double> DDHGCalMixLayer::layerThickTop_ |
|
private |
◆ layerType_
std::vector<int> DDHGCalMixLayer::layerType_ |
|
private |
◆ layerTypes_
std::vector<int> DDHGCalMixLayer::layerTypes_ |
|
private |
◆ layerTypeTop_
std::vector<int> DDHGCalMixLayer::layerTypeTop_ |
|
private |
◆ materials_
std::vector<std::string> DDHGCalMixLayer::materials_ |
|
private |
◆ materialTop_
std::vector<std::string> DDHGCalMixLayer::materialTop_ |
|
private |
◆ names_
std::vector<std::string> DDHGCalMixLayer::names_ |
|
private |
◆ nameSpace_
std::string DDHGCalMixLayer::nameSpace_ |
|
private |
◆ namesTop_
std::vector<std::string> DDHGCalMixLayer::namesTop_ |
|
private |
◆ orientationTypes_
int DDHGCalMixLayer::orientationTypes_ |
|
private |
◆ partialTypes_
int DDHGCalMixLayer::partialTypes_ |
|
private |
◆ phiBinsScint_
int DDHGCalMixLayer::phiBinsScint_ |
|
private |
◆ rMaxFront_
std::vector<double> DDHGCalMixLayer::rMaxFront_ |
|
private |
◆ rMinFront_
std::vector<double> DDHGCalMixLayer::rMinFront_ |
|
private |
◆ sectors_
int DDHGCalMixLayer::sectors_ |
|
private |
◆ sensitiveMode_
int DDHGCalMixLayer::sensitiveMode_ |
|
private |
◆ slopeB_
std::vector<double> DDHGCalMixLayer::slopeB_ |
|
private |
◆ slopeT_
std::vector<double> DDHGCalMixLayer::slopeT_ |
|
private |
◆ thick_
std::vector<double> DDHGCalMixLayer::thick_ |
|
private |
◆ tileIndex_
std::vector<int> DDHGCalMixLayer::tileIndex_ |
|
private |
◆ tileLayerStart_
std::vector<int> DDHGCalMixLayer::tileLayerStart_ |
|
private |
◆ tilePhis_
std::vector<int> DDHGCalMixLayer::tilePhis_ |
|
private |
◆ tileRMax_
std::vector<double> DDHGCalMixLayer::tileRMax_ |
|
private |
◆ tileRMin_
std::vector<double> DDHGCalMixLayer::tileRMin_ |
|
private |
◆ tol1_
constexpr double DDHGCalMixLayer::tol1_ = 0.01 |
|
staticconstexprprivate |
◆ tol2_
constexpr double DDHGCalMixLayer::tol2_ = 0.00001 |
|
staticconstexprprivate |
◆ waferFull_
std::vector<std::string> DDHGCalMixLayer::waferFull_ |
|
private |
◆ waferIndex_
std::vector<int> DDHGCalMixLayer::waferIndex_ |
|
private |
◆ waferLayerStart_
std::vector<int> DDHGCalMixLayer::waferLayerStart_ |
|
private |
◆ waferPart_
std::vector<std::string> DDHGCalMixLayer::waferPart_ |
|
private |
◆ waferProperty_
std::vector<int> DDHGCalMixLayer::waferProperty_ |
|
private |
◆ waferSepar_
double DDHGCalMixLayer::waferSepar_ |
|
private |
◆ waferSize_
double DDHGCalMixLayer::waferSize_ |
|
private |
◆ waferTypes_
int DDHGCalMixLayer::waferTypes_ |
|
private |
◆ zFrontB_
std::vector<double> DDHGCalMixLayer::zFrontB_ |
|
private |
◆ zFrontT_
std::vector<double> DDHGCalMixLayer::zFrontT_ |
|
private |
◆ zMinBlock_
double DDHGCalMixLayer::zMinBlock_ |
|
private |
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
DDName is used to identify DDD entities uniquely.
std::vector< double > rMinFront_
constexpr NumType convertRadToDeg(NumType radians)
std::vector< std::string > materials_
std::vector< double > layerThick_
int32_t waferU(const int32_t index)
int32_t waferOrient(const int32_t property)
std::vector< double > zFrontB_
std::vector< int > layerType_
U second(std::pair< T, U > const &p)
std::vector< int > waferProperty_
std::vector< int > tilePhis_
void positionMix(const DDLogicalPart &glog, const std::string &nameM, int copyM, double thick, const DDMaterial &matter, DDCompactView &cpv)
std::vector< int > layerTypeTop_
Log< level::Warning, false > LogWarning
std::vector< std::string > names_
std::vector< std::string > waferFull_
std::vector< std::string > materialTop_
DDMaterial is used to define and access material information.
std::vector< int > copyNumberTop_
Cos< T >::type cos(const T &t)
std::vector< int > waferLayerStart_
static constexpr double tol1_
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< std::string > namesTop_
int32_t waferV(const int32_t index)
HGCalGeomTools geomTools_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< int > layers_
std::vector< double > rMaxFront_
static int32_t packTypeUV(int type, int u, int v)
constexpr std::array< uint8_t, layerIndexSize > layer
static constexpr double tol2_
std::vector< double > layerThickTop_
std::tuple< int32_t, int32_t, int32_t > tileUnpack(int32_t index)
std::vector< int > tileIndex_
std::vector< int > layerTypes_
std::vector< double > thick_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
std::vector< double > slopeT_
int32_t waferThick(const int32_t property)
std::vector< int > tileLayerStart_
std::vector< std::string > waferPart_
Log< level::Error, false > LogError
std::vector< int > copyNumber_
int32_t waferPartial(const int32_t property)
std::vector< double > slopeB_
std::vector< double > zFrontT_
int32_t waferLayer(const int32_t index)
Log< level::Info, true > LogVerbatim
static std::string & ns()
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
std::vector< int > waferIndex_
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< int > layerSense_
std::unordered_set< int > copies_
std::vector< double > tileRMax_
std::vector< double > tileRMin_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)