30 for (
unsigned int i = 0;
i < 4;
i++) {
51 sprintf(
title,
"DT Station %i Number of Segments (No Arbitration)",
station + 1);
89 sprintf(
title,
"CSC Station %i Number of Segments (No Arbitration)",
station + 1);
101 sprintf(
title,
"CSC Station %i Delta DxDz",
station + 1);
105 sprintf(
title,
"CSC Station %i Pull DxDz",
station + 1);
117 sprintf(
title,
"CSC Station %i Delta DyDz",
station + 1);
121 sprintf(
title,
"CSC Station %i Pull DyDz",
station + 1);
129 using namespace reco;
139 for (
unsigned int i = 0;
i < 4;
i++) {
196 LocalPoint segmentLocalPosition = segment->localPosition();
197 LocalVector segmentLocalDirection = segment->localDirection();
198 LocalError segmentLocalPositionError = segment->localPositionError();
199 LocalError segmentLocalDirectionError = segment->localDirectionError();
200 bool segmentFound =
false;
203 if (!
muon->isMatchesValid())
206 for (std::vector<MuonChamberMatch>::const_iterator chamberMatch =
muon->matches().begin();
207 chamberMatch !=
muon->matches().end();
209 for (std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
210 segmentMatch != chamberMatch->segmentMatches.end();
212 if (fabs(segmentMatch->x - segmentLocalPosition.
x()) < 1E-6 &&
213 fabs(segmentMatch->y - segmentLocalPosition.
y()) < 1E-6 &&
214 fabs(segmentMatch->dXdZ - segmentLocalDirection.
x() / segmentLocalDirection.
z()) < 1E-6 &&
215 fabs(segmentMatch->dYdZ - segmentLocalDirection.
y() / segmentLocalDirection.
z()) < 1E-6 &&
216 fabs(segmentMatch->xErr -
sqrt(segmentLocalPositionError.
xx())) < 1E-6 &&
217 fabs(segmentMatch->yErr -
sqrt(segmentLocalPositionError.
yy())) < 1E-6 &&
218 fabs(segmentMatch->dXdZErr -
sqrt(segmentLocalDirectionError.
xx())) < 1E-6 &&
219 fabs(segmentMatch->dYdZErr -
sqrt(segmentLocalDirectionError.
yy())) < 1E-6) {
240 LocalPoint segmentLocalPosition = segment->localPosition();
241 LocalVector segmentLocalDirection = segment->localDirection();
242 LocalError segmentLocalPositionError = segment->localPositionError();
243 LocalError segmentLocalDirectionError = segment->localDirectionError();
244 bool segmentFound =
false;
247 if (!
muon->isMatchesValid())
250 for (std::vector<MuonChamberMatch>::const_iterator chamberMatch =
muon->matches().begin();
251 chamberMatch !=
muon->matches().end();
253 for (std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
254 segmentMatch != chamberMatch->segmentMatches.end();
256 if (fabs(segmentMatch->x - segmentLocalPosition.
x()) < 1E-6 &&
257 fabs(segmentMatch->y - segmentLocalPosition.
y()) < 1E-6 &&
258 fabs(segmentMatch->dXdZ - segmentLocalDirection.
x() / segmentLocalDirection.
z()) < 1E-6 &&
259 fabs(segmentMatch->dYdZ - segmentLocalDirection.
y() / segmentLocalDirection.
z()) < 1E-6 &&
260 fabs(segmentMatch->xErr -
sqrt(segmentLocalPositionError.
xx())) < 1E-6 &&
261 fabs(segmentMatch->yErr -
sqrt(segmentLocalPositionError.
yy())) < 1E-6 &&
262 fabs(segmentMatch->dXdZErr -
sqrt(segmentLocalDirectionError.
xx())) < 1E-6 &&
263 fabs(segmentMatch->dYdZErr -
sqrt(segmentLocalDirectionError.
yy())) < 1E-6) {
283 if (fabs(
f) > 900000)