AliRoot Core  edcc906 (edcc906)
TestV0.C
Go to the documentation of this file.
1 
55 AliAnalysisManager * SetupV0Task() {
57 
58  TStopwatch stopwatch;
59  stopwatch.Start();
60  //
61  AliAnalysisManager *mgr=new AliAnalysisManager("TestManager");
62 
64  esdH->SetActiveBranches("ESDfriend");
65  mgr->SetInputEventHandler(esdH);
66  //
67  //
69  AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
70 
71  AliTPCAnalysisTaskcalib *task1=new AliTPCAnalysisTaskcalib("TPC calibration task");
72 
73  AliTPCcalibTracksCuts *cuts = new AliTPCcalibTracksCuts(20, 0.4, 0.5, 0.13, 0.018);
74 
75  //
76  AliTPCcalibV0 *calibV0 = new AliTPCcalibV0;
77  calibV0->SetName("calibV0");
78  calibV0->SetTitle("calibV0");
79  calibV0->SetDebugLevel(20);
80  calibV0->SetStreamLevel(2);
81  //
82 
83  task1->AddJob(calibV0);
84 
85  TString path=gSystem->pwd();
86  path+="/V0/";
87  gSystem->mkdir(path);
88  task1->SetDebugOuputhPath(path.Data());
89  mgr->AddTask(task1);
90 
91  mgr->AddTask(task1);
92 
93  AliAnalysisDataContainer *cinput1
94  =mgr->GetCommonInputContainer();
95  AliAnalysisDataContainer *coutput1
96  =mgr->CreateContainer("TPCCalib",TObjArray::Class(),
97  AliAnalysisManager::kOutputContainer,
98  "CalibObjects.root");
99 
100  mgr->ConnectInput(task1,0,cinput1);
101  mgr->ConnectOutput(task1,0,coutput1);
102 
103  if (!mgr->InitAnalysis()) return;
104  mgr->PrintStatus();
105 
106  stopwatch.Stop();
107  stopwatch.Print();
108  return mgr;
109 }
AliAnalysisManager * SetupV0Task()
Definition: TestV0.C:55
const char * path
void SetActiveBranches(const char *branches)
void SetRun(Int_t run)
void SetDefaultStorage(const char *dbString)
static AliCDBManager * Instance(TMap *entryCache=NULL, Int_t run=-1)