Add possible external trigger switch (A.Alici)
authorzconesa <zaida.conesa.del.valle@cern.ch>
Tue, 6 Jan 2015 13:28:27 +0000 (14:28 +0100)
committerzconesa <zaida.conesa.del.valle@cern.ch>
Tue, 6 Jan 2015 13:28:27 +0000 (14:28 +0100)
PWGHF/vertexingHF/AliAnalysisTaskSELc2V0bachelorTMVA.cxx [changed mode: 0644->0755]
PWGHF/vertexingHF/AliAnalysisTaskSELc2V0bachelorTMVA.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 6ba1ace..000a1fd
@@ -190,7 +190,8 @@ AliAnalysisTaskSE(),
   fKeepingOnlyPYTHIABkg(kFALSE),
   fHistoMCLcK0SpGen(0x0),
   fHistoMCLcK0SpGenAcc(0x0),
-  fHistoMCLcK0SpGenLimAcc(0x0)
+  fHistoMCLcK0SpGenLimAcc(0x0),
+  fTriggerMask(0)
 {
   //
   // Default ctor
@@ -313,8 +314,8 @@ AliAnalysisTaskSELc2V0bachelorTMVA::AliAnalysisTaskSELc2V0bachelorTMVA(const Cha
   fKeepingOnlyPYTHIABkg(kFALSE),
   fHistoMCLcK0SpGen(0x0),
   fHistoMCLcK0SpGenAcc(0x0),
-  fHistoMCLcK0SpGenLimAcc(0x0)
-
+  fHistoMCLcK0SpGenLimAcc(0x0),
+  fTriggerMask(0)
 {
   //
   // Constructor. Initialization of Inputs and Outputs
@@ -890,7 +891,7 @@ void AliAnalysisTaskSELc2V0bachelorTMVA::UserExec(Option_t *)
   
   if ( !fUseMCInfo && fIspA) {
     fAnalCuts->SetTriggerClass("");
-    fAnalCuts->SetTriggerMask(AliVEvent::kINT7);
+    fAnalCuts->SetTriggerMask(fTriggerMask);
   }
   
   Int_t runnumber = aodEvent->GetRunNumber();
old mode 100644 (file)
new mode 100755 (executable)
index 9429fed..8124202
@@ -121,7 +121,9 @@ class AliAnalysisTaskSELc2V0bachelorTMVA : public AliAnalysisTaskSE
 
   void SetKeepingKeepingOnlyPYTHIABkg(Bool_t a) { fKeepingOnlyPYTHIABkg = a;}
   Bool_t GetKeepingOnlyPYTHIABkg() {return fKeepingOnlyPYTHIABkg;}
-
+       
+  void SetTriggerMask(ULong64_t c) { fTriggerMask = c;}        
+       
  private:
   
   EBachelor CheckBachelor(AliAODRecoCascadeHF *part, AliAODTrack* bachelor, TClonesArray *mcArray);
@@ -259,7 +261,9 @@ class AliAnalysisTaskSELc2V0bachelorTMVA : public AliAnalysisTaskSE
   TH1F* fHistoMCLcK0SpGenAcc;         //! histo with MC Lc --> K0S + p
   TH1F* fHistoMCLcK0SpGenLimAcc;      //! histo with MC Lc --> K0S + p
 
-  ClassDef(AliAnalysisTaskSELc2V0bachelorTMVA, 6); // class for Lc->p K0
+  ULong64_t fTriggerMask;                        //! mask to the trigger word returned by the physics selection
+       
+  ClassDef(AliAnalysisTaskSELc2V0bachelorTMVA, 7); // class for Lc->p K0
 };
 
 #endif