ATLAS Offline Software
LumiBlockRangeCnv_p2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class LumiBlockRangeCnv_p2
7 // Author: Marjorie Shapiro <mdshapiro@lbl.gov>
9 
11 
13 
14 void LumiBlockRangeCnv_p2::transToPers(const LB_IOVRange* trans, LumiBlockRange_p2* pers, MsgStream &) {
15  pers->m_start = (trans->start()).re_time();
16  pers->m_stop = (trans->stop()).re_time();
17  pers->m_NumExpected = trans->getNumExpected();
18  pers->m_NumSeen = trans->getNumSeen();
19 }
20 
21 void LumiBlockRangeCnv_p2::persToTrans(const LumiBlockRange_p2* pers, LB_IOVRange* trans, MsgStream &)
22 {
23  IOVTime tstart, tstop;
24  tstart.setRETime (pers->m_start);
25  tstop.setRETime (pers->m_stop);
26  *trans = LB_IOVRange (IOVRange (tstart, tstop),
27  pers->m_NumExpected,
28  pers->m_NumSeen);
29 }
python.TriggerHandler.tstart
string tstart
Definition: TriggerHandler.py:299
IOVRange
Validity Range object. Holds two IOVTimes (start and stop)
Definition: IOVRange.h:30
LumiBlockRange_p2::m_start
unsigned long long m_start
Definition: LumiBlockRange_p2.h:30
LB_IOVRange::getNumExpected
uint32_t getNumExpected() const
Definition: LB_IOVRange.h:24
IOVRange::start
const IOVTime & start() const
Definition: IOVRange.h:38
LumiBlockRange_p2
Definition: LumiBlockRange_p2.h:14
LB_IOVRange::getNumSeen
uint32_t getNumSeen() const
Definition: LB_IOVRange.h:25
LumiBlockRangeCnv_p2.h
IOVRange::stop
const IOVTime & stop() const
Definition: IOVRange.h:39
LB_IOVRange.h
IOVTime
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
Definition: IOVTime.h:33
LumiBlockRange_p2::m_NumExpected
unsigned int m_NumExpected
Definition: LumiBlockRange_p2.h:32
LumiBlockRange_p2::m_stop
unsigned long long m_stop
Definition: LumiBlockRange_p2.h:31
IOVTime::setRETime
void setRETime(uint64_t time) noexcept
Definition: IOVTime.cxx:84
LumiBlockRangeCnv_p2::transToPers
virtual void transToPers(const LB_IOVRange *transObj, LumiBlockRange_p2 *persObj, MsgStream &log)
Definition: LumiBlockRangeCnv_p2.cxx:14
LumiBlockRange_p2::m_NumSeen
unsigned int m_NumSeen
Definition: LumiBlockRange_p2.h:33
LB_IOVRange
Definition: LB_IOVRange.h:16
LumiBlockRangeCnv_p2::persToTrans
virtual void persToTrans(const LumiBlockRange_p2 *persObj, LB_IOVRange *transObj, MsgStream &log)
Definition: LumiBlockRangeCnv_p2.cxx:21