110 std::string rotstr =
"R0" + std::to_string(phideg);
115 <<
"rotation " << rotstr <<
"\t" << 90 <<
"," << phideg <<
"," << 90 <<
","
116 << (phideg + 90) <<
", 0, 0";
120 rotation.emplace_back(rot);
124 std::vector<DDLogicalPart> logs;
139 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalFibreBundle: Creating a new solid " << name <<
" a cons with dZ " <<
deltaZ
140 <<
" rStart " <<
rStart[
i] - dStart <<
":" <<
rStart[
i] + dStart <<
" rEnd "
141 << r0 - dEnd <<
":" << r0 + dEnd <<
" Phi " <<
convertRadToDeg(-0.5 * dPhi) <<
":"
145 logs.emplace_back(
log);
150 int nY = (int)(
bundle.size()) / numberPhi;
151 for (
unsigned int i = 0;
i <
bundle.size();
i++) {
153 int ir = (int)(
i) / nY;
158 if (ib >= 0 && ib < (
int)(logs.size())) {
159 cpv.
position(logs[ib], mother, copy, tran, rotation[ir]);
161 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalFibreBundle: " << logs[
ib].name() <<
" number " << copy
162 <<
" positioned in " << mother <<
" at " << tran <<
" with " << rotation[ir];
Log< level::Info, true > LogVerbatim
static std::vector< std::string > checklist log
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.
static DDSolid cons(const DDName &name, double zhalf, double rInMinusZ, double rOutMinusZ, double rInPlusZ, double rOutPlusZ, double phiFrom, double deltaPhi)
constexpr NumType convertRadToDeg(NumType radians)
DDName is used to identify DDD entities uniquely.
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
Cos< T >::type cos(const T &t)
std::vector< double > areaSection
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
std::vector< double > rEnd
std::vector< double > rStart
std::vector< int > bundle
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation