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 ()
 
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/5]

EventID::EventID ( )

Definition at line 18 of file EventID.cxx.

18  :
19  EventIDBase()
20 {}

◆ EventID() [2/5]

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/5]

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/5]

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/5]

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 {}

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 150 of file EventID.h.

150  {
152 
153  result = result << 32;
155  return(result);
156 }

◆ 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 126 of file EventID.h.

126  {
127  return m_detector_mask0;
128 }

◆ 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 132 of file EventID.h.

132  {
133  return m_detector_mask1;
134 }

◆ 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 138 of file EventID.h.

138  {
139  return m_detector_mask2;
140 }

◆ 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 144 of file EventID.h.

144  {
145  return m_detector_mask3;
146 }

◆ 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 158 of file EventID.h.

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

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 99 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 105 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 110 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 115 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:115
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:110
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:138
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::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:150
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:99
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:144
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:105
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:132