@@ -134,10 +134,9 @@ struct NeutronProtonCorrZdc {
134134 histos.add (" MultiplicityHistograms/CentvsFT0M" , " CentvsFT0M" , kTH2F , {cfgAxisCent, AxisMultiplicityF0M});
135135 histos.add (" MultiplicityHistograms/CentvsFV0A" , " CentvsFV0A" , kTH2F , {cfgAxisCent, AxisMultiplicityF0A});
136136 histos.add (" MultiplicityHistograms/CentvsNGlobal" , " CentvsNGlobal" , kTH2F , {cfgAxisCent, AxisMultiplicityMultNGlobal});
137-
138137 }
139138
140- template <int mult, typename C>
139+ template <int mult, typename C>
141140 void fillMultHistosRun3 (const C& col)
142141 {
143142 static constexpr std::string_view multLabels[] = {" FT0C" , " FT0A" , " FV0A" , " FDDC" , " FDDA" , " TPC" , " NGlobal" };
@@ -146,12 +145,12 @@ struct NeutronProtonCorrZdc {
146145 histos.fill (HIST (" MultiplicityHistograms/" ) + HIST (multLabels[mult]), multarray[mult]);
147146 }
148147
149- template <int cent, typename C>
148+ template <int cent, typename C>
150149 void fillCentHistosRun3 (const C& col)
151150 {
152151 static constexpr std::string_view centLabels[] = {" CentvsFT0C" , " CentvsFT0CVar1" , " CentvsFT0M" , " CentvsFV0A" , " CentvsNGlobal" };
153152 std::array<float , 5 > centarray = {col.centFT0C (), col.centFT0CVariant1 (), col.centFT0M (), col.centFV0A (), col.centNGlobal ()};
154- std::array<float , 5 > multarray = {col.multFT0C (), col.multFT0C (), col.multFT0C ()+ col.multFT0A (), col.multFV0A (), float (col.multNTracksGlobal ())};
153+ std::array<float , 5 > multarray = {col.multFT0C (), col.multFT0C (), col.multFT0C () + col.multFT0A (), col.multFV0A (), float (col.multNTracksGlobal ())};
155154
156155 histos.fill (HIST (" MultiplicityHistograms/" ) + HIST (centLabels[cent]), centarray[cent], multarray[cent]);
157156 }
@@ -186,10 +185,9 @@ struct NeutronProtonCorrZdc {
186185
187186 std::array<std::array<float , 4 >, 2 > znEnergyResponse = {zdc.energySectorZNA (), zdc.energySectorZNC ()};
188187 std::array<std::array<float , 4 >, 2 > zpEnergyResponse = {zdc.energySectorZPA (), zdc.energySectorZPC ()};
189-
188+
190189 histos.fill (HIST (SubDir[side]) + HIST (ZNSector[sector]), centr, znEnergyResponse[side][sector]);
191190 histos.fill (HIST (SubDir[side]) + HIST (ZPSector[sector]), centr, zpEnergyResponse[side][sector]);
192-
193191 }
194192
195193 void processRun3 (soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::MultsGlobal, CentralitiesRun3>>::iterator const & collision, BCsRun3 const &, aod::Zdcs const &)
@@ -213,18 +211,18 @@ struct NeutronProtonCorrZdc {
213211 histos.fill (HIST (" eventCounter" ), EventCounter::kZDCSelection );
214212 histos.fill (HIST (" CentralityPercentile" ), cent);
215213
216- static_for<0 ,6 >([&](auto i){
214+ static_for<0 , 6 >([&](auto i) {
217215 fillMultHistosRun3<i>(collision); // Fill multiplicity histograms
218216 });
219-
220- static_for<0 ,4 >([&](auto i){
217+
218+ static_for<0 , 4 >([&](auto i) {
221219 fillCentHistosRun3<i>(collision); // Fill centrality histograms
222- });
220+ });
223221
224- static_for<0 ,1 >([&](auto i){
222+ static_for<0 , 1 >([&](auto i) {
225223 fillZDCSideCommonHistos<i>(cent, zdcread); // Fill i-side common histograms
226- static_for<0 ,3 >([&](auto j){
227- fillZDCSideSectorHistos<i,j>(cent, zdcread); // Fill i-side sector j histograms
224+ static_for<0 , 3 >([&](auto j) {
225+ fillZDCSideSectorHistos<i, j>(cent, zdcread); // Fill i-side sector j histograms
228226 });
229227 });
230228
@@ -251,7 +249,7 @@ struct NeutronProtonCorrZdc {
251249 histos.fill (HIST (" CentvsZPAvsZNC" ), cent, sumZPA, sumZNC);
252250 histos.fill (HIST (" CentvsZPAvsZPC" ), cent, sumZPA, sumZPC);
253251 histos.fill (HIST (" CentvsZNCvsZPC" ), cent, sumZNC, sumZPC);
254- histos.fill (HIST (" CentvsZNvsZP" ), cent, sumZNA+ sumZNC, sumZPA+ sumZPC);
252+ histos.fill (HIST (" CentvsZNvsZP" ), cent, sumZNA + sumZNC, sumZPA + sumZPC);
255253 }
256254 }
257255 PROCESS_SWITCH (NeutronProtonCorrZdc, processRun3, " Process analysis for Run 3 data" , true );
@@ -275,10 +273,10 @@ struct NeutronProtonCorrZdc {
275273 histos.fill (HIST (" eventCounter" ), EventCounter::kZDCSelection );
276274 histos.fill (HIST (" CentralityPercentile" ), cent);
277275
278- static_for<0 ,1 >([&](auto i){
276+ static_for<0 , 1 >([&](auto i) {
279277 fillZDCSideCommonHistos<i>(cent, zdcread); // Fill i-side common channels
280- static_for<0 ,3 >([&](auto j){
281- fillZDCSideSectorHistos<i,j>(cent, zdcread); // Fill i-side sector j
278+ static_for<0 , 3 >([&](auto j) {
279+ fillZDCSideSectorHistos<i, j>(cent, zdcread); // Fill i-side sector j
282280 });
283281 });
284282
@@ -305,7 +303,7 @@ struct NeutronProtonCorrZdc {
305303 histos.fill (HIST (" CentvsZPAvsZNC" ), cent, sumZPA, sumZNC);
306304 histos.fill (HIST (" CentvsZPAvsZPC" ), cent, sumZPA, sumZPC);
307305 histos.fill (HIST (" CentvsZNCvsZPC" ), cent, sumZNC, sumZPC);
308- histos.fill (HIST (" CentvsZNvsZP" ), cent, sumZNA+ sumZNC, sumZPA+ sumZPC);
306+ histos.fill (HIST (" CentvsZNvsZP" ), cent, sumZNA + sumZNC, sumZPA + sumZPC);
309307 }
310308 }
311309 PROCESS_SWITCH (NeutronProtonCorrZdc, processRun2, " Process analysis for Run 2 converted data" , false );
0 commit comments