33 float zStation[8] = {30., 40., 50., 60., 70., 80., 90., 100.};
34 vector<int> iStations;
36 iStations.push_back(
GetMvdPoint(iMvd)->GetStationNr() - 1);
41 for (
int iSt = 0; iSt < 8; iSt++) {
42 if (TMath::Abs(zStation[iSt] -
GetStsPoint(iSts)->GetZ()) < 2.5) {
51 std::sort(iStations.begin(), iStations.end());
53 int nMaxConsStations = 1;
54 int nConsStations = 1;
55 if (iStations.size() == 0) {
58 int iPrevSt = iStations[0];
59 for (
unsigned int iP = 1; iP < iStations.size(); iP++) {
60 if ((iStations[iP] - iPrevSt) == 1) {
62 iPrevSt = iStations[iP];
64 else if ((iStations[iP] - iPrevSt) > 1) {
65 if (nConsStations > nMaxConsStations) nMaxConsStations = nConsStations;
67 iPrevSt = iStations[iP];
70 if (nConsStations > nMaxConsStations) {
71 nMaxConsStations = nConsStations;
74 return nMaxConsStations;
83 vector<int> iStations;
85 iStations.push_back(
GetMvdHit(iMvd)->GetStationNr() - 1);
93 std::sort(iStations.begin(), iStations.end());
95 int nMaxConsStations = 1;
96 int nConsStations = 1;
97 int iPrevSt = iStations[0];
98 for (
unsigned int iP = 1; iP < iStations.size(); iP++) {
99 if ((iStations[iP] - iPrevSt) == 1) {
101 iPrevSt = iStations[iP];
103 else if ((iStations[iP] - iPrevSt) > 1) {
104 if (nConsStations > nMaxConsStations) {
105 nMaxConsStations = nConsStations;
108 iPrevSt = iStations[iP];
111 if (nConsStations > nMaxConsStations) {
112 nMaxConsStations = nConsStations;
115 return nMaxConsStations;
153 float zStation[8] = {30., 40., 50., 60., 70., 80., 90., 100.};
154 vector<int> iStations;
156 iStations.push_back(
GetMvdPoint(iMvd)->GetStationNr() - 1);
161 for (
int iSt = 0; iSt < 8; iSt++) {
162 if (TMath::Abs(zStation[iSt] -
GetStsPoint(iSts)->GetZ()) < 2.5) {
171 std::sort(iStations.begin(), iStations.end());
173 int nMaxMCPointsOnStation = 1;
174 int nMCPointsOnStation = 1;
175 if (iStations.size() == 0) {
178 int iPrevSt = iStations[0];
179 for (
unsigned int iP = 1; iP < iStations.size(); iP++) {
180 if ((iStations[iP] - iPrevSt) == 0) {
181 nMCPointsOnStation++;
182 iPrevSt = iStations[iP];
185 if (nMCPointsOnStation > nMaxMCPointsOnStation) {
186 nMaxMCPointsOnStation = nMCPointsOnStation;
188 nMCPointsOnStation = 1;
189 iPrevSt = iStations[iP];
193 return nMaxMCPointsOnStation;