33 tile = sArgs[
"TileName"];
38 names = vsArgs[
"VolumeNames"];
39 thick = vArgs[
"Thickness"];
45 <<
"DDAHcalModuleAlgo: " <<
materials.size() <<
" types of volumes";
46 for (
unsigned int i = 0;
i <
names.size(); ++
i)
48 <<
"Volume [" <<
i <<
"] " <<
names[
i] <<
" of thickness " <<
thick[
i]
49 <<
" filled with " <<
materials[
i] <<
" first copy number " 56 <<
"DDAHcalModuleAlgo: " <<
layers.size() <<
" blocks";
57 for (
unsigned int i = 0;
i <
layers.size(); ++
i)
59 <<
"Block [" <<
i <<
"] of thickness " <<
layerThick[
i] <<
" with " 66 <<
"DDAHcalModuleAlgo: " <<
layerType.size() <<
" layers";
69 <<
"Layer [" <<
i <<
"] with material type " <<
layerType[
i]
76 <<
"DDAHcalModuleAlgo: " <<
widths.size() <<
" sizes for width " 78 for (
unsigned int i = 0;
i <
widths.size(); ++
i)
86 <<
"DDAHcalModuleAlgo: " <<
tileN.size() <<
" tile positioning parameters";
87 for (
unsigned int i = 0;
i <
tileN.size(); ++
i)
109 edm::LogVerbatim(
"HGCalGeom") <<
"<<== End of DDAHcalModuleAlgo construction";
116 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo test: \t\tInside Layers";
120 for (
unsigned int i = 0;
i <
layers.size();
i++) {
122 int laymax = laymin +
layers[
i];
125 for (
int ly = laymin; ly < laymax; ++ly) {
134 <<
"DDAHcalModuleAlgo test: Layer " << ly <<
":" << ii <<
" Front " 135 << zi <<
" Back " << zo <<
" superlayer thickness " << layerThick[
i];
148 <<
"DDAHcalModuleAlgo: " << solid.
name() <<
" Box made of " 149 << matName <<
" of dimensions " << 0.5 *
widths[0] <<
", " 159 <<
"DDAHcalModuleAlgo: " << solid.
name() <<
" Box made of " 160 << matName <<
" of dimensions " << 0.5 *
widths[1] <<
", " 167 cpv.
position(glog, module, copy, r1, rot);
171 <<
"DDAHcalModuleAlgo: " << glog.
name() <<
" number " << copy
172 <<
" positioned in " << module.
name() <<
" at " << r1 <<
" with " 179 if (fabs(thickTot - layerThick[
i]) < 0.00001) {
180 }
else if (thickTot > layerThick[i]) {
182 <<
"Thickness of the partition " << layerThick[
i]
183 <<
" is smaller than thickness " << thickTot
184 <<
" of all its components **** ERROR ****\n";
185 }
else if (thickTot < layerThick[i]) {
187 <<
"Thickness of the partition " << layerThick[
i]
188 <<
" does not match with " << thickTot <<
" of the components\n";
196 int nrow =
tileN[1] / 2;
200 << glog.
ddname() <<
" Row " << nrow <<
" Column " <<
ncol;
202 for (
int nr = -nrow; nr <= nrow; ++nr) {
203 int inr = (nr >= 0) ? nr : -nr;
206 for (
int nc = -ncol; nc <=
ncol; ++nc) {
207 int inc = (nc >= 0) ? nc : -nc;
210 if (nr != 0 && nc != 0) {
213 int copy = inr * 10 + inc;
214 if (nc < 0) copy += 100;
215 if (nr < 0) copy += 1000;
221 <<
"DDAHcalModuleAlgo: " << name <<
" number " << copy
222 <<
" positioned in " << glog.
ddname() <<
" at " << tran
230 <<
"DDAHcalModuleAlgo: " << kount <<
" tiles for " << glog.
ddname();
std::vector< int > layerType
std::vector< std::string > materials
std::vector< double > widths
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
std::vector< int > copyNumber
DDMaterial is used to define and access material information.
~DDAHcalModuleAlgo() override
DDName is used to identify DDD entities uniquely.
std::vector< double > heights
void execute(DDCompactView &cpv) override
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
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< double > thick
std::vector< std::string > names
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
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< double > layerThick
std::vector< double > tileStep
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
std::vector< int > layers
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< int > layerSense
void positionSensitive(DDLogicalPart &glog, DDCompactView &cpv)