Skip to content

Commit aba6b7a

Browse files
authored
[PWGLF] Update to MC (#10238)
1 parent a060997 commit aba6b7a

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

PWGLF/Tasks/GlobalEventProperties/uccZdc.cxx

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include <cstddef>
2323
#include <cstdint>
2424
#include <cstdlib>
25-
#include <vector>
2625
#include <string>
26+
#include <vector>
2727

2828
#include "Common/CCDB/EventSelectionParams.h"
2929
#include "Common/CCDB/TriggerAliases.h"
@@ -146,7 +146,7 @@ struct UccZdc {
146146
};
147147

148148
// Filters
149-
Filter collFilter = (nabs(aod::collision::posZ) < posZcut);
149+
// Filter collFilter = (nabs(aod::collision::posZ) < posZcut);
150150
// Filter trackFilter = (requireGlobalTrackInFilter());
151151
Filter trackFilter =
152152
((aod::track::eta > minEta) && (aod::track::eta < maxEta) &&
@@ -159,7 +159,7 @@ struct UccZdc {
159159
using TheFilteredTracks = soa::Filtered<o2::aod::TracksSel>;
160160
// using TheFilteredTrack = TheFilteredTracks::iterator;
161161

162-
using TheFilteredSimCollisions = soa::Filtered<o2::aod::SimCollisions>;
162+
// using TheFilteredSimCollisions = soa::Filtered<o2::aod::SimCollisions>;
163163
using TheFilteredSimTracks = soa::Filtered<o2::aod::SimTracks>;
164164

165165
// Histograms: Data
@@ -216,30 +216,17 @@ struct UccZdc {
216216
registry.add("eta", ";;Entries;", kTH1F, {axisEta});
217217
registry.add("pt", ";;Entries;", kTH1F, {axisPt});
218218
registry.add("sigma1Pt", ";;#sigma(p_{T})/p_{T};", kTProfile, {axisPt});
219-
registry.add("pP1",
220-
";Nch;P_{1}=#Sigma_{evs} W^{(1)}_{e} [p_{T}^{(1)}]_{e};",
221-
kTProfile, {{nBinsNch, -0.5, maxNch}});
222-
registry.add("pW1", ";Nch;W_{1}=#Sigma_{evs} W^{(1)}_{e};", kTProfile,
223-
{{nBinsNch, -0.5, maxNch}});
224-
registry.add("pP2",
225-
";Nch;P_{2}=#Sigma_{evs} W^{(2)}_{e} [p_{T}^{(2)}]_{e};",
226-
kTProfile, {{nBinsNch, -0.5, maxNch}});
227-
registry.add("pW2", ";Nch;W_{2}=#Sigma_{evs} W^{(2)}_{e};", kTProfile,
228-
{{nBinsNch, -0.5, maxNch}});
229-
registry.add("pP3",
230-
";Nch;P_{3}=#Sigma_{evs} W^{(3)}_{e} [p_{T}^{(3)}]_{e};",
231-
kTProfile, {{nBinsNch, -0.5, maxNch}});
232-
registry.add("pW3", ";Nch;W_{3}=#Sigma_{evs} W^{(3)}_{e};", kTProfile,
233-
{{nBinsNch, -0.5, maxNch}});
234-
registry.add("pP4",
235-
";Nch;P_{4}=#Sigma_{evs} W^{(4)}_{e} [p_{T}^{(4)}]_{e};",
236-
kTProfile, {{nBinsNch, -0.5, maxNch}});
237-
registry.add("pW4", ";Nch;W_{4}=#Sigma_{evs} W^{(4)}_{e};", kTProfile,
238-
{{nBinsNch, -0.5, maxNch}});
219+
registry.add("pP1", ";Nch;P_{1}=#Sigma_{evs} W^{(1)}_{e} [p_{T}^{(1)}]_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
220+
registry.add("pW1", ";Nch;W_{1}=#Sigma_{evs} W^{(1)}_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
221+
registry.add("pP2", ";Nch;P_{2}=#Sigma_{evs} W^{(2)}_{e} [p_{T}^{(2)}]_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
222+
registry.add("pW2", ";Nch;W_{2}=#Sigma_{evs} W^{(2)}_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
223+
registry.add("pP3", " ;Nch;P_{3}=#Sigma_{evs} W^{(3)}_{e} [p_{T}^{(3)}]_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
224+
registry.add("pW3", ";Nch;W_{3}=#Sigma_{evs} W^{(3)}_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
225+
registry.add("pP4", ";Nch;P_{4}=#Sigma_{evs} W^{(4)}_{e} [p_{T}^{(4)}]_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
226+
registry.add("pW4", ";Nch;W_{4}=#Sigma_{evs} W^{(4)}_{e};", kTProfile, {{nBinsNch, -0.5, maxNch}});
239227
registry.add("dcaXYvspT", "", kTH2F, {{{50, -1., 1.}, {axisPt}}});
240228
registry.add("T0Ccent", ";T0C centrality;Entries", kTH1F, {axisCent});
241-
registry.add("Nch", ";Nch (|#eta|<0.8);", kTH1F,
242-
{{nBinsNch, -0.5, maxNch}});
229+
registry.add("Nch", ";Nch (|#eta|<0.8);", kTH1F, {{nBinsNch, -0.5, maxNch}});
243230
registry.add("ZN", "", kTH1F, {{nBinsZDC, -0.5, maxZN}});
244231
registry.add("ZNA", "", kTH1F, {{nBinsZDC, -0.5, maxZN}});
245232
registry.add("ZPA", "", kTH1F, {{nBinsZDC, -0.5, maxZP}});
@@ -630,7 +617,8 @@ struct UccZdc {
630617
PROCESS_SWITCH(UccZdc, processZdcCollAss, "Process ZDC W/Coll Ass.", true);
631618

632619
template <typename T, typename U>
633-
void getMoments(const T& pTs, const T& wIs, U& pOne, U& wOne, U& pTwo, U& wTwo, U& pThree, U& wThree, U& pFour, U& wFour)
620+
void getMoments(const T& pTs, const T& wIs, U& pOne, U& wOne, U& pTwo,
621+
U& wTwo, U& pThree, U& wThree, U& pFour, U& wFour)
634622
{
635623
pOne = wOne = pTwo = wTwo = pThree = wThree = pFour = wFour = 0.;
636624

0 commit comments

Comments
 (0)