BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/include/RawDataCnv/EventManagement/Builder.h
Go to the documentation of this file.
1#ifndef BUILDER_H
2#define BUILDER_H
3
4#include <map>
5#include <stdint.h>
6#include <string>
7
8#include "GaudiKernel/StatusCode.h"
9#include "RawDataCnv/EventManagement/RawEventDef.h"
10
11using namespace std;
12
13class Builder {
14
15protected:
16 Builder();
17 virtual ~Builder();
18
20
21public:
22 typedef std::map<uint32_t, uint32_t> TE2REMAP;
23
24 static bool expect( ifstream& f, string msg, string fname );
25 static bool expectInt( ifstream& f, string msg, string fname, uint32_t& val1,
26 uint32_t& val2 );
27 static bool expectLong( ifstream& f, string msg, string fname, uint64_t& val ); // zoujh
28 static bool find( ifstream& f, string msg, string fname ); // zoujh
29
30 virtual StatusCode initialize( string& initFile ) { return StatusCode::SUCCESS; };
31 virtual uint32_t getTEID( uint32_t teid ) = 0;
32 virtual uint32_t getREID( uint32_t reid ) = 0;
33 /*virtual void unPack (uint32_t reDigi, uint32_t &TEId, uint32_t &TEData,
34 uint32_t &overFlow, uint32_t &TorQ) {};*/
35
36protected:
37 void append2event( WriteRawEvent*& re, uint32_t source_id, uint32_t size,
38 uint32_t shift = 0 );
39
40protected:
41 // zoujh
42 uint32_t* m_buf;
43 static string m_confFile;
44 // fucd
45 uint32_t m_status;
46};
47
48#endif
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
eformat::write::FullEventFragment WriteRawEvent
void append2event(WriteRawEvent *&re, uint32_t source_id, uint32_t size, uint32_t shift=0)
Definition Builder.cxx:69
static bool find(ifstream &f, string msg, string fname)
Definition Builder.cxx:52
virtual uint32_t getREID(uint32_t reid)=0
static bool expect(ifstream &f, string msg, string fname)
Definition Builder.cxx:25
virtual ~Builder()
Definition Builder.cxx:23
virtual uint32_t getTEID(uint32_t teid)=0
static bool expectLong(ifstream &f, string msg, string fname, uint64_t &val)
Definition Builder.cxx:46
static bool expectInt(ifstream &f, string msg, string fname, uint32_t &val1, uint32_t &val2)
Definition Builder.cxx:39
virtual StatusCode initialize(string &initFile)
Builder()
Definition Builder.cxx:11