@@ -68,7 +68,7 @@ struct Cha01710analysis {
6868
6969 HistogramRegistry histos{" histos" , {}, OutputObjHandlingPolicy::AnalysisObject};
7070
71- Service<o2::ccdb::BasicCCDBManager> ccdb;
71+ Service<o2::ccdb::BasicCCDBManager> ccdb{} ;
7272
7373 Configurable<std::string> cfgUrl{" cfgUrl" , " http://alice-ccdb.cern.ch" , " CCDB URL" };
7474
@@ -269,12 +269,7 @@ struct Cha01710analysis {
269269 template <typename T>
270270 bool selectPionDaughter (T const & track)
271271 {
272- if (!track.hasTPC () || track.tpcNClsFound () < v0Cuts.cfgV0DaughterTPCNClsMin ||
273- track.pt () < v0Cuts.cfgV0DaughterPtMin || std::abs (track.eta ()) > v0Cuts.cfgV0DaughterEtaMax ||
274- std::abs (track.tpcNSigmaPi ()) > v0Cuts.cfgV0DaughterTPCNSigmaPiMax ) {
275- return false ;
276- }
277- return true ;
272+ return !(!track.hasTPC () || track.tpcNClsFound () < v0Cuts.cfgV0DaughterTPCNClsMin || track.pt () < v0Cuts.cfgV0DaughterPtMin || std::abs (track.eta ()) > v0Cuts.cfgV0DaughterEtaMax || std::abs (track.tpcNSigmaPi ()) > v0Cuts.cfgV0DaughterTPCNSigmaPiMax );
278273 }
279274
280275 template <typename C, typename V>
@@ -306,8 +301,7 @@ struct Cha01710analysis {
306301 if (dm < v0Cuts.cfgKsMassWindow ) {
307302 histos.fill (HIST (" V0/hMassSelected" ), v0.mK0Short (), v0.pt ());
308303 return V0MassRegion::kSignal ;
309- }
310- if (dm > v0Cuts.cfgKsMassWindow ) {
304+ } else if (dm > v0Cuts.cfgKsMassWindow ) {
311305 histos.fill (HIST (" V0/hMassSelected" ), v0.mK0Short (), v0.pt ());
312306 return V0MassRegion::kSideband ;
313307 }
@@ -355,8 +349,9 @@ struct Cha01710analysis {
355349
356350 float relPhi = TVector2::Phi_0_2pi ((mother.Phi () - eventPlaneDet) * harmonic);
357351 histos.fill (HIST (" Pair/hMassVsK0SMass" ), mother.M (), v0.mK0Short ());
358- if (region != kSignal )
352+ if (region != kSignal ) {
359353 continue ;
354+ }
360355 if (track.sign () > 0 ) {
361356 histos.fill (HIST (" Pair/hSignalPlus" ), mother.M (), mother.Pt (), centrality, relPhi);
362357 } else if (track.sign () < 0 ) {
@@ -367,9 +362,9 @@ struct Cha01710analysis {
367362 randomPhi += kaon.Phi ();
368363 auto kaonRot = ROOT::Math::PxPyPzMVector (kaon.Pt () * std::cos (randomPhi), kaon.Pt () * std::sin (randomPhi), track.pz (), o2::constants::physics::MassKaonCharged);
369364 auto motherRot = k0 + kaonRot;
370- if (std::abs (motherRot.Rapidity ()) > cfgMotherRapidityMax)
365+ if (std::abs (motherRot.Rapidity ()) > cfgMotherRapidityMax) {
371366 continue ;
372-
367+ }
373368 if (track.sign () > 0 ) {
374369 histos.fill (HIST (" Pair/hRotatedPlus" ), motherRot.M (), motherRot.Pt (), centrality);
375370 } else if (track.sign () < 0 ) {
0 commit comments