@@ -119,7 +119,7 @@ struct HfTaskElectronWeakBoson {
119119
120120 // KFParticle
121121 Configurable<int > kfConstructMethod{" kfConstructMethod" , 2 , " KF Construct Method" };
122- Configurable<int > kfChisqMassMax{ " kfChisqMassMax " , 10 , " Chi2 Max for mass reco by KF particle" };
122+ Configurable<int > ChiSqNdfMax{ " ChiSqNdfMax " , 10 , " Chi2 Max for mass reco by KF particle" };
123123
124124 // CCDB service object
125125 Service<o2::ccdb::BasicCCDBManager> ccdb;
@@ -340,32 +340,32 @@ struct HfTaskElectronWeakBoson {
340340 // reco by RecoDecay
341341 auto child1 = RecoDecayPtEtaPhi::pVector (kfpIsoEle.GetPt (), kfpIsoEle.GetEta (), kfpIsoEle.GetPhi ());
342342 auto child2 = RecoDecayPtEtaPhi::pVector (kfpAssEle.GetPt (), kfpAssEle.GetEta (), kfpAssEle.GetPhi ());
343- double massZeeRecoDecay = RecoDecay::m (std::array{child1, child2}, std::array{o2::constants::physics::MassElectron, o2::constants::physics::MassElectron});
343+ double invMassEE = RecoDecay::m (std::array{child1, child2}, std::array{o2::constants::physics::MassElectron, o2::constants::physics::MassElectron});
344344
345345 // reco by KFparticle
346346 const KFParticle* electronPairs[2 ] = {&kfpIsoEle, &kfpAssEle};
347347 KFParticle zeeKF;
348348 zeeKF.SetConstructMethod (kfConstructMethod);
349349 zeeKF.Construct (electronPairs, 2 );
350350 // LOG(info) << "Invarimass cal by KF particle Chi2/NDF = " << zeeKF.GetChi2()/zeeKF.GetNDF();
351- float massZeeChi2 = zeeKF.GetChi2 () / zeeKF.GetNDF ();
351+ float ChiSqNdf = zeeKF.GetChi2 () / zeeKF.GetNDF ();
352352 if (zeeKF.GetNDF () < 1 ) {
353353 continue ;
354354 }
355- if (std::abs (massZeeChi2) > kfChisqMassMax ) {
355+ if (ChiSqNdf > ChiSqNdfMax ) {
356356 continue ;
357357 }
358358 float massZee, massZeeErr;
359359 zeeKF.GetMass (massZee, massZeeErr);
360360 // LOG(info) << "Invarimass cal by KF particle mass = " << massZee;
361- // LOG(info) << "Invarimass cal by RecoDecay = " << massZeeRecoDecay ;
361+ // LOG(info) << "Invarimass cal by RecoDecay = " << invMassEE ;
362362
363363 if (track.sign () * charge > 0 ) {
364364 registry.fill (HIST (" hKfInvMassZeeLs" ), kfpIsoEle.GetPt (), massZee);
365- registry.fill (HIST (" hInvMassZeeLs" ), kfpIsoEle.GetPt (), massZeeRecoDecay );
365+ registry.fill (HIST (" hInvMassZeeLs" ), kfpIsoEle.GetPt (), invMassEE );
366366 } else {
367367 registry.fill (HIST (" hKfInvMassZeeUls" ), kfpIsoEle.GetPt (), massZee);
368- registry.fill (HIST (" hInvMassZeeUls" ), kfpIsoEle.GetPt (), massZeeRecoDecay );
368+ registry.fill (HIST (" hInvMassZeeUls" ), kfpIsoEle.GetPt (), invMassEE );
369369 }
370370
371371 reconstructedZ.emplace_back (
0 commit comments