NdbEndfIO Class Reference

#include <NdbEndfIO.h>

Inheritance diagram for NdbEndfIO:

TObject List of all members.

Public Member Functions

 NdbEndfIO ()
virtual ~NdbEndfIO ()
 NdbEndfIO (char *filename, Int_t mode)
 NdbEndfIO (NdbEndfIO *endf)
Int_t LineNumber () const
char * Line ()
Int_t MAT () const
Int_t MF () const
Int_t MT () const
Bool_t IsOpen ()
Bool_t Eof ()
Bool_t EOMT ()
Bool_t EOMF ()
Bool_t EOMAT ()
Bool_t FindMAT (Int_t mat, Bool_t rewind=FALSE)
Bool_t FindMATMF (Int_t mat, Int_t mf, Bool_t rewind=FALSE)
Bool_t FindMATMFMT (Int_t mat, Int_t mf, Int_t mt, Bool_t rewind=FALSE)
Bool_t FindMFMT (Int_t mf, Int_t mt)
Bool_t RewindMAT ()
Bool_t RewindMF ()
Bool_t RewindMT ()
Bool_t ReadLine ()
Int_t ReadInt (Bool_t *error, Int_t pos=TENDF_NEXT_NUMBER)
Float_t ReadReal (Bool_t *error, Int_t pos=TENDF_NEXT_NUMBER)
char * Substr (Int_t start, Int_t length)

Protected Member Functions

Bool_t NextNumber (Int_t pos=TENDF_NEXT_NUMBER)
Int_t SubReadInt (Int_t start, Int_t length)
Float_t SubReadReal (Int_t start, Int_t length)

Protected Attributes

FILE * f
Int_t mode
 Working file.
Int_t iMAT
Int_t iMF
Int_t iMT
Int_t lineNum
Long_t matStart
Long_t mfStart
Long_t mtStart
Int_t lineLen
char lineTxt [TENDF_MAXREC]
Int_t lastNumPos

Static Protected Attributes

static char _str [TENDF_MAXREC]

Detailed Description

Definition at line 28 of file NdbEndfIO.h.


Constructor & Destructor Documentation

NdbEndfIO::NdbEndfIO (  )  [inline]

Definition at line 53 of file NdbEndfIO.h.

References f, and NULL.

virtual NdbEndfIO::~NdbEndfIO (  )  [inline, virtual]

Definition at line 54 of file NdbEndfIO.h.

References f, and fclose().

NdbEndfIO::NdbEndfIO ( char *  filename,
Int_t  mode 
)

NdbEndfIO::NdbEndfIO ( NdbEndfIO endf  )  [inline]

Definition at line 59 of file NdbEndfIO.h.

References f, iMAT, iMF, iMT, lineLen, lineNum, lineTxt, matStart, mfStart, mode, mtStart, and strcpy().


Member Function Documentation

Int_t NdbEndfIO::LineNumber (  )  const [inline]

Definition at line 75 of file NdbEndfIO.h.

References lineNum.

char* NdbEndfIO::Line (  )  [inline]

Definition at line 76 of file NdbEndfIO.h.

References lineTxt.

Int_t NdbEndfIO::MAT (  )  const [inline]

Definition at line 77 of file NdbEndfIO.h.

References iMAT.

Int_t NdbEndfIO::MF (  )  const [inline]

Definition at line 78 of file NdbEndfIO.h.

References iMF.

Int_t NdbEndfIO::MT (  )  const [inline]

Definition at line 79 of file NdbEndfIO.h.

References iMT.

Bool_t NdbEndfIO::IsOpen (  )  [inline]

Definition at line 82 of file NdbEndfIO.h.

References f, and NULL.

Referenced by NdbMTDir::LoadENDF(), and NdbMTReactionXS::LoadENDF().

Bool_t NdbEndfIO::Eof (  )  [inline]

Definition at line 85 of file NdbEndfIO.h.

References f.

Bool_t NdbEndfIO::EOMT (  )  [inline]

Definition at line 88 of file NdbEndfIO.h.

References iMT.

Bool_t NdbEndfIO::EOMF (  )  [inline]

Definition at line 91 of file NdbEndfIO.h.

References iMF.

Bool_t NdbEndfIO::EOMAT (  )  [inline]

Definition at line 94 of file NdbEndfIO.h.

References iMAT.

Bool_t NdbEndfIO::FindMAT ( Int_t  mat,
Bool_t  rewind = FALSE 
)

Definition at line 29 of file NdbEndfIO.cxx.

References f, FALSE, fseek, iMAT, RooFitShortHand::L(), ReadLine(), SEEK_SET, and TRUE.

Referenced by FindMATMF().

Bool_t NdbEndfIO::FindMATMF ( Int_t  mat,
Int_t  mf,
Bool_t  rewind = FALSE 
)

Definition at line 44 of file NdbEndfIO.cxx.

References FALSE, FindMAT(), iMF, ReadLine(), and TRUE.

Referenced by FindMATMFMT().

Bool_t NdbEndfIO::FindMATMFMT ( Int_t  mat,
Int_t  mf,
Int_t  mt,
Bool_t  rewind = FALSE 
)

Definition at line 59 of file NdbEndfIO.cxx.

References FALSE, FindMATMF(), iMT, ReadLine(), and TRUE.

Bool_t NdbEndfIO::FindMFMT ( Int_t  mf,
Int_t  mt 
)

Definition at line 73 of file NdbEndfIO.cxx.

References FALSE, iMF, iMT, ReadLine(), RewindMAT(), and TRUE.

Referenced by NdbMTDir::LoadENDF(), and NdbMTReactionXS::LoadENDF().

Bool_t NdbEndfIO::RewindMAT (  )  [inline]

Definition at line 110 of file NdbEndfIO.h.

References f, fseek, matStart, and SEEK_SET.

Referenced by FindMFMT().

Bool_t NdbEndfIO::RewindMF (  )  [inline]

Definition at line 113 of file NdbEndfIO.h.

References f, fseek, mfStart, and SEEK_SET.

Bool_t NdbEndfIO::RewindMT (  )  [inline]

Definition at line 116 of file NdbEndfIO.h.

References f, fseek, mtStart, and SEEK_SET.

Bool_t NdbEndfIO::ReadLine (  ) 

Definition at line 226 of file NdbEndfIO.cxx.

References f, FALSE, ftell, iMAT, iMF, iMT, lastNumPos, lineLen, lineNum, lineTxt, matStart, mfStart, mtStart, NUMBER_SIZE, SubReadInt(), and TRUE.

Referenced by FindMAT(), FindMATMF(), FindMATMFMT(), FindMFMT(), NdbMTDir::LoadENDF(), NdbMTReactionXS::LoadENDF(), and NextNumber().

Int_t NdbEndfIO::ReadInt ( Bool_t error,
Int_t  pos = TENDF_NEXT_NUMBER 
)

Definition at line 138 of file NdbEndfIO.cxx.

References FALSE, lastNumPos, NextNumber(), NUMBER_SIZE, SubReadInt(), and TRUE.

Referenced by NdbMTDir::LoadENDF(), and NdbMTReactionXS::LoadENDF().

Float_t NdbEndfIO::ReadReal ( Bool_t error,
Int_t  pos = TENDF_NEXT_NUMBER 
)

Definition at line 214 of file NdbEndfIO.cxx.

References FALSE, lastNumPos, NextNumber(), NUMBER_SIZE, SubReadReal(), and TRUE.

Referenced by NdbMTDir::LoadENDF(), and NdbMTReactionXS::LoadENDF().

char * NdbEndfIO::Substr ( Int_t  start,
Int_t  length 
)

Definition at line 90 of file NdbEndfIO.cxx.

References _str, lineLen, lineTxt, and NULL.

Referenced by NdbMTDir::LoadENDF(), SubReadInt(), and SubReadReal().

Bool_t NdbEndfIO::NextNumber ( Int_t  pos = TENDF_NEXT_NUMBER  )  [protected]

Definition at line 107 of file NdbEndfIO.cxx.

References FALSE, iMF, iMT, lastNumPos, lineTxt, NUMBER_SIZE, ReadLine(), and TRUE.

Referenced by ReadInt(), and ReadReal().

Int_t NdbEndfIO::SubReadInt ( Int_t  start,
Int_t  length 
) [protected]

Definition at line 126 of file NdbEndfIO.cxx.

References _str, and Substr().

Referenced by ReadInt(), and ReadLine().

Float_t NdbEndfIO::SubReadReal ( Int_t  start,
Int_t  length 
) [protected]

Definition at line 150 of file NdbEndfIO.cxx.

References _str, and Substr().

Referenced by ReadReal().


Member Data Documentation

FILE* NdbEndfIO::f [protected]

Definition at line 35 of file NdbEndfIO.h.

Referenced by Eof(), FindMAT(), IsOpen(), NdbEndfIO(), ReadLine(), RewindMAT(), RewindMF(), RewindMT(), and ~NdbEndfIO().

Int_t NdbEndfIO::mode [protected]

Working file.

Definition at line 36 of file NdbEndfIO.h.

Referenced by NdbEndfIO().

Int_t NdbEndfIO::iMAT [protected]

Definition at line 37 of file NdbEndfIO.h.

Referenced by EOMAT(), FindMAT(), MAT(), NdbEndfIO(), and ReadLine().

Int_t NdbEndfIO::iMF [protected]

Definition at line 38 of file NdbEndfIO.h.

Referenced by EOMF(), FindMATMF(), FindMFMT(), MF(), NdbEndfIO(), NextNumber(), and ReadLine().

Int_t NdbEndfIO::iMT [protected]

Definition at line 39 of file NdbEndfIO.h.

Referenced by EOMT(), FindMATMFMT(), FindMFMT(), MT(), NdbEndfIO(), NextNumber(), and ReadLine().

Int_t NdbEndfIO::lineNum [protected]

Definition at line 40 of file NdbEndfIO.h.

Referenced by LineNumber(), NdbEndfIO(), and ReadLine().

Long_t NdbEndfIO::matStart [protected]

Definition at line 42 of file NdbEndfIO.h.

Referenced by NdbEndfIO(), ReadLine(), and RewindMAT().

Long_t NdbEndfIO::mfStart [protected]

Definition at line 44 of file NdbEndfIO.h.

Referenced by NdbEndfIO(), ReadLine(), and RewindMF().

Long_t NdbEndfIO::mtStart [protected]

Definition at line 45 of file NdbEndfIO.h.

Referenced by NdbEndfIO(), ReadLine(), and RewindMT().

Int_t NdbEndfIO::lineLen [protected]

Definition at line 47 of file NdbEndfIO.h.

Referenced by NdbEndfIO(), ReadLine(), and Substr().

char NdbEndfIO::lineTxt[TENDF_MAXREC] [protected]

Definition at line 48 of file NdbEndfIO.h.

Referenced by Line(), NdbEndfIO(), NextNumber(), ReadLine(), and Substr().

Int_t NdbEndfIO::lastNumPos [protected]

Definition at line 49 of file NdbEndfIO.h.

Referenced by NextNumber(), ReadInt(), ReadLine(), and ReadReal().

char NdbEndfIO::_str [static, protected]

Definition at line 50 of file NdbEndfIO.h.

Referenced by SubReadInt(), SubReadReal(), and Substr().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:31:19 2011 for ROOT_528-00b_version by  doxygen 1.5.1