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