Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
DecData.h
Go to the documentation of this file.
1#ifndef Podd_DecData_h_
2#define Podd_DecData_h_
3
5//
6// Podd::DecData
7//
9
10#include "THaApparatus.h"
11#include "THashList.h"
12#include "BdataLoc.h"
13
14class TString;
15
16namespace Podd {
17
18class DecData : public THaApparatus {
19
20public:
21 explicit DecData( const char* name = "D",
22 const char* description = "Raw decoder data" );
23 virtual ~DecData();
24
25 virtual EStatus Init( const TDatime& run_time );
26 virtual void Clear( Option_t* opt="" );
27 virtual Int_t Decode( const THaEvData& );
28 virtual void Print( Option_t* opt="" ) const;
29 virtual void Reset( Option_t* opt="" );
30
31 // Disabled functions from THaApparatus
32 virtual Int_t AddDetector( THaDetector*, Bool_t, Bool_t ) { return 0; }
33 virtual Int_t Reconstruct() { return 0; }
34
35protected:
36 UInt_t evtype; // CODA event type
37 UInt_t evtypebits; // Bitpattern of active trigger numbers
38 THashList fBdataLoc; // Raw data channels
39
40 virtual Int_t DefineVariables( EMode mode = kDefine );
41 virtual Int_t ReadDatabase( const TDatime& date );
42
44 const TString& configstr, bool re_init );
45
46 // Expansion hooks for ReadDatabase
47 virtual Int_t SetupDBVersion( FILE* file, Int_t db_version );
48 virtual Int_t GetConfigstr( FILE* file, const TDatime& date,
49 Int_t db_version,
50 const BdataLoc::BdataLocType& loctype,
51 TString& configstr );
52
54};
55
56} // namespace Podd
57
58#endif
int Int_t
unsigned int UInt_t
bool Bool_t
const char Option_t
#define ClassDef(name, id)
char name[80]
virtual Int_t ReadDatabase(const TDatime &date)
Definition DecData.cxx:309
virtual Int_t GetConfigstr(FILE *file, const TDatime &date, Int_t db_version, const BdataLoc::BdataLocType &loctype, TString &configstr)
Definition DecData.cxx:298
virtual Int_t SetupDBVersion(FILE *file, Int_t db_version)
Definition DecData.cxx:288
virtual void Reset(Option_t *opt="")
Definition DecData.cxx:128
Int_t DefineLocType(const BdataLoc::BdataLocType &loctype, const TString &configstr, bool re_init)
Definition DecData.cxx:164
virtual void Print(Option_t *opt="") const
Definition DecData.cxx:409
virtual Int_t Decode(const THaEvData &)
Definition DecData.cxx:379
virtual ~DecData()
Definition DecData.cxx:103
virtual Int_t Reconstruct()
Definition DecData.h:33
UInt_t evtype
Definition DecData.h:36
virtual void Clear(Option_t *opt="")
Definition DecData.cxx:112
virtual Int_t AddDetector(THaDetector *, Bool_t, Bool_t)
Definition DecData.h:32
virtual Int_t DefineVariables(EMode mode=kDefine)
Definition DecData.cxx:137
THashList fBdataLoc
Definition DecData.h:38
UInt_t evtypebits
Definition DecData.h:37