-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathORIpeV4FLTWaveformTreeWriter.hh
41 lines (36 loc) · 1.44 KB
/
ORIpeV4FLTWaveformTreeWriter.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// ORIpeV4FLTWaveformTreeWriter.hh
#ifndef _ORIpeV4FLTWaveformTreeWriter_hh_
#define _ORIpeV4FLTWaveformTreeWriter_hh_
#include "ORVTreeWriter.hh"
#include "ORIpeV4FLTWaveformDecoder.hh"
class ORIpeV4FLTWaveformTreeWriter : public ORVTreeWriter
{
public:
ORIpeV4FLTWaveformTreeWriter(std::string treeName = "");
virtual ~ORIpeV4FLTWaveformTreeWriter();
virtual EReturnCode ProcessMyDataRecord(UInt_t* record);
virtual inline void Clear()
{ fSec = 0; fSubSec = 0; fEventID = 0;fCrate = 0; fCard = 0;
fChannel = 0; fEnergy = 0; fWaveformLength = 0;
fResetSec=0; fResetSubSec=0; //-tb- 2008-02-12
fChannelMap=0; //-tb- 2010-02-17
fEventID=0; fEventFlags=0; fEventInfo=0; //-tb- 2010-02-17
fSaveOnlyNonemptyTrees=true; }
enum EIpeV4FLTWFTreeWriter{
//kMaxWFLength = ORIpeV4FLTWaveformDecoder::kWaveformLength -tb- this was too small
kMaxWFLength = ORIpeV4FLTWaveformDecoder::kWaveformLength * 64
};
protected:
virtual EReturnCode InitializeBranches();
protected:
ORIpeV4FLTWaveformDecoder* fEventDecoder;
UInt_t fSec, fSubSec, fResetSec, fResetSubSec;
UInt_t fChannelMap;
UShort_t fCrate, fCard, fChannel;
UShort_t fWaveform[kMaxWFLength];
UInt_t fWaveformLength;
UInt_t fEnergy;
UInt_t fEventID, fEventFlags, fEventInfo;
//Bool_t saveOnlyNonemptyTrees; //!< flag to skip writing empty trees -tb- 2008-02-19 - MOVED TO BASE CLASS -tb-
};
#endif