#ifndef ROOT_TAttParticle
#define ROOT_TAttParticle
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif
class THashList;
class TAttParticle : public TNamed {
private:
Double_t fPDGMass;
Bool_t fPDGStable;
Double_t fPDGDecayWidth;
Double_t fPDGCharge;
TString fParticleType;
Int_t fMCnumberOfPDG;
Double_t fEnergyCut;
Double_t fEnergyLimit;
Double_t fGranularity;
public:
TAttParticle();
TAttParticle(const char *name, const char *title,
Double_t Mass, Bool_t Stable,
Double_t DecayWidth, Double_t Charge, const char *Type,
Int_t MCnumber, Int_t granularity=90,
Double_t LowerCutOff=1.e-5, Double_t HighCutOff=1.e4);
virtual ~TAttParticle();
static THashList *fgList;
static Int_t ConvertISAtoPDG(Int_t isaNumber);
static void DefinePDG();
virtual Double_t GetCharge() const { return fPDGCharge; }
virtual Double_t GetEnergyCut() const { return fEnergyCut; }
virtual Double_t GetEnergyLimit() const { return fEnergyLimit; }
virtual Double_t GetGranularity() const { return fGranularity; }
virtual Double_t GetDecayWidth() const { return fPDGDecayWidth; }
virtual Double_t GetMass() const { return fPDGMass; }
virtual Int_t GetMCNumber() const { return fMCnumberOfPDG; }
static TAttParticle *GetParticle(const char *name);
static TAttParticle *GetParticle(Int_t mcnumber);
virtual const char *GetParticleType() const { return fParticleType.Data(); }
virtual Bool_t GetStable() const { return fPDGStable; }
virtual void Print(Option_t *option="") const ;
virtual Double_t SampleMass() const ;
virtual Double_t SampleMass(Double_t widthcut) const ;
ClassDef(TAttParticle,1)
};
#endif