Fork me on GitHub

Changeset 469 in svn for trunk/interface


Ignore:
Timestamp:
Jul 13, 2009, 9:40:57 AM (15 years ago)
Author:
Xavier Rouby
Message:

property 'invisible()' added to PdgParticle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/PdgParticle.h

    r443 r469  
    4040class PdgParticle {
    4141  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);
    4444        PdgParticle(const PdgParticle& p);
    4545        PdgParticle& operator=(const PdgParticle& p);
    4646        ~PdgParticle() {};
    47         int pid() const {return _pid;};
     47        long int pid() const {return _pid;};
    4848        float mass() const {return _mass;};
    4949        float charge() const {return _charge;};
    5050        float gamma_tot() const {return _gamma_tot;};
    5151        double ctau() const {return _ctau;};
     52        bool invisible() const {return _isInvisible;};
    5253        std::string name() const {return _name;};
    5354
    5455  private:
    55         int _pid;
    56         float _mass;       // GeV
    57         float _charge;     // in e+
    58         float _gamma_tot;  // GeV
     56        long int _pid;
     57        float _mass;        // GeV
     58        float _charge;      // in e+
     59        float _gamma_tot;   // GeV
    5960        double _ctau;       // in m
    6061        std::string _name;
     62        bool _isInvisible;  // neutrino-like
    6163};
    6264
     
    6769        PdgTable& operator=(const PdgTable& table);
    6870        ~PdgTable(){};
    69         void insert(const int pid, const PdgParticle &p);
     71        void insert(const long int pid, const PdgParticle &p);
    7072        void print() const;
    7173        PdgParticle operator[](const int pid) const;
Note: See TracChangeset for help on using the changeset viewer.