@@ -200,8 +200,8 @@ struct FlowDecorrelation {
200200 o2::ft0::Geometry ft0Det;
201201 o2::fv0::Geometry* fv0Det{};
202202 static constexpr uint64_t Ft0IndexA = 96 ;
203- std::vector<o2::detectors::AlignParam>* offsetFT0;
204- std::vector<o2::detectors::AlignParam>* offsetFV0;
203+ std::vector<o2::detectors::AlignParam>* offsetFT0{}; // !!!
204+ std::vector<o2::detectors::AlignParam>* offsetFV0{}; // !!!
205205 std::vector<float > cstFT0RelGain{};
206206
207207 // Corrections
@@ -256,9 +256,6 @@ struct FlowDecorrelation {
256256 kFT0COuterRingMin = 144 ,
257257 kFT0COuterRingMax = 207
258258 };
259- std::array<float , 6 > tofNsigmaCut;
260- std::array<float , 6 > itsNsigmaCut;
261- std::array<float , 6 > tpcNsigmaCut;
262259 struct Ft0cCConstants {
263260 double zFt0cDistance = -83.44 ;
264261 double maxWidth = 12 .;
@@ -283,7 +280,6 @@ struct FlowDecorrelation {
283280 LOGF (fatal, " Centrality table is unavailable, cannot select collisions by centrality" );
284281 }
285282 const AxisSpec axisPhi{72 , 0.0 , constants::math::TwoPI, " #varphi" };
286- const AxisSpec axisEta{40 , -1 ., 1 ., " #eta" };
287283 const AxisSpec axisEtaFull{90 , -6 ., 6 ., " #eta" };
288284 const AxisSpec axisCentrality{20 , 0 ., 100 ., " cent" };
289285
@@ -671,14 +667,14 @@ struct FlowDecorrelation {
671667 if (mEfficiency == nullptr ) {
672668 LOGF (fatal, " Could not load efficiency histogram for trigger particles from %s" , cfgEfficiency.value .c_str ());
673669 }
674- LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgEfficiency.value .c_str (), ( void *) mEfficiency );
670+ LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgEfficiency.value .c_str (), static_cast < void *>( mEfficiency ) );
675671 }
676672 if (cfgCentralityWeight.value .empty () == false ) {
677673 mCentralityWeight = ccdb->getForTimeStamp <TH1D >(cfgCentralityWeight, timestamp);
678674 if (mCentralityWeight == nullptr ) {
679675 LOGF (fatal, " Could not load efficiency histogram for trigger particles from %s" , cfgCentralityWeight.value .c_str ());
680676 }
681- LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgCentralityWeight.value .c_str (), ( void *) mCentralityWeight );
677+ LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgCentralityWeight.value .c_str (), static_cast < void *>( mCentralityWeight ) );
682678 }
683679 correctionsLoaded = true ;
684680 }
@@ -1093,8 +1089,6 @@ struct FlowDecorrelation {
10931089 if (y < (Ft0aLocations.blockFar + Ft0aLocations.offSetY ) && y > (Ft0aLocations.blockClose + Ft0aLocations.offSetY )) {
10941090 return true ;
10951091 }
1096- }
1097- if (x < (Ft0aLocations.blockFar + Ft0aLocations.offSetX ) && x > (Ft0aLocations.blockClose + Ft0aLocations.offSetX )) {
10981092 if (y > (-Ft0aLocations.blockFar + Ft0aLocations.offSetY ) && y < (-Ft0aLocations.blockClose + Ft0aLocations.offSetY )) {
10991093 return true ;
11001094 }
@@ -1104,8 +1098,6 @@ struct FlowDecorrelation {
11041098 if (y < (Ft0aLocations.blockFar + Ft0aLocations.offSetY ) && y > (Ft0aLocations.blockClose + Ft0aLocations.offSetY )) {
11051099 return true ;
11061100 }
1107- }
1108- if (x > (-Ft0aLocations.blockFar + Ft0aLocations.offSetX ) && x < (-Ft0aLocations.blockClose + Ft0aLocations.offSetX )) {
11091101 if (y > (-Ft0aLocations.blockFar + Ft0aLocations.offSetY ) && y < (-Ft0aLocations.blockClose + Ft0aLocations.offSetY )) {
11101102 return true ;
11111103 }
@@ -1115,9 +1107,6 @@ struct FlowDecorrelation {
11151107 if (y > (-Ft0aLocations.blockFar + Ft0aLocations.offSetY - Ft0aLocations.rectOffSet ) && y < (-Ft0aLocations.blockClose + Ft0aLocations.offSetY - Ft0aLocations.rectOffSet )) {
11161108 return true ;
11171109 }
1118- }
1119-
1120- if (x < (Ft0aLocations.blockClose + Ft0aLocations.offSetX ) && x > (-Ft0aLocations.blockClose + Ft0aLocations.offSetX )) {
11211110 if (y < (Ft0aLocations.blockFar + Ft0aLocations.offSetY + Ft0aLocations.rectOffSet ) && y > (Ft0aLocations.blockClose + Ft0aLocations.offSetY + Ft0aLocations.rectOffSet )) {
11221111 return true ;
11231112 }
@@ -1127,13 +1116,11 @@ struct FlowDecorrelation {
11271116 if (x > (-Ft0aLocations.blockFar + Ft0aLocations.offSetX - Ft0aLocations.rectOffSet ) && x < (-Ft0aLocations.blockClose + Ft0aLocations.offSetX - Ft0aLocations.rectOffSet )) {
11281117 return true ;
11291118 }
1130- }
1131-
1132- if (y < (Ft0aLocations.blockClose + Ft0aLocations.offSetY ) && y > (-Ft0aLocations.blockClose + Ft0aLocations.offSetY )) {
11331119 if (x < (Ft0aLocations.blockFar + Ft0aLocations.offSetX + Ft0aLocations.rectOffSet ) && x > (Ft0aLocations.blockClose + Ft0aLocations.offSetX + Ft0aLocations.rectOffSet )) {
11341120 return true ;
11351121 }
11361122 }
1123+
11371124 return false ;
11381125 }
11391126
0 commit comments