#ifndef ROOT_THaParticleInfo
#define ROOT_THaParticleInfo

//////////////////////////////////////////////////////////////////////////
//
// THaParticleInfo
//
//////////////////////////////////////////////////////////////////////////

#include "TNamed.h"

class THaParticleInfo : public TNamed {

public:
  THaParticleInfo();
  THaParticleInfo( const char* shortname, const char* name, 
		   Double_t mass, Int_t charge )
    : TNamed( shortname, name ), fMass(mass), fCharge(charge) {}
  THaParticleInfo( const THaParticleInfo& rhs );
  THaParticleInfo& operator=( const THaParticleInfo& rhs );
  virtual ~THaParticleInfo() {}

  Double_t          GetMass() const          { return fMass; }
  Double_t          GetMass2() const         { return fMass*fMass; }
  Double_t          GetCharge() const        { return fCharge; }
  virtual void      Print( Option_t* opt="" ) const;
  void              SetMass( Double_t mass ) { fMass = mass; }
  void              SetCharge( Int_t c )     { fCharge = c; }

private:
  Double_t          fMass;              //Particle mass
  Int_t             fCharge;            //Charge

  ClassDef(THaParticleInfo,1)  //Information for a particle type
};


#endif

Last change: Sat Nov 7 21:26:49 2009
Last generated: 2009-11-07 21:26

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.