43 return (phi >= 0 ? phi : phi + 2 *
M_PI);
47 std::vector<const GeometricTimingDet*>
const&
comp = a->
components().back()->components();
63 double temp = phi /
float(comp.size()) < 0. ? 2 *
M_PI + phi /
float(comp.size()) : phi /
float(comp.size());
68 double phi1 =
i->phi() >= 0 ?
i->phi() :
i->phi() + 2 *
M_PI;
72 double com = comp.front()->phi() >= 0 ? comp.front()->phi() : 2 *
M_PI + comp.front()->phi();
74 std::abs(phi /
float(comp.size()) - com) > 2. ?
M_PI - phi /
float(comp.size()) : phi /
float(comp.size());
75 temp = temp >= 0 ? temp : 2 *
M_PI +
temp;
81 std::vector<const GeometricTimingDet*>
comp;
86 for (
auto&
i : comp) {
94 for (
auto&
i : comp) {
98 double temp = phi /
float(comp.size()) < 0. ? 2 *
M_PI + phi /
float(comp.size()) : phi /
float(comp.size());
102 for (
auto&
i : comp) {
103 double phi1 =
i->phi() >= 0 ?
i->phi() :
i->translation().phi() + 2 *
M_PI;
107 double com = comp.front()->phi() >= 0 ? comp.front()->phi() : 2 *
M_PI + comp.front()->phi();
109 std::abs(phi /
float(comp.size()) - com) > 2. ?
M_PI - phi /
float(comp.size()) : phi /
float(comp.size());
110 temp = temp >= 0 ? temp : 2 *
M_PI +
temp;
117 phi = (phi >= 0 ? phi : phi + 2 *
M_PI);
123 phi = (phi <=
M_PI ? phi : phi - 2 *
M_PI);
129 phi = (phi <=
M_PI ? phi : phi - 2 *
M_PI);
138 return a->
rho() < b->
rho();
144 <<
" " << tracker->
name() << std::endl;
bool parent()
set the current node to the parent node ...
static bool subDetByType(const GeometricTimingDet *a, const GeometricTimingDet *b)
static bool phiSortNP(const GeometricTimingDet *a, const GeometricTimingDet *b)
static bool isLessR(const GeometricTimingDet *a, const GeometricTimingDet *b)
bool nextSibling()
set the current node to the next sibling ...
static double getPhi(const GeometricTimingDet *a)
GeometricTimingEnumType type() const
static double getPhiGluedModule(const GeometricTimingDet *a)
static double getPhiGluedModuleMirror(const GeometricTimingDet *a)
const std::vector< DDGeoHistory > & history() const
ConstGeometricTimingDetContainer & components()
ConstGeometricTimingDetContainer deepComponents() const
virtual void sortNS(DDFilteredView &, GeometricTimingDet *)
Abs< T >::type abs(const T &t)
static bool isLessRModule(const GeometricTimingDet *a, const GeometricTimingDet *b)
void build(DDFilteredView &, GeometricTimingDet *, std::string) override
static bool isLessZ(const GeometricTimingDet *a, const GeometricTimingDet *b)
std::string const & name() const
static double getPhiModule(const GeometricTimingDet *a)
virtual void buildComponent(DDFilteredView &, GeometricTimingDet *, std::string)=0
static bool isLessModZ(const GeometricTimingDet *a, const GeometricTimingDet *b)
bool firstChild()
set the current node to the first child ...
static double getPhiModuleMirror(const GeometricTimingDet *a)
static double getPhiMirror(const GeometricTimingDet *a)
Translation const & translation() const