Skip to content

Commit

Permalink
[PWGEM] MCtemplates: add a boolean to run MCGenPairs
Browse files Browse the repository at this point in the history
  • Loading branch information
feisenhu committed May 13, 2024
1 parent 5f71638 commit 5cad9e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PWGDQ/Core/HistogramsLibrary.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
int nbins_ptee = sizeof(ptee_bins) / sizeof(*ptee_bins) - 1;

// binning for phiv:
// every 0.2 GeV/c from 0 to 10 GeV/c
// steps of size pi/100
double phiv_bins[101];
for (int i = 0; i <= 100; i++)
phiv_bins[i] = TMath::Pi() / 100. * i;
Expand Down
7 changes: 4 additions & 3 deletions PWGEM/Dilepton/Tasks/MCtemplates.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ struct AnalysisSameEventPairing {
Configurable<std::string> fConfigMCRecSignals{"cfgBarrelMCRecSignals", "", "Comma separated list of MC signals (reconstructed)"};
Configurable<std::string> fConfigMCGenSignals{"cfgBarrelMCGenSignals", "", "Comma separated list of MC signals (generated)"};
Configurable<std::string> fConfigAddSEPHistogram{"cfgAddSEPHistogram", "", "Comma separated list of histograms"};
Configurable<bool> fConfigRunMCGenPair{"cfgRunMCGenPair", false, "Do pairing of true MC particles"};
Configurable<bool> fPropToPCA{"cfgPropToPCA", false, "Propagate tracks to secondary vertex"};
Configurable<bool> fConfigDoSecVtxProp{"cfgDoSecVtxProp", false, "Propagate tracks to secondary vertex"};
// TODO: here we specify signals, however signal decisions are precomputed and stored in mcReducedFlags
Expand Down Expand Up @@ -627,7 +628,7 @@ struct AnalysisSameEventPairing {
runPairing<VarManager::kDecayToEE, gkTrackFillMap>(tracks, tracks);
auto groupedMCTracks = tracksMC.sliceBy(perReducedMcEvent, event.reducedMCevent().globalIndex());
groupedMCTracks.bindInternalIndicesTo(&tracksMC);
runMCGenPair(groupedMCTracks);
if(fConfigRunMCGenPair) runMCGenPair(groupedMCTracks);
}

void processDecayToEESkimmedWithCov(soa::Filtered<MyEventsVtxCovSelected>::iterator const& event,
Expand All @@ -642,7 +643,7 @@ struct AnalysisSameEventPairing {
runPairing<VarManager::kDecayToEE, gkTrackFillMapWithCov>(tracks, tracks);
auto groupedMCTracks = tracksMC.sliceBy(perReducedMcEvent, event.reducedMCevent().globalIndex());
groupedMCTracks.bindInternalIndicesTo(&tracksMC);
runMCGenPair(groupedMCTracks);
if(fConfigRunMCGenPair) runMCGenPair(groupedMCTracks);
}

void processDecayToEEAOD(soa::Filtered<MyEventsSelectedAOD>::iterator const& event,
Expand All @@ -657,7 +658,7 @@ struct AnalysisSameEventPairing {
runPairing<VarManager::kDecayToEE, gkTrackFillMapAOD>(tracks, tracks);
auto groupedMCTracks = tracksMC.sliceBy(perMcCollision, event.mcCollision().globalIndex());
groupedMCTracks.bindInternalIndicesTo(&tracksMC);
runMCGenPair(groupedMCTracks);
if(fConfigRunMCGenPair) runMCGenPair(groupedMCTracks);
}

void processDummy(MyEvents&)
Expand Down

0 comments on commit 5cad9e8

Please sign in to comment.