Skip to content

Commit 8f392a8

Browse files
authored
Add files via upload
1 parent c1110d1 commit 8f392a8

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3091,7 +3091,9 @@ struct AnalysisDileptonTrack {
30913091
Configurable<std::string> fConfigTrackCuts{"cfgTrackCuts", "kaonPID", "Comma separated list of cuts for the track to be correlated with the dileptons"};
30923092
Configurable<float> fConfigDileptonLowMass{"cfgDileptonLowMass", 2.8, "Low mass cut for the dileptons used in analysis"};
30933093
Configurable<float> fConfigDileptonHighMass{"cfgDileptonHighMass", 3.2, "High mass cut for the dileptons used in analysis"};
3094-
Configurable<float> fConfigDileptonpTCut{"cfgDileptonpTCut", 0.0, "pT cut for dileptons used in the triplet vertexing"};
3094+
Configurable<float> fConfigDileptonLowpTCut{"cfgDileptonLowpTCut", 0.0, "Low pT cut for dileptons used in the triplet vertexing"};
3095+
Configurable<float> fConfigDileptonHighpTCut{"cfgDileptonHighpTCut", 1E5, "High pT cut for dileptons used in the triplet vertexing"};
3096+
Configurable<float> fConfigDileptonRapCutAbs{"cfgDileptonRapCutAbs", 1.0, "Rap cut for dileptons used in the triplet vertexing"};
30953097
Configurable<float> fConfigDileptonLxyCut{"cfgDileptonLxyCut", 0.0, "Lxy cut for dileptons used in the triplet vertexing"};
30963098
Configurable<bool> fConfigUseKFVertexing{"cfgUseKFVertexing", false, "Use KF Particle for secondary vertex reconstruction (DCAFitter is used by default)"};
30973099

@@ -3106,6 +3108,8 @@ struct AnalysisDileptonTrack {
31063108
Configurable<std::string> fConfigCcdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
31073109
Configurable<int64_t> fConfigNoLaterThan{"ccdb-no-later-than", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
31083110
Configurable<std::string> fConfigGeoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
3111+
Configurable<bool> fConfigUseRapcut{"cfgUseMCRapcut", false, "Use Rap cut for dileptons used in the triplet vertexing"};
3112+
Configurable<bool> fConfigEnergycorrelator{"cfgEnergycorrelator", false, "Add some hist for energy correlator study"};
31093113

31103114
int fCurrentRun; // needed to detect if the run changed and trigger update of calibrations etc.
31113115
int fNCuts; // number of dilepton leg cuts
@@ -3125,7 +3129,7 @@ struct AnalysisDileptonTrack {
31253129

31263130
// TODO: The filter expressions seem to always use the default value of configurables, not the values from the actual configuration file
31273131
Filter eventFilter = aod::dqanalysisflags::isEventSelected > static_cast<uint8_t>(0);
3128-
Filter dileptonFilter = aod::reducedpair::pt > fConfigDileptonpTCut&& aod::reducedpair::mass > fConfigDileptonLowMass&& aod::reducedpair::mass<fConfigDileptonHighMass && aod::reducedpair::sign == 0 && aod::reducedpair::lxy> fConfigDileptonLxyCut;
3132+
Filter dileptonFilter = aod::reducedpair::pt > fConfigDileptonLowpTCut&& aod::reducedpair::pt<fConfigDileptonHighpTCut && aod::reducedpair::mass> fConfigDileptonLowMass&& aod::reducedpair::mass<fConfigDileptonHighMass && aod::reducedpair::sign == 0 && aod::reducedpair::lxy> fConfigDileptonLxyCut;
31293133
Filter filterBarrel = aod::dqanalysisflags::isBarrelSelected > static_cast<uint32_t>(0);
31303134
Filter filterMuon = aod::dqanalysisflags::isMuonSelected > static_cast<uint32_t>(0);
31313135

@@ -3341,6 +3345,9 @@ struct AnalysisDileptonTrack {
33413345

33423346
if (isBarrelME || isMuonME) {
33433347
DefineHistograms(fHistMan, Form("DileptonTrackME_%s_%s", pairLegCutName.Data(), fTrackCutNames[iCutTrack].Data()), "dilepton-hadron-array-correlation"); // define ME histograms
3348+
if (fConfigEnergycorrelator) {
3349+
DefineHistograms(fHistMan, Form("DileptonTrackECME_%s_%s", pairLegCutName.Data(), fTrackCutNames[iCutTrack].Data()), "energy-correlator"); // define ME histograms
3350+
}
33443351
}
33453352
} // end loop over track cuts to be combined with dileptons / di-tracks
33463353
} // end loop over pair leg track cuts
@@ -3403,6 +3410,11 @@ struct AnalysisDileptonTrack {
34033410
if (dilepton.sign() != 0) {
34043411
continue;
34053412
}
3413+
// dilepton rap cut
3414+
float rap = dilepton.rap();
3415+
if (fConfigUseRapcut && abs(rap) > fConfigDileptonRapCutAbs)
3416+
continue;
3417+
34063418
VarManager::FillTrack<fgDileptonFillMap>(dilepton, fValuesDilepton);
34073419

34083420
// loop over existing dilepton leg cuts (e.g. electron1, electron2, etc)
@@ -3658,6 +3670,9 @@ struct AnalysisDileptonTrack {
36583670
for (uint32_t iTrackCut = 0; iTrackCut < fTrackCutNames.size(); iTrackCut++) {
36593671
if (trackSelection & (static_cast<uint32_t>(1) << iTrackCut)) {
36603672
fHistMan->FillHistClass(Form("DileptonTrackME_%s_%s", fTrackCutNames[icut].Data(), fTrackCutNames[iTrackCut].Data()), VarManager::fgValues);
3673+
if (fConfigEnergycorrelator) {
3674+
fHistMan->FillHistClass(Form("DileptonTrackECME_%s_%s", fTrackCutNames[icut].Data(), fTrackCutNames[iTrackCut].Data()), VarManager::fgValues);
3675+
}
36613676
}
36623677
}
36633678
}
@@ -4051,6 +4066,10 @@ void DefineHistograms(HistogramManager* histMan, TString histClasses, const char
40514066
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "dilepton-track", "dilepton-hadron-array-correlation");
40524067
}
40534068

4069+
if (classStr.Contains("DileptonTrackECME")) {
4070+
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "dilepton-track", "energy-correlator");
4071+
}
4072+
40544073
if (classStr.Contains("HadronsSelected")) {
40554074
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "track", histName);
40564075
}

0 commit comments

Comments
 (0)