- separate EMC7 and EMC8 triggers by class name
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Oct 2013 18:26:28 +0000 (18:26 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Oct 2013 18:26:28 +0000 (18:26 +0000)
- add EMCEJE and EMCEGA triggers for comparison

PWGJE/UserTasks/AliAnalysisTaskJetsTriggerTRD.cxx
PWGJE/UserTasks/AliAnalysisTaskJetsTriggerTRD.h

index 08b8d6e..9130a3a 100644 (file)
@@ -117,6 +117,8 @@ void AliAnalysisTaskJetsTriggerTRD::UserCreateOutputObjects()
     h->GetYaxis()->SetBinLabel(ID(kTrgInt8WUHJT));
     h->GetYaxis()->SetBinLabel(ID(kTrgEMC7WUHJT));
     h->GetYaxis()->SetBinLabel(ID(kTrgEMC8WUHJT));
+    h->GetYaxis()->SetBinLabel(ID(kTrgEMCEJE));
+    h->GetYaxis()->SetBinLabel(ID(kTrgEMCEGA));
   }
 
   AddHistogram(ID(kHistJetPtNoTracks3),
@@ -397,13 +399,21 @@ Bool_t AliAnalysisTaskJetsTriggerTRD::DetectTriggers()
   if ((physSel & (AliVEvent::kINT8)))
     MarkTrigger(kTrgInt8);
 
-  if ((physSel & (AliVEvent::kEMC7)))
+  if ((physSel & (AliVEvent::kEMC7)) &&
+      trgClasses.Contains("CEMC7"))
     MarkTrigger(kTrgEMC7);
 
-  if ((physSel & (AliVEvent::kEMC8)))
+  if ((physSel & (AliVEvent::kEMC8)) &&
+      trgClasses.Contains("CEMC8"))
     MarkTrigger(kTrgEMC8);
 
-  // for the triggered events we use the classes
+  if ((physSel & (AliVEvent::kEMCEJE)))
+    MarkTrigger(kTrgEMCEJE);
+
+  if ((physSel & (AliVEvent::kEMCEGA)))
+    MarkTrigger(kTrgEMCEGA);
+
+  // for the TRD-triggered events we use the classes
   if (trgClasses.Contains("CINT7WUHJT-"))
     MarkTrigger(kTrgInt7WUHJT);
 
index ab154d1..5217db0 100644 (file)
@@ -70,6 +70,8 @@ public:
     kTrgInt8WUHJT,
     kTrgEMC7WUHJT,
     kTrgEMC8WUHJT,
+    kTrgEMCEJE,
+    kTrgEMCEGA,
     //
     kTrgLast
   };