]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/macros/AliRsnReadTaskLocal.C
examples for AliRsnReaderTask usage
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / macros / AliRsnReadTaskLocal.C
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
6 void 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 }