]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
AliFatal when the number of cuts doesn't match the number of variables
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jul 2011 16:41:11 +0000 (16:41 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jul 2011 16:41:11 +0000 (16:41 +0000)
PWG3/vertexingHF/AliRDHFCuts.cxx

index 4070086f87aa069a0cdcd572846c78d6b7e66b48..d5931250f82d5941c47ccb139c25b1ecab6af8b0 100644 (file)
@@ -488,11 +488,11 @@ void AliRDHFCuts::SetCuts(Int_t nVars,Int_t nPtBins,Float_t **cutsRD) {
   //
   if(nVars!=fnVars) {
     printf("Wrong number of variables: it has to be %d\n",fnVars);
-    return;
+    AliFatal("exiting");
   } 
   if(nPtBins!=fnPtBins) {
     printf("Wrong number of pt bins: it has to be %d\n",fnPtBins);
-    return;
+    AliFatal("exiting");
   } 
 
   if(!fCutsRD)  fCutsRD = new Float_t[fGlobalIndex];
@@ -521,7 +521,7 @@ void AliRDHFCuts::SetCuts(Int_t glIndex,Float_t* cutsRDGlob){
   //
   if(glIndex != fGlobalIndex){
     cout<<"Wrong array size: it has to be "<<fGlobalIndex<<endl;
-    return;
+    AliFatal("exiting");
   }
   if(!fCutsRD)  fCutsRD = new Float_t[fGlobalIndex];