Changeset 469 in svn for trunk/interface
- Timestamp:
- Jul 13, 2009, 9:40:57 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/PdgParticle.h
r443 r469 40 40 class PdgParticle { 41 41 public: 42 PdgParticle(): _pid(-999), _mass(0), _charge(0), _gamma_tot(0), _ctau(0), _name("Unknown") {};43 PdgParticle(const int pid, const std::string& name, const float m, const float q, const float gamma, const float ctau);42 PdgParticle(): _pid(-999), _mass(0), _charge(0), _gamma_tot(0), _ctau(0), _name("Unknown"), _isInvisible(false) {}; 43 PdgParticle(const long int pid, const std::string& name, const float m, const float q, const float gamma, const float ctau); 44 44 PdgParticle(const PdgParticle& p); 45 45 PdgParticle& operator=(const PdgParticle& p); 46 46 ~PdgParticle() {}; 47 int pid() const {return _pid;};47 long int pid() const {return _pid;}; 48 48 float mass() const {return _mass;}; 49 49 float charge() const {return _charge;}; 50 50 float gamma_tot() const {return _gamma_tot;}; 51 51 double ctau() const {return _ctau;}; 52 bool invisible() const {return _isInvisible;}; 52 53 std::string name() const {return _name;}; 53 54 54 55 private: 55 int _pid;56 float _mass; // GeV57 float _charge; // in e+58 float _gamma_tot; // GeV56 long int _pid; 57 float _mass; // GeV 58 float _charge; // in e+ 59 float _gamma_tot; // GeV 59 60 double _ctau; // in m 60 61 std::string _name; 62 bool _isInvisible; // neutrino-like 61 63 }; 62 64 … … 67 69 PdgTable& operator=(const PdgTable& table); 68 70 ~PdgTable(){}; 69 void insert(const int pid, const PdgParticle &p);71 void insert(const long int pid, const PdgParticle &p); 70 72 void print() const; 71 73 PdgParticle operator[](const int pid) const;
Note:
See TracChangeset
for help on using the changeset viewer.