Skip to content

Commit e89f40a

Browse files
authored
Add files via upload
1 parent 292c69e commit e89f40a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3567,6 +3567,8 @@ struct AnalysisDileptonTrack {
35673567
Configurable<float> fConfigDileptonRapCutAbs{"cfgDileptonRapCutAbs", 1.0, "Rap cut for dileptons used in the triplet vertexing"};
35683568
Configurable<std::string> fConfigHistogramSubgroups{"cfgDileptonTrackHistogramsSubgroups", "invmass,vertexing", "Comma separated list of dilepton-track histogram subgroups"};
35693569
Configurable<std::string> fConfigAddJSONHistograms{"cfgAddJSONHistograms", "", "Histograms in JSON format"};
3570+
Configurable<bool> fConfigEnergyCorrelatorUnfold{"cfgEnergyCorrelatorUnfold", false, "Fill the Energy Correlator respose matrix"};
3571+
Configurable<bool> fConfigApplyMassEC{"cfgApplyMassEC", false, "Apply fit mass for sideband for the energy correlator study"};
35703572

35713573
Configurable<bool> fConfigUseRemoteField{"cfgUseRemoteField", false, "Chose whether to fetch the magnetic field from ccdb or set it manually"};
35723574
Configurable<std::string> fConfigGRPmagPath{"cfgGrpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
@@ -3878,9 +3880,6 @@ struct AnalysisDileptonTrack {
38783880
for (int iCommonCut = 0; iCommonCut < fNCommonTrackCuts; ++iCommonCut) {
38793881
DefineHistograms(fHistMan, Form("DileptonsSelected_%s_%s", pairLegCutName.Data(), fCommonPairCutNames[iCommonCut].Data()), "barrel,vertexing");
38803882
DefineHistograms(fHistMan, Form("DileptonTrack_%s_%s_%s", pairLegCutName.Data(), fCommonPairCutNames[iCommonCut].Data(), fTrackCutNames[iCutTrack].Data()), fConfigHistogramSubgroups.value.data());
3881-
for (auto& sig : fRecMCSignals) {
3882-
DefineHistograms(fHistMan, Form("DileptonTrackMCMatched_%s_%s_%s_%s", pairLegCutName.Data(), fCommonPairCutNames[iCommonCut].Data(), fTrackCutNames[iCutTrack].Data(), sig->GetName()), fConfigHistogramSubgroups.value.data());
3883-
}
38843883
}
38853884
}
38863885

@@ -4050,8 +4049,14 @@ struct AnalysisDileptonTrack {
40504049
// compute needed quantities
40514050
VarManager::FillDileptonHadron(dilepton, track, fValuesHadron);
40524051
VarManager::FillDileptonTrackVertexing<TCandidateType, TEventFillMap, TTrackFillMap>(event, lepton1, lepton2, track, fValuesHadron);
4053-
4052+
4053+
40544054
auto trackMC = track.reducedMCTrack();
4055+
4056+
// for the energy correlator analysis
4057+
auto motherParticle = lepton1MC.template mothers_first_as<ReducedMCTracks>();
4058+
VarManager::FillEnergyCorrelator(dilepton, track, fValuesHadron, fConfigApplyMassEC);
4059+
VarManager::FillEnergyCorrelatorsMCUnfolding<VarManager::kJpsiHadronMass>(dilepton, track, motherParticle, trackMC, fValuesHadron);
40554060
mcDecision = 0;
40564061
isig = 0;
40574062
for (auto sig = fRecMCSignals.begin(); sig != fRecMCSignals.end(); sig++, isig++) {

0 commit comments

Comments
 (0)