The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
EventIDBase.cpp
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
19
21
22#include <limits>
23
24const EventIDBase::number_type EventIDBase::UNDEFNUM = std::numeric_limits<EventIDBase::number_type>::max();
25const EventIDBase::event_number_t EventIDBase::UNDEFEVT = std::numeric_limits<EventIDBase::event_number_t>::max();
26
46
47EventIDBase::EventIDBase( std::tuple<number_type, number_type, event_number_t> run_lumi_ev,
48 std::tuple<number_type, number_type> time_stamp, number_type bunch_crossing_id )
49 : EventIDBase( std::get<0>( run_lumi_ev ), // run number
50 std::get<2>( run_lumi_ev ), // event number
51 std::get<0>( time_stamp ), // timestamp in seconds
52 std::get<1>( time_stamp ), // nanoseconds offst
53 std::get<1>( run_lumi_ev ), // lumi block
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
number_type lumi_block() const
luminosity block identifier, 32 bit unsigned
static const event_number_t UNDEFEVT
Definition EventIDBase.h:71
number_type m_bunch_crossing_id
bunch crossing ID, 32 bit unsigned
number_type m_lumi_block
luminosity block number: the number which uniquely tags a luminosity block within a run
number_type run_number() const
run number - 32 bit unsigned
Definition EventIDBase.h:91
number_type time_stamp_ns_offset() const
time stamp ns - ns time offset for time_stamp, 32 bit unsigned
event_number_t m_event_number
event number
uint64_t event_number_t
Definition EventIDBase.h:68
number_type m_run_number
run number
number_type m_time_stamp_ns_offset
time stamp ns - ns time offset for time_stamp, 32 bit unsigned
number_type m_time_stamp
posix time in seconds since 1970/01/01
unsigned int number_type
Definition EventIDBase.h:67
number_type bunch_crossing_id() const
bunch crossing ID, 32 bit unsigned
static const number_type UNDEFNUM
Definition EventIDBase.h:70
event_number_t event_number() const
event number - 64 bit unsigned
Definition EventIDBase.h:94
number_type time_stamp() const
time stamp - posix time in seconds from 1970, 32 bit unsigned
Definition EventIDBase.h:97
STL namespace.