Introducing a new AOD class: AliAODcascade (A.Maire)
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / macros / AliRsnReadTaskLocal.C
CommitLineData
2e1ebf1a 1//=========================================================================
2// This macro loops on the entries of a TChain (argument) containing ESDs
3// and saves a file containing a TTree of AliRsnEvents.
4//=========================================================================
5
6void AliRsnReadTaskLocal()
7{
8 // by default, assume that a file named "AliESDs.root"
9 // exists in the working directory and connects to it
10 TChain *analysisChain = new TChain("esdTree");
11 analysisChain->Add("AliESDs.root");
12
13 // load read macro
14 TString str(getenv("ALICE_ROOT"));
15 str.Append("/PWG2/RESONANCES/macros/AliRsnReadTask.C");
16 gROOT->LoadMacro(str.Data());
17
18 AliRsnReadTask(analysisChain);
19}