00001 #include "NdbMF.h" 00002 00003 ClassImp(NdbMF) 00004 00005 #include <Riostream.h> 00006 00007 /* -------- Section -------- */ 00008 NdbMT * 00009 NdbMF::Section(Int_t id) 00010 { 00011 TObjArrayIter iter(&aSection); 00012 while (iter()) { 00013 NdbMT *mt = (NdbMT*)(iter.Next()); 00014 if (mt->MT() == id) 00015 return mt; 00016 } 00017 return NULL; 00018 } // Section 00019 00020 /* -------- Section -------- */ 00021 NdbMT * 00022 NdbMF::Section(const char *name ) 00023 { 00024 TObjArrayIter iter(&aSection); 00025 while (iter()) { 00026 NdbMT *mt = (NdbMT*)(iter.Next()); 00027 if (mt->Description().CompareTo(name)) 00028 return mt; 00029 } 00030 return NULL; 00031 } // Section 00032 00033 /* ---------- Add ---------- */ 00034 void 00035 NdbMF::Add(NdbMT& ) 00036 { 00037 cout << "NdbMF::add(sec)" << endl; 00038 } // Add 00039 00040 /* ---------- EnumerateENDFType ---------- */ 00041 /* Enumerates all the available sections inside the ENDF file 00042 * @param sec Find the next section after <B>sec</B> 00043 * @return Next available section in ENDF file, -1 if EOF 00044 */ 00045 Int_t 00046 NdbMF::EnumerateENDFType( Int_t ) 00047 { 00048 cout << "NdbMF ::enumerateENDFSection" << endl; 00049 return 0; 00050 } // EnumerateENDFType