16 return a->type() % 100 <
b->type() % 100;
21 if (
std::abs(
a->translation().rho() -
b->translation().rho()) < 0.01 &&
22 (
std::abs(
a->translation().phi() -
b->translation().phi()) < 0.01 ||
23 std::abs(
a->translation().phi() -
b->translation().phi()) > 6.27) &&
24 a->translation().z() *
b->translation().z() > 0.0) {
32 if (
a->translation().z() ==
b->translation().z()) {
33 return a->translation().rho() <
b->translation().rho();
36 return a->translation().z() <
b->translation().z();
45 double phi =
a->phi();
50 std::vector<const GeometricDet*>
const&
comp =
a->components().back()->components();
71 double phi1 =
i->phi() >= 0 ?
i->phi() :
i->phi() + 2 *
M_PI;
75 double com =
comp.front()->phi() >= 0 ?
comp.front()->phi() : 2 *
M_PI +
comp.front()->phi();
84 std::vector<const GeometricDet*>
comp;
85 a->deepComponents(
comp);
89 for (
auto&
i :
comp) {
97 for (
auto&
i :
comp) {
105 for (
auto&
i :
comp) {
106 double phi1 =
i->phi() >= 0 ?
i->phi() :
i->translation().phi() + 2 *
M_PI;
110 double com =
comp.front()->phi() >= 0 ?
comp.front()->phi() : 2 *
M_PI +
comp.front()->phi();
119 double phi =
a->phi();
137 return a->deepComponents().front()->rho() <
b->deepComponents().front()->rho();
151 <<
"CmsTrackerLevelBuilder::build called on volume" 152 <<
" tracker->name() = " <<
tracker->name() <<
" tracker->path() = " << fv.
geoHistory()
153 <<
" tracker->type() = " <<
tracker->type();
161 edm::LogVerbatim(
"CmsTrackerLevelBuilder") <<
"Calling buildComponent, before";
165 buildComponent(fv,
tracker, attribute);
168 edm::LogVerbatim(
"CmsTrackerLevelBuilder") <<
"Calling buildComponent, after";
183 <<
"CmsTrackerLevelBuilder::build: Exit, finished all buildComponents calls.";
196 <<
"CmsTrackerLevelBuilder::build called on volume" 197 <<
" tracker->name() = " <<
tracker->name() <<
" tracker->path() = " << fv.
geoHistory()
198 <<
" tracker->type() = " <<
tracker->type();
212 <<
"Calling buildComponent, before." 213 <<
" level = " <<
level <<
" type = " <<
type <<
" fv.level() = " << fv.
level()
218 buildComponent(fv,
tracker, attribute);
222 <<
"Calling buildComponent, after." 223 <<
" level = " <<
level <<
" type = " <<
type <<
" fv.level() = " << fv.
level()
233 <<
"CmsTrackerLevelBuilder::build: Exit, finished all buildComponents calls.";
Log< level::Info, true > LogVerbatim
static bool isLessZ(const GeometricDet *a, const GeometricDet *b)
bool parent()
set the current node to the parent node ...
static double getPhiModuleMirror(const GeometricDet *a)
bool nextSibling()
set the current node to the next sibling ...
const std::vector< const Node * > geoHistory() const
static double getPhiMirror(const GeometricDet *a)
static bool subDetByType(const GeometricDet *a, const GeometricDet *b)
void build(FilteredView &, GeometricDet *, const std::string &) override
static bool isLessModZ(const GeometricDet *a, const GeometricDet *b)
static bool isLessR(const GeometricDet *a, const GeometricDet *b)
Abs< T >::type abs(const T &t)
const int level() const
get Iterator level
static double getPhiGluedModuleMirror(const GeometricDet *a)
bool firstChild()
set the current node to the first child
static bool phiSortNP(const GeometricDet *a, const GeometricDet *b)
static double getPhiModule(const GeometricDet *a)
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
bool firstChild()
set the current node to the first child ...
static double getPhiGluedModule(const GeometricDet *a)
static bool isLessRModule(const GeometricDet *a, const GeometricDet *b)
static double getPhi(const GeometricDet *a)