Skip to content

Commit d624b13

Browse files
committed
Please consider the following formatting changes
1 parent 9095c49 commit d624b13

1 file changed

Lines changed: 58 additions & 59 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/NetchargeFluctuations.cxx

Lines changed: 58 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// Department of Physics, Aligarh Muslim University, India
1414
// to study the net charge fluctuations by observable, #nu_dyn
1515

16-
17-
1816
#include "Framework/AnalysisTask.h"
1917
#include "Framework/runDataProcessing.h"
2018
#include "Common/DataModel/EventSelection.h"
@@ -24,81 +22,82 @@
2422
#include "Common/Core/TrackSelection.h"
2523
#include "Common/DataModel/TrackSelectionTables.h"
2624

27-
2825
using namespace o2;
2926
using namespace o2::framework;
3027
using namespace o2::framework::expressions;
3128
using namespace std;
3229

33-
3430
namespace o2::aod
3531
{
36-
using MyCollisions = soa::Join<aod::Collisions,aod::EvSels,aod::CentRun2V0Ms,aod::Mults>;
37-
using MyCollision = MyCollisions::iterator;
32+
using MyCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CentRun2V0Ms, aod::Mults>;
33+
using MyCollision = MyCollisions::iterator;
3834

39-
using MyTracks = soa::Join<aod::Tracks,aod::TracksExtra,aod::TracksDCA,aod::TrackSelection>;
40-
using MyTrack = MyTracks::iterator;
41-
}
35+
using MyTracks = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection>;
36+
using MyTrack = MyTracks::iterator;
37+
} // namespace o2::aod
4238

43-
struct NetchargeFluctuations
44-
{
39+
struct NetchargeFluctuations {
4540
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject};
46-
void init(o2::framework::InitContext&)
47-
{
48-
AxisSpec vtxZAxis = {100, -20, 20, "Z (cm)"};
49-
AxisSpec dcaAxis = {1000, -100, 100, "DCA_{xy} (cm)"};
50-
AxisSpec dcazAxis = {1000, -100, 100, "DCA_{z} (cm)"};
51-
AxisSpec ptAxis = {40, 0.0, 4.0, "#it{p}_{T} (GeV/#it{c})"};
52-
AxisSpec etaAxis = {30, -1.5, 1.5, "#eta"};
53-
AxisSpec centAxis = {100, 0., 100., "centrality"};
54-
AxisSpec multAxis = {2000, 0., 2000., "multiplicity"};
55-
56-
histos.add("hVertexZ_bef", "", kTH1F, {vtxZAxis});
57-
histos.add("hVertexZ_aft", "", kTH1F, {vtxZAxis});
58-
histos.add("hVertexZ_aft_sel", "", kTH1D, {vtxZAxis});
59-
histos.add("hDCAxy_bef", "", kTH1D, {dcaAxis});
60-
histos.add("hDCAxy_aft", "", kTH1D, {dcaAxis});
61-
histos.add("hDCAz_bef", "", kTH1D, {dcazAxis});
62-
histos.add("hDCAz_aft", "", kTH1D, {dcazAxis});
63-
histos.add("hCentrality", "", kTH1D, {centAxis});
64-
histos.add("hMultiplicity", "", kTH1D, {multAxis});
65-
histos.add("hEta", "", kTH1F, {etaAxis});
66-
histos.add("hPt", "", kTH1F, {ptAxis});
67-
68-
}
41+
void init(o2::framework::InitContext&)
42+
{
43+
AxisSpec vtxZAxis = {100, -20, 20, "Z (cm)"};
44+
AxisSpec dcaAxis = {1000, -100, 100, "DCA_{xy} (cm)"};
45+
AxisSpec dcazAxis = {1000, -100, 100, "DCA_{z} (cm)"};
46+
AxisSpec ptAxis = {40, 0.0, 4.0, "#it{p}_{T} (GeV/#it{c})"};
47+
AxisSpec etaAxis = {30, -1.5, 1.5, "#eta"};
48+
AxisSpec centAxis = {100, 0., 100., "centrality"};
49+
AxisSpec multAxis = {2000, 0., 2000., "multiplicity"};
50+
51+
histos.add("hVertexZ_bef", "", kTH1F, {vtxZAxis});
52+
histos.add("hVertexZ_aft", "", kTH1F, {vtxZAxis});
53+
histos.add("hVertexZ_aft_sel", "", kTH1D, {vtxZAxis});
54+
histos.add("hDCAxy_bef", "", kTH1D, {dcaAxis});
55+
histos.add("hDCAxy_aft", "", kTH1D, {dcaAxis});
56+
histos.add("hDCAz_bef", "", kTH1D, {dcazAxis});
57+
histos.add("hDCAz_aft", "", kTH1D, {dcazAxis});
58+
histos.add("hCentrality", "", kTH1D, {centAxis});
59+
histos.add("hMultiplicity", "", kTH1D, {multAxis});
60+
histos.add("hEta", "", kTH1F, {etaAxis});
61+
histos.add("hPt", "", kTH1F, {ptAxis});
62+
}
6963

70-
void process(aod::MyCollision const& coll, aod::MyTracks const& inputTracks)
64+
void process(aod::MyCollision const& coll, aod::MyTracks const& inputTracks)
7165
{
72-
histos.fill(HIST("hVertexZ_bef"), coll.posZ());
66+
histos.fill(HIST("hVertexZ_bef"), coll.posZ());
7367

74-
if (fabs(coll.posZ()) > 10.f) {return;}
75-
histos.fill(HIST("hVertexZ_aft"), coll.posZ());
68+
if (fabs(coll.posZ()) > 10.f) {
69+
return;
70+
}
71+
histos.fill(HIST("hVertexZ_aft"), coll.posZ());
7672

77-
if (!coll.sel7()) { return;}
73+
if (!coll.sel7()) {
74+
return;
75+
}
7876
histos.fill(HIST("hVertexZ_aft_sel"), coll.posZ());
79-
histos.fill(HIST("hCentrality"), coll.centRun2V0M());
80-
histos.fill(HIST("hMultiplicity"), coll.multFV0M());
81-
82-
83-
for (auto track : inputTracks)
84-
{
85-
if (fabs(track.eta()) > 0.8) continue;
86-
if (!(track.pt() > 0.2 && track.pt() < 2.)) continue;
87-
88-
histos.fill(HIST("hDCAxy_bef"), track.dcaXY());
89-
histos.fill(HIST("hDCAz_bef"), track.dcaZ());
90-
91-
if (!track.isGlobalTrack()) continue;
92-
93-
histos.fill(HIST("hDCAxy_aft"), track.dcaXY());
94-
histos.fill(HIST("hDCAz_aft"), track.dcaZ());
95-
histos.fill(HIST("hPt"), track.pt());
96-
histos.fill(HIST("hEta"), track.eta());
97-
}
77+
histos.fill(HIST("hCentrality"), coll.centRun2V0M());
78+
histos.fill(HIST("hMultiplicity"), coll.multFV0M());
79+
80+
for (auto track : inputTracks) {
81+
if (fabs(track.eta()) > 0.8)
82+
continue;
83+
if (!(track.pt() > 0.2 && track.pt() < 2.))
84+
continue;
85+
86+
histos.fill(HIST("hDCAxy_bef"), track.dcaXY());
87+
histos.fill(HIST("hDCAz_bef"), track.dcaZ());
88+
89+
if (!track.isGlobalTrack())
90+
continue;
91+
92+
histos.fill(HIST("hDCAxy_aft"), track.dcaXY());
93+
histos.fill(HIST("hDCAz_aft"), track.dcaZ());
94+
histos.fill(HIST("hPt"), track.pt());
95+
histos.fill(HIST("hEta"), track.eta());
96+
}
9897
}
9998
};
10099
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
101100
{
102101
WorkflowSpec workflow{adaptAnalysisTask<NetchargeFluctuations>(cfgc)};
103-
return workflow;
102+
return workflow;
104103
}

0 commit comments

Comments
 (0)