ATLAS Offline Software
EventIDCnv_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 
5 #include "EventInfo/EventID.h"
7 
8 
9 void EventIDCnv_p2::persToTrans(std::vector<unsigned int>::const_iterator &i, EventID* trans) const {
10  trans->set_run_number (*i); ++i;
11  trans->set_event_number (*i); ++i;
12  trans->set_time_stamp (*i); ++i;
13  trans->set_time_stamp_ns_offset (*i); ++i;
14  trans->set_lumi_block (*i); ++i;
15  trans->set_bunch_crossing_id (*i); ++i;
16  EventID::number_type detector_mask0 = (*i); ++i;
17  EventID::number_type detector_mask1 = (*i); ++i;
18  trans->set_detector_mask (detector_mask0, detector_mask1);
19  // std::cout<<"persToTrans of EventID \t"<<trans->m_event_number<<std::endl;
20 }
21 
22 void EventIDCnv_p2::transToPers(const EventID* trans, std::vector<unsigned int>& pers) const {
23  // Deprecated - writing out with _p1 RDS 2013/03
24 
25  pers.push_back(trans->run_number());
26  pers.push_back(trans->event_number());
27  pers.push_back(trans->time_stamp());
28  pers.push_back(trans->time_stamp_ns_offset());
29  pers.push_back(trans->lumi_block());
30  pers.push_back(trans->bunch_crossing_id());
31  pers.push_back(trans->detector_mask0());
32  pers.push_back(trans->detector_mask1());
33  // std::cout<<"transToPers of EventID \t"<<trans->m_event_number<<std::endl;
34 }
EventIDCnv_p2::persToTrans
void persToTrans(std::vector< unsigned int >::const_iterator &nnnnpersObj, EventID *transObj) const
Definition: EventIDCnv_p2.cxx:9
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
EventID.h
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
EventID::number_type
EventIDBase::number_type number_type
Definition: EventID.h:37
lumiFormat.i
int i
Definition: lumiFormat.py:85
EventIDCnv_p2.h
EventIDCnv_p2::transToPers
void transToPers(const EventID *transObj, std::vector< unsigned int > &persObj) const
Definition: EventIDCnv_p2.cxx:22
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::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