ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
EventTPCnv
src
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
"
6
#include "
EventTPCnv/EventIDCnv_p2.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.h
EventID.h
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
EventIDCnv_p2::transToPers
void transToPers(const EventID *transObj, std::vector< unsigned int > &persObj) const
Definition
EventIDCnv_p2.cxx:22
EventIDCnv_p2::persToTrans
void persToTrans(std::vector< unsigned int >::const_iterator &nnnnpersObj, EventID *transObj) const
Definition
EventIDCnv_p2.cxx:9
EventID
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition
EventID.h:34
EventID::number_type
EventIDBase::number_type number_type
Definition
EventID.h:36
trans
TH1F * trans(TH1F *h, bool t=false)
Definition
comparitor.cxx:199
Generated on
for ATLAS Offline Software by
1.17.0