]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDcalibDB.h
Histos for ZN vs. ZP correlations
[u/mrichter/AliRoot.git] / TRD / AliTRDcalibDB.h
index 64619f19dc09369118d191cacec220b826aa0423..a3d440c6e002e1e089bd4e0af400c1cc07895b52 100644 (file)
@@ -23,6 +23,9 @@
 #include "AliTRDPIDResponse.h"
 #endif
 
+#include "AliTRDCalTrapConfig.h"
+#include "AliTRDtrapConfig.h"
+
 class TString;
 
 class AliCDBEntry;
@@ -45,6 +48,13 @@ class AliTRDcalibDB : public TObject {
        , kNsector =  18
        , kNdet    = 540 };
   
+  enum { kFltrSet = 1
+       , kReadout
+       , kTimebin
+       , kTrkMode
+       , kTrigSet
+       , kAddOpti };
+
   static AliTRDcalibDB               *Instance();
   static void                         Terminate();
 
@@ -59,7 +69,7 @@ class AliTRDcalibDB : public TObject {
   Float_t                             GetVdriftAverage(Int_t det);
         AliTRDCalROC                 *GetVdriftROC(Int_t det);
   const AliTRDCalDet                 *GetVdriftDet();
-
+  TObjArray                          *GetPHQ();
   const AliTRDCalDet                 *GetExBDet();
 
   Float_t                             GetT0(Int_t det, Int_t col, Int_t row);
@@ -87,6 +97,7 @@ class AliTRDcalibDB : public TObject {
   void                                GetFilterType(TString &filterType);
   void                                GetGlobalConfiguration(TString &config);
   void                                GetGlobalConfigurationVersion(TString &version);
+  void                                GetDCSConfigParOption(Int_t cfgType, Int_t option, TString &cfgo);
 
   Int_t                               GetOnlineGainTableID();
 
@@ -119,8 +130,15 @@ class AliTRDcalibDB : public TObject {
   Int_t                               PadResponse(Double_t signal, Double_t dist
                                                 , Int_t layer, Double_t *pad) const;
 
+  AliTRDtrapConfig*                   GetTrapConfig();
+  void                                GetTrapConfig(TString &name, TString &version) { name = fTrapConfigName; version = fTrapConfigVersion; }
+  void                                SetTrapConfig(const TString name, const TString version) { fTrapConfigName = name; fTrapConfigVersion = version; }
+  void                                SetTrapConfig(AliTRDtrapConfig *trapcfg) { fTrapConfig = trapcfg; }
+
  protected:
 
+  AliTRDtrapConfig*                   LoadTrapConfig(const TString &name = "", const TString &version = "");
+
   // For caching see also implentation of GetCachedCDBObject in the .cxx file
   enum { kIDVdriftPad = 0
        , kIDVdriftChamber
@@ -134,6 +152,7 @@ class AliTRDcalibDB : public TObject {
        , kIDNoisePad
        , kIDPRFWidth
        , kIDFEE
+       , kIDTrapConfig
        , kIDChamberPos
        , kIDStackPos
        , kIDSuperModulePos
@@ -146,6 +165,7 @@ class AliTRDcalibDB : public TObject {
        , kIDPadStatus
        , kIDDCS
        , kIDAttach
+       , kIDPHQ
        , kCDBCacheSize };         // IDs of cached objects
 
   const TObject *GetCachedCDBObject(Int_t id);
@@ -174,6 +194,10 @@ class AliTRDcalibDB : public TObject {
   AliTRDPIDResponse    *fPIDResponse;               //  TRD PID Response function
 
   Int_t                 fOnlineGainTableID;         //  ID for online gain table 
+
+  AliTRDtrapConfig*     fTrapConfig;                //  TRAP configuration
+  TString               fTrapConfigName;            //  name of the TRAPconfig
+  TString               fTrapConfigVersion;         //  version of the TRAPconfig
   
  private:
 
@@ -182,7 +206,7 @@ class AliTRDcalibDB : public TObject {
   AliTRDcalibDB &operator=(const AliTRDcalibDB &c); 
   virtual ~AliTRDcalibDB();
 
-  ClassDef(AliTRDcalibDB, 7)                        //  Provides central access to the CDB
+  ClassDef(AliTRDcalibDB, 8)                        //  Provides central access to the CDB
 
 };