Skip to content

Commit e54323b

Browse files
committed
[Common] Fixed definitions of left and right quadrants
Small bug fix regarding the definitions of the left and right quadrants of the MCH chamber 1.
1 parent 57edd91 commit e54323b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/Tasks/qaMuon.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ struct muonQa {
15861586
if (IsGoodMuon(fgValuesMCH, fgValuesMCHpv, configMuons.fTrackChi2MchUp, configMuons.fPMchLow, configMuons.fPtMchLow, -1.E10, 1.E10, configMuons.fRabsLow, configMuons.fRabsUp, configMuons.fSigmaPdcaUp)) {
15871587
int Quadrant = GetQuadrantPhi(fgValuesMCH.phi * 180.0 / TMath::Pi());
15881588
int TopBottom = (Quadrant == 0 || Quadrant == 1) ? 0 : 1;
1589-
int LeftRight = (Quadrant == 0 || Quadrant == 2) ? 0 : 1;
1589+
int LeftRight = (Quadrant == 0 || Quadrant == 3) ? 0 : 1;
15901590
int PosNeg = fgValuesMCH.sign > 0 ? 0 : 1;
15911591
float eta = fgValuesMCH.eta;
15921592
float pT = fgValuesMCH.pT;
@@ -2429,8 +2429,8 @@ struct muonQa {
24292429
int Quadrant2 = GetQuadrantPhi(muonTrack2.phi() * 180.0 / TMath::Pi());
24302430
int TopBottom1 = (Quadrant1 == 0 || Quadrant1 == 1) ? 0 : 1;
24312431
int TopBottom2 = (Quadrant2 == 0 || Quadrant2 == 1) ? 0 : 1;
2432-
int LeftRight1 = (Quadrant1 == 0 || Quadrant1 == 2) ? 0 : 1;
2433-
int LeftRight2 = (Quadrant2 == 0 || Quadrant2 == 2) ? 0 : 1;
2432+
int LeftRight1 = (Quadrant1 == 0 || Quadrant1 == 3) ? 0 : 1;
2433+
int LeftRight2 = (Quadrant2 == 0 || Quadrant2 == 3) ? 0 : 1;
24342434

24352435
bool goodMuonTracks = (IsGoodMuon(fgValuesMuon1, fgValuesMuonPV1) && IsGoodMuon(fgValuesMuon2, fgValuesMuonPV2));
24362436
bool goodGlobalMuonTracks = (IsGoodGlobalMuon(fgValuesMuon1, fgValuesMuonPV1) && IsGoodGlobalMuon(fgValuesMuon2, fgValuesMuonPV2));

0 commit comments

Comments
 (0)