]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDcalibDB.h
- enable tracklet simulation with TRAPconfig taken from OCDB object
[u/mrichter/AliRoot.git] / TRD / AliTRDcalibDB.h
index 5a9db47e05c89bd35e918f811e398da3c8c65e67..ba1a40d4068d29d522bab2b40f094dd27d3dcad6 100644 (file)
@@ -123,11 +123,14 @@ class AliTRDcalibDB : public TObject {
                                                 , 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; }
-  AliTRDtrapConfig*                   LoadTrapConfig(const TString &name = "", const TString &version = "");
 
  protected:
 
+  AliTRDtrapConfig*                   LoadTrapConfig(const TString &name = "", const TString &version = "");
+
   // For caching see also implentation of GetCachedCDBObject in the .cxx file
   enum { kIDVdriftPad = 0
        , kIDVdriftChamber
@@ -185,6 +188,8 @@ class AliTRDcalibDB : public TObject {
   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:
 
@@ -193,7 +198,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
 
 };