16 #include "CLHEP/Units/GlobalPhysicalConstants.h"
17 #include "CLHEP/Units/GlobalSystemOfUnits.h"
19 using namespace CLHEP;
22 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB info: Creating an instance" ;
32 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB info: Initialize" ;
34 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB IQUAD_MIN";
36 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB IQUAD_MAX";
38 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB Layers";
40 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB PRESH_Z_TOTAL";
42 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB material";
44 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB R_MAX";
46 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB R_MIN";
48 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB waf_intra_col_sep";
54 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB wedge_length = "
61 absorbx = double(nArgs[
"absorbx"]);
62 absorby = double(nArgs[
"absorby"]);
70 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB Dummy Material = "
75 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB info: end initialize" ;
80 LogDebug(
"HCalGeom") <<
"******** DDEcalPreshowerAlgoTB execute!";
100 std::ostringstream
name;
101 name <<
"SF" << int((50+I)/10) << I-int(I/10)*10;
138 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB debug : Child "
139 << layer <<
" Copy 1 in " << parent().
name()
140 <<
" with translation " << tran
150 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : doWedges()";
151 int nx(0), ny(0), icopy(0), icopyt(0);
152 double xpos(0), ypos(0), zpos(0);
163 for(
int I=1;
I<=sz;++
I) {
180 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
181 << name1 <<
" copy = " << icopy <<
" ("
182 << icopyt <<
") in Mother " << parent().
name()
183 <<
" translation " <<tran <<
" rotation " <<rot1;
190 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
191 << name2 <<
" copy = " << icopy <<
" ("
192 << icopyt <<
") in Mother " << parent().
name()
193 <<
" translation " <<tran <<
" rotation " <<rot2;
211 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
212 << name1 <<
" copy = " << icopy <<
" ("
213 << icopyt <<
") in Mother " << parent().
name()
214 <<
" translation " <<tran <<
" rotation " <<rot1;
221 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
222 << name2 <<
" copy = " << icopy <<
" ("
223 << icopyt <<
") in Mother " << parent().
name()
224 <<
" translation " <<tran <<
" rotation " <<rot2;
233 for(
int I=sz;
I>=1;--
I) {
249 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
250 << name1 <<
" copy = " << icopy <<
" ("
251 << icopyt <<
") in Mother " << parent().
name()
252 <<
" translation " <<tran <<
" rotation " << rot1;
259 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
260 << name2 <<
" copy = " << icopy <<
" ("
261 << icopyt <<
") in Mother " << parent().
name()
262 <<
" translation " <<tran <<
" rotation "<<rot2;
280 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
281 << name1 <<
" copy = " << icopy <<
" ("
282 << icopyt <<
") in Mother " << parent().
name()
283 <<
" translation " <<tran <<
" rotation " <<rot1;
290 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
291 << name2 <<
" copy = " << icopy <<
" ("
292 << icopyt <<
") in Mother " << parent().
name()
293 <<
" translation " <<tran <<
" rotation " <<rot2;
305 for(
int I=1;
I<=sz;++
I) {
321 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
322 << name1 <<
" copy = " << icopy <<
" ("
323 << icopyt+nxt <<
") in Mother " << parent().
name()
324 <<
" translation " <<tran <<
" rotation " <<rot1;
331 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
332 << name2 <<
" copy = " << icopy <<
" ("
333 << icopyt <<
") in Mother " << parent().
name()
334 <<
" translation " <<tran <<
" rotation " <<rot2;
353 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
354 << name1 <<
" copy = " << icopy <<
" ("
355 << icopyt+nxt <<
") in Mother " << parent().
name()
356 <<
" translation " <<tran <<
" rotation " <<rot1;
363 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
364 << name2 <<
" copy = " << icopy <<
" ("
365 << icopyt <<
") in Mother " << parent().
name()
366 <<
" translation " <<tran <<
" rotation " <<rot2;
374 for(
int I=sz;
I>=1;--
I) {
390 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
391 << name1 <<
" copy = " << icopy <<
" ("
392 << icopyt+nxt <<
") in Mother " << parent().
name()
393 <<
" translation " <<tran <<
" rotation " <<rot1;
400 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
401 << name2 <<
" copy = " << icopy <<
" ("
402 << icopyt <<
") in Mother " << parent().
name()
403 <<
" translation " <<tran <<
" rotation " <<rot2;
422 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
423 << name1 <<
" copy = " << icopy <<
" ("
424 << icopyt+nxt <<
") in Mother " << parent().
name()
425 <<
" translation " <<tran <<
" rotation " <<rot1;
432 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child "
433 << name2 <<
" copy = " << icopy <<
" ("
434 << icopyt <<
") in Mother " << parent().
name()
435 <<
" translation " <<tran <<
" rotation " <<rot2;
444 double xpos(0), ypos(0);
451 for(
size_t i = 0;
i<32; ++
i) {
455 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << child1
456 <<
"\ncopy number " <<
i+1 <<
" in " << mother1
457 <<
" translation "<< tran <<
" rotation " <<
rot;
462 LogDebug(
"HCalGeom") <<
"DDEcalPreshowerAlgoTB::debug : Child " << child2
463 <<
"\ncopy number " <<
i+1 <<
" in " << mother2
464 <<
" translation "<< tran <<
" rotation " <<
rot;
void doSens(DDCompactView &pos)
std::vector< double > quadMax_
DDMaterial is used to define and access material information.
std::vector< std::string > materials_
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
DDName is used to identify DDD entities uniquely.
std::vector< double > micromodulesy
static std::string & ns()
std::string dummyMaterial
type of data representation of DDCompactView
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
void execute(DDCompactView &pos)
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 doWedges(DDCompactView &pos)
std::vector< double > micromodulesx
const std::string & name() const
Returns the name.