AliRoot Core  edcc906 (edcc906)
TestV0.C File Reference

Simple test of the V0 finder. More...

Go to the source code of this file.

Functions

AliAnalysisManager * SetupV0Task ()
 

Detailed Description

Simple test of the V0 finder.

0. Setup memory chcecker if you want

gSystem->Load("$ROOTSYS/lib/libGui");
gSystem->Load("$ROOTSYS/lib/libTree");
gSystem->Load("$MEMSTAT/libMemStat");
TMemStat *memstat = new TMemStat(100000000,10000000,kTRUE);
AliSysInfo::AddCallBack(TMemStatManager::GetInstance()->fStampCallBack);
  1. Load needed libraries
gSystem->Load("libANALYSIS");
gSystem->Load("libTPCcalib");
  1. Setup analysis manager
.L $ALICE_ROOT/TPC/macros/CalibrateTPC.C
AliAnalysisManager * mgr = SetupCalibTask();
  1. Process data - chain
gSystem->AddIncludePath("-I$ALICE_ROOT/TPC/macros");
gROOT->LoadMacro("$ALICE_ROOT/TPC/macros/AliXRDPROOFtoolkit.cxx+")
TChain * chain = tool.MakeChain("esd.txt","esdTree",0,50000);
chain->Lookup();
// memory
mgr->SetNSysInfo(100);
mgr->SetDebugLevel(1);
mgr->StartAnalysis("proof",chain);
//mgr->StartAnalysis("local",chain);
// delete manager
delete mgr;
// analyze memstat report
delete memstat;
TMemStat draw("memstat.root");
draw.MakeReport(0,0,"order 0 sortstat 3 sortstamp 0 sortdeep 10 stackdeep 15 maxlength 50")

Definition in file TestV0.C.

Function Documentation

AliAnalysisManager* SetupV0Task ( )

Definition at line 55 of file TestV0.C.