From 3d1b41c1480824f9c711f03005503fffc5066ca0 Mon Sep 17 00:00:00 2001 From: marian Date: Wed, 10 Mar 2010 15:29:37 +0000 Subject: [PATCH] M AliTPCcalibDB.cxx - Missing CTP changed to AliError M AliTPCcalibDButil.cxx - Protection agains missing Offset calibration - One year history M AliTPCTransform.cxx - Check availability of CTP calibration Marian --- TPC/AliTPCTransform.cxx | 7 +++++-- TPC/AliTPCcalibDB.cxx | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/TPC/AliTPCTransform.cxx b/TPC/AliTPCTransform.cxx index 39d95d55004..6781ba97c48 100755 --- a/TPC/AliTPCTransform.cxx +++ b/TPC/AliTPCTransform.cxx @@ -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 diff --git a/TPC/AliTPCcalibDB.cxx b/TPC/AliTPCcalibDB.cxx index 5096afa4930..73a4649b8fd 100644 --- a/TPC/AliTPCcalibDB.cxx +++ b/TPC/AliTPCcalibDB.cxx @@ -444,7 +444,7 @@ void AliTPCcalibDB::Update(){ //entry->SetOwner(kTRUE); fCTPTimeParams=dynamic_cast(entry->GetObject()); }else{ - AliFatal("TPC - Missing calibration entry") + AliError("TPC - Missing calibration entry") } // if (!fTransform) { -- 2.43.0