MyTextFileReader Class Reference

#include <MyTextFileReader.h>

List of all members.

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


Detailed Description

Class which reads textfile and can retrieve any variable after a certain key and which can store an retrieve cutvalues in/from a std::map

Date:
10.12.2006
Author:
Steffen.Kaiser

Definition at line 42 of file MyTextFileReader.h.


Constructor & Destructor Documentation

MyTextFileReader::MyTextFileReader ( TString  textfilename  )  [inline]

Constructor: read textfile textfilename: name of textfile

Definition at line 51 of file MyTextFileReader.h.


Member Function Documentation

template<class MyType>
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.


The documentation for this class was generated from the following files:
Generated on Tue Oct 21 11:50:48 2008 for NtupleAnalysis by  doxygen 1.5.1