Go to the source code of this file.
◆ algorithm()
Definition at line 10 of file DDHCalFibreBundle.cc.
15 double deltaZ =
args.value<
double>(
"DeltaZ");
16 int numberPhi =
args.value<
int>(
"NumberPhi");
18 std::vector<double> areaSection =
args.value<std::vector<double> >(
"AreaSection");
19 std::vector<double> rStart =
args.value<std::vector<double> >(
"RadiusStart");
20 std::vector<double> rEnd =
args.value<std::vector<double> >(
"RadiusEnd");
21 std::vector<int> bundle =
args.value<std::vector<int> >(
"Bundles");
22 double tilt =
args.value<
double>(
"TiltAngle");
25 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalFibreBundle: Parent " <<
args.parentName() <<
" with " << bundle.size()
26 <<
" children with prefix " << childPrefix <<
", material " << material <<
" with "
27 << numberPhi <<
" bundles along phi; width of"
29 <<
" along phi and with " << rStart.size() <<
" different bundle types";
30 for (
unsigned int i = 0;
i < areaSection.size(); ++
i)
34 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalFibreBundle: NameSpace " << ns.name() <<
" Tilt Angle "
36 for (
unsigned int i = 0;
i < bundle.size(); ++
i) {
38 <<
" with Type " << bundle[
i];
47 std::vector<dd4hep::Rotation3D>
rotation;
48 dd4hep::Rotation3D
rot;
49 for (
int i = 0;
i < numberPhi; ++
i) {
51 rot = dd4hep::RotationZ(
phi);
54 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalFibreBundle: Creating a new rotation " << 90 <<
"," << phideg <<
"," << 90
55 <<
"," << (phideg + 90) <<
", 0, 0";
61 std::vector<dd4hep::Volume> logs;
62 for (
unsigned int i = 0;
i < areaSection.size(); ++
i) {
64 double dStart = areaSection[
i] / (2 *
dPhi * rStart[
i]);
65 double dEnd = areaSection[
i] / (2 *
dPhi * r0);
67 dd4hep::Solid solid = dd4hep::ConeSegment(
68 name, 0.5 * deltaZ, rStart[
i] - dStart, rStart[
i] + dStart, r0 - dEnd, r0 + dEnd, -0.5 *
dPhi, 0.5 *
dPhi);
70 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalFibreBundle: Creating a new solid " <<
name <<
" a cons with dZ " << deltaZ
71 <<
" rStart " << rStart[
i] - dStart <<
":" << rStart[
i] + dStart <<
" rEnd "
76 logs.emplace_back(
log);
81 int nY = static_cast<int>(bundle.size()) / numberPhi;
82 for (
unsigned int i = 0;
i < bundle.size();
i++) {
83 int ir = static_cast<int>(
i) / nY;
88 if (
ib >= 0 &&
ib < (
int)(logs.size())) {
92 <<
" positioned in " << mother.name() <<
" at (0, 0, 0) with " <<
rotation[ir];
References writedatasetfile::args, geant_units::operators::convertCm2ToMm2(), geant_units::operators::convertCmToMm(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, funct::cos(), SiPixelRawToDigiRegional_cfi::deltaPhi, HLT_FULL_cff::dPhi, MillePedeFileConverter_cfg::e, mps_fire::i, cuy::ib, dqm-mbProfile::log, cms::DDNamespace::material(), g4SimHits_cfi::Material, Skims_PA_cff::name, cms::DDNamespace::name(), makeMuonMisalignmentScenario::rot, idealTransformation::rotation, AlCaHLTBitMon_QueryRunRegistry::string, and cms::DDNamespace::volume().
◆ DD4HEP_OPEN_PLUGIN()
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_hcal_DDHCalFibreBundle |
|
|
) |
| |