|
|
|
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 24 of file DDHGCalTBModuleX.cc.
◆ DDHGCalTBModuleX()
DDHGCalTBModuleX::DDHGCalTBModuleX |
( |
| ) |
|
◆ ~DDHGCalTBModuleX()
DDHGCalTBModuleX::~DDHGCalTBModuleX |
( |
| ) |
|
|
override |
◆ constructBlocks()
Definition at line 200 of file DDHGCalTBModuleX.cc.
209 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: Block " <<
i <<
":" <<
name <<
" z " << zi <<
":" << zo <<
" R "
221 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: " << glog.
name() <<
" number " <<
i <<
" positioned in "
222 <<
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 235 of file DDHGCalTBModuleX.cc.
244 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: \t\tInside Block " <<
block <<
" Layers " << firstLayer <<
":"
245 << lastLayer <<
" zFront " << zFront <<
" thickness " << totalWidth <<
" ignore Center "
248 double zi(zFront), thickTot(0);
249 for (
int ly = firstLayer; ly <= lastLayer; ++ly) {
258 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: " <<
name <<
" Layer " << ly <<
":" <<
ii <<
" Z " << zi <<
":"
276 << module.
name() <<
" at " <<
r1 <<
" with " <<
rot;
285 if (fabs(thickTot - totalWidth) <
tolerance_) {
286 }
else if (thickTot > totalWidth) {
287 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << totalWidth <<
" is smaller than " << thickTot
288 <<
": total thickness of all its components in " << module.
name() <<
" Layers "
289 << firstLayer <<
":" << lastLayer <<
":" << ignoreCenter <<
"**** ERROR ****";
290 }
else if (thickTot < totalWidth) {
291 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << totalWidth <<
" does not match with " << thickTot
292 <<
" of the components in " << module.
name() <<
" Layers " << firstLayer <<
":"
293 << 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 99 of file DDHGCalTBModuleX.cc.
104 wafer_ = vsArgs[
"WaferName"];
106 genMat_ = sArgs[
"GeneralMaterial"];
110 for (
auto wafer :
wafer_) {
122 names_ = vsArgs[
"VolumeNames"];
128 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
167 rMax_ = nArgs[
"rMax"];
171 <<
" wafer width " <<
waferW_ <<
" gap among wafers " <<
waferGap_ <<
" absorber width "
177 <<
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 297 of file DDHGCalTBModuleX.cc.
308 double dx = 0.5 * ww;
311 int ncol = (
int)(2.0 * rout / ww) + 1;
314 int incm(0), inrm(0);
316 <<
" Row " << nrow <<
" column " << ncol <<
" ncrMax " << ncrMax <<
" Z " << zpos
317 <<
" Center " << ignoreCenter <<
" name " << nameIn <<
" matter " << matter.
name();
324 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
326 for (
int nc = -ncol; nc <= ncol; ++nc) {
328 if ((inr % 2 == inc % 2) && (!ignoreCenter || nc != 0 ||
nr != 0)) {
329 double xpos = nc *
dx;
330 double ypos =
nr *
dy;
333 yc[0] = ypos - 0.5 *
rr;
335 yc[1] = ypos + 0.5 *
rr;
339 yc[3] = ypos + 0.5 *
rr;
341 yc[4] = ypos - 0.5 *
rr;
344 bool cornerAll(
true);
345 for (
int k = 0;
k < 6; ++
k) {
351 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
363 <<
"DDHGCalTBModuleX: " << glog1.
ddname() <<
" number " << copyIn <<
" positioned in " << glog.
ddname()
364 <<
" at " << tran <<
" with " <<
rotation;
378 copy += copyIn * 1000000;
397 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModuleX: # of columns " << incm <<
" # of rows " << inrm <<
" and "
398 << 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, HGCalTypes::packTypeUV(), 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.
Log< level::Warning, false > LogWarning
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_
static int32_t packTypeUV(int type, int u, int v)
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_
Log< level::Error, false > LogError
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)
Log< level::Info, true > LogVerbatim
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)