Sophie

Sophie

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

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

#include "NdbMF.h"

ClassImp(NdbMF)

#include <Riostream.h>

/* -------- Section -------- */
NdbMT *
NdbMF::Section(Int_t id)
{
	TObjArrayIter	iter(&aSection);
	while (iter()) {
		NdbMT	*mt = (NdbMT*)(iter.Next());
		if (mt->MT() == id)
			return mt;
	}
	return NULL;
} // Section

/* -------- Section -------- */
NdbMT *
NdbMF::Section(const char *name )
{
	TObjArrayIter	iter(&aSection);
	while (iter()) {
		NdbMT	*mt = (NdbMT*)(iter.Next());
		if (mt->Description().CompareTo(name))
			return mt;
	}
	return NULL;
} // Section

/* ---------- Add ---------- */
void
NdbMF::Add(NdbMT& )
{
	cout << "NdbMF::add(sec)" << endl;
} // Add

/* ---------- EnumerateENDFType ---------- */
/* Enumerates all the available sections inside the ENDF file
 * @param sec	Find the next section after <B>sec</B>
 * @return	Next available section in ENDF file, -1 if EOF
 */
Int_t
NdbMF::EnumerateENDFType( Int_t )
{
	cout << "NdbMF ::enumerateENDFSection" << endl;
	return 0;
} // EnumerateENDFType