Skip to content
Snippets Groups Projects
Commit e4db15b7 authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

[montecarlo] Use correct argument types

Cast arguments to the correct `Long64_t` types. The methods signature are `TExMap::GetValue(Long64_t key)` and `TExMap::Add(Long64_t key, Long64_t value)`
parent ed6e9421
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ void TDatabasePDG::BuildPdgMap() const ...@@ -126,7 +126,7 @@ void TDatabasePDG::BuildPdgMap() const
TIter next(fParticleList); TIter next(fParticleList);
TParticlePDG *p; TParticlePDG *p;
while ((p = (TParticlePDG*)next())) { while ((p = (TParticlePDG*)next())) {
fPdgMap->Add((Long_t)p->PdgCode(), (Long_t)p); fPdgMap->Add((Long64_t)p->PdgCode(), (Long64_t)p);
} }
} }
...@@ -160,7 +160,7 @@ TParticlePDG* TDatabasePDG::AddParticle(const char *name, const char *title, ...@@ -160,7 +160,7 @@ TParticlePDG* TDatabasePDG::AddParticle(const char *name, const char *title,
TrackingCode); TrackingCode);
fParticleList->Add(p); fParticleList->Add(p);
if (fPdgMap) if (fPdgMap)
fPdgMap->Add((Long_t)PDGcode, (Long_t)p); fPdgMap->Add((Long64_t)PDGcode, (Long64_t)p);
TParticleClassPDG* pclass = GetParticleClass(ParticleClass); TParticleClassPDG* pclass = GetParticleClass(ParticleClass);
...@@ -234,7 +234,7 @@ TParticlePDG *TDatabasePDG::GetParticle(Int_t PDGcode) const ...@@ -234,7 +234,7 @@ TParticlePDG *TDatabasePDG::GetParticle(Int_t PDGcode) const
if (fParticleList == 0) ((TDatabasePDG*)this)->ReadPDGTable(); if (fParticleList == 0) ((TDatabasePDG*)this)->ReadPDGTable();
if (fPdgMap == 0) BuildPdgMap(); if (fPdgMap == 0) BuildPdgMap();
return (TParticlePDG*) (Long_t)fPdgMap->GetValue((Long_t)PDGcode); return (TParticlePDG *)fPdgMap->GetValue((Long64_t)PDGcode);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment