#include <MyTextFileReader.h>
Public Member Functions | |
MyTextFileReader (void) | |
default constructor | |
MyTextFileReader (TString textfilename) | |
~MyTextFileReader (void) | |
Destructor. | |
TString | get_textfilename (void) |
get name of default textfile | |
TString | get_string (TString key_string) |
read string after key: 'key_string = ' from textfile | |
Bool_t | get_bool (TString key_string) |
read string after key: 'key_string = ' from textfile | |
int | get_int (TString key_string) |
template<class MyType> | |
MyType | retrieve_from_file (TString key_string, TString filename="") |
void | fill_cutvalue_map (TString cutstring, TString filename="") |
Double_t | get_cutvalue (TString variable) |
Private Types | |
typedef std::map< TString, Double_t > | maptype |
typedef maptype::value_type | ValuePair |
Private Member Functions | |
void | init (TString textfilename) |
void | destruct (void) |
Private Attributes | |
TString | m_textfilename |
maptype | m_cutvalue_map |
Definition at line 42 of file MyTextFileReader.h.
MyTextFileReader::MyTextFileReader | ( | TString | textfilename | ) | [inline] |
Constructor: read textfile textfilename: name of textfile
Definition at line 51 of file MyTextFileReader.h.
MyType MyTextFileReader::retrieve_from_file | ( | TString | key_string, | |
TString | filename = "" | |||
) |
read variable with key: 'key_string = ' from default textfile, if filename is given than read from this file
Definition at line 68 of file MyTextFileReader.cxx.
void MyTextFileReader::fill_cutvalue_map | ( | TString | cutstring, | |
TString | filename = "" | |||
) |
fill map with the cutvalues from default textfile, start reading the file only after 'cutstring', if filename is given than read from this file
Definition at line 170 of file MyTextFileReader.cxx.
Double_t MyTextFileReader::get_cutvalue | ( | TString | variable | ) |
retrieve cutvalue of variable with name 'variable' from map
Definition at line 267 of file MyTextFileReader.cxx.