Continue the initizatiion if no users cut are required
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Jul 2007 15:59:05 +0000 (15:59 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Jul 2007 15:59:05 +0000 (15:59 +0000)
HMPID/AliHMPIDReconstructor.cxx

index 93520d0b2788580859ffd0cc396132e0462a0db8..59822e34b46693312964993024ecc3432564491b 100644 (file)
@@ -46,11 +46,12 @@ AliHMPIDReconstructor::AliHMPIDReconstructor():AliReconstructor(),fUserCut(0),fD
   }
   
   AliCDBEntry *pUserCutEnt =AliCDBManager::Instance()->Get("HMPID/Calib/UserCut");    //contains TObjArray of 14 TObject with n. of sigmas to cut charge 
-  if(!pUserCutEnt) return;                                                            //No request from User to apply a more severe cut on pad charge  
-  TObjArray *pUserCut = (TObjArray*)pUserCutEnt->GetObject(); 
-  for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++){                  //chambers loop 
-    fUserCut[iCh] = pUserCut->At(iCh)->GetUniqueID();
-    Printf("HMPID: UserCut successfully loaded for chamber %i -> %i ",iCh,fUserCut[iCh]);
+  if(pUserCutEnt) {
+    TObjArray *pUserCut = (TObjArray*)pUserCutEnt->GetObject(); 
+    for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++){                  //chambers loop 
+      fUserCut[iCh] = pUserCut->At(iCh)->GetUniqueID();
+      Printf("HMPID: UserCut successfully loaded for chamber %i -> %i ",iCh,fUserCut[iCh]);
+    }
   }