#include <CmsTrackerLevelBuilder.h>
Definition at line 50 of file CmsTrackerLevelBuilder.h.
double CmsTrackerLevelBuilder::ExtractPhiModule::operator() |
( |
const GeometricDet * |
a | ) |
const |
|
inline |
Definition at line 51 of file CmsTrackerLevelBuilder.h.
References AlCaHLTBitMon_QueryRunRegistry::comp, GeometricDet::components(), i, phi, pi, and groupFilesInBlocks::temp.
52 const double pi = 3.141592653592;
53 std::vector<const GeometricDet*>
const &
comp = a->
components().back()->components();
57 for(
unsigned int i=0;
i<comp.size();
i++){
58 if(fabs(comp[
i]->
phi())>pi/2.) {
65 for(
unsigned int i=0;
i<comp.size();
i++){
69 double temp = phi/float(comp.size()) < 0. ?
70 2*pi + phi/
float(comp.size()):
71 phi/
float(comp.size());
75 for(
unsigned int i=0;
i<comp.size();
i++){
76 double phi1 = comp[
i]->phi() >= 0 ? comp[
i]->phi():
81 double com = comp.front()->phi() >= 0 ? comp.front()->phi():
82 2*pi + comp.front()->phi();
83 double temp = fabs(phi/
float(comp.size()) - com) > 2. ?
84 pi - phi/float(comp.size()):
85 phi/
float(comp.size());
86 temp = temp >= 0? temp:2*pi+
temp;
GeometricDetContainer & components()