12 #ifndef ROOT_TSimpleAnalysis 13 #define ROOT_TSimpleAnalysis 44 std::map<std::string, std::pair<std::string, std::string>>
fHists;
56 std::string
GetLine(
int& numbLine);
64 const std::vector<std::string>& expressions,
const std::string& treeName);
std::string fConfigFile
Name of the configuration file.
std::map< std::string, std::pair< std::string, std::string > > fHists
bool Run()
Execute all the TChain::Draw() as configured and stores the output histograms.
A TSimpleAnalysis object creates histograms from a TChain.
std::string HandleExpressionConfig(const std::string &line)
Handle the expression lines of the input file in order to pass the elements to the members of the obj...
bool SetTreeName()
Disambiguate tree name from first input file and set up fTreeName if it is empty. ...
bool Configure()
This function has the aim of setting the arguments read from the input file.
Reading the name of the .root input files.
std::string GetLine(int &numbLine)
Skip subsequent empty lines read from fIn and returns the next not empty line.
std::string fTreeName
Name of the input tree.
std::ifstream fIn
Stream for the input file.
Reading the name of the tree.
bool HandleInputFileNameConfig(const std::string &line)
Returns false if not a tree name, otherwise sets the name of the tree.
std::vector< std::string > fInputFiles
.root input files
Reading the name of the output file.
TSimpleAnalysis(const std::string &file)
std::string fOutputFile
Output file in which are stored the histograms.
bool RunSimpleAnalysis(const char *configurationFile)
Function that allows to create the TSimpleAnalysis object and execute its Configure and Analyze funct...