@@ -288,7 +288,7 @@ struct FlowTask {
288288 std::vector<GFW ::CorrConfig> corrconfigs;
289289 GFWCorrConfigs gfwConfigs;
290290 std::vector<GFW ::CorrConfig> corrconfigsPtVn;
291- TAxis* fPtAxis ;
291+ TAxis* fPtAxis = nullptr ;
292292 TRandom3* fRndm = new TRandom3(0 );
293293 std::vector<std::pair<double , double >> etagapsPtPt;
294294 std::vector<std::vector<std::shared_ptr<TProfile>>> bootstrapArray;
@@ -325,15 +325,15 @@ struct FlowTask {
325325 double mMinSeconds {-1 .};
326326 std::unordered_map<int , TH2 *> gHadronicRate ;
327327 ctpRateFetcher mRateFetcher ;
328- TH2 * gCurrentHadronicRate ;
328+ TH2 * gCurrentHadronicRate = nullptr ;
329329 RCTFlagsChecker rctChecker{" CBT" };
330330
331331 // phi-EP correction
332332 std::vector<TF1 *> funcEff;
333- TH1D * hFindPtBin;
334- TF1 * funcV2;
335- TF1 * funcV3;
336- TF1 * funcV4;
333+ TH1D * hFindPtBin = nullptr ;
334+ TF1 * funcV2 = nullptr ;
335+ TF1 * funcV3 = nullptr ;
336+ TF1 * funcV4 = nullptr ;
337337
338338 void init (InitContext const &)
339339 {
@@ -918,45 +918,45 @@ struct FlowTask {
918918 if (cfgUserIO.cfgAcceptance .value .empty () == false ) {
919919 mAcceptance = ccdb->getForTimeStamp <GFWWeights>(cfgUserIO.cfgAcceptance , timestamp);
920920 if (mAcceptance )
921- LOGF (info, " Loaded acceptance weights from %s (%p)" , cfgUserIO.cfgAcceptance .value .c_str (), ( void *) mAcceptance );
921+ LOGF (info, " Loaded acceptance weights from %s (%p)" , cfgUserIO.cfgAcceptance .value .c_str (), static_cast < void *>( mAcceptance ) );
922922 else
923- LOGF (warning, " Could not load acceptance weights from %s (%p)" , cfgUserIO.cfgAcceptance .value .c_str (), ( void *) mAcceptance );
923+ LOGF (warning, " Could not load acceptance weights from %s (%p)" , cfgUserIO.cfgAcceptance .value .c_str (), static_cast < void *>( mAcceptance ) );
924924 }
925925 if (cfgUserIO.cfgEfficiency .value .empty () == false ) {
926926 mEfficiency = ccdb->getForTimeStamp <TH1D >(cfgUserIO.cfgEfficiency , timestamp);
927927 if (mEfficiency == nullptr ) {
928928 LOGF (fatal, " Could not load efficiency histogram for trigger particles from %s" , cfgUserIO.cfgEfficiency .value .c_str ());
929929 }
930- LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgUserIO.cfgEfficiency .value .c_str (), ( void *) mEfficiency );
930+ LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgUserIO.cfgEfficiency .value .c_str (), static_cast < void *>( mEfficiency ) );
931931 }
932932 if (cfgUserIO.cfgEfficiencyForNch .value .empty () == false ) {
933933 mEfficiencyForNch = ccdb->getForTimeStamp <TH1D >(cfgUserIO.cfgEfficiencyForNch , timestamp);
934934 if (mEfficiencyForNch == nullptr ) {
935935 LOGF (fatal, " Could not load efficiency histogram for trigger particles from %s" , cfgUserIO.cfgEfficiencyForNch .value .c_str ());
936936 }
937- LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgUserIO.cfgEfficiencyForNch .value .c_str (), ( void *) mEfficiencyForNch );
937+ LOGF (info, " Loaded efficiency histogram from %s (%p)" , cfgUserIO.cfgEfficiencyForNch .value .c_str (), static_cast < void *>( mEfficiencyForNch ) );
938938 }
939939 if (cfgAdditionObs.cfgDptDisEnable && cfgAdditionObs.cfgDptDishEvAvgMeanPt .value .empty () == false ) {
940940 cfgAdditionObs.hEvAvgMeanPt = ccdb->getForTimeStamp <TH1D >(cfgAdditionObs.cfgDptDishEvAvgMeanPt , timestamp);
941941 if (cfgAdditionObs.hEvAvgMeanPt == nullptr ) {
942942 LOGF (fatal, " Could not load mean pT histogram from %s" , cfgAdditionObs.cfgDptDishEvAvgMeanPt .value .c_str ());
943943 }
944- LOGF (info, " Loaded mean pT histogram from %s (%p)" , cfgAdditionObs.cfgDptDishEvAvgMeanPt .value .c_str (), ( void *) cfgAdditionObs.hEvAvgMeanPt );
944+ LOGF (info, " Loaded mean pT histogram from %s (%p)" , cfgAdditionObs.cfgDptDishEvAvgMeanPt .value .c_str (), static_cast < void *>( cfgAdditionObs.hEvAvgMeanPt ) );
945945 }
946946 if (cfgAdditionObs.cfgDptDisEnable && cfgAdditionObs.cfgDptDisSelectionSwitch > kNoDptCut ) {
947947 if (cfgAdditionObs.cfgDptDisCutLow .value .empty () == false ) {
948948 cfgAdditionObs.fDptDisCutLow = ccdb->getForTimeStamp <TH1D >(cfgAdditionObs.cfgDptDisCutLow , timestamp);
949949 if (cfgAdditionObs.fDptDisCutLow == nullptr ) {
950950 LOGF (fatal, " Could not load dptDis low cut histogram from %s" , cfgAdditionObs.cfgDptDisCutLow .value .c_str ());
951951 }
952- LOGF (info, " Loaded dptDis low cut histogram from %s (%p)" , cfgAdditionObs.cfgDptDisCutLow .value .c_str (), ( void *) cfgAdditionObs.fDptDisCutLow );
952+ LOGF (info, " Loaded dptDis low cut histogram from %s (%p)" , cfgAdditionObs.cfgDptDisCutLow .value .c_str (), static_cast < void *>( cfgAdditionObs.fDptDisCutLow ) );
953953 }
954954 if (cfgAdditionObs.cfgDptDisCutHigh .value .empty () == false ) {
955955 cfgAdditionObs.fDptDisCutHigh = ccdb->getForTimeStamp <TH1D >(cfgAdditionObs.cfgDptDisCutHigh , timestamp);
956956 if (cfgAdditionObs.fDptDisCutHigh == nullptr ) {
957957 LOGF (fatal, " Could not load dptDis high cut histogram from %s" , cfgAdditionObs.cfgDptDisCutHigh .value .c_str ());
958958 }
959- LOGF (info, " Loaded dptDis high cut histogram from %s (%p)" , cfgAdditionObs.cfgDptDisCutHigh .value .c_str (), ( void *) cfgAdditionObs.fDptDisCutHigh );
959+ LOGF (info, " Loaded dptDis high cut histogram from %s (%p)" , cfgAdditionObs.cfgDptDisCutHigh .value .c_str (), static_cast < void *>( cfgAdditionObs.fDptDisCutHigh ) );
960960 }
961961 }
962962 correctionsLoaded = true ;
@@ -1499,13 +1499,12 @@ struct FlowTask {
14991499 if (weffEvent) {
15001500 registry.fill (HIST (" hMeanPt" ), independent, ptSum / weffEvent, weffEvent);
15011501 }
1502- if (weffEventWithinGap08)
1502+ if (weffEventWithinGap08) {
15031503 registry.fill (HIST (" hMeanPtWithinGap08" ), independent, ptSum_Gap08 / weffEventWithinGap08, cfgUserIO.cfgUserPtVnEvWeightEnabled ? weffEventWithinGap08 : 1 .);
1504- if (weffEventWithinGap08)
15051504 bootstrapArray[sampleIndex][kMeanPtWithinGap08 ]->Fill (independent, ptSum_Gap08 / weffEventWithinGap08, 1.0 );
15061505 // c22_gap8 * pt_withGap8
1507- if (weffEventWithinGap08)
15081506 fillpTvnProfile (corrconfigs.at (7 ), ptSum_Gap08, weffEventWithinGap08, HIST (" c22_gap08_Weff" ), HIST (" c22_gap08_trackMeanPt" ), independent);
1507+ }
15091508 // PtVariance
15101509 if (weffEventDiffWithGap08) {
15111510 registry.fill (HIST (" PtVariance_partA_WithinGap08" ), independent,
@@ -1610,9 +1609,8 @@ struct FlowTask {
16101609 ptSum_Gap08 += mcParticle.pt ();
16111610 count_Gap08 += 1 .;
16121611 }
1613- }
1614- if (withinPtRef)
16151612 fGFW ->Fill (mcParticle.eta (), fPtAxis ->FindBin (mcParticle.pt ()) - 1 , mcParticle.phi (), 1 ., 1 );
1613+ }
16161614 if (withinPtPOI)
16171615 fGFW ->Fill (mcParticle.eta (), fPtAxis ->FindBin (mcParticle.pt ()) - 1 , mcParticle.phi (), 1 ., 2 );
16181616 if (withinPtPOI && withinPtRef)
0 commit comments