AliPhysics  ff1d528 (ff1d528)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConfigureEventTriggerCaloTrackCorr.C
Go to the documentation of this file.
1 
15 #if !defined(__CINT__) || defined(__MAKECINT__)
16 
17 #include <TString.h>
18 
21 
22 #endif
23 
34 {
35  //printf("ConfigureEventTriggerCaloTrackCorr::Set event trigger class for %s in year %d\n",
36  // trigger.Data(),year);
37 
39 
40  if( trigger.Contains("INT") || trigger.Contains("MB") || trigger.Contains("default") )
41  {
42  task->SelectCollisionCandidates( AliVEvent::kINT7 | AliVEvent::kMB );
43  }
44  else if(trigger.Contains("EMCAL_L0"))
45  {
46  task ->SelectCollisionCandidates( AliVEvent::kEMC7 | AliVEvent::kEMC8 | AliVEvent::kEMC1 );
47  maker->GetReader()->SetFiredTriggerClassName("EMC");
48  }
49  else if(trigger.Contains("DCAL_L0"))
50  {
51  task ->SelectCollisionCandidates( AliVEvent::kEMC7 | AliVEvent::kEMC8 | AliVEvent::kEMC1 );
52  maker->GetReader()->SetFiredTriggerClassName("DMC");
53  }
54  else if(trigger.Contains("EMCAL_L1"))
55  {
56  task ->SelectCollisionCandidates( AliVEvent::kEMCEGA );
57  if(year > 2012) maker->GetReader()->SetFiredTriggerClassName("EG1");
58  // before 2013 only one kind of L1 trigger
59  }
60  else if(trigger.Contains("DCAL_L1"))
61  {
62  task ->SelectCollisionCandidates( AliVEvent::kEMCEGA );
63  maker->GetReader()->SetFiredTriggerClassName("DG1");
64  }
65  else if(trigger.Contains("EMCAL_L1_Run1"))
66  {
67  task ->SelectCollisionCandidates( AliVEvent::kEMCEGA );
68  //maker->GetReader()->SetFiredTriggerClassName("EGA");
69  }
70  else if(trigger.Contains("EMCAL_L2"))
71  {
72  task ->SelectCollisionCandidates( AliVEvent::kEMCEGA );
73  maker->GetReader()->SetFiredTriggerClassName("EG2");
74  }
75  else if(trigger.Contains("DCAL_L2"))
76  {
77  task ->SelectCollisionCandidates( AliVEvent::kEMCEGA );
78  maker->GetReader()->SetFiredTriggerClassName("DG2");
79  }
80 }
81 
void ConfigureEventTriggerCaloTrackCorr(AliAnalysisTaskCaloTrackCorrelation *task, TString trigger, Int_t year)
int Int_t
Definition: External.C:63
Main class conecting the CaloTrackCorrelations package and Analysis Frame.
void SetFiredTriggerClassName(TString name)
AliCaloTrackReader * GetReader()
Steering class of package CaloTrackCorrelartions.