MiniballSort
Loading...
Searching...
No Matches
MbsConverter.hh
Go to the documentation of this file.
1#ifndef __MBSCONVERTER_HH
2#define __MBSCONVERTER_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 MiniballMbsConverter( std::shared_ptr<MiniballSettings> myset )
25 ev = nullptr;
26 data = nullptr;
27 n_double_hits = 0;
28 n_single_hits = 0;
29 mbs_data = true;
30 midas_data = false;
31 med_data = false;
32 };
34
35
36 int ConvertFile( std::string input_file_name,
37 unsigned long start_block = 0,
38 long end_block = -1 );
39
40 void ProcessBlock( unsigned long nblock );
41 void ProcessFebexData( UInt_t &pos );
42 bool GetFebexChanID( unsigned int x );
43 void FinishFebexData();
44
45 void SetMBSEvent( const MBSEvent *myev ){ ev = myev; };
46
47
48private:
49
50 // MBS Event holder and data pointers
51 const MBSEvent *ev;
52 const UInt_t *data;
53 size_t ndata;
54
55 // Counters
56 unsigned long n_single_hits;
57 unsigned long n_double_hits;
58
59};
60
61#endif
int ConvertFile(std::string input_file_name, unsigned long start_block=0, long end_block=-1)
unsigned long n_double_hits
unsigned long n_single_hits
void ProcessBlock(unsigned long nblock)
void SetMBSEvent(const MBSEvent *myev)
const MBSEvent * ev
bool GetFebexChanID(unsigned int x)
void ProcessFebexData(UInt_t &pos)
MiniballMbsConverter(std::shared_ptr< MiniballSettings > myset)
const UInt_t * data
std::shared_ptr< MiniballSettings > myset
Definition mb_sort.cc:123