|
|
|
void | constructBlocks (const DDLogicalPart &, DDCompactView &cpv) |
|
void | constructLayers (int block, int layerFront, int layerBack, double zFront, double thick, bool ignore, const DDLogicalPart &, DDCompactView &) |
|
void | positionSensitive (double zpos, int copyIn, int type, double rmax, int ncrMax, bool ignoreCenter, const std::string &, const DDMaterial &, const DDLogicalPart &, DDCompactView &cpv) |
|
Definition at line 23 of file DDHGCalTBModuleX.cc.
◆ DDHGCalTBModuleX()
DDHGCalTBModuleX::DDHGCalTBModuleX |
( |
| ) |
|
◆ ~DDHGCalTBModuleX()
DDHGCalTBModuleX::~DDHGCalTBModuleX |
( |
| ) |
|
|
override |
◆ constructBlocks()
Definition at line 199 of file DDHGCalTBModuleX.cc.
208 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: Block " <<
i <<
":" <<
name <<
" z " << zi <<
":" << zo <<
" R "
220 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: " << glog.
name() <<
" number " <<
i <<
" positioned in "
221 <<
parent.name() <<
" at " <<
r1 <<
" with " <<
rot;
References blockThick_, constructLayers(), DDBase< N, C >::ddname(), DDSplit(), dqmdumpme::first, genMat_, mps_fire::i, idNameSpace_, inOut_, layerBackIn_, layerBackOut_, layerFrontIn_, layerFrontOut_, Skims_PA_cff::name, DDBase< N, C >::name(), class-composition::parent, DDCompactView::position(), diffTwoXMLs::r1, rMaxB_, makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, DDSolidFactory::tubs(), zMinBlock_, and geometryCSVtoXML::zz.
Referenced by execute().
◆ constructLayers()
void DDHGCalTBModuleX::constructLayers |
( |
int |
block, |
|
|
int |
layerFront, |
|
|
int |
layerBack, |
|
|
double |
zFront, |
|
|
double |
thick, |
|
|
bool |
ignore, |
|
|
const DDLogicalPart & |
module, |
|
|
DDCompactView & |
cpv |
|
) |
| |
|
protected |
Definition at line 234 of file DDHGCalTBModuleX.cc.
243 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: \t\tInside Block " <<
block <<
" Layers " << firstLayer <<
":"
244 << lastLayer <<
" zFront " << zFront <<
" thickness " << totalWidth <<
" ignore Center "
247 double zi(zFront), thickTot(0);
248 for (
int ly = firstLayer; ly <= lastLayer; ++ly) {
257 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: " <<
name <<
" Layer " << ly <<
":" <<
ii <<
" Z " << zi <<
":"
275 <<
module.name() <<
" at " <<
r1 <<
" with " <<
rot;
284 if (fabs(thickTot - totalWidth) <
tolerance_) {
285 }
else if (thickTot > totalWidth) {
286 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << totalWidth <<
" is smaller than " << thickTot
287 <<
": total thickness of all its components in " <<
module.name() <<
" Layers "
288 << firstLayer <<
":" << lastLayer <<
":" << ignoreCenter <<
"**** ERROR ****";
289 }
else if (thickTot < totalWidth) {
290 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << totalWidth <<
" does not match with " << thickTot
291 <<
" of the components in " <<
module.name() <<
" Layers " << firstLayer <<
":"
292 << lastLayer <<
":" << ignoreCenter;
References absorbH_, absorbW_, groupFilesInBlocks::block, DDSolidFactory::box(), filterCSVwithJSON::copy, copyNumber_, DDBase< N, C >::ddname(), DDSplit(), dqmdumpme::first, idNameSpace_, cuy::ii, layerSense_, layerThick_, layerType_, materials_, maxModule_, Skims_PA_cff::name, DDBase< N, C >::name(), names_, DDCompactView::position(), positionSensitive(), diffTwoXMLs::r1, rMax_, makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, tolerance_, and geometryCSVtoXML::zz.
Referenced by constructBlocks().
◆ execute()
◆ initialize()
Definition at line 98 of file DDHGCalTBModuleX.cc.
103 wafer_ = vsArgs[
"WaferName"];
105 genMat_ = sArgs[
"GeneralMaterial"];
109 for (
auto wafer :
wafer_) {
121 names_ = vsArgs[
"VolumeNames"];
127 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
166 rMax_ = nArgs[
"rMax"];
170 <<
" wafer width " <<
waferW_ <<
" gap among wafers " <<
waferGap_ <<
" absorber width "
176 <<
parent().name().name();
References absorbH_, absorbW_, blockThick_, copyNumber_, covers_, dbl_to_int(), genMat_, mps_fire::i, idNameSpace_, inOut_, dqmdumpme::k, layerBackIn_, layerBackOut_, layerFrontIn_, layerFrontOut_, layerSense_, layerThick_, layerType_, materials_, maxModule_, names_, DDCurrentNamespace::ns(), class-composition::parent, rMax_, rMaxB_, rMaxFine_, wafer_, waferGap_, waferW_, and zMinBlock_.
◆ positionSensitive()
void DDHGCalTBModuleX::positionSensitive |
( |
double |
zpos, |
|
|
int |
copyIn, |
|
|
int |
type, |
|
|
double |
rmax, |
|
|
int |
ncrMax, |
|
|
bool |
ignoreCenter, |
|
|
const std::string & |
nameIn, |
|
|
const DDMaterial & |
matter, |
|
|
const DDLogicalPart & |
glog, |
|
|
DDCompactView & |
cpv |
|
) |
| |
|
protected |
Definition at line 296 of file DDHGCalTBModuleX.cc.
307 double dx = 0.5 * ww;
310 int ncol = (
int)(2.0 * rout / ww) + 1;
313 int incm(0), inrm(0);
315 <<
" Row " << nrow <<
" column " << ncol <<
" ncrMax " << ncrMax <<
" Z " << zpos
316 <<
" Center " << ignoreCenter <<
" name " << nameIn <<
" matter " << matter.
name();
323 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
325 for (
int nc = -ncol; nc <= ncol; ++nc) {
327 if ((inr % 2 == inc % 2) && (!ignoreCenter || nc != 0 ||
nr != 0)) {
328 double xpos = nc *
dx;
329 double ypos =
nr *
dy;
332 yc[0] = ypos - 0.5 *
rr;
334 yc[1] = ypos + 0.5 *
rr;
338 yc[3] = ypos + 0.5 *
rr;
340 yc[4] = ypos - 0.5 *
rr;
343 bool cornerAll(
true);
344 for (
int k = 0;
k < 6; ++
k) {
350 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
353 int copy = inr * 100 + inc;
366 <<
"DDHGCalTBModuleX: " << glog1.
ddname() <<
" number " << copyIn <<
" positioned in " << glog.
ddname()
367 <<
" at " << tran <<
" with " <<
rotation;
381 copy += copyIn * 1000000;
400 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: # of columns " << incm <<
" # of rows " << inrm <<
" and "
401 << kount <<
" wafers for " << glog.
ddname();
References funct::abs(), copies_, filterCSVwithJSON::copy, covers_, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dx, PVValHelper::dy, dqmdumpme::first, idNameSpace_, createfilelist::int, dqmdumpme::k, min(), Skims_PA_cff::name, DDBase< N, C >::name(), EgHLTOffHistBins_cfi::nr, DDCompactView::position(), rMaxFine_, idealTransformation::rotation, findQualityFiles::rr, edm::second(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, tan30deg_, wafer_, waferGap_, and waferW_.
Referenced by constructLayers().
◆ absorbH_
double DDHGCalTBModuleX::absorbH_ |
|
private |
◆ absorbW_
double DDHGCalTBModuleX::absorbW_ |
|
private |
◆ blockThick_
std::vector<double> DDHGCalTBModuleX::blockThick_ |
|
private |
◆ copies_
std::unordered_set<int> DDHGCalTBModuleX::copies_ |
|
private |
◆ copyNumber_
std::vector<int> DDHGCalTBModuleX::copyNumber_ |
|
private |
◆ covers_
std::vector<std::string> DDHGCalTBModuleX::covers_ |
|
private |
◆ factor_
const double DDHGCalTBModuleX::factor_ |
|
private |
◆ genMat_
std::string DDHGCalTBModuleX::genMat_ |
|
private |
◆ idName_
std::string DDHGCalTBModuleX::idName_ |
|
private |
◆ idNameSpace_
std::string DDHGCalTBModuleX::idNameSpace_ |
|
private |
◆ inOut_
int DDHGCalTBModuleX::inOut_ |
|
private |
◆ layerBackIn_
std::vector<int> DDHGCalTBModuleX::layerBackIn_ |
|
private |
◆ layerBackOut_
std::vector<int> DDHGCalTBModuleX::layerBackOut_ |
|
private |
◆ layerFrontIn_
std::vector<int> DDHGCalTBModuleX::layerFrontIn_ |
|
private |
◆ layerFrontOut_
std::vector<int> DDHGCalTBModuleX::layerFrontOut_ |
|
private |
◆ layerSense_
std::vector<int> DDHGCalTBModuleX::layerSense_ |
|
private |
◆ layerThick_
std::vector<double> DDHGCalTBModuleX::layerThick_ |
|
private |
◆ layerType_
std::vector<int> DDHGCalTBModuleX::layerType_ |
|
private |
◆ materials_
std::vector<std::string> DDHGCalTBModuleX::materials_ |
|
private |
◆ maxModule_
std::vector<int> DDHGCalTBModuleX::maxModule_ |
|
private |
◆ names_
std::vector<std::string> DDHGCalTBModuleX::names_ |
|
private |
◆ rMax_
double DDHGCalTBModuleX::rMax_ |
|
private |
◆ rMaxB_
double DDHGCalTBModuleX::rMaxB_ |
|
private |
◆ rMaxFine_
double DDHGCalTBModuleX::rMaxFine_ |
|
private |
◆ tan30deg_
const double DDHGCalTBModuleX::tan30deg_ |
|
private |
◆ tolerance_
constexpr double DDHGCalTBModuleX::tolerance_ = 0.00001 |
|
staticconstexprprivate |
◆ wafer_
std::vector<std::string> DDHGCalTBModuleX::wafer_ |
|
private |
◆ waferGap_
double DDHGCalTBModuleX::waferGap_ |
|
private |
◆ waferW_
double DDHGCalTBModuleX::waferW_ |
|
private |
◆ zMinBlock_
double DDHGCalTBModuleX::zMinBlock_ |
|
private |
std::vector< int > layerFrontOut_
DDName is used to identify DDD entities uniquely.
std::vector< int > layerFrontIn_
U second(std::pair< T, U > const &p)
std::vector< std::string > wafer_
static constexpr double tolerance_
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
DDMaterial is used to define and access material information.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
std::unordered_set< int > copies_
void constructBlocks(const DDLogicalPart &, DDCompactView &cpv)
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< int > layerType_
std::vector< std::string > covers_
std::vector< std::string > materials_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Tan< T >::type tan(const T &t)
std::vector< int > layerSense_
void constructLayers(int block, int layerFront, int layerBack, double zFront, double thick, bool ignore, const DDLogicalPart &, DDCompactView &)
std::vector< int > layerBackIn_
std::vector< double > blockThick_
void positionSensitive(double zpos, int copyIn, int type, double rmax, int ncrMax, bool ignoreCenter, const std::string &, const DDMaterial &, const DDLogicalPart &, DDCompactView &cpv)
std::vector< int > layerBackOut_
static std::string & ns()
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
std::vector< std::string > names_
std::vector< int > maxModule_
Abs< T >::type abs(const T &t)
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
std::vector< int > copyNumber_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > layerThick_
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)