28 : StsArray(), MvdArray(), TofArray(), StsHitsArray(), MvdHitsArray() {}
33 float zStation[8] = {30., 40., 50., 60., 70., 80., 90., 100.};
34 vector<int> iStations;
41 for (
int iSt = 0; iSt < 8; iSt++)
42 if (TMath::Abs(zStation[iSt] -
GetStsPoint(iSts)->GetZ()) < 2.5)
48 std::sort(iStations.begin(), iStations.end());
50 int nMaxConsStations = 1;
51 int nConsStations = 1;
52 if (iStations.size() == 0)
return 0;
53 int iPrevSt = iStations[0];
54 for (
unsigned int iP = 1; iP < iStations.size(); iP++) {
55 if ((iStations[iP] - iPrevSt) == 1) {
57 iPrevSt = iStations[iP];
58 }
else if ((iStations[iP] - iPrevSt) > 1) {
59 if (nConsStations > nMaxConsStations) nMaxConsStations = nConsStations;
61 iPrevSt = iStations[iP];
64 if (nConsStations > nMaxConsStations) nMaxConsStations = nConsStations;
66 return nMaxConsStations;
72 vector<int> iStations;
82 std::sort(iStations.begin(), iStations.end());
84 int nMaxConsStations = 1;
85 int nConsStations = 1;
86 int iPrevSt = iStations[0];
87 for (
unsigned int iP = 1; iP < iStations.size(); iP++) {
88 if ((iStations[iP] - iPrevSt) == 1) {
90 iPrevSt = iStations[iP];
91 }
else if ((iStations[iP] - iPrevSt) > 1) {
92 if (nConsStations > nMaxConsStations) nMaxConsStations = nConsStations;
94 iPrevSt = iStations[iP];
97 if (nConsStations > nMaxConsStations) nMaxConsStations = nConsStations;
99 return nMaxConsStations;
105 vector<int> iStations;
115 std::sort(iStations.begin(), iStations.end());
118 int iPrevSt = iStations[0];
119 for (
unsigned int iP = 1; iP < iStations.size(); iP++) {
120 if ((iStations[iP] - iPrevSt) >= 1) {
122 iPrevSt = iStations[iP];
132 float zStation[8] = {30., 40., 50., 60., 70., 80., 90., 100.};
133 vector<int> iStations;
140 for (
int iSt = 0; iSt < 8; iSt++)
141 if (TMath::Abs(zStation[iSt] -
GetStsPoint(iSts)->GetZ()) < 2.5)
147 std::sort(iStations.begin(), iStations.end());
149 int nMaxMCPointsOnStation = 1;
150 int nMCPointsOnStation = 1;
151 if (iStations.size() == 0)
return 0;
152 int iPrevSt = iStations[0];
153 for (
unsigned int iP = 1; iP < iStations.size(); iP++) {
154 if ((iStations[iP] - iPrevSt) == 0) {
155 nMCPointsOnStation++;
156 iPrevSt = iStations[iP];
158 if (nMCPointsOnStation > nMaxMCPointsOnStation)
159 nMaxMCPointsOnStation = nMCPointsOnStation;
160 nMCPointsOnStation = 1;
161 iPrevSt = iStations[iP];
165 return nMaxMCPointsOnStation;
177 if (PerformanceMode == 3)
179 if (PerformanceMode == 2)
181 if (PerformanceMode == 1)