AliRoot Core  3dc7879 (3dc7879)
TestESDCaloClusterAndCell.C File Reference

Read ESDs files and dump cluster and cell info. More...

#include <Riostream.h>
#include <TFile.h>
#include <TChain.h>
#include <TParticle.h>
#include <TNtuple.h>
#include <TCanvas.h>
#include <TObjArray.h>
#include <TSystem.h>
#include <TString.h>
#include <TH1F.h>
#include <TVector.h>
#include <TRefArray.h>
#include <TArrayS.h>
#include "AliRunLoader.h"
#include "AliStack.h"
#include "AliESDEvent.h"
#include "AliESDVertex.h"
#include "AliESDCaloCluster.h"
#include "AliESDCaloCells.h"
#include "AliPID.h"
#include "AliLog.h"
Include dependency graph for TestESDCaloClusterAndCell.C:

Go to the source code of this file.

Functions

TChain * AliReadESDfromdisk (const UInt_t eventsToRead, const TString dirName, const TString esdTreeName, const char *pattern)
 
TChain * AliReadESD (const UInt_t eventsToRead, const TString dirName, const TString esdTreeName, const char *pattern)
 Read AliESDs files and return a Chain of events. More...
 
void TestESDCaloClusterAndCell (TString det="EMCAL", const UInt_t eventsToProcess=5, TString dirName="./", const TString esdTreeName="esdTree", const char *pattern=".")
 

Detailed Description

Read ESDs files and dump cluster and cell info.

Read ESDs files and dump cluster and cell info. Note: TestESD.C is more complete and up to date but only reads a single file.

Author
Gustavo Conesa Balbastre, Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-CNRS ???

Definition in file TestESDCaloClusterAndCell.C.

Function Documentation

TChain* AliReadESD ( const UInt_t  eventsToRead,
const TString  dirName,
const TString  esdTreeName,
const char *  pattern 
)

Read AliESDs files and return a Chain of events.

Definition at line 85 of file TestESDCaloClusterAndCell.C.

Referenced by TestESDCaloClusterAndCell().

TChain* AliReadESDfromdisk ( const UInt_t  eventsToRead,
const TString  dirName,
const TString  esdTreeName,
const char *  pattern 
)

Reads ESDs from Disk Access the ESD tree from files and put them in a chain for analysis. Files are in a directory with a given pattern in name

Definition at line 46 of file TestESDCaloClusterAndCell.C.

Referenced by AliReadESD().

void TestESDCaloClusterAndCell ( TString  det = "EMCAL",
const UInt_t  eventsToProcess = 5,
TString  dirName = "./",
const TString  esdTreeName = "esdTree",
const char *  pattern = "." 
)

Main method, do: .L TestESDCaloClusterAndCell.C++ TestESDCaloClusterAndCell(calo, number of events to process)

Parameters
det"EMCAL" or "PHOS"
eventsToProcessnumber of events to analyze, independently of the real total
dirNamename of main folder with files
esdTreeNamename of ESD tree
patternpattern of the name of directories containing ESD files

Definition at line 113 of file TestESDCaloClusterAndCell.C.

Referenced by AliReadESD().