|
|
|
static constexpr double | tol_ = 0.00001 |
|
Definition at line 26 of file DDAHcalModuleAlgo.cc.
◆ DDAHcalModuleAlgo()
DDAHcalModuleAlgo::DDAHcalModuleAlgo |
( |
| ) |
|
◆ constructLayers()
Definition at line 139 of file DDAHcalModuleAlgo.cc.
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";
References DDSolidFactory::box(), filterCSVwithJSON::copy, copyNumber_, DDBase< N, C >::ddname(), DDSplit(), first, heights_, mps_fire::i, idNameSpace_, cuy::ii, layers_, layerSense_, layerThick_, layerType_, materials_, callgraph::module, Skims_PA_cff::name, DDBase< N, C >::name(), names_, DDCompactView::position(), positionSensitive(), diffTwoXMLs::r1, makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, thick_, tol_, widths_, zMinBlock_, and geometryCSVtoXML::zz.
Referenced by execute().
◆ execute()
◆ initialize()
Definition at line 68 of file DDAHcalModuleAlgo.cc.
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)
References copyNumber_, dbl_to_int(), heights_, mps_fire::i, idNameSpace_, layers_, layerSense_, layerThick_, layerType_, materials_, names_, DDCurrentNamespace::ns(), thick_, tile_, tileN_, tileStep_, widths_, and zMinBlock_.
◆ positionSensitive()
Definition at line 208 of file DDAHcalModuleAlgo.cc.
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) {
References filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), first, AHCalParameters::kColumn_, AHCalParameters::kRowColumn_, AHCalParameters::kSignRowColumn_, Skims_PA_cff::name, EgHLTOffHistBins_cfi::nr, DDCompactView::position(), idealTransformation::rotation, edm::second(), tile_, tileN_, and tileStep_.
Referenced by constructLayers().
◆ copyNumber_
std::vector<int> DDAHcalModuleAlgo::copyNumber_ |
|
private |
◆ heights_
std::vector<double> DDAHcalModuleAlgo::heights_ |
|
private |
◆ idNameSpace_
std::string DDAHcalModuleAlgo::idNameSpace_ |
|
private |
◆ layers_
std::vector<int> DDAHcalModuleAlgo::layers_ |
|
private |
◆ layerSense_
std::vector<int> DDAHcalModuleAlgo::layerSense_ |
|
private |
◆ layerThick_
std::vector<double> DDAHcalModuleAlgo::layerThick_ |
|
private |
◆ layerType_
std::vector<int> DDAHcalModuleAlgo::layerType_ |
|
private |
◆ materials_
std::vector<std::string> DDAHcalModuleAlgo::materials_ |
|
private |
◆ names_
std::vector<std::string> DDAHcalModuleAlgo::names_ |
|
private |
◆ thick_
std::vector<double> DDAHcalModuleAlgo::thick_ |
|
private |
◆ tile_
std::string DDAHcalModuleAlgo::tile_ |
|
private |
◆ tileN_
std::vector<int> DDAHcalModuleAlgo::tileN_ |
|
private |
◆ tileStep_
std::vector<double> DDAHcalModuleAlgo::tileStep_ |
|
private |
◆ tol_
constexpr double DDAHcalModuleAlgo::tol_ = 0.00001 |
|
staticconstexprprivate |
◆ widths_
std::vector<double> DDAHcalModuleAlgo::widths_ |
|
private |
◆ zMinBlock_
double DDAHcalModuleAlgo::zMinBlock_ |
|
private |
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)
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
std::vector< std::string > materials_
std::vector< int > layers_
std::vector< double > widths_
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 > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
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)