143 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
145 double routF =
rMax(zi);
149 for (
int ly = laymin; ly < laymax; ++ly) {
160 << ii <<
" Front " << zi <<
", " << routF
161 <<
" Back " << zo <<
", " << rinB
162 <<
" superlayer thickness " << layerThick_[
i];
174 <<
" box of dimension " <<
absorbW_ <<
":" 184 <<
" Tubs made of " << matName
185 <<
" of dimensions " << rinB <<
", " 186 << routF <<
", " << 0.5 *
thick_[
ii]
197 <<
" number " << copy <<
" positioned in " 198 << module.
name() <<
" at " <<
r1 205 if (fabs(thickTot - layerThick_[
i]) < 0.00001) {
206 }
else if (thickTot > layerThick_[i]) {
208 <<
"Thickness of the partition " << layerThick_[
i]
209 <<
" is smaller than thickness " << thickTot
210 <<
" of all its components **** ERROR ****\n";
211 }
else if (thickTot < layerThick_[i]) {
213 <<
"Thickness of the partition " << layerThick_[
i]
214 <<
" does not match with " << thickTot <<
" of the components\n";
std::vector< std::string > names_
std::vector< double > layerThick_
DDMaterial is used to define and access material information.
void positionSensitive(DDLogicalPart &glog, int type, double rin, double rout, DDCompactView &cpv)
DDName is used to identify DDD entities uniquely.
std::vector< int > layerSense_
constexpr long double piRadians(M_PI)
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 > layerType_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
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.
std::vector< int > layers_
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
std::vector< double > slopeB_
std::vector< double > thick_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< std::string > materials_