11 fieldBarrelHistos(200, static_cast<
std::vector<double> >(
std::vector<double>(
bins, static_cast<double>(0.)))),
12 fieldEndcapHistos(200, static_cast<
std::vector<double> >(
std::vector<double>(
bins, static_cast<double>(0.)))),
13 fieldBarrelBinWidth(200, static_cast<double>(0.)),
14 fieldBarrelZMin(200, static_cast<double>(0.)),
15 fieldEndcapBinWidth(200, static_cast<double>(0.)),
16 fieldEndcapRMin(200, static_cast<double>(0.))
19 std::list<TrackerLayer>::const_iterator cyliter;
25 for (cyliter = cylitBeg; cyliter != cylitEnd; ++cyliter) {
26 int layer = cyliter->layerNumber();
34 if (cyliter->forward()) {
35 zmax = cyliter->disk()->position().z();
36 rmax = cyliter->disk()->outerRadius();
38 zmax = cyliter->cylinder()->bounds().length() / 2.;
39 rmax = cyliter->cylinder()->bounds().width() / 2. - cyliter->cylinder()->bounds().thickness() / 2.;
101 const std::vector<double>* theHisto;
114 double x = fabs(coord);
115 unsigned bin = (unsigned)((
x - theXMin) / theBinWidth);
118 double x1 = theXMin + (
bin - 0.5) * theBinWidth;
119 double x2 =
x1 + theBinWidth;
122 double field1 = (*theHisto)[
bin];
123 double field2 = (*theHisto)[
bin + 1];
125 return field1 + (field2 - field1) * (
x -
x1) / (
x2 -
x1);