|
|
Go to the documentation of this file.
14 return a->type() % 100 <
b->type() % 100;
19 if (
std::abs(
a->translation().rho() -
b->translation().rho()) < 0.01 &&
20 (
std::abs(
a->translation().phi() -
b->translation().phi()) < 0.01 ||
21 std::abs(
a->translation().phi() -
b->translation().phi()) > 6.27) &&
22 a->translation().z() *
b->translation().z() > 0.0) {
30 if (
a->translation().z() ==
b->translation().z()) {
31 return a->translation().rho() <
b->translation().rho();
34 return a->translation().z() <
b->translation().z();
43 double phi =
a->phi();
48 std::vector<const GeometricDet*>
const&
comp =
a->components().back()->components();
69 double phi1 =
i->phi() >= 0 ?
i->phi() :
i->phi() + 2 *
M_PI;
73 double com =
comp.front()->phi() >= 0 ?
comp.front()->phi() : 2 *
M_PI +
comp.front()->phi();
82 std::vector<const GeometricDet*>
comp;
83 a->deepComponents(
comp);
87 for (
auto&
i :
comp) {
95 for (
auto&
i :
comp) {
103 for (
auto&
i :
comp) {
104 double phi1 =
i->phi() >= 0 ?
i->phi() :
i->translation().phi() + 2 *
M_PI;
108 double com =
comp.front()->phi() >= 0 ?
comp.front()->phi() : 2 *
M_PI +
comp.front()->phi();
117 double phi =
a->phi();
135 return a->deepComponents().front()->rho() <
b->deepComponents().front()->rho();
140 template <
class FilteredView>
146 <<
tracker->name() << std::endl;
148 bool doLayers = fv.firstChild();
151 buildComponent(fv,
tracker, attribute);
152 doLayers = fv.nextSibling();
static double getPhiModuleMirror(const GeometricDet *a)
static bool isLessZ(const GeometricDet *a, const GeometricDet *b)
static double getPhiGluedModule(const GeometricDet *a)
static double getPhiModule(const GeometricDet *a)
static double getPhi(const GeometricDet *a)
static bool isLessR(const GeometricDet *a, const GeometricDet *b)
static bool subDetByType(const GeometricDet *a, const GeometricDet *b)
static bool isLessModZ(const GeometricDet *a, const GeometricDet *b)
static double getPhiMirror(const GeometricDet *a)
static double getPhiGluedModuleMirror(const GeometricDet *a)
void build(FilteredView &, GeometricDet *, const std::string &) override
static bool isLessRModule(const GeometricDet *a, const GeometricDet *b)
Abs< T >::type abs(const T &t)
static bool phiSortNP(const GeometricDet *a, const GeometricDet *b)