]>
Commit | Line | Data |
---|---|---|
dd162229 | 1 | /* |
2 | ||
3 | This macros setup the TPC calibration task AddTaskTPCCalib | |
4 | for Pass0. | |
5 | - the run number is required to config TPC OCDB | |
6 | ||
7 | The following calibration components are added to the AliTPCAnalysisTaskcalib task: | |
8 | 1. AliTPCcalibCalib - redo reconstruction with current calibration | |
9 | 2. AliTPCcalibTimeGain - TPC time dependent gain calibration | |
10 | 3. AliTPCcalibTime - TPC time dependent drift time calibration | |
11 | 4. AliTPCcalibLaser - laser track calibration | |
12 | ||
13 | */ | |
14 | //_____________________________________________________________________________ | |
15 | AliAnalysisTask *AddTaskT0Calib(Int_t runNumber) | |
16 | { | |
17 | // | |
18 | // add calibration task | |
19 | // | |
20 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | |
21 | if (!mgr) { | |
22 | ::Error("AddTaskT0Calib", "No analysis manager to connect to."); | |
23 | return NULL; | |
24 | } | |
25 | ||
26 | // check the input handler | |
27 | if (!mgr->GetInputEventHandler()) { | |
28 | ::Error("AddTaskT0Calib", "This task requires an input event handler"); | |
29 | return NULL; | |
30 | } | |
31 | ||
32 | // set TPC OCDB parameters | |
33 | //ConfigOCDB(runNumber); | |
34 | ||
35 | // setup task | |
36 | AliT0CalibOffsetChannelsTask *task1=new AliT0CalibOffsetChannelsTask("CalibObjectsTrain1"); | |
37 | // SetupCalibTaskTrain1(task1); | |
38 | mgr->AddTask(task1); | |
39 | ||
40 | AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer(); | |
41 | if (!cinput1) cinput1 = mgr->CreateContainer("cchain",TChain::Class(), | |
42 | AliAnalysisManager::kInputContainer); | |
43 | AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("T0Calib",TObjArray::Class(), AliAnalysisManager::kOutputContainer, "AliESDfriends_v1.root"); | |
44 | ||
45 | mgr->ConnectInput(task1,0,cinput1); | |
46 | mgr->ConnectOutput(task1,1,coutput1); | |
47 | return task1; | |
48 | } |