better ESD performance plot
[u/mrichter/AliRoot.git] / TRD / qaRec / macros / AddTRDcheckDET.C
CommitLineData
873458ab 1#if ! defined (__CINT__) || defined (__MAKECINT__)
2#include "AliAnalysisManager.h"
3#include "AliAnalysisDataContainer.h"
0b790af7 4#include "TRD/qaRec/macros/AliTRDperformanceTrain.h"
5#include "TRD/qaRec/AliTRDcheckDET.h"
873458ab 6#include "TRD/qaRec/AliTRDcalibration.h"
7#endif
8
c82c70b6 9#include "TRD/qaRec/macros/helper.C"
0b790af7 10void AddTRDcheckDET(AliAnalysisManager *mgr, Char_t *trd, AliAnalysisDataContainer **ci/*, AliAnalysisDataContainer **co*/)
873458ab 11{
0b790af7 12 Int_t map = ParseOptions(trd);
13 if(!(TSTBIT(map, kCheckDET))) return;
14
15 AliTRDcheckDET *task = 0x0;
16 mgr->AddTask(task = new AliTRDcheckDET());
873458ab 17 task->SetDebugLevel(0);
18 task->SetMCdata(mgr->GetMCtruthEventHandler());
19
20 // Create containers for input/output
21 mgr->ConnectInput( task, 0, ci[0]);
22 mgr->ConnectInput( task, 1, ci[1]);
23 mgr->ConnectOutput(task, 0, mgr->CreateContainer(task->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, "TRD.Performance.root"));
24
25
26 // CALIBRATION
27 if(!(TSTBIT(map, kCalibration))) return;
28 AliTRDcalibration *ctask = 0x0;
29 mgr->AddTask(ctask = new AliTRDcalibration());
64865687 30 ctask->SetHisto2d(kTRUE);
31 ctask->SetVector2d(kTRUE);
32 ctask->SetVdriftLinear(kTRUE);
33 ctask->SetNz(0,0);
34 ctask->SetNrphi(0,0);
35 ctask->SetNz(0,1);
36 ctask->SetNrphi(0,1);
37 ctask->SetNz(0,2);
38 ctask->SetNrphi(0,2);
873458ab 39 ctask->SetLow(0);
40 ctask->SetHigh(30);
41 ctask->SetFillZero(kFALSE);
64865687 42 ctask->SetDebugLevel(1);
873458ab 43
44 // Create containers for input/output
64865687 45 mgr->ConnectInput(ctask, 0, ci[0]);
46 mgr->ConnectOutput(ctask, 0, mgr->CreateContainer(ctask->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, Form("TRD.Task%s.root", ctask->GetName())));
873458ab 47}