BOSS
7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RootCnvSvc/RootCnvSvc/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
CnvFactory
Definition:
RootDedxCalibDataCnv.h:19
EvtHeaderCnv
Concrete converter for the EvtHeader branch.
Definition:
Event/RootCnvSvc/RootCnvSvc-03-00-06/RootCnvSvc/EvtHeaderCnv.h:21
EvtHeaderCnv::getWriteObject
static TEvtHeader * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
Definition:
InstallArea/include/RootCnvSvc/RootCnvSvc/EvtHeaderCnv.h:37
EvtHeaderCnv::classID
static const CLID & classID()
Definition:
InstallArea/include/RootCnvSvc/RootCnvSvc/EvtHeaderCnv.h:26
EvtHeaderCnv::~EvtHeaderCnv
virtual ~EvtHeaderCnv()
Definition:
InstallArea/include/RootCnvSvc/RootCnvSvc/EvtHeaderCnv.h:31
EvtHeaderCnv::initialize
virtual StatusCode initialize()
EvtHeaderCnv::TObjectToDataObject
virtual StatusCode TObjectToDataObject(DataObject *&refpObject)
do the transformation from ROOT to TDS object
EvtHeaderCnv::DataObjectToTObject
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation from TDS object to ROOT
EvtHeaderCnv::EvtHeaderCnv
EvtHeaderCnv(ISvcLocator *svc)
RootAddress
Definition of a Root address, derived from IOpaqueAddress.
Definition:
Event/RootCnvSvc/RootCnvSvc-03-00-06/RootCnvSvc/RootAddress.h:21
RootEventBaseCnv
Base class for all Root Converters.
Definition:
Event/RootCnvSvc/RootCnvSvc-03-00-06/RootCnvSvc/RootEventBaseCnv.h:36
TEvtHeader
Definition:
Event/RootEventData/RootEventData-00-03-81/RootEventData/TEvtHeader.h:8
commonData
Definition:
Event/RootCnvSvc/RootCnvSvc-03-00-06/RootCnvSvc/commonData.h:105
source
InstallArea
include
RootCnvSvc
RootCnvSvc
EvtHeaderCnv.h
Generated by
1.9.6