BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/include/RootCnvSvc/Trig/TrigDataCnv.h
Go to the documentation of this file.
1#ifndef TrigDataCnv_H
2#define TrigDataCnv_H 1
3
4#include "RootCnvSvc/RootEventBaseCnv.h"
5#include "RootCnvSvc/commonData.h"
6#include "RootEventData/TTrigData.h"
7
8class RootAddress;
9
10extern const CLID& CLID_TrigData;
11
12// Abstract factory to create the converter
13template <class TYPE> class CnvFactory;
14
15/** @class TrigDataCnv
16 * @brief Concrete converter for the TrigData
17 *
18 */
19
21
22 friend class CnvFactory<TrigDataCnv>;
23
24public:
25 static const CLID& classID() { return CLID_TrigData; }
26
27 virtual ~TrigDataCnv(){};
28
29 TrigDataCnv( ISvcLocator* svc );
30
31 /// transformation to root
32 virtual StatusCode DataObjectToTObject( DataObject* obj, RootAddress* addr );
33
34 /// transformation from root
35 virtual StatusCode TObjectToDataObject( DataObject*& obj );
36
37private:
38 /// root object to be read
39 TTrigData* m_trigData;
40};
41
42#endif // MdcMcCnv_H
const CLID & CLID_TrigData
Definition of a Root address, derived from IOpaqueAddress.
RootEventBaseCnv(const CLID &clid, ISvcLocator *svc)
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
TrigDataCnv(ISvcLocator *svc)
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root