@@ -418,8 +418,9 @@ struct ZdcQVectors {
418418 registry.fill (HIST (" hEventCount" ), evSel);
419419 // FT0C is the default centrality estimator
420420
421- if (!cfgFillCutAnalysis || cfgFillNothing)
421+ if (!cfgFillCutAnalysis || cfgFillNothing){
422422 return ;
423+ }
423424 // Add default with different centrality estimators as well
424425 // Here we fill the Energy and mean vx, vy vz histograms with an extra dimension for all the event selections used.
425426 registry.get <TProfile2D>(HIST (" CutAnalysis/hvertex_vx" ))->Fill (Form (" %d" , cal.runnumber ), evSel, collision.posX ());
@@ -569,8 +570,9 @@ struct ZdcQVectors {
569570 float zRes = std::sqrt (collision.covZZ ());
570571 float minzRes = 0.25 ;
571572 int maxNumContrib = 20 ;
572- if (zRes > minzRes && collision.numContrib () < maxNumContrib)
573+ if (zRes > minzRes && collision.numContrib () < maxNumContrib){
573574 vtxz = -999 ;
575+ }
574576 }
575577
576578 auto multNTracksPV = collision.multNTracksPV ();
@@ -820,23 +822,27 @@ struct ZdcQVectors {
820822
821823 if (cfgFT0Cvariant1) {
822824 cents.push_back (collision.centFT0CVariant1 ());
823- if (cfgUseSecondCent)
825+ if (cfgUseSecondCent){
824826 cent = collision.centFT0CVariant1 ();
827+ }
825828 }
826829 if (cfgFT0M) {
827830 cents.push_back (collision.centFT0M ());
828- if (cfgUseSecondCent)
831+ if (cfgUseSecondCent){
829832 cent = collision.centFT0M ();
833+ }
830834 }
831835 if (cfgFV0A) {
832836 cents.push_back (collision.centFV0A ());
833- if (cfgUseSecondCent)
837+ if (cfgUseSecondCent){
834838 cent = collision.centFV0A ();
839+ }
835840 }
836841 if (cfgNGlobal) {
837842 cents.push_back (collision.centNGlobal ());
838- if (cfgUseSecondCent)
843+ if (cfgUseSecondCent){
839844 cent = collision.centNGlobal ();
845+ }
840846 }
841847
842848 std::vector<float > v = {collision.posX (), collision.posY (), collision.posZ ()};
@@ -941,8 +947,9 @@ struct ZdcQVectors {
941947 }
942948
943949 // load the calibration histos for iteration 0 step 0 (Energy Calibration)
944- if (!cfgNoGain)
950+ if (!cfgNoGain){
945951 loadCalibrations<kEnergyCal >(cfgEnergyCal.value , timestamp);
952+ }
946953
947954 // load the calibrations for the mean v
948955 loadCalibrations<kMeanv >(cfgMeanv.value , timestamp);
@@ -1084,8 +1091,9 @@ struct ZdcQVectors {
10841091 return ;
10851092 }
10861093
1087- if (cfgFillHistRegistry && isEventSelected)
1094+ if (cfgFillHistRegistry && isEventSelected){
10881095 fillCommonRegistry<kBefore >(q[0 ], q[1 ], q[2 ], q[3 ], cal.v , cent, rsTimestamp);
1096+ }
10891097
10901098 // vector of 4
10911099 std::vector<double > corrQxA;
@@ -1207,14 +1215,18 @@ struct ZdcQVectors {
12071215 int binshiftxZDCA = cal.shiftprofileA ->FindBin (cent, 0.5 , ishift - 0.5 );
12081216 int binshiftyZDCA = cal.shiftprofileA ->FindBin (cent, 1.5 , ishift - 0.5 );
12091217
1210- if (binshiftxZDCC > 0 )
1218+ if (binshiftxZDCC > 0 ){
12111219 coeffshiftxZDCC = cal.shiftprofileC ->GetBinContent (binshiftxZDCC);
1212- if (binshiftyZDCC > 0 )
1220+ }
1221+ if (binshiftyZDCC > 0 ){
12131222 coeffshiftyZDCC = cal.shiftprofileC ->GetBinContent (binshiftyZDCC);
1214- if (binshiftxZDCA > 0 )
1223+ }
1224+ if (binshiftxZDCA > 0 ){
12151225 coeffshiftxZDCA = cal.shiftprofileA ->GetBinContent (binshiftxZDCA);
1216- if (binshiftyZDCA > 0 )
1226+ }
1227+ if (binshiftyZDCA > 0 ){
12171228 coeffshiftyZDCA = cal.shiftprofileA ->GetBinContent (binshiftyZDCA);
1229+ }
12181230
12191231 deltaPsiZDCC += ((2 / (1.0 * ishift)) * (-1.0 * coeffshiftxZDCC * std::cos (ishift * 1.0 * psiZDCC) + coeffshiftyZDCC * std::sin (ishift * 1.0 * psiZDCC)));
12201232 deltaPsiZDCA += ((2 / (1.0 * ishift)) * (-1.0 * coeffshiftxZDCA * std::cos (ishift * 1.0 * psiZDCA) + coeffshiftyZDCA * std::sin (ishift * 1.0 * psiZDCA)));
0 commit comments