#include "AliTRDPIDResponse.h"
#endif
+#include "AliTRDCalTrapConfig.h"
+#include "AliTRDtrapConfig.h"
+
class TString;
class AliCDBEntry;
, kNsector = 18
, kNdet = 540 };
+ enum { kFltrSet = 1
+ , kReadout
+ , kTimebin
+ , kTrkMode
+ , kTrigSet
+ , kAddOpti };
+
static AliTRDcalibDB *Instance();
static void Terminate();
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);
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();
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
, kIDNoisePad
, kIDPRFWidth
, kIDFEE
+ , kIDTrapConfig
, kIDChamberPos
, kIDStackPos
, kIDSuperModulePos
, kIDPadStatus
, kIDDCS
, kIDAttach
+ , kIDPHQ
, kCDBCacheSize }; // IDs of cached objects
const TObject *GetCachedCDBObject(Int_t id);
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:
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
};