16 #include "CLHEP/Units/GlobalPhysicalConstants.h" 17 #include "CLHEP/Units/GlobalSystemOfUnits.h" 19 using namespace CLHEP;
22 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB info: Creating an instance";
30 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB info: Initialize";
32 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB IQUAD_MIN";
34 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB IQUAD_MAX";
36 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB Layers";
38 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB PRESH_Z_TOTAL";
40 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB material";
42 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB R_MAX";
44 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB R_MIN";
46 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB waf_intra_col_sep";
58 absorbx = double(nArgs[
"absorbx"]);
59 absorby = double(nArgs[
"absorby"]);
71 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB info: end initialize";
75 LogDebug(
"HCalGeom") <<
"******** DDEcalPreshowerAlgoTB execute!";
94 std::ostringstream
name;
106 if (
I == 7 ||
I == 15) {
132 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB debug : Child " <<
layer <<
" Copy 1 in " <<
parent().name()
133 <<
" with translation " << tran <<
" and rotation " <<
DDRotation();
140 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : doWedges()";
141 int icopy(0), icopyt(0);
142 double xpos(0), ypos(0), zpos(0);
151 for (
int I = 1;
I <= sz; ++
I) {
170 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 171 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 179 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 180 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 201 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 202 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 210 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 211 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 220 for (
int I = sz;
I >= 1; --
I) {
238 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 239 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 247 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 248 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 269 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 270 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 278 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 279 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 292 for (
int I = 1;
I <= sz; ++
I) {
310 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 311 << icopyt + nxt <<
") in Mother " <<
parent().name() <<
" translation " << tran
312 <<
" rotation " << rot1;
319 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 320 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 342 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 343 << icopyt + nxt <<
") in Mother " <<
parent().name() <<
" translation " << tran
344 <<
" rotation " << rot1;
351 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 352 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 361 for (
int I = sz;
I >= 1; --
I) {
379 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 380 << icopyt + nxt <<
") in Mother " <<
parent().name() <<
" translation " << tran
381 <<
" rotation " << rot1;
388 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 389 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 411 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << name1 <<
" copy = " << icopy <<
" (" 412 << icopyt + nxt <<
") in Mother " <<
parent().name() <<
" translation " << tran
413 <<
" rotation " << rot1;
420 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
name2 <<
" copy = " << icopy <<
" (" 421 << icopyt <<
") in Mother " <<
parent().name() <<
" translation " << tran <<
" rotation " 429 double xpos(0), ypos(0);
436 for (
size_t i = 0;
i < 32; ++
i) {
440 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " <<
child1 <<
"\ncopy number " <<
i + 1 <<
" in " 441 << mother1 <<
" translation " << tran <<
" rotation " <<
rot;
446 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << child2 <<
"\ncopy number " <<
i + 1 <<
" in " 447 << mother2 <<
" translation " << tran <<
" rotation " <<
rot;
void doSens(DDCompactView &pos)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
std::vector< double > quadMax_
DDMaterial is used to define and access material information.
std::vector< std::string > materials_
DDName is used to identify DDD entities uniquely.
std::vector< double > micromodulesy
static std::string & ns()
std::string dummyMaterial
Compact representation of the geometrical detector hierarchy.
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
std::vector< double > rminVec
std::string getMaterial(unsigned int i) const
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
const std::complex< double > I
std::vector< double > rmaxVec
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
double ywedge_ceramic_diff
void doLayers(DDCompactView &pos)
std::vector< double > thickLayers_
double zwedge_ceramic_diff
std::vector< double > quadMin_
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
void doWedges(DDCompactView &pos)
std::vector< double > micromodulesx
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
void execute(DDCompactView &pos) override