BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/EmcConverter.h
Go to the documentation of this file.
1#ifndef EMC_CONVERTER_H
2#define EMC_CONVERTER_H
3
4#include "GaudiKernel/StatusCode.h"
5#include "RawDataCnv/EventManagement/EmcBuilder.h"
6#include "RawDataCnv/Util/BufferHolder.h"
7#include "EmcRawEvent/EmcDigi.h"
8
10
12
13 public:
14
15 // static interfaces
16 static EmcConverter* instance(int runMode = 2); //default OfflineMode
17 static void destroy();
18
19 // public interfaces
20 StatusCode convert(const BufferHolder& src, EmcDigiCol* des);
21 StatusCode convert(EmcDigiCol* src, WriteRawEvent*& des);
22
23
24 private:
25
26 // private methods
27 EmcConverter(int runMode); //get its intance via the static interface!
29
30 EmcConverter(); //stop default
31
32 // private data members
33 int m_runMode; //reference to the RunMode of RawDataInputSvc
34
35 /// pointer of EmcRawDataProvider, only OnlineMode //fucd
36 EmcRawDataProvider* m_EmcProvider;
37
38 EmcBuilder m_builder;
39
40 // static data members
41 static EmcConverter* s_instance;
42};
43
44#endif
static EmcConverter * instance(int runMode=2)
Definition: EmcConverter.cxx:9
static void destroy()
StatusCode convert(const BufferHolder &src, EmcDigiCol *des)