]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
M AliTPCcalibDB.cxx - Missing CTP changed to AliError
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Mar 2010 15:29:37 +0000 (15:29 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Mar 2010 15:29:37 +0000 (15:29 +0000)
M      AliTPCcalibDButil.cxx       - Protection agains missing Offset calibration - One year history
M      AliTPCTransform.cxx         - Check availability of CTP calibration

Marian

TPC/AliTPCTransform.cxx
TPC/AliTPCcalibDB.cxx

index 39d95d55004e7ffd362a14686b28044aa70ce6ff..6781ba97c48d24dd09a3c4eb905e98230df63649 100755 (executable)
@@ -341,8 +341,11 @@ void AliTPCTransform::Local2RotatedGlobal(Int_t sector, Double_t *x) const {
   if (AliTPCcalibDB::Instance()->IsTrgL0()){
     // by defualt we assume L1 trigger is used - make a correction in case of  L0
     AliCTPTimeParams* ctp = AliTPCcalibDB::Instance()->GetCTPTimeParams();
-    Double_t delay = ctp->GetDelayL1L0()*0.000000025;
-    x[2]-=delay/param->GetTSample();
+    if (ctp){
+      //for TPC standalone runs no ctp info
+      Double_t delay = ctp->GetDelayL1L0()*0.000000025;
+      x[2]-=delay/param->GetTSample();
+    }
   }
   x[2]-= param->GetNTBinsL1();
   x[2]*= zwidth;  // tranform time bin to the distance to the ROC
index 5096afa49304e014bd9f83806d0919a29f4621c3..73a4649b8fd8d66a760e1b7ee3ee0ea3f89e8e5d 100644 (file)
@@ -444,7 +444,7 @@ void AliTPCcalibDB::Update(){
     //entry->SetOwner(kTRUE);
     fCTPTimeParams=dynamic_cast<AliCTPTimeParams*>(entry->GetObject());
   }else{
-    AliFatal("TPC - Missing calibration entry")
+    AliError("TPC - Missing calibration entry")
   }  
   //
   if (!fTransform) {