From be28462a69497a390358bed198a62e7c8eca7e0c Mon Sep 17 00:00:00 2001 From: cblume Date: Wed, 5 Aug 2009 09:21:27 +0000 Subject: [PATCH] Coding rules --- TRD/AliTRDcalibDB.cxx | 16 +++++++--------- TRD/AliTRDcalibDB.h | 8 ++++---- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/TRD/AliTRDcalibDB.cxx b/TRD/AliTRDcalibDB.cxx index f6ff74c88fc..61080eaca3e 100644 --- a/TRD/AliTRDcalibDB.cxx +++ b/TRD/AliTRDcalibDB.cxx @@ -28,20 +28,13 @@ // // /////////////////////////////////////////////////////////////////////////////// -#include -#include #include #include "AliCDBManager.h" -#include "AliCDBStorage.h" #include "AliCDBEntry.h" #include "AliLog.h" #include "AliTRDcalibDB.h" -#include "AliTRDrecoParam.h" -#include "AliTRDgeometry.h" -#include "AliTRDpadPlane.h" -#include "AliTRDCommonParam.h" #include "Cal/AliTRDCalROC.h" #include "Cal/AliTRDCalPad.h" @@ -821,14 +814,19 @@ Char_t AliTRDcalibDB::GetChamberStatus(Int_t det) //_____________________________________________________________________________ AliTRDrecoParam* AliTRDcalibDB::GetRecoParam(Int_t */*eventtype*/) { + // + // Returns the TRD reconstruction parameters from the OCDB + // + const TClonesArray *recos = dynamic_cast(GetCachedCDBObject(kIDRecoParam)); - if(!recos) return 0x0; + if (!recos) return 0x0; // calculate entry based on event type info Int_t n = 0; //f(eventtype[0], eventtype[1], ....) + return (AliTRDrecoParam*)recos->UncheckedAt(n); -} +} //_____________________________________________________________________________ Bool_t AliTRDcalibDB::IsPadMasked(Int_t det, Int_t col, Int_t row) diff --git a/TRD/AliTRDcalibDB.h b/TRD/AliTRDcalibDB.h index ae68497b92d..d8f2d6702ed 100644 --- a/TRD/AliTRDcalibDB.h +++ b/TRD/AliTRDcalibDB.h @@ -64,10 +64,10 @@ class AliTRDcalibDB : public TObject { AliTRDCalROC *GetPRFROC(Int_t det); Float_t GetPRFWidth(Int_t det, Int_t col, Int_t row); - Float_t* GetSampledPRF() { return fPRFsmp; }; - Int_t GetPRFbin() { return fPRFbin; }; - Float_t GetPRFlo() { return fPRFlo; }; - Float_t GetPRFhi() { return fPRFhi; }; + Float_t* GetSampledPRF() const { return fPRFsmp; }; + Int_t GetPRFbin() const { return fPRFbin; }; + Float_t GetPRFlo() const { return fPRFlo; }; + Float_t GetPRFhi() const { return fPRFhi; }; Int_t GetNumberOfTimeBins(); -- 2.39.3