Skip to content

Commit d74e3f2

Browse files
[PWGDQ] Corrected histogram filling logic for cumulants analysis (AliceO2Group#9316)
1 parent 9ad8d3e commit d74e3f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGDQ/Tasks/tableReader.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ struct AnalysisSameEventPairing {
967967
Configurable<std::string> geoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
968968
Configurable<std::string> fCollisionSystem{"syst", "pp", "Collision system, pp or PbPb"};
969969
Configurable<float> fCenterMassEnergy{"energy", 13600, "Center of mass energy in GeV"};
970+
Configurable<bool> fConfigCumulants{"cfgCumulants", false, "If true, fill Cumulants with Weights different than 0"};
970971

971972
// Configurables to create output tree (flat tables or minitree)
972973
struct : ConfigurableGroup {
@@ -1153,6 +1154,10 @@ struct AnalysisSameEventPairing {
11531154
template <bool TTwoProngFitter, int TPairType, uint32_t TEventFillMap, uint32_t TTrackFillMap, typename TEvent, typename TTracks1, typename TTracks2>
11541155
void runSameEventPairing(TEvent const& event, TTracks1 const& tracks1, TTracks2 const& tracks2)
11551156
{
1157+
if (fConfigCumulants && VarManager::fgValues[VarManager::kM11REF] == 0) {
1158+
1159+
return;
1160+
}
11561161
if (fCurrentRun != event.runNumber()) {
11571162
if (fUseRemoteField) {
11581163
grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(grpmagPath, event.timestamp());

0 commit comments

Comments
 (0)