1212// / \file multandptFluctuations.cxx
1313// / \brief Calculate multiplicity and transverse momentum fluctuations using strongly intensive observables
1414// / \author Omama Rubza
15- #include " Common/Core/TrackSelection .h"
15+ #include " Common/CCDB/EventSelectionParams .h"
1616#include " Common/DataModel/Centrality.h"
1717#include " Common/DataModel/EventSelection.h"
18- #include " Common/DataModel/FT0Corrected.h"
1918#include " Common/DataModel/Multiplicity.h"
2019#include " Common/DataModel/TrackSelectionTables.h"
21- #include " Common/CCDB/EventSelectionParams.h"
2220
23- #include < Framework/ASoAHelpers .h>
21+ #include < Framework/AnalysisHelpers .h>
2422#include < Framework/AnalysisDataModel.h>
2523#include < Framework/AnalysisTask.h>
2624#include < Framework/HistogramRegistry.h>
2725#include < Framework/HistogramSpec.h>
28- #include < Framework/runDataProcessing.h>
2926#include < Framework/Configurable.h>
3027#include < Framework/InitContext.h>
31- #include < Framework/O2DatabasePDGPlugin.h>
3228#include < Framework/OutputObjHeader.h>
3329#include < Framework/runDataProcessing.h>
3430
3531#include < TProfile.h>
3632
3733#include < vector>
34+ #include < cmath>
3835
3936using namespace o2 ;
4037using namespace o2 ::framework;
@@ -138,16 +135,21 @@ struct MultandptFluctuations {
138135 }
139136
140137 histos.fill (HIST (" QA/BeforeCut/Cent" ), cent);
141- if (!col.sel8 ())
138+ if (!col.sel8 ()) {
142139 return ;
143- if (std::abs (col.posZ ()) > vtxZcut)
140+ }
141+ if (std::abs (col.posZ ()) > vtxZcut) {
144142 return ;
145- if (cfgNoSameBunchPileup && !col.selection_bit (o2::aod::evsel::kNoSameBunchPileup ))
143+ }
144+ if (cfgNoSameBunchPileup && !col.selection_bit (o2::aod::evsel::kNoSameBunchPileup )) {
146145 return ;
147- if (cfgEvSelUseGoodZvtxFT0vsPV && !col.selection_bit (o2::aod::evsel::kIsGoodZvtxFT0vsPV ))
146+ }
147+ if (cfgEvSelUseGoodZvtxFT0vsPV && !col.selection_bit (o2::aod::evsel::kIsGoodZvtxFT0vsPV )) {
148148 return ;
149- if (cfgUseGoodITSLayerAllCut && !col.selection_bit (o2::aod::evsel::kIsGoodITSLayersAll ))
149+ }
150+ if (cfgUseGoodITSLayerAllCut && !col.selection_bit (o2::aod::evsel::kIsGoodITSLayersAll )) {
150151 return ;
152+ }
151153
152154 histos.fill (HIST (" hEventCounter" ), cent);
153155 histos.fill (HIST (" QA/AfterCut/VtxZ" ), col.posZ ());
@@ -167,31 +169,41 @@ struct MultandptFluctuations {
167169
168170 // Track quality cuts
169171
170- if (requireITS && !track.hasITS ())
172+ if (requireITS && !track.hasITS ()) {
171173 continue ;
172- if (requireTPC && !track.hasTPC ())
174+ }
175+ if (requireTPC && !track.hasTPC ()) {
173176 continue ;
174- if (track.itsNCls () < itsNClsCut)
177+ }
178+ if (track.itsNCls () < itsNClsCut) {
175179 continue ;
176- if (track.tpcNClsCrossedRows () < tpcCrossCut)
180+ }
181+ if (track.tpcNClsCrossedRows () < tpcCrossCut) {
177182 continue ;
178- if (track.tpcCrossedRowsOverFindableCls () < crossedRowsOverFindableCut)
183+ }
184+ if (track.tpcCrossedRowsOverFindableCls () < crossedRowsOverFindableCut) {
179185 continue ;
180- if (std::abs (track.dcaZ ()) > dcaZCut)
186+ }
187+ if (std::abs (track.dcaZ ()) > dcaZCut) {
181188 continue ;
182- if (std::abs (track.dcaXY ()) > dcaXYCut)
189+ }
190+ if (std::abs (track.dcaXY ()) > dcaXYCut) {
183191 continue ;
184- if (track.tpcChi2NCl () > tpcChiCut)
192+ }
193+ if (track.tpcChi2NCl () > tpcChiCut) {
185194 continue ;
186- if (track.itsChi2NCl () > itsChiCut)
195+ }
196+ if (track.itsChi2NCl () > itsChiCut) {
187197 continue ;
188- if (std::abs (track.eta ()) > etaCut)
198+ }
199+ if (std::abs (track.eta ()) > etaCut) {
189200 continue ;
201+ }
190202 if (requireInnerITS) {
191203 auto itsMap = track.itsClusterMap ();
192- if (!( itsMap & (1 << 0 )) &&
193- !( itsMap & (1 << 1 )) &&
194- !( itsMap & (1 << 2 ))) {
204+ if ((( itsMap & (1 << 0 )) == 0 ) &&
205+ (( itsMap & (1 << 1 )) == 0 ) &&
206+ (( itsMap & (1 << 2 )) == 0 )) {
195207 continue ;
196208 }
197209 }
0 commit comments