drop trigger selection in AliTRDinfoGen
[u/mrichter/AliRoot.git] / PWG1 / TRD / macros / AddTRDinfoGen.C
CommitLineData
1ee39b3a 1#if ! defined (__CINT__) || defined (__MAKECINT__)
3f19c2cd 2#include "AliLog.h"
1ee39b3a 3#include "AliAnalysisManager.h"
4#include "AliAnalysisDataContainer.h"
d4f4bb29 5#include "PWG1/TRD/AliTRDinfoGen.h"
99535225 6#include "PWG1/TRD/AliTRDpwg1Helper.h"
d4f4bb29 7#include "PWG1/TRD/info/AliTRDeventInfo.h"
35983729 8#include "PWG1/TRD/info/AliTRDeventCuts.h"
1ee39b3a 9#endif
10
a7fa310f 11void AddTRDinfoGen(AliAnalysisManager *mgr, Int_t /*map*/, AliAnalysisDataContainer **/*ci*/, AliAnalysisDataContainer **co)
1ee39b3a 12{
99535225 13 Bool_t mc=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);
44b4e66d 18 info->SetMCdata(mc);
2589cf64 19 info->SetLocalTrkSelection();
801d4d50 20 info->SetOCDB("alien://folder=/alice/data/2010/OCDB");
3f19c2cd 21 // settings for collisions
55d5090e 22 info->SetCollision(/*kFALSE*/);
3f19c2cd 23 if(info->IsCollision()){
35983729 24 AliTRDeventCuts ec;
61f1cfc8 25 if(mc){
26 ec.SetEventType(0);
27// ec.AddTrigger("MB1");
28 } else {
35983729 29/* Int_t bunches[] = ;
30 ec.SetBunchSelection();*/
61f1cfc8 31/* ec.AddTrigger("CINT1B-ABCE-NOPF-ALL");
35983729 32 ec.AddTrigger("CINT5-B-NOPF-ALL");
33 ec.AddTrigger("CINT1WU-B-NOPF-ALL");
34 ec.AddTrigger("CINT5WU-B-NOPF-ALL");
35 ec.AddTrigger("CINT7WU-I-NOPF-ALL");
36 ec.AddTrigger("CSCO1-ABCE-NOPF-CENT"); // cosmic SPD trigger
61f1cfc8 37*/
35983729 38 }
39 info->SetLocalEvSelection(ec);
3f19c2cd 40 }
705f8b0a 41
42 // Connect IO slots
3d83da78 43 mgr->ConnectInput (info, 0, mgr->GetCommonInputContainer());
99535225 44 co[AliTRDpwg1Helper::kEventInfo] = mgr->CreateContainer("eventInfo", AliTRDeventInfo::Class(), AliAnalysisManager::kExchangeContainer);
45 co[AliTRDpwg1Helper::kTracksBarrel] = mgr->CreateContainer("tracksBarrel", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
46 co[AliTRDpwg1Helper::kTracksSA] = mgr->CreateContainer("tracksSA", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
47 co[AliTRDpwg1Helper::kTracksKink] = mgr->CreateContainer("tracksKink", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
48 co[AliTRDpwg1Helper::kV0List] = mgr->CreateContainer("v0List", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
49 for(Int_t ios(1);ios<AliTRDpwg1Helper::kNOutSlots-1;ios++) mgr->ConnectOutput(info, ios, co[ios]);
058c3053 50
51 // add last monitor container
76106bcc 52 AliAnalysisDataContainer *mon=mgr->CreateContainer(info->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, Form("%s:TRD_Performance",mgr->GetCommonFileName()));
99535225 53 mgr->ConnectOutput(info, AliTRDpwg1Helper::kNOutSlots-1, mon);
1ee39b3a 54}
55