]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDcalibDB.h
Separate syswatch for sim. and rec.
[u/mrichter/AliRoot.git] / TRD / AliTRDcalibDB.h
index 399eca017daa0e0c5bee2b2f3568a29d37b7fb70..3ce576997e834a5778df1a7b882a7d28e1879613 100644 (file)
 #include "TObject.h"
 #endif
 
-#ifndef ALITRDRECOPARAM_H
-#include "AliTRDrecoParam.h"
+#ifndef ALITRDPIDUTIL_H
+#include "AliTRDpidUtil.h"
 #endif
 
 class AliCDBEntry;
 
+class AliTRDrecoParam;
 class AliTRDCalPID;
 class AliTRDCalMonitoring;
 class AliTRDCalROC;
 class AliTRDCalDet;
 class AliTRDCalSingleChamberStatus;
-
+class TString;
 class AliTRDcalibDB : public TObject {
 
  public:
@@ -64,12 +65,13 @@ 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();
+  Int_t                               GetNumberOfTimeBinsDCS();
+  void                                GetFilterType(TString &filterType);
 
   Char_t                              GetPadStatus(Int_t det, Int_t col, Int_t row);
   AliTRDCalSingleChamberStatus       *GetPadStatusROC(Int_t det);
@@ -84,19 +86,19 @@ class AliTRDcalibDB : public TObject {
   
   Bool_t                              IsChamberInstalled(Int_t det);
   Bool_t                              IsChamberMasked(Int_t det);
+  Bool_t                              IsHalfChamberMasked(Int_t det, Int_t side);
 
   const AliTRDCalMonitoring          *GetMonitoringObject();
-  const AliTRDCalPID                 *GetPIDObject(AliTRDrecoParam::AliTRDpidMethod method);
+  const AliTRDCalPID                 *GetPIDObject(AliTRDpidUtil::ETRDPIDMethod m);
 
   // Related functions, these depend on calibration data
-  static Float_t                      GetOmegaTau(Float_t vdrift, Float_t bz);
          Int_t                        PadResponse(Double_t signal, Double_t dist
                                                 , Int_t layer, Double_t *pad) const;
-  
+
  protected:
 
   // For caching see also implentation of GetCachedCDBObject in the .cxx file
-  enum { kCDBCacheSize = 19 };   // Number of cached objects
+  enum { kCDBCacheSize = 20 };   // Number of cached objects
   enum { kIDVdriftPad = 0
        , kIDVdriftChamber
        , kIDT0Pad
@@ -115,7 +117,8 @@ class AliTRDcalibDB : public TObject {
        , kIDRecoParam
        , kIDMonitoringData
        , kIDChamberStatus
-       , kIDPadStatus };         // IDs of cached objects
+       , kIDPadStatus
+       , kIDDCS };         // IDs of cached objects
 
   const TObject *GetCachedCDBObject(Int_t id);
   
@@ -152,3 +155,4 @@ class AliTRDcalibDB : public TObject {
 };
 
 #endif
+