Skip to content
Closed
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
43 changes: 43 additions & 0 deletions PWGCF/Flow/Tasks/flowZdcEnergy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,36 @@
using namespace o2::framework;
using namespace o2::framework::expressions;

namespace o2::aod
{
namespace zdctree
{
DECLARE_SOA_COLUMN(ZNAC, znac, float);

Check failure on line 49 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNA1, zna1, float);

Check failure on line 50 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNA2, zna2, float);

Check failure on line 51 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNA3, zna3, float);

Check failure on line 52 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNA4, zna4, float);

Check failure on line 53 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNCC, zncc, float);

Check failure on line 54 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNC1, znc1, float);

Check failure on line 55 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNC2, znc2, float);

Check failure on line 56 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNC3, znc3, float);

Check failure on line 57 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(ZNC4, znc4, float);

Check failure on line 58 in PWGCF/Flow/Tasks/flowZdcEnergy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(Multiplicity, multiplicity, float);
} // namespace zdctree
DECLARE_SOA_TABLE(ZdcTree, "AOD", "ZDCTREE",
zdctree::ZNAC,
zdctree::ZNA1,
zdctree::ZNA2,
zdctree::ZNA3,
zdctree::ZNA4,
zdctree::ZNCC,
zdctree::ZNC1,
zdctree::ZNC2,
zdctree::ZNC3,
zdctree::ZNC4,
zdctree::Multiplicity);
} // namespace o2::aod

#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, DEFAULT, HELP};

struct FlowZdcEnergy {
Expand Down Expand Up @@ -73,6 +103,7 @@

Service<ccdb::BasicCCDBManager> ccdb;
HistogramRegistry registry{"registry"};
Produces<aod::ZdcTree> zdcTree;

Filter trackFilter = nabs(aod::track::eta) < cfgEtaMax && aod::track::pt > cfgPtMin&& aod::track::pt < cfgPtMax&& nabs(aod::track::dcaXY) < cfgDcaXYMax&& nabs(aod::track::dcaZ) < cfgDcaZMax;
using UsedTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TrackSelection, aod::TracksDCA>>;
Expand Down Expand Up @@ -204,6 +235,18 @@
const float energySectorZNC3 = zdc.energySectorZNC()[2];
const float energySectorZNC4 = zdc.energySectorZNC()[3];

zdcTree(energyCommonZNA,
energySectorZNA1,
energySectorZNA2,
energySectorZNA3,
energySectorZNA4,
energyCommonZNC,
energySectorZNC1,
energySectorZNC2,
energySectorZNC3,
energySectorZNC4,
multiTPC);

const float sumEnergyZNA = energySectorZNA1 + energySectorZNA2 + energySectorZNA3 + energySectorZNA4;
const float sumEnergyZNC = energySectorZNC1 + energySectorZNC2 + energySectorZNC3 + energySectorZNC4;

Expand Down
Loading