Protection if UserCut not present in OCDB (Sigma=3 as default)
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Apr 2008 11:56:29 +0000 (11:56 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Apr 2008 11:56:29 +0000 (11:56 +0000)
HMPID/AliHMPIDReconstructor.cxx

index bfc4b12d8aa7b5523229b143ca78613b7e21ff5a..e38cd056d5a76f86e3b944a0785f320f1148deb1 100644 (file)
@@ -65,6 +65,7 @@ AliHMPIDReconstructor::AliHMPIDReconstructor():AliReconstructor(),fUserCut(0),fD
       AliDebug(1,Form("UserCut successfully loaded (from OCDB) for chamber %i -> %i ",iCh,fUserCut[iCh]));
     }
    }
+   else {for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) fUserCut[iCh] = 3;}
   }
 
   AliCDBEntry *pQthreEnt =AliCDBManager::Instance()->Get("HMPID/Calib/Qthre"); //contains TObjArray of 7 TF1