TAttParticle.h

Go to the documentation of this file.
00001 // @(#)root/eg:$Id: TAttParticle.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Ola Nordmann   29/09/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 
00013 //////////////////////////////////////////////////////////////////////////
00014 //                                                                      //
00015 // TAttParticle                                                         //
00016 //                                                                      //
00017 // Particle definition, based on GEANT3 particle definition             //
00018 //                                                                      //
00019 //                                                                      //
00020 //////////////////////////////////////////////////////////////////////////
00021 
00022 #ifndef ROOT_TAttParticle
00023 #define ROOT_TAttParticle
00024 
00025 #ifndef ROOT_TNamed
00026 #include "TNamed.h"
00027 #endif
00028 #ifndef ROOT_TAttLine
00029 #include "TAttLine.h"
00030 #endif
00031 
00032 class THashList;
00033 
00034 class TAttParticle  : public TNamed {
00035 private:
00036    Double_t     fPDGMass;         //Mass of the particle in GeV/c2
00037    Bool_t       fPDGStable;       //Logical indicator, if TRUE the particle can not decay
00038    Double_t     fPDGDecayWidth;   //Life time of the particle in sec.
00039    Double_t     fPDGCharge;       //Charge of the particle in units of e
00040    TString      fParticleType;    //Text indicator for the particle family
00041    Int_t        fMCnumberOfPDG;   //PDG MC number followed by
00042                                   //http://pdg.lbl.gov/rpp/mcdata/all.mc
00043    Double_t     fEnergyCut;       //Lower energy cut off, the default is 10 keV
00044    Double_t     fEnergyLimit;     //High energy cut off, the default is 10 TeV
00045    Double_t     fGranularity;     //Granularity of the fLogEScale
00046 
00047 public:
00048    TAttParticle();
00049    TAttParticle(const char *name, const char *title,
00050                 Double_t Mass, Bool_t Stable,
00051                 Double_t DecayWidth, Double_t Charge, const char *Type,
00052                 Int_t MCnumber, Int_t granularity=90,
00053                 Double_t LowerCutOff=1.e-5, Double_t HighCutOff=1.e4);
00054    virtual ~TAttParticle();
00055    static  THashList     *fgList;
00056    static  Int_t          ConvertISAtoPDG(Int_t isaNumber);
00057    static  void           DefinePDG();
00058    virtual Double_t       GetCharge() const { return fPDGCharge; }
00059    virtual Double_t       GetEnergyCut() const { return fEnergyCut; }
00060    virtual Double_t       GetEnergyLimit() const { return fEnergyLimit; }
00061    virtual Double_t       GetGranularity() const { return fGranularity; }
00062    virtual Double_t       GetDecayWidth() const { return fPDGDecayWidth; }
00063    virtual Double_t       GetMass() const { return fPDGMass; }
00064    virtual Int_t          GetMCNumber() const { return fMCnumberOfPDG; }
00065    static  TAttParticle  *GetParticle(const char *name);
00066    static  TAttParticle  *GetParticle(Int_t mcnumber);
00067    virtual const char    *GetParticleType() const { return fParticleType.Data(); }
00068    virtual Bool_t         GetStable() const { return fPDGStable; }
00069    virtual void           Print(Option_t *option="") const ;
00070    virtual Double_t       SampleMass() const ;
00071    virtual Double_t       SampleMass(Double_t widthcut) const ;
00072 
00073    ClassDef(TAttParticle,1)  //Particle definition
00074 };
00075 
00076 #endif

Generated on Tue Jul 5 14:26:30 2011 for ROOT_528-00b_version by  doxygen 1.5.1