Logo ROOT   6.08/07
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 "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 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.