]>
Commit | Line | Data |
---|---|---|
1ee39b3a | 1 | #if ! defined (__CINT__) || defined (__MAKECINT__) |
705f8b0a | 2 | #include "AliLog.h" |
1ee39b3a | 3 | #include "AliAnalysisManager.h" |
4 | #include "AliAnalysisDataContainer.h" | |
7698e7a4 | 5 | #include "AliAnalysisCuts.h" |
6 | #include "AliESDtrackCuts.h" | |
2bfe5463 | 7 | #include "PWGPP/TRD/AliTRDcheckESD.h" |
1ee39b3a | 8 | #endif |
9 | ||
7698e7a4 | 10 | AliESDtrackCuts* SetupESDcuts(); |
11 | ||
1ee39b3a | 12 | void AddTRDcheckESD(AliAnalysisManager *mgr) |
13 | { | |
3d2a3dff | 14 | //AliLog::SetClassDebugLevel("AliTRDcheckESD", 5); |
76106bcc | 15 | AliTRDcheckESD *checkESD = new AliTRDcheckESD((char*)"TRDcheckESD"); |
7698e7a4 | 16 | checkESD->SetRefTrackFilter(SetupESDcuts()); |
1ee39b3a | 17 | mgr->AddTask(checkESD); |
99535225 | 18 | Bool_t mc = mgr->GetMCtruthEventHandler(); |
19 | checkESD->SetMC(mc); | |
36d21092 | 20 | checkESD->SetCollision(/*kFALSE*/); |
705f8b0a | 21 | checkESD->SetDebugLevel(0); |
705f8b0a | 22 | |
3d83da78 | 23 | mgr->ConnectInput(checkESD, 0, mgr->GetCommonInputContainer()); |
997f86cb | 24 | mgr->ConnectOutput(checkESD, 1, mgr->CreateContainer(checkESD->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, Form("%s:TRD_Performance",mgr->GetCommonFileName()))); |
1ee39b3a | 25 | } |
26 | ||
7698e7a4 | 27 | AliESDtrackCuts* SetupESDcuts() { |
28 | // Setup ESD cuts for the TPC reference tracks | |
29 | AliESDtrackCuts* esdCuts = new AliESDtrackCuts; | |
8642d6d9 | 30 | esdCuts->SetPtRange(0.5, 100.0); |
7698e7a4 | 31 | esdCuts->SetEtaRange(-0.9, +0.9); |
32 | esdCuts->SetRequireTPCRefit(kTRUE); | |
33 | esdCuts->SetAcceptKinkDaughters(kFALSE); | |
52f55ddb | 34 | esdCuts->SetMaxDCAToVertexXY(1.); |
35 | esdCuts->SetMaxDCAToVertexZ(3.); | |
7698e7a4 | 36 | esdCuts->SetMinNClustersTPC(70); |
37 | return esdCuts; | |
38 | } | |
39 |