Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
struct EmcalBcWiseGammaGamma {
HistogramRegistry mHistManager{"EmcalGammaGammaBcWiseHistograms"};

Configurable<bool> cfgRequirekTVXinEMC{"cfgRequirekTVXinEMC", true, "Reconstruct mesonss only in kTVXinEMC triggered BCs"};
Configurable<bool> cfgRequirekTVXinEMC{"cfgRequirekTVXinEMC", true, "Reconstruct mesons only in kTVXinEMC triggered BCs"};
Configurable<bool> cfgRequireEMCCell{"cfgRequireEMCCell", true, "Reconstruct mesons only in BCs containing at least one EMCal cell (workaround for kTVXinEMC trigger)"};
Configurable<int> cfgSelectOnlyUniqueAmbiguous{"cfgSelectOnlyUniqueAmbiguous", 0, "0: all clusters, 1: only unique clusters, 2: only ambiguous clusters"};

Configurable<int> cfgClusterDefinition{"cfgClusterDefinition", 13, "Clusterizer to be selected, e.g. 13 for kV3MostSplitLowSeed"};
Expand Down Expand Up @@ -144,7 +145,7 @@
float mu = bc.mu();
mHistManager.fill(HIST("Event/Mu"), mu);
mHistManager.fill(HIST("Event/TimeSinceSOF"), bc.timeSinceSOF() / 60.);
double p = mu > 0.001 ? mu / (1 - std::exp(-mu)) : 1.; // No pile-up for small mu (protection against division by zero)

Check failure on line 148 in PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mHistManager.fill(HIST("Event/nCollisions"), 0, bc.centrality(), p);
if (bc.hasFT0()) {
mHistManager.fill(HIST("Event/nBCs"), 1, bc.centrality());
Expand All @@ -171,7 +172,7 @@
mHistManager.fill(HIST("Event/CentralityVsAmplitude"), bc.centrality(), bc.ft0Amplitude());

mHistManager.fill(HIST("Event/nCollPerBC"), collisions.size(), bc.centrality());
if (collisions.size() == 2) {

Check failure on line 175 in PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mHistManager.fill(HIST("Event/Z1VsZ2"), collisions.iteratorAt(0).zVtx(), collisions.iteratorAt(1).zVtx());
mHistManager.fill(HIST("Event/dZ"), collisions.iteratorAt(0).zVtx() - collisions.iteratorAt(1).zVtx());
}
Expand Down Expand Up @@ -204,7 +205,7 @@

mHistManager.fill(HIST("GG/invMassVsPt"), v12.M(), v12.Pt(), bc.centrality());

if (clusters.size() < 3)

Check failure on line 208 in PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
continue;

if (bc.globalIndex() % cfgBGEventDownsampling != 0)
Expand All @@ -214,7 +215,7 @@

ROOT::Math::AxisAngle rotationAxis(v12.Vect(), constants::math::PIHalf);
ROOT::Math::Rotation3D rotationMatrix(rotationAxis);
for (ROOT::Math::PtEtaPhiMVector vi : {v1, v2}) {

Check failure on line 218 in PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.

vi = rotationMatrix * vi;

Expand Down Expand Up @@ -289,9 +290,11 @@
{
if (cfgRequirekTVXinEMC && !bc.haskTVXinEMC())
return false;
if (cfgRequireEMCCell && !bc.hasEMCCell())
return false;
if (cfgSelectOnlyUniqueAmbiguous == 1 && collisions.size() != 1)
return false;
if (cfgSelectOnlyUniqueAmbiguous == 2 && collisions.size() == 1)

Check failure on line 297 in PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return false;
if (cfgMinTimeSinceSOF > bc.timeSinceSOF() / 60 || cfgMaxTimeSinceSOF < bc.timeSinceSOF() / 60)
return false;
Expand Down
Loading