Trigger inputs for AOD MC
authormbroz <Michal.Broz@cern.ch>
Thu, 2 Oct 2014 13:03:27 +0000 (15:03 +0200)
committermbroz <Michal.Broz@cern.ch>
Thu, 2 Oct 2014 13:03:27 +0000 (15:03 +0200)
PWGUD/UPC/AliAnalysisTaskUpcPsi2s.cxx

index bf1b385..0c3a426 100644 (file)
@@ -1083,6 +1083,12 @@ void AliAnalysisTaskUpcPsi2s::RunAODtree()
 void AliAnalysisTaskUpcPsi2s::RunAODMC(AliAODEvent *aod)
 {
 
+  fL0inputs = aod->GetHeader()->GetL0TriggerInputs();
+  fTriggerInputsMC[0] = kFALSE;//0SM2
+  fTriggerInputsMC[1] = fL0inputs & (1 << 0);//0VBA
+  fTriggerInputsMC[2] = fL0inputs & (1 << 1);//0VBC
+  fTriggerInputsMC[3] = fL0inputs & (1 << 9);//0OMU
+
   fGenPart->Clear("C");
 
   TClonesArray *arrayMC = (TClonesArray*) aod->GetList()->FindObject(AliAODMCParticle::StdBranchName());