]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFFEEReader.h
enable keyword substitution
[u/mrichter/AliRoot.git] / TOF / AliTOFFEEReader.h
index ef08bcd491c041308430eb548f15d298abcfba0c..c071227a95f247547f7da8f24c02e2c1c61ef7bc 100644 (file)
@@ -18,6 +18,7 @@
 //#include "AliTOFGeometry.h"
 
 class AliTOFFEEConfig;
+class AliTOFFEElightConfig;
 
 class AliTOFFEEReader :
 public TObject 
@@ -37,32 +38,57 @@ public TObject
   static Int_t GetNumberOfTDCs() {return fgkNumberOfTDCs;}; // get number of TDCs
   static Int_t GetNumberOfChannels() {return fgkNumberOfChannels;}; // get number of channels
   static Int_t GetNumberOfIndexes() {return fgkNumberOfIndexes;}; // get number of indexes
+  static Int_t GetNumberOfIndexesEO() {return fgkNumberOfIndexesEO;}; // get number of indexes EO
   AliTOFFEEConfig *GetFEEConfig() const {return fFEEConfig;}; // get FEE config
+  AliTOFFEElightConfig *GetFEElightConfig() const {return fFEElightConfig;}; // get FEElight config
   Bool_t GetChannelEnabled(Int_t iIndex) const {return iIndex < GetNumberOfIndexes() ? fChannelEnabled[iIndex] : kFALSE;}; // get channel enabled
-  
+  Int_t GetMatchingWindow(Int_t iIndex) const {return iIndex < GetNumberOfIndexes() ? fMatchingWindow[iIndex] : 0;}; // get matching window
+  Int_t GetLatencyWindow(Int_t iIndex) const {return iIndex < GetNumberOfIndexes() ? fLatencyWindow[iIndex] : 0;}; // get latency window
+  UInt_t GetTriggerMask(Int_t iddl) const {return iddl < GetNumberOfDDLs() ? fTriggerMask[iddl] : 0;}; // get trigger mask
+  UInt_t *GetTriggerMaskArray() {return fTriggerMask;}; // get trigger mask array
+
   /* setters */
   
   /* methods */
+
+  /* TOFFEE methods */
   void LoadFEEConfig(const Char_t *FileName) const; // load FEE config
   void DumpFEEConfig(); // dump FEE config
   Int_t ParseFEEConfig(); // parse FEE config
+
+  /* TOFFEElight methods */
+  void LoadFEElightConfig(const Char_t *FileName) const; // load FEElight config
+  void CreateFEElightConfig(const Char_t *filename); // create FEElight config
+  Int_t ParseFEElightConfig(); // parse FEElight config
+
   void ResetChannelEnabledArray(); // reset channel enabled array
-  Bool_t IsChannelEnabled(Int_t iDDL, Int_t iTRM, Int_t iChain, Int_t iTDC, Int_t iChannel) const; // is channel enabled
+  void ResetTriggerMaskArray(); // reset trigger mask array
+  void Reset(); // reset channel enabled array
   Bool_t IsChannelEnabled(Int_t iIndex) const {return GetChannelEnabled(iIndex);}; // is channel enabled
   
  private:
 
+  /* TOFFEE */
+  Bool_t IsChannelEnabled(Int_t iDDL, Int_t iTRM, Int_t iChain, Int_t iTDC, Int_t iChannel) const; // is channel enabled (from TOFFEE)
+  Int_t GetMatchingWindow(Int_t iDDL, Int_t iTRM, Int_t iChain, Int_t iTDC, Int_t iChannel) const; // get matching window (from TOFFEE)
+
   static const Int_t fgkNumberOfDDLs = 72; // number of DDLs
   static const Int_t fgkNumberOfTRMs = 10; // number of TRMs
   static const Int_t fgkNumberOfChains = 2; // number of chains
   static const Int_t fgkNumberOfTDCs = 15; // number of TDCs
   static const Int_t fgkNumberOfChannels = 8; // number of channels
   static const Int_t fgkNumberOfIndexes = 157248; // number of indexes
+  static const Int_t fgkNumberOfIndexesEO = 172800; // number of indexes EO
 
   AliTOFFEEConfig *fFEEConfig; // FEE config
+  AliTOFFEElightConfig *fFEElightConfig; // FEElight config
   Bool_t fChannelEnabled[fgkNumberOfIndexes]; // channel enabled
+  Int_t fMatchingWindow[fgkNumberOfIndexes]; // matching window
+  Int_t fLatencyWindow[fgkNumberOfIndexes]; // matching window
+
+  UInt_t fTriggerMask[fgkNumberOfDDLs]; // trigger mask
 
-  ClassDef(AliTOFFEEReader, 1);
+  ClassDef(AliTOFFEEReader, 2);
 
 };