Skip to content

Commit 0af3632

Browse files
committed
solved linter errors
1 parent cb7ea0b commit 0af3632

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

PWGLF/Tasks/Resonances/higherMassResonances.cxx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ struct HigherMassResonances {
502502

503503
// if (config.isSel8 && !collision.sel8())
504504
// return false;
505-
if (fillHist)
506-
rEventSelection.fill(HIST("hEventCut"), 2);
505+
// if (fillHist)
506+
// rEventSelection.fill(HIST("hEventCut"), 2);
507507

508508
if (config.isNoTimeFrameBorder && !collision.selection_bit(aod::evsel::kNoTimeFrameBorder))
509509
return false;
@@ -517,8 +517,8 @@ struct HigherMassResonances {
517517

518518
// if (config.isNoSameBunchPileup && (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)))
519519
// return false;
520-
if (fillHist)
521-
rEventSelection.fill(HIST("hEventCut"), 5);
520+
// if (fillHist)
521+
// rEventSelection.fill(HIST("hEventCut"), 5);
522522

523523
if (config.isAllLayersGoodITS && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll))
524524
return false;
@@ -530,8 +530,8 @@ struct HigherMassResonances {
530530

531531
// if (config.isApplyOccCut && (std::abs(collision.trackOccupancyInTimeRange()) > config.configOccCut))
532532
// return false;
533-
if (fillHist)
534-
rEventSelection.fill(HIST("hEventCut"), 7);
533+
// if (fillHist)
534+
// rEventSelection.fill(HIST("hEventCut"), 7);
535535

536536
if (rctCut.requireRCTFlagChecker && !rctChecker(collision))
537537
return false;
@@ -582,8 +582,8 @@ struct HigherMassResonances {
582582

583583
// if (config.isSel8 && !collision.sel8())
584584
// return false;
585-
if (fillHist)
586-
rEventSelection.fill(HIST("hEventCut"), 2);
585+
// if (fillHist)
586+
// rEventSelection.fill(HIST("hEventCut"), 2);
587587

588588
if (config.isNoTimeFrameBorder && !collision.selection_bit(aod::evsel::kNoTimeFrameBorder))
589589
return false;
@@ -597,8 +597,8 @@ struct HigherMassResonances {
597597

598598
// if (config.isNoSameBunchPileup && (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)))
599599
// return false;
600-
if (fillHist)
601-
rEventSelection.fill(HIST("hEventCut"), 5);
600+
// if (fillHist)
601+
// rEventSelection.fill(HIST("hEventCut"), 5);
602602

603603
if (config.isAllLayersGoodITS && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll))
604604
return false;
@@ -610,8 +610,8 @@ struct HigherMassResonances {
610610

611611
// if (config.isApplyOccCut && (std::abs(collision.trackOccupancyInTimeRange()) > config.configOccCut))
612612
// return false;
613-
if (fillHist)
614-
rEventSelection.fill(HIST("hEventCut"), 7);
613+
// if (fillHist)
614+
// rEventSelection.fill(HIST("hEventCut"), 7);
615615

616616
if (rctCut.requireRCTFlagChecker && !rctChecker(collision))
617617
return false;
@@ -1192,7 +1192,7 @@ struct HigherMassResonances {
11921192
}
11931193

11941194
for (int i = 0; i < config.cRotations; i++) {
1195-
double config.theta2 = rn->Uniform(o2::constants::math::PI - o2::constants::math::PI / config.rotationalCut, o2::constants::math::PI + o2::constants::math::PI / config.rotationalCut);
1195+
theta2 = rn->Uniform(o2::constants::math::PI - o2::constants::math::PI / config.rotationalCut, o2::constants::math::PI + o2::constants::math::PI / config.rotationalCut);
11961196

11971197
daughterRot = ROOT::Math::PxPyPzMVector(daughter1.Px() * std::cos(config.theta2) - daughter1.Py() * std::sin(config.theta2), daughter1.Px() * std::sin(config.theta2) + daughter1.Py() * std::cos(config.theta2), daughter1.Pz(), daughter1.M());
11981198

@@ -1244,9 +1244,9 @@ struct HigherMassResonances {
12441244

12451245
std::array<float, 3> eps{};
12461246

1247-
eps[0] = helperEP.GetEventPlane(collision.qvecRe()[4 * detId + 3], collision.qvecIm()[4 * detId + 3], 2);
1248-
eps[1] = helperEP.GetEventPlane(collision.qvecRe()[4 * refAId + 3], collision.qvecIm()[4 * refAId + 3], 2);
1249-
eps[2] = helperEP.GetEventPlane(collision.qvecRe()[4 * refBId + 3], collision.qvecIm()[4 * refBId + 3], 2);
1247+
eps[0] = helperEP.GetEventPlane(collision.qvecRe()[4 * config.detId + 3], collision.qvecIm()[4 * config.detId + 3], 2);
1248+
eps[1] = helperEP.GetEventPlane(collision.qvecRe()[4 * config.refAId + 3], collision.qvecIm()[4 * config.refAId + 3], 2);
1249+
eps[2] = helperEP.GetEventPlane(collision.qvecRe()[4 * config.refBId + 3], collision.qvecIm()[4 * config.refBId + 3], 2);
12501250

12511251
float resNumA = helperEP.GetResolution(eps[0], eps[1], 2);
12521252
float resNumB = helperEP.GetResolution(eps[0], eps[2], 2);
@@ -1359,7 +1359,7 @@ struct HigherMassResonances {
13591359
}
13601360

13611361
for (int i = 0; i < config.cRotations; i++) {
1362-
double config.theta2 = rn->Uniform(o2::constants::math::PI - o2::constants::math::PI / config.rotationalCut, o2::constants::math::PI + o2::constants::math::PI / config.rotationalCut);
1362+
theta2 = rn->Uniform(o2::constants::math::PI - o2::constants::math::PI / config.rotationalCut, o2::constants::math::PI + o2::constants::math::PI / config.rotationalCut);
13631363

13641364
daughterRot = ROOT::Math::PxPyPzMVector(daughter1.Px() * std::cos(config.theta2) - daughter1.Py() * std::sin(config.theta2), daughter1.Px() * std::sin(config.theta2) + daughter1.Py() * std::cos(config.theta2), daughter1.Pz(), daughter1.M());
13651365

@@ -2031,7 +2031,7 @@ struct HigherMassResonances {
20312031
}
20322032

20332033
for (int i = 0; i < config.cRotations; i++) {
2034-
double config.theta2 = rn->Uniform(o2::constants::math::PI - o2::constants::math::PI / config.rotationalCut, o2::constants::math::PI + o2::constants::math::PI / config.rotationalCut);
2034+
theta2 = rn->Uniform(o2::constants::math::PI - o2::constants::math::PI / config.rotationalCut, o2::constants::math::PI + o2::constants::math::PI / config.rotationalCut);
20352035

20362036
daughterRot = ROOT::Math::PxPyPzMVector(daughter1.Px() * std::cos(config.theta2) - daughter1.Py() * std::sin(config.theta2), daughter1.Px() * std::sin(config.theta2) + daughter1.Py() * std::cos(config.theta2), daughter1.Pz(), daughter1.M());
20372037

0 commit comments

Comments
 (0)