ATLAS Offline Software
Public Types | List of all members
EventID Class Reference

This class provides a unique identification for each event, in terms of run/event number and/or a time stamp. More...

#include <EventID.h>

Inheritance diagram for EventID:
Collaboration diagram for EventID:

Public Types

typedef EventIDBase::number_type number_type
 

structors

number_type m_detector_mask0
 detector mask0 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned More...
 
number_type m_detector_mask1
 detector mask1 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned More...
 
number_type m_detector_mask2
 detector mask2 - additional trigger bits More...
 
number_type m_detector_mask3
 detector mask3 - additional trigger bits More...
 
 EventID ()
 
 EventID (number_type run_number, uint64_t event_number)
 
 EventID (number_type run_number, uint64_t event_number, number_type time_stamp)
 
 EventID (number_type run_number, uint64_t event_number, number_type time_stamp, number_type time_stamp_ns_offset, number_type lumi_block, number_type bunch_crossing_id)
 
 EventID (number_type run_number, uint64_t event_number, number_type time_stamp, number_type time_stamp_ns_offset, number_type lumi_block, number_type bunch_crossing_id, number_type detector_mask0, number_type detector_mask1, number_type detector_mask2=0, number_type detector_mask3=0)
 
virtual ~EventID ()
 
 EventID (const EventID &)=default
 
 EventID (EventID &&)=default
 
EventIDoperator= (const EventID &)=default
 
EventIDoperator= (EventID &&)=default
 
number_type detector_mask0 (void) const
 detector mask0 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned More...
 
number_type detector_mask1 (void) const
 detector mask1 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned More...
 
number_type detector_mask2 (void) const
 detector mask0 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned More...
 
number_type detector_mask3 (void) const
 detector mask1 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned More...
 
uint64_t detector_mask (void) const
 detector mask - as a 64 bit number - only provides access to the combined 64 bits det mask, the newer 64 bits, adding up to the 128 bits, must be accessed directly by mask2,3 More...
 
void set_detector_mask (number_type detectorMask0, number_type detectorMask1, number_type detectorMask2=0, number_type detectorMask3=0)
 set detector mask More...
 
std::ostream & operator<< (std::ostream &os, const EventID &rhs)
 Extraction operators. More...
 

Detailed Description

This class provides a unique identification for each event, in terms of run/event number and/or a time stamp.

Definition at line 35 of file EventID.h.

Member Typedef Documentation

◆ number_type

typedef EventIDBase::number_type EventID::number_type

Definition at line 37 of file EventID.h.

Constructor & Destructor Documentation

◆ EventID() [1/7]

EventID::EventID ( )

Definition at line 18 of file EventID.cxx.

18  :
19  EventIDBase()
20 {}

◆ EventID() [2/7]

EventID::EventID ( number_type  run_number,
uint64_t  event_number 
)

Definition at line 22 of file EventID.cxx.

23  :
24  EventIDBase(run_number, event_number)
25 {}

◆ EventID() [3/7]

EventID::EventID ( number_type  run_number,
uint64_t  event_number,
number_type  time_stamp 
)

Definition at line 27 of file EventID.cxx.

29  :
30  EventIDBase(run_number, event_number, time_stamp)
31 {}

◆ EventID() [4/7]

EventID::EventID ( number_type  run_number,
uint64_t  event_number,
number_type  time_stamp,
number_type  time_stamp_ns_offset,
number_type  lumi_block,
number_type  bunch_crossing_id 
)

Definition at line 33 of file EventID.cxx.

38  :
39  EventIDBase(run_number, event_number, time_stamp, time_stamp_ns_offset,
40  lumi_block, bunch_crossing_id)
41 {}

◆ EventID() [5/7]

EventID::EventID ( number_type  run_number,
uint64_t  event_number,
number_type  time_stamp,
number_type  time_stamp_ns_offset,
number_type  lumi_block,
number_type  bunch_crossing_id,
number_type  detector_mask0,
number_type  detector_mask1,
number_type  detector_mask2 = 0,
number_type  detector_mask3 = 0 
)

Definition at line 44 of file EventID.cxx.

54  :
55  EventIDBase(run_number, event_number, time_stamp, time_stamp_ns_offset,
56  lumi_block, bunch_crossing_id),
61 {}

◆ ~EventID()

EventID::~EventID ( )
virtual

Definition at line 64 of file EventID.cxx.

65 {}

◆ EventID() [6/7]

EventID::EventID ( const EventID )
default

◆ EventID() [7/7]

EventID::EventID ( EventID &&  )
default

Member Function Documentation

◆ detector_mask()

uint64_t EventID::detector_mask ( void  ) const
inline

detector mask - as a 64 bit number - only provides access to the combined 64 bits det mask, the newer 64 bits, adding up to the 128 bits, must be accessed directly by mask2,3

Definition at line 155 of file EventID.h.

155  {
157 
158  result = result << 32;
160  return(result);
161 }

◆ detector_mask0()

EventID::number_type EventID::detector_mask0 ( void  ) const
inline

detector mask0 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned

Definition at line 131 of file EventID.h.

131  {
132  return m_detector_mask0;
133 }

◆ detector_mask1()

EventID::number_type EventID::detector_mask1 ( void  ) const
inline

detector mask1 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned

Definition at line 137 of file EventID.h.

137  {
138  return m_detector_mask1;
139 }

◆ detector_mask2()

EventID::number_type EventID::detector_mask2 ( void  ) const
inline

detector mask0 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned

Definition at line 143 of file EventID.h.

143  {
144  return m_detector_mask2;
145 }

◆ detector_mask3()

EventID::number_type EventID::detector_mask3 ( void  ) const
inline

detector mask1 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned

Definition at line 149 of file EventID.h.

149  {
150  return m_detector_mask3;
151 }

◆ operator=() [1/2]

EventID& EventID::operator= ( const EventID )
default

◆ operator=() [2/2]

EventID& EventID::operator= ( EventID &&  )
default

◆ set_detector_mask()

void EventID::set_detector_mask ( number_type  detectorMask0,
number_type  detectorMask1,
number_type  detectorMask2 = 0,
number_type  detectorMask3 = 0 
)

set detector mask

Definition at line 70 of file EventID.cxx.

73  {
74  m_detector_mask0 = detectorMask0;
76  m_detector_mask2 = detectorMask2;
78 }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const EventID rhs 
)
friend

Extraction operators.

Definition at line 163 of file EventID.h.

163  {
164  os << "[Run,Evt,Lumi,Time,BunchCross,DetMask] = ["
165  << rhs.run_number()
166  << "," << rhs.event_number()
167  << "," << rhs.lumi_block()
168  << "," << rhs.time_stamp()
169  << ":" << rhs.time_stamp_ns_offset()
170  << "," << rhs.bunch_crossing_id()
171  << ",0x" << std::hex << rhs.detector_mask()
172  << ",0x" << std::hex << rhs.detector_mask2()
173  << ",0x" << std::hex << rhs.detector_mask3() << std::dec
174  << "]";
175  return os;
176 }

Member Data Documentation

◆ m_detector_mask0

number_type EventID::m_detector_mask0
private
Initial value:
{
0
}

detector mask0 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned

Definition at line 104 of file EventID.h.

◆ m_detector_mask1

number_type EventID::m_detector_mask1
private
Initial value:
{
0
}

detector mask1 - bit field indicating which TTC zones have been built into the event, one bit per zone, 32 bit unsigned

Definition at line 110 of file EventID.h.

◆ m_detector_mask2

number_type EventID::m_detector_mask2
private
Initial value:
{
0
}

detector mask2 - additional trigger bits

Definition at line 115 of file EventID.h.

◆ m_detector_mask3

number_type EventID::m_detector_mask3
private
Initial value:
{
0
}

detector mask3 - additional trigger bits

Definition at line 120 of file EventID.h.


The documentation for this class was generated from the following files:
plotting.plot_kinematics.run_number
run_number
Definition: plot_kinematics.py:29
get_generator_info.result
result
Definition: get_generator_info.py:21
EventID::m_detector_mask3
number_type m_detector_mask3
detector mask3 - additional trigger bits
Definition: EventID.h:120
xAOD::detectorMask1
setEventNumber setTimeStamp setBCID detectorMask1
Definition: EventInfo_v1.cxx:137
EventID::m_detector_mask2
number_type m_detector_mask2
detector mask2 - additional trigger bits
Definition: EventID.h:115
EventID::detector_mask2
number_type detector_mask2(void) const
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:143
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:131
EventID::detector_mask
uint64_t detector_mask(void) const
detector mask - as a 64 bit number - only provides access to the combined 64 bits det mask,...
Definition: EventID.h:155
EventID::m_detector_mask0
number_type m_detector_mask0
detector mask0 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:104
EventID::detector_mask3
number_type detector_mask3(void) const
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:149
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
EventID::m_detector_mask1
number_type m_detector_mask1
detector mask1 - bit field indicating which TTC zones have been built into the event,...
Definition: EventID.h:110
xAOD::detectorMask3
setEventNumber setTimeStamp setBCID setDetectorMask1 detectorMask3
Definition: EventInfo_v1.cxx:141
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:137