MiniballSort
Loading...
Searching...
No Matches
MedConverter.hh
Go to the documentation of this file.
1#ifndef __MEDCONVERTER_HH
2#define __MEDCONVERTER_HH
3
4// MiniballConverter header
5#ifndef __CONVERTER_HH
6# include "Converter.hh"
7#endif
8
9// MBS Defines header
10#ifndef __MBSDEFINES_HH
11# include "MbsDefines.hh"
12#endif
13
14// MBS Data Format header
15#ifndef __MBSFORMAT_HH
16# include "MbsFormat.hh"
17#endif
18
20
21public:
22
23 MiniballMedConverter( std::shared_ptr<MiniballSettings> myset )
25 ev = nullptr;
26 mbs_sevt = nullptr;
27 mbs_data = false;
28 midas_data = false;
29 med_data = true;
30 };
32
33
34 int ConvertFile( std::string input_file_name,
35 unsigned long start_block = 0,
36 long end_block = -1 );
37
38 void ProcessEvent( unsigned long nblock );
40 void ProcessCaenAdcData();
41 void ProcessDgfData();
42 void ProcessDgfScaler();
44 void ProcessScalerData();
46
47 void SetMBSEvent( const MBSEvent *myev ){ ev = myev; };
48
49
50private:
51
52 // MBS Event holder and data pointers
53 const MBSEvent *ev;
55 size_t ndata;
56
57 // Need a buffer before filling the tree
58 std::vector<MiniballDataPackets> output_buffer;
59
60};
61
62#endif
void SetMBSEvent(const MBSEvent *myev)
const MBSSubEvent * mbs_sevt
const MBSEvent * ev
std::vector< MiniballDataPackets > output_buffer
MiniballMedConverter(std::shared_ptr< MiniballSettings > myset)
int ConvertFile(std::string input_file_name, unsigned long start_block=0, long end_block=-1)
void ProcessEvent(unsigned long nblock)
std::shared_ptr< MiniballSettings > myset
Definition mb_sort.cc:123