Logo ROOT   6.16/01
Reference Guide
Functions
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 <fstream>
#include <vector>
#include <map>
#include <iostream>
Include dependency graph for TSimpleAnalysis.cxx:

Functions

static bool CheckChainLoadResult (TChain *chain)
 Returns true if there are no errors in TChain::LoadTree() More...
 
static void DeleteCommentsAndSpaces (std::string &line)
 Delete comments, leading and trailing white spaces in a string. More...
 
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. More...
 
bool RunSimpleAnalysis (const char *configurationFile)
 Function that allows to create the TSimpleAnalysis object and execute its Configure and Analyze functions. More...
 

Function Documentation

◆ CheckChainLoadResult()

static bool CheckChainLoadResult ( TChain chain)
static

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

Definition at line 207 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 74 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 173 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 480 of file TSimpleAnalysis.cxx.