ATLAS Offline Software
Loading...
Searching...
No Matches
EventIDCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "EventInfo/EventID.h"
7
8void EventIDCnv_p1::transToPers(const EventID* trans, EventID_p1* pers, MsgStream &) const {
9 pers->m_run_number = trans->run_number();
10 pers->m_event_number = trans->event_number();
11 pers->m_time_stamp = trans->time_stamp();
12 pers->m_time_stamp_ns_offset = trans->time_stamp_ns_offset();
13 pers->m_lumiBlock = trans->lumi_block();
14 pers->m_bunch_crossing_id = trans->bunch_crossing_id();
15 pers->m_detector_mask0 = trans->detector_mask0();
16 pers->m_detector_mask1 = trans->detector_mask1();
17 pers->m_detector_mask2 = trans->detector_mask2();
18 pers->m_detector_mask3 = trans->detector_mask3();
19}
20
21void EventIDCnv_p1::persToTrans(const EventID_p1* pers, EventID* trans, MsgStream &) const {
22 trans->set_run_number (pers->m_run_number);
23 trans->set_event_number (pers->m_event_number);
24 trans->set_time_stamp (pers->m_time_stamp);
25 trans->set_time_stamp_ns_offset (pers->m_time_stamp_ns_offset);
26 trans->set_lumi_block (pers->m_lumiBlock);
27 trans->set_bunch_crossing_id (pers->m_bunch_crossing_id);
29 pers->m_detector_mask1,
30 pers->m_detector_mask2,
31 pers->m_detector_mask3);
32}
33
34EventID* EventIDCnv_p1::createTransientConst (const EventID_p1* persObj, MsgStream& log) const
35{
36 auto trans = std::make_unique<EventID>();
37 persToTrans(persObj, trans.get(), log);
38 return(trans.release());
39}
40
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
virtual void persToTrans(const EventID_p1 *persObj, EventID *transObj, MsgStream &log) const override
virtual void transToPers(const EventID *transObj, EventID_p1 *persObj, MsgStream &log) const override
virtual EventID * createTransientConst(const EventID_p1 *persObj, MsgStream &log) const override
number_type m_detector_mask1
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition EventID_p1.h:42
number_type m_bunch_crossing_id
bunch crossing ID, 32 bit unsigned
Definition EventID_p1.h:36
uint64_t m_event_number
event number
Definition EventID_p1.h:27
number_type m_detector_mask3
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition EventID_p1.h:49
number_type m_detector_mask0
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition EventID_p1.h:39
number_type m_time_stamp_ns_offset
time stamp ns - ns time offset for time_stamp, 32 bit unsigned
Definition EventID_p1.h:31
number_type m_lumiBlock
luminosity block number: the number which uniquely tags a luminosity block within a run
Definition EventID_p1.h:34
number_type m_time_stamp
posix time in seconds since 1970/01/01
Definition EventID_p1.h:29
number_type m_run_number
run number
Definition EventID_p1.h:25
number_type m_detector_mask2
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition EventID_p1.h:45
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition EventID.h:35
number_type detector_mask3(void) const
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition EventID.h:149
number_type detector_mask2(void) const
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition EventID.h:143
number_type detector_mask1(void) const
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition EventID.h:137
void set_detector_mask(number_type detectorMask0, number_type detectorMask1, number_type detectorMask2=0, number_type detectorMask3=0)
set detector mask
Definition EventID.cxx:70
number_type detector_mask0(void) const
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition EventID.h:131