]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFFEElightConfig.h
updated ldap schema
[u/mrichter/AliRoot.git] / TOF / AliTOFFEElightConfig.h
index 62188fb4af86e22de0e2158bde5387913aa90047..9ae1e3f61ac1ab01a6ccfda202734a8130b1dd0a 100644 (file)
@@ -29,10 +29,17 @@ class AliTOFFEEchannelConfig
   Int_t fLatencyWindow; // latency window [ns]
 
  public:
+  AliTOFFEEchannelConfig() : fStatus(0x0), fMatchingWindow(0), fLatencyWindow(0) {}; // default construct
+  ~AliTOFFEEchannelConfig() {}; // default destructor
+
   UChar_t GetStatus() const {return fStatus;}; // get status
   Int_t GetMatchingWindow() const {return fMatchingWindow;}; // get matching window
   Int_t GetLatencyWindow() const {return fLatencyWindow;}; // get latency window
 
+  void SetStatus(UChar_t value) {fStatus = value;}; // set status
+  void SetMatchingWindow(Int_t value) {fMatchingWindow = value;}; // set matching window
+  void SetLatencyWindow(Int_t value) {fLatencyWindow = value;}; // set latency window
+
   Bool_t IsEnabled() const {return (GetStatus() & kStatusEnabled);}; // is enabled
 
 };
@@ -43,17 +50,24 @@ class AliTOFFEElightConfig
 {
 
  private:
-  static const Int_t fgkNumberOfChannels = 157248; // number of channels
+  static const Int_t fgkNumberOfChannels = 172800; // number of channels
   Int_t fVersion; // version
   Int_t fRunNumber; // run number
   Int_t fRunType; // run type
   AliTOFFEEchannelConfig fChannelConfig[fgkNumberOfChannels]; // channel config array
 
  public:
+  AliTOFFEElightConfig() : fVersion(0), fRunNumber(0), fRunType(0), fChannelConfig() {}; // default construct
+  ~AliTOFFEElightConfig() {}; // default destructor
+
   Int_t GetVersion() const {return fVersion;}; // get version
   Int_t GetRunNumber() const {return fRunNumber;}; // get run number
   Int_t GetRunType() const {return fRunType;}; // get run type
-  AliTOFFEEchannelConfig *GetChannelConfig(Int_t i) {return i < fgkNumberOfChannels ? &fChannelConfig[i] : NULL;}; // get channel config
+  AliTOFFEEchannelConfig *GetChannelConfig(Int_t i) {return (i < fgkNumberOfChannels ? &fChannelConfig[i] : NULL);}; // get channel config
+
+  void SetVersion(Int_t value) {fVersion = value;}; // get version
+  void SetRunNumber(Int_t value) {fRunNumber = value;}; // get run number
+  void SetRunType(Int_t value) {fRunType = value;}; // get run type
 
 };