Skip to content
Merged
Show file tree
Hide file tree
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
38 changes: 32 additions & 6 deletions PWGEM/Dilepton/Core/Dilepton.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "DataFormatsParameters/GRPMagField.h"
#include "CCDB/BasicCCDBManager.h"
#include "Tools/ML/MlResponse.h"
#include "Common/CCDB/RCTSelectionFlags.h"

#include "PWGEM/Dilepton/DataModel/dileptonTables.h"
#include "PWGEM/Dilepton/Core/DielectronCut.h"
Expand All @@ -58,14 +59,14 @@
#include "PWGEM/Dilepton/Utils/PairUtilities.h"
#include "PWGEM/Dilepton/Utils/MlResponseDielectronSingleTrack.h"

using namespace o2;

Check warning on line 62 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.
using namespace o2::aod;

Check warning on line 63 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.
using namespace o2::framework;

Check warning on line 64 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.
using namespace o2::framework::expressions;

Check warning on line 65 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.
using namespace o2::soa;

Check warning on line 66 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.
using namespace o2::aod::pwgem::dilepton::utils;

Check warning on line 67 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.
using namespace o2::aod::pwgem::dilepton::utils::emtrackutil;

Check warning on line 68 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.
using namespace o2::aod::pwgem::dilepton::utils::pairutil;

Check warning on line 69 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[using-directive]

Do not put using directives at global scope in headers.

using MyCollisions = soa::Join<aod::EMEvents, aod::EMEventsMult, aod::EMEventsCent, aod::EMEventsQvec>;
using MyCollision = MyCollisions::iterator;
Expand Down Expand Up @@ -111,7 +112,7 @@
Configurable<uint64_t> ndiff_bc_mix{"ndiff_bc_mix", 5, "difference in global BC required in mixed events"};
ConfigurableAxis ConfVtxBins{"ConfVtxBins", {VARIABLE_WIDTH, -10.0f, -8.f, -6.f, -4.f, -2.f, 0.f, 2.f, 4.f, 6.f, 8.f, 10.f}, "Mixing bins - z-vertex"};
ConfigurableAxis ConfCentBins{"ConfCentBins", {VARIABLE_WIDTH, 0.0f, 5.0f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 60.0f, 70.0f, 80.0f, 90.0f, 100.f, 999.f}, "Mixing bins - centrality"};
ConfigurableAxis ConfEPBins{"ConfEPBins", {16, -M_PI / 2, +M_PI / 2}, "Mixing bins - event plane angle"};

Check warning on line 115 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Use the PI constant (and its multiples and fractions) defined in o2::constants::math.
ConfigurableAxis ConfOccupancyBins{"ConfOccupancyBins", {VARIABLE_WIDTH, -1, 1e+10}, "Mixing bins - occupancy"};
Configurable<std::string> cfg_swt_name{"cfg_swt_name", "fHighTrackMult", "desired software trigger name"}; // 1 trigger name per 1 task. fHighTrackMult, fHighFt0Mult
// Configurable<int> cfgNtracksPV08Min{"cfgNtracksPV08Min", -1, "min. multNTracksPV"};
Expand Down Expand Up @@ -152,6 +153,11 @@
Configurable<bool> cfgRequireGoodITSLayer3{"cfgRequireGoodITSLayer3", false, "number of inactive chips on ITS layer 3 are below threshold "};
Configurable<bool> cfgRequireGoodITSLayer0123{"cfgRequireGoodITSLayer0123", false, "number of inactive chips on ITS layers 0-3 are below threshold "};
Configurable<bool> cfgRequireGoodITSLayersAll{"cfgRequireGoodITSLayersAll", false, "number of inactive chips on all ITS layers are below threshold "};
// for RCT
Configurable<bool> cfgRequireGoodRCT{"cfgRequireGoodRCT", false, "require good detector flag in run condtion table"};
Configurable<std::string> cfgRCTLabel{"cfgRCTLabel", "CBT_hadronPID", "select 1 [CBT, CBT_hadron, CBT_muon_glo] see O2Physics/Common/CCDB/RCTSelectionFlags.h"};
Configurable<bool> cfgCheckZDC{"cfgCheckZDC", false, "set ZDC flag for PbPb"};
Configurable<bool> cfgTreatLimitedAcceptanceAsBad{"cfgTreatLimitedAcceptanceAsBad", false, "reject all events where the detectors relevant for the specified Runlist are flagged as LimitedAcceptance"};
} eventcuts;

DielectronCut fDielectronCut;
Expand Down Expand Up @@ -276,6 +282,7 @@
Configurable<bool> enableTTCA{"enableTTCA", true, "Flag to enable or disable TTCA"};
} dimuoncuts;

o2::aod::rctsel::RCTFlagsChecker rctChecker;
o2::ccdb::CcdbApi ccdbApi;
Service<o2::ccdb::BasicCCDBManager> ccdb;
int mRunNumber;
Expand Down Expand Up @@ -313,6 +320,7 @@
ccdb->setCaching(true);
ccdb->setLocalObjectValidityChecking();
ccdb->setFatalWhenNull(false);
rctChecker.init(eventcuts.cfgRCTLabel.value, eventcuts.cfgCheckZDC.value, eventcuts.cfgTreatLimitedAcceptanceAsBad.value);

if (ConfVtxBins.value[0] == VARIABLE_WIDTH) {
zvtx_bin_edges = std::vector<float>(ConfVtxBins.value.begin(), ConfVtxBins.value.end());
Expand Down Expand Up @@ -407,11 +415,13 @@
fRegistry.add("Event/hNInspectedTVX", "N inspected TVX;run number;N_{TVX}", kTProfile, {{80000, 520000.5, 600000.5}}, true);
}
if (doprocessBC) {
auto hTVXCounter = fRegistry.add<TH1>("BC/hTVXCounter", "TVX counter", kTH1D, {{4, -0.5f, 3.5f}});
auto hTVXCounter = fRegistry.add<TH1>("BC/hTVXCounter", "TVX counter", kTH1D, {{6, -0.5f, 5.5f}});
hTVXCounter->GetXaxis()->SetBinLabel(1, "TVX");
hTVXCounter->GetXaxis()->SetBinLabel(2, "TVX && NoTFB");
hTVXCounter->GetXaxis()->SetBinLabel(3, "TVX && NoITSROFB");
hTVXCounter->GetXaxis()->SetBinLabel(4, "TVX && NoTFB && NoITSROFB");
hTVXCounter->GetXaxis()->SetBinLabel(4, "TVX && GoodRCT");
hTVXCounter->GetXaxis()->SetBinLabel(5, "TVX && NoTFB && NoITSROFB");
hTVXCounter->GetXaxis()->SetBinLabel(6, "TVX && NoTFB && NoITSROFB && GoodRCT");
}
}

Expand Down Expand Up @@ -527,7 +537,7 @@

if (cfgAnalysisType == static_cast<int>(o2::aod::pwgem::dilepton::utils::pairutil::DileptonAnalysisType::kQC)) {
fRegistry.add("Pair/same/uls/hs", "dilepton", kTHnSparseD, {axis_mass, axis_pt, axis_dca}, true);
fRegistry.add("Pair/same/uls/hDeltaEtaDeltaPhi", "#Delta#eta-#Delta#varphi between 2 tracks;#Delta#varphi (rad.);#Delta#eta;", kTH2D, {{180, -M_PI, M_PI}, {400, -2, +2}}, true);

Check warning on line 540 in PWGEM/Dilepton/Core/Dilepton.h

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Use the PI constant (and its multiples and fractions) defined in o2::constants::math.
if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
fRegistry.add("Pair/same/uls/hMvsPhiV", "m_{ee} vs. #varphi_{V};#varphi_{V} (rad.);m_{ee} (GeV/c^{2})", kTH2D, {{90, 0, M_PI}, {100, 0.0f, 1.0f}}, true); // phiv is only for dielectron
fRegistry.add("Pair/same/uls/hMvsOpAng", "m_{ee} vs. angle between 2 tracks;#omega (rad.);m_{ee} (GeV/c^{2})", kTH2D, {{90, 0, M_PI}, {100, 0.0f, 1.0f}}, true);
Expand Down Expand Up @@ -1180,6 +1190,9 @@
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}

if (nmod > 0 && !isGoodQvector(qvectors)) {
continue;
Expand Down Expand Up @@ -1410,6 +1423,9 @@
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}

if (nmod > 0 && !isGoodQvector(qvectors)) {
continue;
Expand Down Expand Up @@ -1580,6 +1596,9 @@
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}
fRegistry.fill(HIST("Event/norm/hCollisionCounter"), o2::aod::pwgem::dilepton::utils::eventhistogram::nbin_ev); // accepted
} // end of collision loop
}
Expand All @@ -1588,17 +1607,24 @@
void processBC(aod::EMBCs const& bcs)
{
for (const auto& bc : bcs) {
if (bc.isTriggerTVX()) {
if (bc.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 0.f);
if (bc.isNoTimeFrameBorder()) {

if (bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 1.f);
}
if (bc.isNoITSROFrameBorder()) {
if (bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 2.f);
}
if (bc.isNoTimeFrameBorder() && bc.isNoITSROFrameBorder()) {
if (rctChecker(bc)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 3.f);
}
if (bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) && bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 4.f);
}
if (bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) && bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder) && rctChecker(bc)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 5.f);
}
}
}
}
Expand Down
67 changes: 51 additions & 16 deletions PWGEM/Dilepton/Core/DileptonMC.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "DataFormatsParameters/GRPMagField.h"
#include "CCDB/BasicCCDBManager.h"
#include "Tools/ML/MlResponse.h"
#include "Common/CCDB/RCTSelectionFlags.h"

#include "Common/Core/RecoDecay.h"
#include "Common/Core/trackUtilities.h"
Expand Down Expand Up @@ -144,6 +145,11 @@ struct DileptonMC {
Configurable<bool> cfgRequireGoodITSLayer3{"cfgRequireGoodITSLayer3", false, "number of inactive chips on ITS layer 3 are below threshold "};
Configurable<bool> cfgRequireGoodITSLayer0123{"cfgRequireGoodITSLayer0123", false, "number of inactive chips on ITS layers 0-3 are below threshold "};
Configurable<bool> cfgRequireGoodITSLayersAll{"cfgRequireGoodITSLayersAll", false, "number of inactive chips on all ITS layers are below threshold "};
// for RCT
Configurable<bool> cfgRequireGoodRCT{"cfgRequireGoodRCT", false, "require good detector flag in run condtion table"};
Configurable<std::string> cfgRCTLabel{"cfgRCTLabel", "CBT_hadronPID", "select 1 [CBT, CBT_hadron, CBT_muon_glo] see O2Physics/Common/CCDB/RCTSelectionFlags.h"};
Configurable<bool> cfgCheckZDC{"cfgCheckZDC", false, "set ZDC flag for PbPb"};
Configurable<bool> cfgTreatLimitedAcceptanceAsBad{"cfgTreatLimitedAcceptanceAsBad", false, "reject all events where the detectors relevant for the specified Runlist are flagged as LimitedAcceptance"};
} eventcuts;

DielectronCut fDielectronCut;
Expand Down Expand Up @@ -268,6 +274,7 @@ struct DileptonMC {
Configurable<bool> enableTTCA{"enableTTCA", true, "Flag to enable or disable TTCA"};
} dimuoncuts;

o2::aod::rctsel::RCTFlagsChecker rctChecker;
o2::ccdb::CcdbApi ccdbApi;
Service<o2::ccdb::BasicCCDBManager> ccdb;
o2::base::Propagator::MatCorrType matCorr = o2::base::Propagator::MatCorrType::USEMatCorrNONE;
Expand Down Expand Up @@ -445,11 +452,11 @@ struct DileptonMC {
}

// for correlated bkg due to mis-identified hadrons, and true combinatorial bkg
fRegistry.add("Pair/corr_bkg_eh/uls/hs", "rec. bkg", kTHnSparseD, {axis_mass, axis_pt, axis_y, axis_dphi_ee, axis_deta_ee, axis_cos_theta_cs, axis_phi_cs, axis_aco, axis_asym_pt, axis_dphi_e_ee, axis_dca}, true);
fRegistry.addClone("Pair/corr_bkg_eh/uls/", "Pair/corr_bkg_eh/lspp/");
fRegistry.addClone("Pair/corr_bkg_eh/uls/", "Pair/corr_bkg_eh/lsmm/");
fRegistry.addClone("Pair/corr_bkg_eh/", "Pair/corr_bkg_hh/");
fRegistry.addClone("Pair/corr_bkg_eh/", "Pair/comb_bkg/");
fRegistry.add("Pair/corr_bkg_lh/uls/hs", "rec. bkg", kTHnSparseD, {axis_mass, axis_pt, axis_y, axis_dphi_ee, axis_deta_ee, axis_cos_theta_cs, axis_phi_cs, axis_aco, axis_asym_pt, axis_dphi_e_ee, axis_dca}, true);
fRegistry.addClone("Pair/corr_bkg_lh/uls/", "Pair/corr_bkg_lh/lspp/");
fRegistry.addClone("Pair/corr_bkg_lh/uls/", "Pair/corr_bkg_lh/lsmm/");
fRegistry.addClone("Pair/corr_bkg_lh/", "Pair/corr_bkg_hh/");
fRegistry.addClone("Pair/corr_bkg_lh/", "Pair/comb_bkg/");

if (cfgFillUnfolding) {
// for 2D unfolding
Expand Down Expand Up @@ -493,6 +500,7 @@ struct DileptonMC {
ccdb->setCaching(true);
ccdb->setLocalObjectValidityChecking();
ccdb->setFatalWhenNull(false);
rctChecker.init(eventcuts.cfgRCTLabel.value, eventcuts.cfgCheckZDC.value, eventcuts.cfgTreatLimitedAcceptanceAsBad.value);

DefineEMEventCut();
addhistograms();
Expand All @@ -512,11 +520,13 @@ struct DileptonMC {
fRegistry.addClone("Event/before/hCollisionCounter", "Event/norm/hCollisionCounter");
}
if (doprocessBC) {
auto hTVXCounter = fRegistry.add<TH1>("BC/hTVXCounter", "TVX counter", kTH1D, {{4, -0.5f, 3.5f}});
auto hTVXCounter = fRegistry.add<TH1>("BC/hTVXCounter", "TVX counter", kTH1D, {{6, -0.5f, 5.5f}});
hTVXCounter->GetXaxis()->SetBinLabel(1, "TVX");
hTVXCounter->GetXaxis()->SetBinLabel(2, "TVX && NoTFB");
hTVXCounter->GetXaxis()->SetBinLabel(3, "TVX && NoITSROFB");
hTVXCounter->GetXaxis()->SetBinLabel(4, "TVX && NoTFB && NoITSROFB");
hTVXCounter->GetXaxis()->SetBinLabel(4, "TVX && GoodRCT");
hTVXCounter->GetXaxis()->SetBinLabel(5, "TVX && NoTFB && NoITSROFB");
hTVXCounter->GetXaxis()->SetBinLabel(6, "TVX && NoTFB && NoITSROFB && GoodRCT");
}
}

Expand Down Expand Up @@ -903,7 +913,7 @@ struct DileptonMC {
o2::math_utils::bringToPMPi(phiCS);

if ((FindCommonMotherFrom2ProngsWithoutPDG(t1mc, t2mc) > 0 || IsHF(t1mc, t2mc, mcparticles) > 0) && is_pair_from_same_mcevent) { // for bkg study
if (std::abs(t1mc.pdgCode()) != pdg_lepton || std::abs(t2mc.pdgCode()) != pdg_lepton) { // hh or eh correlated bkg
if (std::abs(t1mc.pdgCode()) != pdg_lepton || std::abs(t2mc.pdgCode()) != pdg_lepton) { // hh or lh correlated bkg
if (std::abs(t1mc.pdgCode()) != pdg_lepton && std::abs(t2mc.pdgCode()) != pdg_lepton) { // hh correlated bkg
if (t1.sign() * t2.sign() < 0) { // ULS
fRegistry.fill(HIST("Pair/corr_bkg_hh/uls/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
Expand All @@ -912,13 +922,13 @@ struct DileptonMC {
} else if (t1.sign() < 0 && t2.sign() < 0) { // LS--
fRegistry.fill(HIST("Pair/corr_bkg_hh/lsmm/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
}
} else { // eh correlated bkg
} else { // lh correlated bkg
if (t1.sign() * t2.sign() < 0) { // ULS
fRegistry.fill(HIST("Pair/corr_bkg_eh/uls/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
fRegistry.fill(HIST("Pair/corr_bkg_lh/uls/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
} else if (t1.sign() > 0 && t2.sign() > 0) { // LS++
fRegistry.fill(HIST("Pair/corr_bkg_eh/lspp/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
fRegistry.fill(HIST("Pair/corr_bkg_lh/lspp/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
} else if (t1.sign() < 0 && t2.sign() < 0) { // LS--
fRegistry.fill(HIST("Pair/corr_bkg_eh/lsmm/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
fRegistry.fill(HIST("Pair/corr_bkg_lh/lsmm/hs"), v12.M(), v12.Pt(), v12.Rapidity(), dphi, deta, std::fabs(cos_thetaCS), std::fabs(phiCS), aco, asym, std::fabs(dphi_e_ee), pair_dca, weight);
}
}
}
Expand Down Expand Up @@ -1213,6 +1223,9 @@ struct DileptonMC {
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}
o2::aod::pwgem::dilepton::utils::eventhistogram::fillEventInfo<1, -1>(&fRegistry, collision);
fRegistry.fill(HIST("Event/before/hCollisionCounter"), o2::aod::pwgem::dilepton::utils::eventhistogram::nbin_ev); // accepted
fRegistry.fill(HIST("Event/after/hCollisionCounter"), o2::aod::pwgem::dilepton::utils::eventhistogram::nbin_ev); // accepted
Expand Down Expand Up @@ -1257,6 +1270,9 @@ struct DileptonMC {
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}
fRegistry.fill(HIST("MCEvent/after/hZvtx"), mccollision.posZ());

auto posTracks_per_coll = posTracksMC.sliceByCachedUnsorted(aod::emmcparticle::emmceventId, mccollision.globalIndex(), cache);
Expand Down Expand Up @@ -1859,6 +1875,9 @@ struct DileptonMC {
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}

// auto mccollision = collision.template emmcevent_as<TMCCollisions>();
// if (cfgEventGeneratorType >= 0 && mccollision.getSubGeneratorId() != cfgEventGeneratorType) {
Expand Down Expand Up @@ -2000,6 +2019,9 @@ struct DileptonMC {
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}

auto posTracks_per_coll = posTracks.sliceByCached(perCollision, collision.globalIndex(), cache); // reconstructed pos tracks
auto negTracks_per_coll = negTracks.sliceByCached(perCollision, collision.globalIndex(), cache); // reconstructed neg tracks
Expand Down Expand Up @@ -2374,6 +2396,9 @@ struct DileptonMC {
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}
auto mccollision = collision.template emmcevent_as<MyMCCollisions>();
if (cfgEventGeneratorType >= 0 && mccollision.getSubGeneratorId() != cfgEventGeneratorType) {
continue;
Expand Down Expand Up @@ -2473,6 +2498,9 @@ struct DileptonMC {
if (!fEMEventCut.IsSelected(collision)) {
continue;
}
if (eventcuts.cfgRequireGoodRCT && !rctChecker.checkTable(collision)) {
continue;
}
fRegistry.fill(HIST("Event/norm/hCollisionCounter"), o2::aod::pwgem::dilepton::utils::eventhistogram::nbin_ev); // accepted
} // end of collision loop
}
Expand All @@ -2481,17 +2509,24 @@ struct DileptonMC {
void processBC(aod::EMBCs const& bcs)
{
for (const auto& bc : bcs) {
if (bc.isTriggerTVX()) {
if (bc.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 0.f);
if (bc.isNoTimeFrameBorder()) {

if (bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 1.f);
}
if (bc.isNoITSROFrameBorder()) {
if (bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 2.f);
}
if (bc.isNoTimeFrameBorder() && bc.isNoITSROFrameBorder()) {
if (rctChecker(bc)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 3.f);
}
if (bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) && bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 4.f);
}
if (bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) && bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder) && rctChecker(bc)) {
fRegistry.fill(HIST("BC/hTVXCounter"), 5.f);
}
}
}
}
Expand Down
Loading
Loading