A++ » INCLUDE » TSimpleAnalysis

class TSimpleAnalysis


TSimpleAnalysis

A TSimpleAnalysis object creates histograms from a TChain. These
histograms are stored to an output file. The histogrammed
(TTreeFormula) expressions, their cuts, the input and output files
are configured through a simple config file that allows comments
starting with '#'.


Function Members (Methods)

public:
~TSimpleAnalysis()
boolConfigure()
TSimpleAnalysis&operator=(const TSimpleAnalysis&)
TSimpleAnalysis&operator=(TSimpleAnalysis&&)
boolRun()
TSimpleAnalysis(const string& file)
TSimpleAnalysis(const TSimpleAnalysis&)
TSimpleAnalysis(TSimpleAnalysis&&)
TSimpleAnalysis(const string& output, const vector<string>& inputFiles, const vector<string>& expressions, const string& treeName)
private:
stringGetLine(int& numbLine)
stringHandleExpressionConfig(const string& line)
boolHandleInputFileNameConfig(const string& line)
boolSetTreeName()

Data Members

private:
stringfConfigFileName of the configuration file
map<string,pair<string,string> >fHists
ifstreamfInStream for the input file
vector<string>fInputFiles.root input files
stringfOutputFileOutput file in which are stored the histograms
stringfTreeNameName of the input tree
static TSimpleAnalysis::EReadingWhatkReadingExpressions
static TSimpleAnalysis::EReadingWhatkReadingInput
static TSimpleAnalysis::EReadingWhatkReadingOutput
static TSimpleAnalysis::EReadingWhatkReadingTreeName

Class Charts

Inheritance Chart:
TSimpleAnalysis

Function documentation

std::string HandleExpressionConfig(const string& line)
std::string GetLine(int& numbLine)
bool HandleInputFileNameConfig(const string& line)
bool SetTreeName()
TSimpleAnalysis(const std::string& file)
{}
TSimpleAnalysis(const string& output, const vector<string>& inputFiles, const vector<string>& expressions, const string& treeName)
bool Configure()