Skip to content

Commit 31af0f0

Browse files
author
Sabrina Hernandez
committed
adjusted O2 linter and added 2D histograms
1 parent 5f9251b commit 31af0f0

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

PWGCF/Flow/Tasks/FlowZDCtask.cxx

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,14 @@
88
// In applying this license CERN does not waive the privileges and immunities
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
11-
<<<<<<< HEAD
12-
13-
// o2-analysis-cf-flow-zdc-task --aod-file AO2D.root --configuration json://configuration_run3.json | o2-analysis-track-propagation --aod-file AO2D.root --configuration json://configuration_run3.json | o2-analysis-timestamp --aod-file AO2D.root --configuration json://configuration_run3.json | o2-analysis-event-selection --aod-file AO2D.root --configuration json://configuration_run3.json | o2-analysis-trackselection --aod-file AO2D.root --configuration json://configuration_run3.json | o2-analysis-centrality-table --aod-file AO2D.root --configuration json://configuration_run3.json | o2-analysis-multiplicity-table --aod-file AO2D.root --configuration json://configuration_run3.json -b
14-
15-
=======
1611
/// \file FlowZDCtask.cxx
1712
/// \author Sabrina Hernandez
18-
/// \since 08/01/2024
13+
/// \since 10/01/2024
1914
/// \brief task to evaluate flow and neutron skin with information from ZDC
20-
>>>>>>> ad777c681 (adjusted O2 linter and added 2D histograms)
2115
#include <CCDB/BasicCCDBManager.h>
2216
#include <cmath>
2317
#include <vector>
24-
#include <complex>
18+
#include <complex>
2519
#include "Framework/runDataProcessing.h"
2620
#include "Framework/AnalysisTask.h"
2721
#include "Framework/ASoAHelpers.h"
@@ -90,11 +84,7 @@ struct FlowZDCtask {
9084
ConfigurableAxis axisPhi{"axisPhi", {60, 0.0, constants::math::TwoPI}, "phi axis for histograms"};
9185
ConfigurableAxis axisEta{"axisEta", {40, -1., 1.}, "eta axis for histograms"};
9286
ConfigurableAxis axisPt{"axisPt", {VARIABLE_WIDTH, 0.2, 0.25, 0.30, 0.40, 0.45, 0.50, 0.55, 0.60, 0.65, 0.70, 0.75, 0.80, 0.85, 0.90, 0.95, 1.00, 1.10, 1.20, 1.30, 1.40, 1.50, 1.60, 1.70, 1.80, 1.90, 2.00, 2.20, 2.40, 2.60, 2.80, 3.00}, "pt axis for histograms"};
93-
<<<<<<< HEAD
9487
ConfigurableAxis axisMultiplicity{"axisMultiplicity", {3500, 0, 3500}, "centrality axis for histograms"};
95-
=======
96-
ConfigurableAxis axisMultiplicity{"axisMultiplicity", {2500, 0, 2500}, "centrality axis for histograms"};
97-
>>>>>>> d632a38c11f0e23edc22c48733f9ddfa198ddf5d
9888
ConfigurableAxis axisEnergy{"axisEnergy", {100, 0, 700}, "energy axis for zdc histos"};
9989
ConfigurableAxis axisMultTPC{"axisaxisMultTPC", {1000, -0.5f, 1999.5f}, "TPCmultiplicity"};
10090
ConfigurableAxis axisZN{"axisZN", {5000, 0, 500}, "axisZN"};
@@ -151,11 +141,6 @@ struct FlowZDCtask {
151141
AxisSpec axisVtxcounts{2, -0.5f, 1.5f, "Vtx info (0=no, 1=yes)"};
152142
AxisSpec axisZvert{120, -30.f, 30.f, "Vtx z (cm)"};
153143
AxisSpec axisCent{8, 0.f, 105.f, "centrality"};
154-
<<<<<<< HEAD
155-
=======
156-
AxisSpec axisMult{2500, 0, 2500.0f, "multiplicity"};
157-
AxisSpec axisMultTPC{1000, -0.5f, 1999.5f, "TPCmultiplicity"};
158-
>>>>>>> d632a38c11f0e23edc22c48733f9ddfa198ddf5d
159144
AxisSpec axisCentBins{{0, 5., 10., 20., 30., 40., 50., 60., 70., 80.}, "centrality percentile"};
160145
AxisSpec axisPtBins{{0., 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 2.25, 2.5, 2.75, 3.0, 3.5, 4.0, 4.5, 5.0, 6.0, 8.0, 10., 13., 16., 20.}, "p_{T} (GeV/c)"};
161146

@@ -166,11 +151,7 @@ struct FlowZDCtask {
166151
histos.add("eventCounter", "eventCounter", kTH1F, {axisCounter});
167152
histos.add("centHistogram", "centHistogram", kTH1F, {axisCent});
168153
histos.add("multHistogram", "multHistogram", kTH1F, {axisMultiplicity});
169-
<<<<<<< HEAD
170154
histos.add("multvsCent", "centrality vs multiplicity", kTH2F, {axisCent, axisMultiplicity});
171-
=======
172-
histos.add("multvsCent", "centrality vs multiplicity", kTH2F, {axisCent, axisMult});
173-
>>>>>>> d632a38c11f0e23edc22c48733f9ddfa198ddf5d
174155
histos.add("phiHistogram", "phiHistogram", kTH1F, {axisPhi});
175156
histos.add("TPCmultiplicity", "TPCmultiplicity", kTH1F, {axisMultTPC});
176157

@@ -212,13 +193,8 @@ struct FlowZDCtask {
212193
histos.add("ImagQHistogramZNC", "ImagQHistogramZNC", kTH1F, {axisQZNA});
213194

214195
histos.add("Acorrelations", "Acorrelations", kTH2F, {{axisQZNA}, {axisQZNA}});
215-
<<<<<<< HEAD
216196
histos.add("SPAngleZNA", "Spectator Plane Angle ZNA;Angle (radians);Entries", {HistType::kTH1F, {{100, -o2::constants::math::PI, o2::constants::math::PI}}});
217197
histos.add("SPAngleZNC", "Spectator Plane Angle ZNC;Angle (radians);Entries", {HistType::kTH1F, {{100, -o2::constants::math::PI, o2::constants::math::PI}}});
218-
=======
219-
histos.add("SPAngleZNA", "Spectator Plane Angle ZNA;Angle (radians);Entries", {HistType::kTH1F, {{100, -TMath::Pi(), TMath::Pi()}}});
220-
histos.add("SPAngleZNC", "Spectator Plane Angle ZNC;Angle (radians);Entries", {HistType::kTH1F, {{100, -TMath::Pi(), TMath::Pi()}}});
221-
>>>>>>> d632a38c11f0e23edc22c48733f9ddfa198ddf5d
222198

223199
histos.add("RunningAverageCosPsiDiff", "Running Average of cos(psi) Differences;Running Average;Entries", {HistType::kTH1F, {{100, -1, 1}}});
224200

@@ -306,7 +282,7 @@ struct FlowZDCtask {
306282
double FT0CAmp = 0;
307283
// collision-based event selection
308284
if (!collision.sel8())
309-
return;
285+
return;
310286
const auto& foundBC = collision.foundBC_as<BCsRun3>();
311287
if (collision.has_foundFT0()) {
312288
auto ft0 = collision.foundFT0();
@@ -426,7 +402,6 @@ struct FlowZDCtask {
426402
histos.fill(HIST("CosPsiDifferences"), cosPsiDiff);
427403
histos.fill(HIST("hSinDifferences"), sinPsiDiff);
428404
}
429-
430405
}
431406

432407
PROCESS_SWITCH(FlowZDCtask, processZdcCollAssoc, "Processing ZDC w. collision association", true);

0 commit comments

Comments
 (0)