#include <CmsTrackerLevelBuilder.h>
Definition at line 112 of file CmsTrackerLevelBuilder.h.
double CmsTrackerLevelBuilder::ExtractPhiGluedModule::operator() |
( |
const GeometricDet * |
a | ) |
const |
|
inline |
Definition at line 113 of file CmsTrackerLevelBuilder.h.
References AlCaHLTBitMon_QueryRunRegistry::comp, GeometricDet::deepComponents(), i, phi, pi, and groupFilesInBlocks::temp.
114 const double pi = 3.141592653592;
115 std::vector<const GeometricDet*>
comp;
120 for(
unsigned int i=0;
i<comp.size();
i++){
121 if(fabs(comp[
i]->
phi())>pi/2.) {
128 for(
unsigned int i=0;
i<comp.size();
i++){
129 phi+= comp[
i]->phi();
132 double temp = phi/float(comp.size()) < 0. ?
133 2*pi + phi/
float(comp.size()):
134 phi/
float(comp.size());
138 for(
unsigned int i=0;
i<comp.size();
i++){
139 double phi1 = comp[
i]->phi() >= 0 ? comp[
i]->phi():
140 comp[
i]->translation().phi()+2*
pi;
144 double com = comp.front()->phi() >= 0 ? comp.front()->phi():
145 2*pi + comp.front()->phi();
146 double temp = fabs(phi/
float(comp.size()) - com) > 2. ?
147 pi - phi/float(comp.size()):
148 phi/
float(comp.size());
149 temp = temp >= 0? temp:2*pi+
temp;
ConstGeometricDetContainer deepComponents() const