Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaCodaRun.h
Go to the documentation of this file.
1#ifndef Podd_THaCodaRun_h_
2#define Podd_THaCodaRun_h_
3
5//
6// THaCodaRun
7//
9
10#include "THaRunBase.h"
11#include "Decoder.h"
12#include <memory>
13
14class THaCodaRun : public THaRunBase {
15
16public:
17 explicit THaCodaRun( const char* description="" );
18 THaCodaRun( const THaCodaRun& rhs );
19 virtual THaCodaRun& operator=( const THaRunBase& );
20 virtual ~THaCodaRun();
21
22 virtual Int_t Close();
23 virtual const UInt_t* GetEvBuffer() const;
24 virtual Bool_t IsOpen() const;
25 virtual Int_t ReadEvent();
26 virtual Int_t GetDataVersion();
27 virtual Int_t SetDataVersion( Int_t version );
28 //FIXME: these two should call Get/SetDataVersion, not the other way round
30 Int_t SetCodaVersion( Int_t version );
31
32protected:
33 static Int_t ReturnCode( Int_t coda_retcode);
34
35 std::unique_ptr<Decoder::THaCodaData> fCodaData;
36
37 ClassDef(THaCodaRun,2) // ABC for a run based on CODA data
38};
39
40//________________________ inlines ____________________________________________
42{
43 return GetCodaVersion();
44}
45
47{
48 return SetCodaVersion(version);
49}
50
51#endif
int Int_t
unsigned int UInt_t
bool Bool_t
#define ClassDef(name, id)
virtual const UInt_t * GetEvBuffer() const
std::unique_ptr< Decoder::THaCodaData > fCodaData
Definition THaCodaRun.h:35
static Int_t ReturnCode(Int_t coda_retcode)
Int_t GetCodaVersion()
virtual Bool_t IsOpen() const
virtual THaCodaRun & operator=(const THaRunBase &)
virtual Int_t Close()
virtual ~THaCodaRun()
virtual Int_t GetDataVersion()
Definition THaCodaRun.h:41
virtual Int_t ReadEvent()
virtual Int_t SetDataVersion(Int_t version)
Definition THaCodaRun.h:46
Int_t SetCodaVersion(Int_t version)