43 static constexpr
double tol_ = 0.00001;
73 tile_ = sArgs[
"TileName"];
78 names_ = vsArgs[
"VolumeNames"];
79 thick_ = vArgs[
"Thickness"];
83 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
91 for (
unsigned int i = 0;
i <
layers_.size(); ++
i)
108 for (
unsigned int i = 0;
i <
widths_.size(); ++
i)
114 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo: " <<
tileN_.size() <<
" tile positioning parameters";
115 for (
unsigned int i = 0;
i <
tileN_.size(); ++
i)
135 edm::LogVerbatim(
"HGCalGeom") <<
"<<== End of DDAHcalModuleAlgo construction";
141 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo test: \t\tInside Layers";
145 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
150 for (
int ly = laymin; ly < laymax; ++ly) {
158 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo test: Layer " << ly <<
":" <<
ii <<
" Front " << zi
159 <<
" Back " << zo <<
" superlayer thickness " <<
layerThick_[
i];
169 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo: " << solid.
name() <<
" Box made of " << matName
170 <<
" of dimensions " << 0.5 *
widths_[0] <<
", " << 0.5 *
heights_[0] <<
", " 178 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo: " << solid.
name() <<
" Box made of " << matName
179 <<
" of dimensions " << 0.5 *
widths_[1] <<
", " << 0.5 *
heights_[1] <<
", " 190 <<
module.name() <<
" at " <<
r1 <<
" with " <<
rot;
199 << thickTot <<
" of all its components **** ERROR ****\n";
202 << thickTot <<
" of the components\n";
215 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
216 int inr = (
nr >= 0) ?
nr : -
nr;
218 for (
int nc = -ncol; nc <= ncol; ++nc) {
219 int inc = (nc >= 0) ? nc : -nc;
221 if (
nr != 0 && nc != 0) {
std::vector< double > heights_
Log< level::Info, true > LogVerbatim
static constexpr int kSignRowColumn_
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
static constexpr double tol_
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
DDMaterial is used to define and access material information.
std::vector< double > layerThick_
std::vector< int > layers_
DDName is used to identify DDD entities uniquely.
void execute(DDCompactView &cpv) override
static std::string & ns()
std::vector< std::string > materials_
Log< level::Error, false > LogError
Compact representation of the geometrical detector hierarchy.
A DDSolid represents the shape of a part.
static std::string to_string(const XMLCh *ch)
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
std::vector< int > layerType_
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 ...
std::vector< double > tileStep_
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 > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
static constexpr int kRowColumn_
std::vector< double > widths_
std::vector< int > copyNumber_
std::vector< int > layerSense_
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< std::string > names_
Log< level::Warning, false > LogWarning
std::vector< int > tileN_
std::vector< double > thick_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
static constexpr int kColumn_
Constants used.
void positionSensitive(DDLogicalPart &glog, DDCompactView &cpv)