Skip to content

Commit d85dd91

Browse files
authored
Fix segmentation fault by moving O2DatabasePDG service out of ConfigurableGroup
Fix segmentation fault by moving O2DatabasePDG service out of ConfigurableGroup
1 parent 66a737d commit d85dd91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGLF/Tasks/Resonances/higherMassResonances.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -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) {
@@ -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) {

0 commit comments

Comments
 (0)