Go to the source code of this file.
◆ algorithm()
Definition at line 9 of file DDTrackerLinear.cc.
References writedatasetfile::args, edmMakeDummyCfis::base, funct::cos(), dumpMFGeometry_cfg::delta, MillePedeFileConverter_cfg::e, mps_fire::i, cms::DDNamespace::name(), contentValuesFiles::number, hltrates_dqm_sourceclient-live_cfg::offset, PixelTestBeamValidation_cfi::Position, makeMuonMisalignmentScenario::rot, cms::DDNamespace::rotation(), ALPAKA_ACCELERATOR_NAMESPACE::brokenline::rotMat, cms::s_executed, funct::sin(), theta(), and cms::DDNamespace::volume().
12 int startcn =
args.find(
"StartCopyNo") ?
args.value<
int>(
"StartCopyNo") : 1;
13 int incrcn =
args.find(
"IncrCopyNo") ?
args.value<
int>(
"IncrCopyNo") : 1;
15 double theta =
args.value<
double>(
"Theta");
16 double phi =
args.value<
double>(
"Phi");
18 double delta =
args.value<
double>(
"Delta");
19 vector<double> centre =
args.value<vector<double> >(
"Center");
20 string rotMat =
args.value<
string>(
"Rotation");
24 edm::LogVerbatim(
"TrackerGeom") <<
"DDTrackerLinear +++ Executing Algorithm. rParent:" << mother.name();
25 edm::LogVerbatim(
"TrackerGeom") <<
"debug: Parent " << mother.name() <<
"\tChild " <<
child.name() <<
" NameSpace " 26 << ns.name() <<
"\tNumber " <<
number <<
"\tAxis (theta/phi) " <<
theta / dd4hep::deg
27 <<
", " <<
phi / dd4hep::deg <<
"\t(Offset/Delta) " <<
offset <<
", " <<
delta 28 <<
"\tCentre " << centre[0] <<
", " << centre[1] <<
", " << centre[2] <<
"\tRotation " 34 const Rotation3D&
rot = ns.rotation(
rotMat);
36 for (
int i = 0, ci = startcn;
i <
number;
i++, ci += incrcn) {
38 mother.placeVolume(
child, ci, Transform3D(
rot, tran));
40 edm::LogVerbatim(
"TrackerGeom") <<
child.name() <<
" number " << ci <<
" positioned in " << mother.name() <<
" at " 41 << tran <<
" with " <<
rot;
Log< level::Info, true > LogVerbatim
Sin< T >::type sin(const T &t)
riemannFit::Matrix2d rotMat
static constexpr long s_executed
Cos< T >::type cos(const T &t)
Geom::Theta< T > theta() const
◆ DD4HEP_OPEN_PLUGIN()
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_track_DDTrackerLinear |
|
|
) |
| |