]>
Commit | Line | Data |
---|---|---|
1ee39b3a | 1 | #if ! defined (__CINT__) || defined (__MAKECINT__) |
3f19c2cd | 2 | #include "AliLog.h" |
1ee39b3a | 3 | #include "AliAnalysisManager.h" |
4 | #include "AliAnalysisDataContainer.h" | |
2bfe5463 | 5 | #include "PWGPP/TRD/AliTRDinfoGen.h" |
6 | #include "PWGPP/TRD/AliTRDpwgppHelper.h" | |
7 | #include "PWGPP/TRD/info/AliTRDeventInfo.h" | |
8 | #include "PWGPP/TRD/info/AliTRDeventCuts.h" | |
1ee39b3a | 9 | #endif |
10 | ||
a7fa310f | 11 | void AddTRDinfoGen(AliAnalysisManager *mgr, Int_t /*map*/, AliAnalysisDataContainer **/*ci*/, AliAnalysisDataContainer **co) |
1ee39b3a | 12 | { |
d7151f03 | 13 | Bool_t mc = (Bool_t)mgr->GetMCtruthEventHandler(); |
3d2a3dff | 14 | //AliLog::SetClassDebugLevel("AliTRDinfoGen", 2); |
3f19c2cd | 15 | AliTRDinfoGen *info(NULL); |
76106bcc | 16 | mgr->AddTask(info = new AliTRDinfoGen((char*)"TRDinfoGen")); |
1ee39b3a | 17 | info->SetDebugLevel(0); |
d7151f03 | 18 | info->SetMCdata(mc); |
2589cf64 | 19 | info->SetLocalTrkSelection(); |
eb05d549 | 20 | info->UseTrackPoints(kFALSE); // set it to true if track points for alignment are to be saved in trackInfo object |
801d4d50 | 21 | info->SetOCDB("alien://folder=/alice/data/2010/OCDB"); |
3f19c2cd | 22 | // settings for collisions |
55d5090e | 23 | info->SetCollision(/*kFALSE*/); |
3f19c2cd | 24 | if(info->IsCollision()){ |
35983729 | 25 | AliTRDeventCuts ec; |
61f1cfc8 | 26 | if(mc){ |
27 | ec.SetEventType(0); | |
28 | // ec.AddTrigger("MB1"); | |
29 | } else { | |
35983729 | 30 | /* Int_t bunches[] = ; |
31 | ec.SetBunchSelection();*/ | |
61f1cfc8 | 32 | /* ec.AddTrigger("CINT1B-ABCE-NOPF-ALL"); |
35983729 | 33 | ec.AddTrigger("CINT5-B-NOPF-ALL"); |
34 | ec.AddTrigger("CINT1WU-B-NOPF-ALL"); | |
35 | ec.AddTrigger("CINT5WU-B-NOPF-ALL"); | |
36 | ec.AddTrigger("CINT7WU-I-NOPF-ALL"); | |
37 | ec.AddTrigger("CSCO1-ABCE-NOPF-CENT"); // cosmic SPD trigger | |
61f1cfc8 | 38 | */ |
35983729 | 39 | } |
40 | info->SetLocalEvSelection(ec); | |
3f19c2cd | 41 | } |
705f8b0a | 42 | |
43 | // Connect IO slots | |
3d83da78 | 44 | mgr->ConnectInput (info, 0, mgr->GetCommonInputContainer()); |
2bfe5463 | 45 | co[AliTRDpwgppHelper::kEventInfo] = mgr->CreateContainer("eventInfo", AliTRDeventInfo::Class(), AliAnalysisManager::kExchangeContainer); |
46 | co[AliTRDpwgppHelper::kTracksBarrel] = mgr->CreateContainer("tracksBarrel", TObjArray::Class(), AliAnalysisManager::kExchangeContainer); | |
95d47440 | 47 | co[AliTRDpwgppHelper::kTracksITS] = mgr->CreateContainer("tracksITS", TObjArray::Class(), AliAnalysisManager::kExchangeContainer); |
2bfe5463 | 48 | co[AliTRDpwgppHelper::kTracksSA] = mgr->CreateContainer("tracksSA", TObjArray::Class(), AliAnalysisManager::kExchangeContainer); |
49 | co[AliTRDpwgppHelper::kTracksKink] = mgr->CreateContainer("tracksKink", TObjArray::Class(), AliAnalysisManager::kExchangeContainer); | |
50 | co[AliTRDpwgppHelper::kV0List] = mgr->CreateContainer("v0List", TObjArray::Class(), AliAnalysisManager::kExchangeContainer); | |
51 | co[AliTRDpwgppHelper::kClusters] = mgr->CreateContainer("clusters", TObjArray::Class(), AliAnalysisManager::kExchangeContainer); | |
52 | for(Int_t ios(1);ios<AliTRDpwgppHelper::kNOutSlots-1;ios++) mgr->ConnectOutput(info, ios, co[ios]); | |
058c3053 | 53 | |
54 | // add last monitor container | |
76106bcc | 55 | AliAnalysisDataContainer *mon=mgr->CreateContainer(info->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, Form("%s:TRD_Performance",mgr->GetCommonFileName())); |
2bfe5463 | 56 | mgr->ConnectOutput(info, AliTRDpwgppHelper::kNOutSlots-1, mon); |
1ee39b3a | 57 | } |
58 |