ATLAS Offline Software
LumiBlockRangeCnv_p1.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_p1
7 // Author: Marjorie Shapiro <mdshapiro@lbl.gov>
9 
12 
13 void LumiBlockRangeCnv_p1::transToPers(const LB_IOVRange* trans, LumiBlockRange_p1* pers, MsgStream &) {
14  pers->m_start = (trans->start()).re_time();
15  pers->m_stop = (trans->stop()).re_time();
16 }
17 
18 void LumiBlockRangeCnv_p1::persToTrans(const LumiBlockRange_p1* pers, LB_IOVRange* trans, MsgStream &)
19 {
20  IOVTime tstart, tstop;
21  tstart.setRETime (pers->m_start);
22  tstop.setRETime (pers->m_stop);
23  *trans = LB_IOVRange (tstart, tstop);
24 }
python.TriggerHandler.tstart
string tstart
Definition: TriggerHandler.py:299
LumiBlockRange_p1::m_start
unsigned long long m_start
Definition: LumiBlockRange_p1.h:30
LumiBlockRangeCnv_p1::persToTrans
virtual void persToTrans(const LumiBlockRange_p1 *persObj, LB_IOVRange *transObj, MsgStream &log)
Definition: LumiBlockRangeCnv_p1.cxx:18
LumiBlockRange_p1::m_stop
unsigned long long m_stop
Definition: LumiBlockRange_p1.h:31
IOVRange::start
const IOVTime & start() const
Definition: IOVRange.h:38
LumiBlockRangeCnv_p1.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
IOVTime::setRETime
void setRETime(uint64_t time) noexcept
Definition: IOVTime.cxx:84
LumiBlockRangeCnv_p1::transToPers
virtual void transToPers(const LB_IOVRange *transObj, LumiBlockRange_p1 *persObj, MsgStream &log)
Definition: LumiBlockRangeCnv_p1.cxx:13
LB_IOVRange
Definition: LB_IOVRange.h:16
LumiBlockRange_p1
Definition: LumiBlockRange_p1.h:14