ROOT logo
#ifndef ROOT_THaDecData
#define ROOT_THaDecData

//////////////////////////////////////////////////////////////////////////
//
// THaDecData
//
//////////////////////////////////////////////////////////////////////////

#include "THaApparatus.h"
#include "THashList.h"
#include "BdataLoc.h"

class TString;

class THaDecData : public THaApparatus {
  
public:
  THaDecData( const char* name = "D",
	      const char* description = "Raw decoder data" );
  virtual ~THaDecData();

  virtual EStatus Init( const TDatime& run_time );
  virtual void    Clear( Option_t* opt="" );
  virtual Int_t   Decode( const THaEvData& );
  virtual void    Print( Option_t* opt="" ) const;

  // Disabled functions from THaApparatus
  virtual Int_t   AddDetector( THaDetector* det ) { return 0; }
  virtual Int_t   Reconstruct() { return 0; }

protected:
  UInt_t          evtype;      // CODA event type
  UInt_t          evtypebits;  // Bitpattern of active trigger numbers
  THashList       fBdataLoc;   // Raw data channels

  virtual Int_t   DefineVariables( EMode mode = kDefine );
  virtual FILE*   OpenFile( const TDatime& date );
  virtual Int_t   ReadDatabase( const TDatime& date );

  Int_t           DefineLocType( const BdataLoc::BdataLocType& loctype,
				 const TString& configstr, bool re_init );

  ClassDef(THaDecData,0)
};

#endif
 THaDecData.h:1
 THaDecData.h:2
 THaDecData.h:3
 THaDecData.h:4
 THaDecData.h:5
 THaDecData.h:6
 THaDecData.h:7
 THaDecData.h:8
 THaDecData.h:9
 THaDecData.h:10
 THaDecData.h:11
 THaDecData.h:12
 THaDecData.h:13
 THaDecData.h:14
 THaDecData.h:15
 THaDecData.h:16
 THaDecData.h:17
 THaDecData.h:18
 THaDecData.h:19
 THaDecData.h:20
 THaDecData.h:21
 THaDecData.h:22
 THaDecData.h:23
 THaDecData.h:24
 THaDecData.h:25
 THaDecData.h:26
 THaDecData.h:27
 THaDecData.h:28
 THaDecData.h:29
 THaDecData.h:30
 THaDecData.h:31
 THaDecData.h:32
 THaDecData.h:33
 THaDecData.h:34
 THaDecData.h:35
 THaDecData.h:36
 THaDecData.h:37
 THaDecData.h:38
 THaDecData.h:39
 THaDecData.h:40
 THaDecData.h:41
 THaDecData.h:42
 THaDecData.h:43
 THaDecData.h:44
 THaDecData.h:45
 THaDecData.h:46
 THaDecData.h:47