Skip to content
Merged
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
25 changes: 12 additions & 13 deletions PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <Framework/runDataProcessing.h>
#include <ReconstructionDataFormats/PID.h>

#include "TDatabasePDG.h"

Check failure on line 39 in PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/database]

Do not use TDatabasePDG directly. Use o2::constants::physics::Mass... or Service<o2::framework::O2DatabasePDG> instead.
#include <TComplex.h>
#include <TF1.h>
#include <TH2.h>
Expand Down Expand Up @@ -67,7 +67,6 @@
#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, DEFAULT, HELP};

struct V0ptHadPiKaProt {

// ITS response
o2::aod::ITSResponse itsResponse;
// Connect to ccdb
Expand Down Expand Up @@ -812,20 +811,20 @@
return 0;
}

int occupancy = coll.trackOccupancyInTimeRange();
histos.fill(HIST("hOccupancyVsCentrality_before"), occupancy);

histos.fill(HIST("hEventStatData"), 6.5);
// events with selection bits based on occupancy time pattern
if (cfgEvSelUseOcuppancyTimeCut && !(coll.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard))) {
return 0;
}

histos.fill(HIST("hOccupancyVsCentrality_after"), occupancy);

histos.fill(HIST("hEventStatData"), 7.5);
if (cfgEvSelSetOcuppancyRange && (occupancy < cfgMinOccupancy || occupancy > cfgMaxOccupancy)) {
return 0;
if (cfgEvSelUseOcuppancyTimeCut) {
int occupancy = coll.trackOccupancyInTimeRange();
histos.fill(HIST("hOccupancyVsCentrality_before"), coll.centFT0C(), occupancy);
if (!(coll.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)))
return 0;
else
histos.fill(HIST("hOccupancyVsCentrality_after"), coll.centFT0C(), occupancy);

histos.fill(HIST("hEventStatData"), 7.5);
if (cfgEvSelSetOcuppancyRange && (occupancy < cfgMinOccupancy || occupancy > cfgMaxOccupancy)) {
return 0;
}
}

histos.fill(HIST("hEventStatData"), 8.5);
Expand Down Expand Up @@ -981,7 +980,7 @@
continue;

// charged check
auto pdgEntry = TDatabasePDG::Instance()->GetParticle(mcParticle.pdgCode());

Check failure on line 983 in PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/database]

Do not use TDatabasePDG directly. Use o2::constants::physics::Mass... or Service<o2::framework::O2DatabasePDG> instead.
if (!pdgEntry)
continue;
if (pdgEntry->Charge() == 0)
Expand Down
Loading