12 #include "CLHEP/Units/GlobalPhysicalConstants.h"
13 #include "CLHEP/Units/GlobalSystemOfUnits.h"
49 LogDebug(
"TrackerGeom") <<
"DDTrackerLinear info: Creating an instance";
59 number = int(nArgs[
"Number"]);
60 theta = nArgs[
"Theta"];
63 delta = nArgs[
"Delta"];
65 rotMat = sArgs[
"Rotation"];
66 if (nArgs.find(
"StartCopyNo") != nArgs.end()) {
67 startcn = size_t(nArgs[
"StartCopyNo"]);
71 if (nArgs.find(
"IncrCopyNo") != nArgs.end()) {
72 incrcn = int(nArgs[
"IncrCopyNo"]);
80 LogDebug(
"TrackerGeom") <<
"DDTrackerLinear debug: Parent " << parentName <<
"\tChild " <<
childName <<
" NameSpace "
82 <<
phi / CLHEP::deg <<
"\t(Offset/Delta) " <<
offset <<
", " <<
delta <<
"\tCentre "
93 if (rotstr !=
"NULL") {
100 cpv.
position(child, mother, ci, tran, rot);
101 LogDebug(
"TrackerGeom") <<
"DDTrackerLinear test: " << child <<
" number " << ci <<
" positioned in " << mother
102 <<
" at " << tran <<
" with " <<
rot;
static AlgebraicMatrix initialize()
void execute(DDCompactView &cpv) override
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
Sin< T >::type sin(const T &t)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
~DDTrackerLinear() override
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
Cos< T >::type cos(const T &t)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation