|
|
Go to the documentation of this file.
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) {
void execute(DDCompactView &cpv) override
std::vector< std::string > names_
std::vector< double > thick_
DDName is used to identify DDD entities uniquely.
void positionSensitive(DDLogicalPart &glog, DDCompactView &cpv)
std::vector< int > layerType_
U second(std::pair< T, U > const &p)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
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
std::vector< double > tileStep_
DDMaterial is used to define and access material information.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
std::vector< std::string > materials_
std::vector< int > layers_
std::vector< double > widths_
#define DEFINE_EDM_PLUGIN(factory, type, name)
static constexpr int kSignRowColumn_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
std::vector< int > layerSense_
Log< level::Error, false > LogError
static constexpr int kColumn_
Constants used.
std::vector< int > tileN_
Log< level::Info, true > LogVerbatim
static std::string & ns()
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
std::vector< double > heights_
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
static constexpr double tol_
std::vector< int > copyNumber_
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
static constexpr int kRowColumn_
std::vector< double > layerThick_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)