|
|
|
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 311 of file DDHGCalMixLayer.cc.
317 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
323 for (
int ly = laymin; ly < laymax; ++ly) {
333 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
334 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
340 std::vector<double> pgonZ, pgonRin, pgonRout;
355 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
358 pgonRout[isec] = rmax;
369 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
370 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
379 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: " << solid.
name() <<
" Tubs made of " << matName
380 <<
" of dimensions " << rinB <<
":" << rins <<
", " << routF <<
":" << routs
381 <<
", " << hthick <<
", 0.0, 360.0 and positioned in: " << glog.
name()
382 <<
" number " <<
copy;
392 << module.
name() <<
" at " <<
r1 <<
" with no rotation";
402 <<
": thickness of all its components **** ERROR ****";
405 << 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(), 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 115 of file DDHGCalMixLayer.cc.
120 waferTypes_ = static_cast<int>(nArgs[
"WaferTypes"]);
149 slopeB_ = vArgs[
"SlopeBottom"];
156 for (
unsigned int i = 0;
i <
slopeB_.size(); ++
i)
159 for (
unsigned int i = 0;
i <
slopeT_.size(); ++
i)
167 <<
" partial modules\nDDHGCalMixLayer:Full Modules:";
168 unsigned int i1max = static_cast<unsigned int>(
waferFull_.size());
169 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
170 std::ostringstream st1;
172 for (
unsigned int i =
i1;
i <
i2; ++
i)
177 i1max = static_cast<unsigned int>(
waferPart_.size());
178 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
179 std::ostringstream st1;
181 for (
unsigned int i =
i1;
i <
i2; ++
i)
187 names_ = vsArgs[
"VolumeNames"];
188 thick_ = vArgs[
"Thickness"];
192 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
200 for (
unsigned int i = 0;
i <
layers_.size(); ++
i)
217 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 411 of file DDHGCalMixLayer.cc.
425 double hthick = 0.5 * thick;
427 double thickTot(0), zpos(-hthick);
442 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: Layer " << ly <<
":" <<
ii <<
" Copy " <<
copy <<
" Tiles "
443 << firstTile <<
":" << lastTile;
445 for (
int ti = firstTile; ti < lastTile; ++ti) {
450 double phi1 = dphi * (fimin - 1);
451 double phi2 = dphi * (fimax - fimin + 1);
456 <<
r2 <<
" Thick " << (2.0 * hthickl) <<
" phi " << fimin <<
":" << fimax <<
":"
465 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: " << glog1.
name() <<
" Tubs made of " << matName
466 <<
" of dimensions " <<
r1 <<
", " <<
r2 <<
", " << hthickl <<
", "
473 << glog.
name() <<
" at " << tran <<
" with no rotation";
480 if (thickTot > thick) {
481 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" is smaller than " << thickTot
482 <<
": thickness of all its components in the top part **** ERROR ****";
484 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << thick <<
" does not match with " << thickTot
485 <<
" of the components in top part";
491 static const double sqrt3 =
std::sqrt(3.0);
497 double R = 2.0 *
r / sqrt3;
498 double dy = 0.75 *
R;
501 int ium(0), ivm(0), kount(0);
502 std::vector<int> ntype(3, 0);
504 <<
" Shift " << xyoff.first <<
":" << xyoff.second <<
" WaferSize "
507 for (
int k = firstWafer;
k < lastWafer; ++
k) {
516 double xpos = xyoff.first + nc *
r;
517 double ypos = xyoff.second +
nr *
dy;
531 <<
":" << orien <<
":" <<
i <<
":" <<
waferPart_.size();
538 <<
" Wafer " << wafer <<
" number " <<
copy <<
" type :part:orien:ind " <<
type <<
":"
555 <<
type <<
" positioned in " << glog.
ddname() <<
" at " << tran
556 <<
" with no rotation";
560 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixLayer: Maximum # of u " << ium <<
" # of v " << ivm <<
" and " << kount
561 <<
" wafers (" << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
") for "
References funct::abs(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, 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::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_
◆ layerCenter_
std::vector<int> DDHGCalMixLayer::layerCenter_ |
|
private |
◆ 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 |
◆ 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_
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)
std::vector< int > layerCenter_
constexpr std::array< uint8_t, layerIndexSize > layer
void positionMix(const DDLogicalPart &glog, const std::string &nameM, int copyM, double thick, const DDMaterial &matter, int layerType, DDCompactView &cpv)
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< 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)