ATLAS Offline Software
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 
8 void 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 
21 void 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);
28  trans->set_detector_mask (pers->m_detector_mask0,
29  pers->m_detector_mask1,
30  pers->m_detector_mask2,
31  pers->m_detector_mask3);
32 }
33 
34 EventID* 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 
EventIDCnv_p1::transToPers
virtual void transToPers(const EventID *transObj, EventID_p1 *persObj, MsgStream &log) const override
Definition: EventIDCnv_p1.cxx:8
EventID_p1::m_event_number
uint64_t m_event_number
event number
Definition: EventID_p1.h:27
EventID_p1::m_detector_mask3
number_type m_detector_mask3
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID_p1.h:49
EventID_p1::m_bunch_crossing_id
number_type m_bunch_crossing_id
bunch crossing ID, 32 bit unsigned
Definition: EventID_p1.h:36
EventID_p1::m_detector_mask0
number_type m_detector_mask0
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID_p1.h:39
EventIDCnv_p1::createTransientConst
virtual EventID * createTransientConst(const EventID_p1 *persObj, MsgStream &log) const override
Definition: EventIDCnv_p1.cxx:34
EventID_p1::m_time_stamp
number_type m_time_stamp
posix time in seconds since 1970/01/01
Definition: EventID_p1.h:29
EventID::detector_mask2
number_type detector_mask2(void) const
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:138
EventID::detector_mask0
number_type detector_mask0(void) const
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:126
EventIDCnv_p1::persToTrans
virtual void persToTrans(const EventID_p1 *persObj, EventID *transObj, MsgStream &log) const override
Definition: EventIDCnv_p1.cxx:21
EventID_p1::m_lumiBlock
number_type m_lumiBlock
luminosity block number: the number which uniquely tags a luminosity block within a run
Definition: EventID_p1.h:34
EventID.h
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
EventID_p1::m_detector_mask2
number_type m_detector_mask2
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID_p1.h:45
EventID::detector_mask3
number_type detector_mask3(void) const
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:144
EventID_p1::m_detector_mask1
number_type m_detector_mask1
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID_p1.h:42
EventID_p1::m_run_number
number_type m_run_number
run number
Definition: EventID_p1.h:25
EventIDCnv_p1.h
EventID_p1
Definition: EventID_p1.h:17
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
EventID
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition: EventID.h:35
EventID_p1::m_time_stamp_ns_offset
number_type m_time_stamp_ns_offset
time stamp ns - ns time offset for time_stamp, 32 bit unsigned
Definition: EventID_p1.h:31
EventID::detector_mask1
number_type detector_mask1(void) const
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:132
EventID::set_detector_mask
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