library: libTMVA #include "TMVA_AsciiConverter.h" |
TMVA_AsciiConverter
class description - source file - inheritance tree (.pdf)
protected:
Bool_t IsDouble(TString* branchformat)
Bool_t IsFloat(TString* branchformat)
Bool_t IsInteger(TString* branchformat)
Bool_t IsString(TString* branchformat)
void SetInputFile(TString infile)
public:
TMVA_AsciiConverter()
TMVA_AsciiConverter(TString infile, TTree* theTree)
virtual ~TMVA_AsciiConverter()
static TClass* Class()
void CreateBranches()
void FillFromFile()
Bool_t GetFileStatus() const
TList* GetFormatList() const
TList* GetLabelList() const
Int_t GetNBranch() const
Int_t GetNumDbl() const
Int_t GetNumFloat() const
Int_t GetNumInt() const
TTree* GetTree() const
virtual TClass* IsA() const
void ParseFormatLine()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Double_t* fData_dbl
Float_t* fData_float
Int_t* fData_int
TObjString* fData_str[1000] pointer to TObjString branch
Int_t fDbl_cnt
Int_t fFloat_cnt
Int_t fInt_cnt
Int_t fChar_cnt
Int_t fDbl_array_cnt
Int_t fFloat_array_cnt
Int_t fInt_array_cnt
TList* fFormatList
TList* fLabelList
ifstream fInfile
Int_t fNbranch
Bool_t fFileStatus
TTree* fTree
Bool_t fParseFormatLineDone
Bool_t fCreateBranchesDone
Bool_t fFillFromFileDone
Converts ascii file into TTree object
_______________________________________________________________________
TMVA_AsciiConverter( void )
: fData_dbl(0),
fData_float(0),
fData_int(0),
fFormatList(0),
fLabelList(0),
fFileStatus(0),
fTree(0)
initialize counters and boolean tags
TMVA_AsciiConverter( TString infile, TTree* theTree )
: fData_dbl(0),
fData_float(0),
fData_int(0),
fFormatList(0),
fLabelList(0),
fFileStatus(0)
get the TTree object (that TMVA_AsciiConverter shall not own)
~TMVA_AsciiConverter( void )
Default destructor for TMVA_AsciiConverter
delete all objects created with the tree
void SetInputFile( TString infile )
Set input ASCII file. This only has to be called if the default
constructor was used (input file not specified).
void CreateBranches( void )
Create tree branches; ParseFormatLine() must have been run first
void FillFromFile( void )
Fill the tree from data in file.
This is called after ParseFormat() and CreateBranches().
Bool_t IsInteger( TString* branchformat )
Test to see if branchformat string contains a "/I".
Bool_t IsDouble( TString* branchformat )
Test to see if branchformat string contains a "/D".
Bool_t IsFloat( TString* branchformat )
Test to see if branchformat string contains a "/F".
Bool_t IsString( TString* branchformat )
Test to see if branchformat string contains a "/S".
void ParseFormatLine( void )
Parse the file header and place branch information into fFormatList
and fLabelList. I'm sure this can be done in two lines, but I'm
not that good.
Inline Functions
TTree* GetTree() const
Int_t GetNBranch() const
TList* GetFormatList() const
TList* GetLabelList() const
Int_t GetNumInt() const
Int_t GetNumDbl() const
Int_t GetNumFloat() const
Bool_t GetFileStatus() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: unknown
Last update: root/tmva $Id: TMVA_AsciiConverter.cxx,v 1.4 2006/05/09 08:37:06 brun Exp $
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.