Skip to content

Commit 8707695

Browse files
committed
Fix error messages relevant to PDG database
1 parent 6e294cb commit 8707695

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

PWGUD/Tasks/processMCDPMJetSGv3.cxx

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "Framework/AnalysisTask.h"
1818
#include "Common/DataModel/TrackSelectionTables.h"
1919
#include "Framework/ASoAHelpers.h"
20-
#include "TDatabasePDG.h"
20+
// #include "TDatabasePDG.h"
2121
#include "PWGUD/Core/UPCHelpers.h"
2222
#include "PWGUD/DataModel/UDTables.h"
2323
// #include "TLorentzVector.h"
@@ -68,18 +68,21 @@ struct ProcessMCDPMJetSGv3 {
6868

6969
void init(InitContext const&)
7070
{
71-
TParticlePDG* pionPDG = fPDG->GetParticle(codePion);
72-
if (pionPDG != nullptr) {
73-
massPion = pionPDG->Mass();
74-
}
75-
TParticlePDG* kaonPDG = fPDG->GetParticle(codeKaon);
76-
if (kaonPDG != nullptr) {
77-
massKaon = kaonPDG->Mass();
78-
}
79-
TParticlePDG* protonPDG = fPDG->GetParticle(codeProton);
80-
if (protonPDG != nullptr) {
81-
massProton = protonPDG->Mass();
82-
}
71+
// TParticlePDG* pionPDG = fPDG->GetParticle(codePion);
72+
// if (pionPDG != nullptr) {
73+
// massPion = pionPDG->Mass();
74+
// }
75+
// TParticlePDG* kaonPDG = fPDG->GetParticle(codeKaon);
76+
// if (kaonPDG != nullptr) {
77+
// massKaon = kaonPDG->Mass();
78+
// }
79+
// TParticlePDG* protonPDG = fPDG->GetParticle(codeProton);
80+
// if (protonPDG != nullptr) {
81+
// massProton = protonPDG->Mass();
82+
// }
83+
massPion = o2::constants::physics::MassPionCharged;
84+
massKaon = o2::constants::physics::MassKaonCharged;
85+
massProton = o2::constants::physics::MassProton;
8386

8487
// define axes you want to use
8588
const AxisSpec axisCounter{10, 0, 10, ""};
@@ -273,7 +276,7 @@ struct ProcessMCDPMJetSGv3 {
273276
// continue;
274277
// }
275278

276-
double momentum = TMath::Sqrt(track.px() * track.px() + track.py() * track.py() + track.pz() * track.pz());
279+
double momentum = sqrt(track.px() * track.px() + track.py() * track.py() + track.pz() * track.pz());
277280
double dEdx = track.tpcSignal();
278281
histos.fill(HIST("hdEdx"), momentum, dEdx);
279282

0 commit comments

Comments
 (0)