Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TSimpleAnalysis.cxx File Reference
#include "TSimpleAnalysis.h"
#include "TFile.h"
#include "TChain.h"
#include "TChainElement.h"
#include "TH1.h"
#include "TError.h"
#include "TKey.h"
#include "ROOT/TThreadExecutor.hxx"
#include "TROOT.h"
#include <string>
#include <vector>
#include <map>
Include dependency graph for TSimpleAnalysis.cxx:

Functions

static bool CheckChainLoadResult (TChain *chain)
 Returns true if there are no errors in TChain::LoadTree()
 
static void DeleteCommentsAndSpaces (std::string &line)
 Delete comments, leading and trailing white spaces in a string.
 
static std::string ExtractTreeName (std::string &firstInputFile)
 Extract the name of the tree from the first input file when the tree name isn't in the configuration file.
 
bool RunSimpleAnalysis (const char *configurationFile)
 Function that allows to create the TSimpleAnalysis object and execute its Configure and Analyze functions.
 

Function Documentation

◆ CheckChainLoadResult()

static bool CheckChainLoadResult ( TChain chain)
static

Returns true if there are no errors in TChain::LoadTree()

Definition at line 205 of file TSimpleAnalysis.cxx.

◆ DeleteCommentsAndSpaces()

static void DeleteCommentsAndSpaces ( std::string &  line)
static

Delete comments, leading and trailing white spaces in a string.

param[in] line - line read from the input file

Definition at line 72 of file TSimpleAnalysis.cxx.

◆ ExtractTreeName()

static std::string ExtractTreeName ( std::string &  firstInputFile)
static

Extract the name of the tree from the first input file when the tree name isn't in the configuration file.

Returns the name of the tree.

Definition at line 171 of file TSimpleAnalysis.cxx.

◆ RunSimpleAnalysis()

bool RunSimpleAnalysis ( const char *  configurationFile)

Function that allows to create the TSimpleAnalysis object and execute its Configure and Analyze functions.

param[in] configurationFile - name of the input file used to create the TSimpleAnalysis object

Definition at line 478 of file TSimpleAnalysis.cxx.