@@ -212,10 +212,10 @@ struct HigherMassResonances {
212212 int refAId = 0 ;
213213 int refBId = 0 ;
214214 float minQvecAmp = 1e-5 ;
215- Service<o2::framework::O2DatabasePDG> pdgDB{};
216215 } config;
217216
218217 // Service<o2::framework::O2DatabasePDG> PDGdatabase;
218+ Service<o2::framework::O2DatabasePDG> pdgDB{};
219219 TRandom* rn = new TRandom();
220220
221221 // variables declaration
@@ -396,7 +396,7 @@ struct HigherMassResonances {
396396 // rKzeroShort.add("dE_by_dx_TPC", "dE/dx signal in the TPC as a function of pT", kTH2F, {config.axisPtfordEbydx, config.axisdEdx});
397397 }
398398
399- // For MC
399+ // For Monte Carlo
400400 if (doprocessGen || doprocessRec) {
401401 hMChists.add (" MCcorrections/hGenNo" , " Generated collisions before and after event selection" , kTH1F , {{5 , 0 .0f , 5 .0f }});
402402 hMChists.add (" Genf1710" , " Gen f_{0}(1710)" , kTHnSparseF , {multiplicityAxis, ptAxis, thnAxisPOL});
@@ -957,7 +957,7 @@ struct HigherMassResonances {
957957 motherRot = daughterRot + daughterVec2;
958958
959959 auto prrot = getCosThetaPhi (motherRot, daughterRot, kHelicity );
960- if (motherRot.Rapidity () < config.rapidityMotherData )
960+ if (std::abs ( motherRot.Rapidity () ) < config.rapidityMotherData )
961961 hglue.fill (HIST (" h3glueInvMassRot" ), eventMultiplicity, motherRot.Pt (), motherRot.M (), prrot.first , prrot.second );
962962 }
963963 } else {
@@ -981,7 +981,7 @@ struct HigherMassResonances {
981981
982982 auto prrot = getCosThetaPhi (motherRot, daughterRot, kCollinsSoper );
983983
984- if (motherRot.Rapidity () < config.rapidityMotherData )
984+ if (std::abs ( motherRot.Rapidity () ) < config.rapidityMotherData )
985985 hglue.fill (HIST (" h3glueInvMassRot" ), eventMultiplicity, motherRot.Pt (), motherRot.M (), prrot.first , prrot.second );
986986 }
987987 } else {
@@ -1202,7 +1202,7 @@ struct HigherMassResonances {
12021202 // double pTcorrRot = std::abs(daughterRot.Pt() + daughter2.Pt()) / motherRot.Pt();
12031203 double pTcorrRot = (motherRot.Pt () - daughterRot.Pt () != 0 .) ? daughterRot.Pt () / (motherRot.Pt () - daughterRot.Pt ()) : 0 .;
12041204
1205- if (motherRot.Rapidity () < config.rapidityMotherData )
1205+ if (std::abs ( motherRot.Rapidity () ) < config.rapidityMotherData )
12061206 hglue.fill (HIST (" h3glueInvMassRot" ), multiplicity, motherRot.Pt (), motherRot.M (), deltaMass, deltaRvalue, pTcorrRot);
12071207 }
12081208 }
@@ -1366,7 +1366,7 @@ struct HigherMassResonances {
13661366
13671367 motherRot = daughterRot + daughter2;
13681368
1369- if (motherRot.Rapidity () < config.rapidityMotherData ) {
1369+ if (std::abs ( motherRot.Rapidity () ) < config.rapidityMotherData ) {
13701370 hglue.fill (HIST (" h3glueInvMassEPRot" ), multiplicity, motherRot.Pt (), motherRot.M (), RecoDecay::constrainAngle (2.0 * motherRot.Phi () - 2.0 * eps[0 ]));
13711371 }
13721372 }
@@ -1519,7 +1519,7 @@ struct HigherMassResonances {
15191519
15201520 bool isINELgt0true = false ;
15211521
1522- if (pwglf::isINELgtNmc (mcParticles, 0 , config. pdgDB )) {
1522+ if (pwglf::isINELgtNmc (mcParticles, 0 , pdgDB)) {
15231523 isINELgt0true = true ;
15241524 }
15251525 if (config.isINELgt0 && !isINELgt0true) {
@@ -1599,7 +1599,7 @@ struct HigherMassResonances {
15991599 }
16001600 }
16011601 if (static_cast <int >(passKs.size ()) == config.noOfDaughters ) {
1602- lResonanceGen = ROOT::Math::PxPyPzEVector (mcParticle.pt (), mcParticle.eta (), mcParticle.phi (), mcParticle.e ());
1602+ lResonanceGen = ROOT::Math::PxPyPzEVector (mcParticle.px (), mcParticle.py (), mcParticle.pz (), mcParticle.e ());
16031603 lResonanceGen1 = daughter1 + daughter2;
16041604 mother2 = ROOT::Math::PxPyPzMVector (lResonanceGen1.Px (), lResonanceGen1.Py (), lResonanceGen1.Pz (), lResonanceGen1.M ());
16051605 mother3 = ROOT::Math::PxPyPzMVector (lResonanceGen.Px (), lResonanceGen.Py (), lResonanceGen.Pz (), lResonanceGen.M ());
@@ -1679,7 +1679,7 @@ struct HigherMassResonances {
16791679
16801680 bool isINELgt0true = false ;
16811681
1682- if (pwglf::isINELgtNmc (mcParticles, 0 , config. pdgDB )) {
1682+ if (pwglf::isINELgtNmc (mcParticles, 0 , pdgDB)) {
16831683 isINELgt0true = true ;
16841684 }
16851685 if (config.isINELgt0 && !isINELgt0true) {
@@ -2038,7 +2038,7 @@ struct HigherMassResonances {
20382038 motherRot = daughterRot + daughter2;
20392039 // double pTcorrRot = std::abs(daughterRot.Pt() + daughter2.Pt()) / motherRot.Pt();
20402040 double pTcorrRot = (motherRot.Pt () - daughterRot.Pt () != 0 .) ? daughterRot.Pt () / (motherRot.Pt () - daughterRot.Pt ()) : 0 .;
2041- if (motherRot.Rapidity () < config.rapidityMotherData )
2041+ if (std::abs ( motherRot.Rapidity () ) < config.rapidityMotherData )
20422042 hglue.fill (HIST (" h3glueInvMassRot" ), multiplicity, motherRot.Pt (), motherRot.M (), deltaMass, deltaRvalue, pTcorrRot);
20432043 }
20442044 }
0 commit comments