SimpleParticle.h

00001 #ifndef _SIMPLE_PARTICLE_H_
00002 #define _SIMPLE_PARTICLE_H_
00003 /**
00004   Single particle for user convenience.
00005   Just 4-momentum and pdgid.
00006 */
00007 
00008 namespace TauSpinner {
00009 
00010 class SimpleParticle
00011 {
00012 public:
00013   SimpleParticle() { _px=_py=_pz=_e=0; _pdgid=0; }
00014   SimpleParticle(double x, double y, double z, double e, int id) { _px=x; _py=y; _pz=z; _e=e; _pdgid=id; }
00015 
00016   double px()    { return _px;    }
00017   double py()    { return _py;    }
00018   double pz()    { return _pz;    }
00019   double e ()    { return _e;     }
00020   int    pdgid() { return _pdgid; }
00021 
00022   void setPx(double x ) { _px = x;     }
00023   void setPy(double y ) { _py = y;     }
00024   void setPz(double z ) { _pz = z;     }
00025   void setE (double e ) { _e  = e;     }
00026   void setPdgid(int id) { _pdgid = id; }
00027 
00028 private:
00029   double _px,_py,_pz,_e;
00030   int    _pdgid;
00031 };
00032 
00033 } // namespace TauSpinner
00034 #endif
Generated on Sun Oct 20 20:24:10 2013 for C++InterfacetoTauola by  doxygen 1.6.3