@@ -212,6 +212,8 @@ struct HigherMassResonances {
212212 int refAId = 0 ;
213213 int refBId = 0 ;
214214 float minQvecAmp = 1e-5 ;
215+ Service<o2::framework::O2DatabasePDG> pdgDB;
216+
215217 } config;
216218
217219 // Service<o2::framework::O2DatabasePDG> PDGdatabase;
@@ -1507,7 +1509,6 @@ struct HigherMassResonances {
15071509 std::vector<bool > passKs;
15081510 ROOT ::Math::PxPyPzMVector lResonanceGen1;
15091511 ROOT ::Math::PxPyPzEVector lResonanceGen;
1510- Service<o2::framework::O2DatabasePDG> pdgDB;
15111512
15121513 // void processGen(aod::McCollision const& mcCollision, aod::McParticles const& mcParticles, const soa::SmallGroups<EventCandidatesMC>& collisions)
15131514 void processGen (EventMCGenerated::iterator const & mcCollision, aod::McParticles const & mcParticles, const soa::SmallGroups<EventCandidatesMC>& collisions)
@@ -1519,7 +1520,7 @@ struct HigherMassResonances {
15191520
15201521 bool isINELgt0true = false ;
15211522
1522- if (pwglf::isINELgtNmc (mcParticles, 0 , pdgDB)) {
1523+ if (pwglf::isINELgtNmc (mcParticles, 0 , config. pdgDB )) {
15231524 isINELgt0true = true ;
15241525 }
15251526 if (config.isINELgt0 && !isINELgt0true) {
@@ -1679,7 +1680,7 @@ struct HigherMassResonances {
16791680
16801681 bool isINELgt0true = false ;
16811682
1682- if (pwglf::isINELgtNmc (mcParticles, 0 , pdgDB)) {
1683+ if (pwglf::isINELgtNmc (mcParticles, 0 , config. pdgDB )) {
16831684 isINELgt0true = true ;
16841685 }
16851686 if (config.isINELgt0 && !isINELgt0true) {
0 commit comments