Fix range of random generator to pick trigger particle
authormvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 May 2013 09:48:41 +0000 (09:48 +0000)
committermvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 May 2013 09:48:41 +0000 (09:48 +0000)
PWGJE/AliAnalysisTaskJetCore.cxx

index 05b8623..50b6d4c 100644 (file)
@@ -1220,7 +1220,7 @@ Int_t  AliAnalysisTaskJetCore::SelectTrigger(TList *list,Double_t minT,Double_t
      }
       Int_t rd=0;
       if(im==0) rd=0;
-      if(im>0) rd=fRandom->Integer(im-1);
+      if(im>0) rd=fRandom->Integer(im);
       index=triggers[rd];