@@ -77,7 +77,6 @@ using namespace o2::framework::expressions;
7777struct PidFlowPtCorr {
7878 // configurable
7979 double minVal4Float = 1e-3 ;
80- static constexpr std::size_t NSpecies{3 };
8180
8281 O2_DEFINE_CONFIGURABLE (cfgCutVertex, float , 10 .0f , " Accepted z-vertex range" )
8382 O2_DEFINE_CONFIGURABLE (cfgCutChi2prTPCcls, float , 2.5 , " Chi2 per TPC clusters" )
@@ -284,8 +283,7 @@ struct PidFlowPtCorr {
284283 std::vector<float > cfgMultPVCutPara;
285284 std::vector<float > cfgNSigma;
286285 std::vector<int > runNumbers;
287- std::map<int , std::vector<std::shared_ptr<TH1 >>> th1sList;
288- std::map<int , std::vector<std::shared_ptr<TH3 >>> th3sList;
286+
289287 enum MyParticleType {
290288 kCharged = 0 ,
291289 kPion ,
@@ -330,18 +328,10 @@ struct PidFlowPtCorr {
330328 // Declare the pt, mult and phi Axis;
331329
332330 std::vector<TF1 *> funcEff;
333- TH1D * hFindPtBin;
334- TF1 * funcV2;
335- TF1 * funcV3;
336- TF1 * funcV4;
337-
338- // hists for debug
339- struct {
340- std::shared_ptr<TH1 > hPtEffWeight = 0 ;
341- std::shared_ptr<TH2 > hPtCentEffWeight = 0 ;
342- std::shared_ptr<THnSparse> hRunNumberPhiEtaVertexWeight = 0 ;
343- } debugHist;
344- // end hist for debug
331+ TH1D * hFindPtBin = nullptr ;
332+ TF1 * funcV2 = nullptr ;
333+ TF1 * funcV3 = nullptr ;
334+ TF1 * funcV4 = nullptr ;
345335
346336 // hists for QA runbyrun
347337 struct qaHist {
@@ -1396,7 +1386,7 @@ struct PidFlowPtCorr {
13961386
13971387 // load NUA
13981388 if (cfgAcceptance.size () == static_cast <uint64_t >(nspecies)) {
1399- for (int i = 0 ; i <= nspecies - 1 ; i++) {
1389+ for (int i = 0 ; i < nspecies; i++) {
14001390 mAcceptance .push_back (ccdb->getForTimeStamp <GFWWeights>(cfgAcceptance[i], timestamp));
14011391 }
14021392 if (mAcceptance .size () == static_cast <uint64_t >(nspecies))
@@ -1425,7 +1415,7 @@ struct PidFlowPtCorr {
14251415 std::vector<std::string> effPath = correctionPathOpts.cfgEfficiencyPath .value ;
14261416
14271417 if (effPath.size () == static_cast <uint64_t >(nspecies)) {
1428- for (int i = 0 ; i <= nspecies - 1 ; i++) {
1418+ for (int i = 0 ; i < nspecies; i++) {
14291419 mEfficiency .push_back (ccdb->getForTimeStamp <TH2 >(effPath[i], timestamp));
14301420 }
14311421 if (mEfficiency .size () == static_cast <uint64_t >(nspecies))
0 commit comments