NdbMTReacDesc.h

Go to the documentation of this file.
00001 #ifndef NDB_REACDESC_H
00002 #define NDB_REACDESC_H
00003 
00004 #include <TArrayI.h>
00005 
00006 #include "NdbDefs.h"
00007 #include "NdbMF.h"
00008 #include "NdbMT.h"
00009 #include "NdbParticleList.h"
00010 #include "NdbMaterial.h"
00011 
00012 /* ========= NdbMTReactionXS ============ */
00013 // This class provides the descriptions and comments of all the reactions
00014 // that are available in MF=3
00015 class NdbMTReacDesc : public TObject
00016 {
00017 protected:
00018         TArrayI mt;             // MT number
00019         char    **shrt;         //!     Short description (n,f)
00020         char    **desc;         //!     Long description
00021         char    **comment;      //!     Comments on reaction    
00022 
00023 public:
00024         NdbMTReacDesc() {
00025                 shrt = NULL;
00026                 desc = NULL;
00027                 comment = NULL;
00028         }
00029         NdbMTReacDesc(const char *filename);
00030         ~NdbMTReacDesc();
00031 
00032                 void    Init(const char *filename);
00033 
00034         // --- Access functions ---
00035         inline  Int_t   GetSize()       const   { return mt.GetSize(); }        
00036         inline  Int_t   MT(Int_t i)             { return mt[i]; }
00037 
00038                 Int_t   FindMT(Int_t MT);
00039                 char*   GetShort(Int_t MT);
00040                 char*   GetDescription(Int_t MT);
00041                 char*   GetComment(Int_t MT);
00042 
00043         ClassDef(NdbMTReacDesc,1)
00044 
00045 }; // NdbMTReacDesc
00046 
00047 #endif

Generated on Tue Jul 5 15:15:04 2011 for ROOT_528-00b_version by  doxygen 1.5.1