#include <CmsTrackerLevelBuilder.h>
Definition at line 92 of file CmsTrackerLevelBuilder.h.
double CmsTrackerLevelBuilder::ExtractPhiGluedModule::operator() |
( |
const GeometricDet * |
a | ) |
const |
|
inline |
Definition at line 93 of file CmsTrackerLevelBuilder.h.
References GeometricDet::deepComponents(), i, phi, pi, and groupFilesInBlocks::temp.
94 const double pi = 3.141592653592;
95 std::vector<const GeometricDet*> comp;
100 for(
unsigned int i=0;
i<comp.size();
i++){
101 if(fabs(comp[
i]->
phi())>pi/2.) {
108 for(
unsigned int i=0;
i<comp.size();
i++){
109 phi+= comp[
i]->phi();
112 double temp = phi/float(comp.size()) < 0. ?
113 2*pi + phi/
float(comp.size()):
114 phi/
float(comp.size());
118 for(
unsigned int i=0;
i<comp.size();
i++){
119 double phi1 = comp[
i]->phi() >= 0 ? comp[
i]->phi():
120 comp[
i]->translation().phi()+2*
pi;
124 double com = comp.front()->phi() >= 0 ? comp.front()->phi():
125 2*pi + comp.front()->phi();
126 double temp = fabs(phi/
float(comp.size()) - com) > 2. ?
127 pi - phi/float(comp.size()):
128 phi/
float(comp.size());
129 temp = temp >= 0? temp:2*pi+
temp;
ConstGeometricDetContainer deepComponents() const