]>
Commit | Line | Data |
---|---|---|
1ee39b3a | 1 | #if ! defined (__CINT__) || defined (__MAKECINT__) |
a7fa310f | 2 | #include "TError.h" |
1ee39b3a | 3 | #include "AliAnalysisManager.h" |
4 | #include "AliAnalysisDataContainer.h" | |
99535225 | 5 | #include "PWG1/TRD/AliTRDpwg1Helper.h" |
d4f4bb29 | 6 | #include "PWG1/TRD/AliTRDefficiency.h" |
7 | #include "PWG1/TRD/AliTRDefficiencyMC.h" | |
8 | #include "PWG1/TRD/AliTRDmultiplicity.h" | |
1ee39b3a | 9 | #endif |
10 | ||
a7fa310f | 11 | void AddTRDefficiency(AliAnalysisManager *mgr, Int_t map, AliAnalysisDataContainer **ci/*, AliAnalysisDataContainer **co*/) |
1ee39b3a | 12 | { |
a7fa310f | 13 | Info("AddTRDefficiency", Form("[0]=\"%s\" [1]=\"%s\" [2]=\"%s\"", ci[0]->GetName(), ci[1]->GetName(), ci[2]->GetName())); |
1ee39b3a | 14 | |
705f8b0a | 15 | AliTRDrecoTask *eff(NULL); |
f2e89a4c | 16 | mgr->AddTask(eff = new AliTRDefficiency((char*)"TRDefficiency")); |
1ee39b3a | 17 | eff->SetDebugLevel(0); |
705f8b0a | 18 | //AliLog::SetClassDebugLevel("AliTRDefficiency", 5); |
3d83da78 | 19 | mgr->ConnectInput(eff, 0, mgr->GetCommonInputContainer()); |
705f8b0a | 20 | mgr->ConnectInput(eff, 1, ci[0]); |
997f86cb | 21 | mgr->ConnectOutput(eff,1, mgr->CreateContainer(eff->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, Form("%s:TRD_Performance", mgr->GetCommonFileName()))); |
1ee39b3a | 22 | |
23 | ||
24 | // TRD combined tracking efficiency | |
99535225 | 25 | if(mgr->GetMCtruthEventHandler() && TESTBIT(map, AliTRDpwg1Helper::kEfficiencyMC)) { |
705f8b0a | 26 | mgr->AddTask(eff = new AliTRDefficiencyMC((char*)"TRDefficiencyMC")); |
27 | eff->SetDebugLevel(0); | |
28 | //AliLog::SetClassDebugLevel("AliTRDefficiencyMC", 5); | |
1ee39b3a | 29 | |
30 | // Create containers for input/output | |
705f8b0a | 31 | mgr->ConnectInput(eff, 0, mgr->GetCommonInputContainer()); |
32 | mgr->ConnectInput(eff, 1, ci[0]); | |
997f86cb | 33 | mgr->ConnectOutput(eff, 1, mgr->CreateContainer(eff->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, Form("%s:TRD_Performance", mgr->GetCommonFileName(),eff->GetName()))); |
1ee39b3a | 34 | } |
35 | ||
36 | // TRD single track selection | |
99535225 | 37 | if(!(TESTBIT(map, AliTRDpwg1Helper::kMultiplicity))) return; |
1ee39b3a | 38 | |
705f8b0a | 39 | mgr->AddTask(eff = new AliTRDmultiplicity((char*)"TRDmultiplicity")); |
40 | eff->SetDebugLevel(0); | |
41 | //AliLog::SetClassDebugLevel("AliTRDmultiplicity", 5); | |
42 | mgr->ConnectInput(eff, 0, mgr->GetCommonInputContainer()); | |
43 | mgr->ConnectInput(eff, 1, ci[0]); | |
d0967050 | 44 | mgr->ConnectOutput(eff, 1, mgr->CreateContainer(eff->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, Form("%s:TRD_Calibration", mgr->GetCommonFileName()))); |
1ee39b3a | 45 | } |
46 |