#include <CmsTrackerLevelBuilder.h>
Definition at line 70 of file CmsTrackerLevelBuilder.h.
double CmsTrackerLevelBuilder::ExtractPhiModule::operator() |
( |
const GeometricDet * |
a | ) |
const |
|
inline |
Definition at line 71 of file CmsTrackerLevelBuilder.h.
References AlCaHLTBitMon_QueryRunRegistry::comp, GeometricDet::components(), i, phi, pi, and groupFilesInBlocks::temp.
72 const double pi = 3.141592653592;
73 std::vector<const GeometricDet*>
const &
comp = a->
components().back()->components();
77 for(
unsigned int i=0;
i<comp.size();
i++){
78 if(fabs(comp[
i]->
phi())>pi/2.) {
85 for(
unsigned int i=0;
i<comp.size();
i++){
89 double temp = phi/float(comp.size()) < 0. ?
90 2*pi + phi/
float(comp.size()):
91 phi/
float(comp.size());
95 for(
unsigned int i=0;
i<comp.size();
i++){
96 double phi1 = comp[
i]->phi() >= 0 ? comp[
i]->phi():
101 double com = comp.front()->phi() >= 0 ? comp.front()->phi():
102 2*pi + comp.front()->phi();
103 double temp = fabs(phi/
float(comp.size()) - com) > 2. ?
104 pi - phi/float(comp.size()):
105 phi/
float(comp.size());
106 temp = temp >= 0? temp:2*pi+
temp;
ConstGeometricDetContainer & components()