Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 8c86774a3e53d77cc119f53a2b94a57a > files > 461

root-tutorial-5.34.14-2.fc18.noarch.rpm

#ifndef NDB_REACDESC_H
#define NDB_REACDESC_H

#include <TArrayI.h>

#include "NdbDefs.h"
#include "NdbMF.h"
#include "NdbMT.h"
#include "NdbParticleList.h"
#include "NdbMaterial.h"

/* ========= NdbMTReactionXS ============ */
// This class provides the descriptions and comments of all the reactions
// that are available in MF=3
class NdbMTReacDesc : public TObject
{
protected:
	TArrayI	mt;		// MT number
	char	**shrt;		//!	Short description (n,f)
	char	**desc;		//!	Long description
	char	**comment;	//!	Comments on reaction	

public:
	NdbMTReacDesc() {
		shrt = NULL;
		desc = NULL;
		comment = NULL;
	}
	NdbMTReacDesc(const char *filename);
	~NdbMTReacDesc();

		void	Init(const char *filename);

	// --- Access functions ---
	inline	Int_t	GetSize()	const	{ return mt.GetSize(); }	
	inline	Int_t	MT(Int_t i)		{ return mt[i]; }

		Int_t	FindMT(Int_t MT);
		char*	GetShort(Int_t MT);
		char*	GetDescription(Int_t MT);
		char*	GetComment(Int_t MT);

	ClassDef(NdbMTReacDesc,1)

}; // NdbMTReacDesc

#endif