16 return a->
type() % 100 < b->
type() % 100;
46 return (phi >= 0 ? phi : phi + 2 *
M_PI);
50 std::vector<const GeometricDet*>
const&
comp = a->
components().back()->components();
66 double temp = phi / float(comp.size()) < 0. ? 2 *
M_PI + phi /
float(comp.size()) : phi /
float(comp.size());
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();
77 std::abs(phi /
float(comp.size()) - com) > 2. ?
M_PI - phi / float(comp.size()) : phi /
float(comp.size());
78 temp = temp >= 0 ? temp : 2 *
M_PI +
temp;
84 std::vector<const GeometricDet*>
comp;
89 for (
auto&
i : comp) {
97 for (
auto&
i : comp) {
101 double temp = phi / float(comp.size()) < 0. ? 2 *
M_PI + phi /
float(comp.size()) : phi /
float(comp.size());
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();
112 std::abs(phi /
float(comp.size()) - com) > 2. ?
M_PI - phi / float(comp.size()) : phi /
float(comp.size());
113 temp = temp >= 0 ? temp : 2 *
M_PI +
temp;
120 phi = (phi >= 0 ? phi : phi + 2 *
M_PI);
126 phi = (phi <=
M_PI ? phi : phi - 2 *
M_PI);
132 phi = (phi <=
M_PI ? phi : phi - 2 *
M_PI);
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 ...
static double getPhiMirror(const GeometricDet *a)
static bool subDetByType(const GeometricDet *a, const GeometricDet *b)
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
void build(FilteredView &, GeometricDet *, const std::string &) override
static bool isLessModZ(const GeometricDet *a, const GeometricDet *b)
ConstGeometricDetContainer & components()
static bool isLessR(const GeometricDet *a, const GeometricDet *b)
const std::vector< const Node * > geoHistory() const
const GeometricEnumType & type() const
Abs< T >::type abs(const T &t)
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)
ConstGeometricDetContainer deepComponents() const
bool firstChild()
set the current node to the first child ...
const Translation & translation() const
const std::string & name() const
static double getPhiGluedModule(const GeometricDet *a)
const int level() const
get Iterator level
static bool isLessRModule(const GeometricDet *a, const GeometricDet *b)
static double getPhi(const GeometricDet *a)