Skip to content
Snippets Groups Projects
Commit e6eb7ffa authored by Viktor Klochkov's avatar Viktor Klochkov :eyes:
Browse files

Merge branch 'fix-mass' into 'master'

Update src/Particle.h

See merge request !14
parents e0a5fb8f afd65f8a
No related branches found
No related tags found
1 merge request!14Update src/Particle.h
Pipeline #3752 failed
......@@ -22,9 +22,9 @@ class Particle : public Track {
PdgCode_t GetPid() const { return pid_; }
Floating_t GetMass() const {return mass_;}
void SetPid(PdgCode_t pid) {
void SetPid(PdgCode_t pid, Floating_t mass=-1000.f) {
pid_ = pid;
mass_ = GetMassByPdgId(pid);
mass_ = mass != -1000.f ? GetMassByPdgId(pid) : mass;
}
template<typename T>
......
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