12 float&
x,
float& xQuality,
const int& ipl,
const int& xclus,
const int&
width)
const {
17 }
else if (
width == 2) {
32 const std::vector<int>& xclus,
33 const std::vector<int>& wclus)
const {
40 xQuality = -10 - nclus;
49 const std::vector<int>& xclus1,
50 const std::vector<int>& wclus1,
53 const std::vector<int>& xclus2,
54 const std::vector<int>& wclus2)
const {
56 fitHodo(
x, xQuality, ipl2, nclus2, xclus2, wclus2);
61 fitHodo(
x, xQuality, ipl1, nclus1, xclus1, wclus1);
68 float x1,
x2, xQ1, xQ2;
71 std::list<BeamTrack>
tracks;
73 for (
int i1 = 0;
i1 < nclus1;
i1++) {
74 for (
int i2 = 0;
i2 < nclus2;
i2++) {
80 xq = (xQ1 + xQ2) / 2.0;
90 xSlope =
tracks.begin()->xS;
91 xQuality =
tracks.begin()->xQ;
97 float xSlope, ySlope = 0.0;
98 float xQuality, yQuality = -100.0;
101 std::vector<int> xclus[4];
102 std::vector<int> wclus[4];
105 int nhits = hodoscopeRawInfo[ipl].numberOfFiredHits();
113 while (hodoscopeRawInfo[ipl][
first] == 0)
131 xclus[ipl].push_back(
first);
168 fitHodo(
x, xQuality, 0, nclus[0], xclus[0], wclus[0]);
173 fitHodo(
y, yQuality, 1, nclus[1], xclus[1], wclus[1]);
181 fitHodo(
x, xQuality, 2, nclus[2], xclus[2], wclus[2]);
186 fitHodo(
y, yQuality, 3, nclus[3], xclus[3], wclus[3]);
Class to hold track information.
EcalTBHodoscopeRecInfo reconstruct(const EcalTBHodoscopeRawInfo &hodoscopeRawInfo) const
void fitHodo(float &x, float &xQuality, const int &ipl, const int &nclus, const std::vector< int > &xclus, const std::vector< int > &wclus) const
static float getFibreLp(int plane, int fibre)
EcalTBHodoscopeRecInfoAlgo()
std::vector< double > planeShift_
void clusterPos(float &x, float &xQuality, const int &ipl, const int &xclus, const int &wclus) const
EcalTBHodoscopeGeometry myGeometry_
static float getFibreRp(int plane, int fibre)
void fitLine(float &x, float &xSlope, float &xQuality, const int &ipl1, const int &nclus1, const std::vector< int > &xclus1, const std::vector< int > &wclus1, const int &ipl2, const int &nclus2, const std::vector< int > &xclus2, const std::vector< int > &wclus2) const
std::vector< double > zPosition_