BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtHeaderCnv.h
Go to the documentation of this file.
1
#ifndef EvtHeaderCnv_H
2
#define EvtHeaderCnv_H 1
3
4
#include "
RootCnvSvc/RootEventBaseCnv.h
"
5
6
#include "
RootEventData/TEvtHeader.h
"
7
#include "
RootCnvSvc/commonData.h
"
8
9
//extern const CLID& CLID_Event;
10
extern
const
CLID&
CLID_EventHeader
;
11
12
// Abstract factory to create the converter
13
template
<
class
TYPE>
class
CnvFactory
;
14
15
/** @class EvtHeaderCnv
16
* @brief Concrete converter for the EvtHeader branch
17
*
18
* Based on the EvtHeaderCnv of GLAST.
19
*/
20
21
class
EvtHeaderCnv
:
public
RootEventBaseCnv
{
22
23
friend
class
CnvFactory
<
EvtHeaderCnv
>;
24
25
public
:
26
static
const
CLID&
classID
()
27
{
28
return
CLID_EventHeader
;
29
}
30
31
virtual
~EvtHeaderCnv
() { };
32
33
34
virtual
StatusCode
initialize
();
35
36
/// returns object to be written (maintained here for all DIGI-converters)
37
static
TEvtHeader
*
getWriteObject
() {
return
m_objWrite;}
38
39
protected
:
40
EvtHeaderCnv
(ISvcLocator* svc);
41
42
/// transformation from TDS object to ROOT
43
virtual
StatusCode
DataObjectToTObject
(DataObject* obj,
RootAddress
* addr);
44
45
/// do the transformation from ROOT to TDS object
46
virtual
StatusCode
TObjectToDataObject
(DataObject*& refpObject);
47
48
private
:
49
/// Root object to be written
50
static
TEvtHeader
* m_objWrite;
51
52
/// Run number
53
Int_t m_runId;
54
/// Event Number
55
Int_t m_eventId;
56
57
UInt_t m_time;
58
59
/// EventTag
60
UInt_t m_eventTag;
61
62
/// Flags
63
UInt_t m_flag1;
64
UInt_t m_flag2;
65
66
/// ETS
67
ULong_t m_etsT1;
68
ULong_t m_etsT2;
69
70
// Int_t* m_data;
71
Int_t m_data[10];
72
73
commonData
m_common;
74
};
75
76
#endif
// EvtHeaderCnv_H
CLID_EventHeader
const CLID & CLID_EventHeader
Definition
EventModel.cxx:196
RootEventBaseCnv.h
TEvtHeader.h
CnvFactory
Definition
RootCorrectedETSCnv.h:20
EvtHeaderCnv
Concrete converter for the EvtHeader branch.
Definition
EvtHeaderCnv.h:21
EvtHeaderCnv::getWriteObject
static TEvtHeader * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
Definition
EvtHeaderCnv.h:37
EvtHeaderCnv::classID
static const CLID & classID()
Definition
EvtHeaderCnv.h:26
EvtHeaderCnv::~EvtHeaderCnv
virtual ~EvtHeaderCnv()
Definition
EvtHeaderCnv.h:31
EvtHeaderCnv::DataObjectToTObject
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation from TDS object to ROOT
Definition
EvtHeaderCnv.cxx:95
EvtHeaderCnv::TObjectToDataObject
virtual StatusCode TObjectToDataObject(DataObject *&refpObject)
do the transformation from ROOT to TDS object
Definition
EvtHeaderCnv.cxx:50
EvtHeaderCnv::initialize
virtual StatusCode initialize()
Definition
EvtHeaderCnv.cxx:82
EvtHeaderCnv::EvtHeaderCnv
EvtHeaderCnv(ISvcLocator *svc)
Definition
EvtHeaderCnv.cxx:31
RootAddress
Definition of a Root address, derived from IOpaqueAddress.
Definition
RootAddress.h:21
RootEventBaseCnv
Base class for all Root Converters.
Definition
RootEventBaseCnv.h:38
TEvtHeader
Definition
TEvtHeader.h:8
commonData
Definition
commonData.h:105
commonData.h
7.1.1
Event
RootCnvSvc
RootCnvSvc-03-01-03
RootCnvSvc
EvtHeaderCnv.h
Generated by
1.12.0