ATLAS Offline Software
EventInfoCnvTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Gaudi/Athena include(s):
7 
8 // EDM include(s):
9 #include "EventInfo/EventInfo.h"
10 #include "EventInfo/EventID.h"
11 #include "EventInfo/EventType.h"
12 #include "EventInfo/TriggerInfo.h"
19 
20 // Local include(s):
21 #include "EventInfoCnvTool.h"
22 
23 namespace xAODMaker {
24 
25  // maps to copy the flags
26  static const std::map< xAOD::EventInfo::EventFlagSubDet,
27  EventInfo::EventFlagSubDet > subDetMap =
38 
39  static const std::map< EventInfo::EventFlagErrorState,
40  xAOD::EventInfo::EventFlagErrorState > errorStateMap =
44  };
45 
46 #if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
47  static const std::string INDET_BEAMPOS = "/Indet/Beampos";
49 #endif
50 
51 
53  const std::string& name,
54  const IInterface* parent )
55  : AthAlgTool( type, name, parent )
56  {
57  // Declare the interface(s) provided by the tool:
58  declareInterface< IEventInfoCnvTool >( this );
59  }
60 
62  {
63 
64 #if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
65  // Check if the beam position will be available or not:
66  if( detStore()->contains< AthenaAttributeList >( INDET_BEAMPOS ) ) {
68  } else {
69  // This is normal in some cases, but tell the user anyway
70  ATH_MSG_INFO( "Beam spot information not available" );
71  ATH_MSG_INFO( "Will not fill beam spot information into "
72  "xAOD::EventInfo" );
74  }
76  ATH_MSG_WARNING( "Beam spot information manually disabled on EventInfo object" );
78  }
79 
81 #endif // not XAOD_ANALYSIS or GENERATIONBASE
82 
83 #if !defined(XAOD_ANALYSIS) && !defined(SIMULATIONBASE) && !defined(GENERATIONBASE)
85 #endif // not XAOD_ANALYSIS or GENERATIONBASE
86 
87  // Return gracefully:
88  return StatusCode::SUCCESS;
89  }
90 
104  xAOD::EventInfo* xaod,
105  bool pileUpInfo,
106  bool copyPileUpLinks,
107  [[maybe_unused]] const EventContext& ctx /*= Gaudi::Hive::currentContext()*/) const
108  {
109 
110  if( ! aod ) {
111  ATH_MSG_WARNING( "Null pointer received for input!" );
112  return StatusCode::SUCCESS;
113  }
114 
115  // Copy the basic properties into the xAOD object:
116  if( aod->event_ID() ) {
117  xaod->setRunNumber( aod->event_ID()->run_number() );
118  xaod->setEventNumber( aod->event_ID()->event_number() );
119  xaod->setLumiBlock( aod->event_ID()->lumi_block() );
120  xaod->setTimeStamp( aod->event_ID()->time_stamp() );
121  xaod->setTimeStampNSOffset( aod->event_ID()->time_stamp_ns_offset() );
122  xaod->setBCID( aod->event_ID()->bunch_crossing_id() );
123  xaod->setDetectorMask( aod->event_ID()->detector_mask0(),
124  aod->event_ID()->detector_mask1() );
125  xaod->setDetectorMaskExt( aod->event_ID()->detector_mask2(),
126  aod->event_ID()->detector_mask3() );
127  }
128 
129  // Copy the event type properties:
130  std::vector< float > eventWeights;
131  if( aod->event_type() ) {
132  EventType::NameTagPairVec detDescrTags;
133  aod->event_type()->get_detdescr_tags( detDescrTags );
134  xaod->setDetDescrTags( detDescrTags );
135  uint32_t eventTypeBitmask = 0;
136  if( aod->event_type()->test( EventType::IS_SIMULATION ) ) {
137  eventTypeBitmask |= xAOD::EventInfo::IS_SIMULATION;
138  }
139  if( aod->event_type()->test( EventType::IS_TESTBEAM ) ) {
140  eventTypeBitmask |= xAOD::EventInfo::IS_TESTBEAM;
141  }
142  if( aod->event_type()->test( EventType::IS_CALIBRATION ) ) {
143  eventTypeBitmask |= xAOD::EventInfo::IS_CALIBRATION;
144  }
145  xaod->setEventTypeBitmask( eventTypeBitmask );
146  // Only add MC information for simulation files:
149  xaod->setMCEventNumber( aod->event_type()->mc_event_number() );
150  eventWeights.resize( aod->event_type()->n_mc_event_weights(), 0.0 );
151  for( unsigned int i = 0; i < aod->event_type()->n_mc_event_weights();
152  ++i ) {
153  eventWeights[ i ] = aod->event_type()->mc_event_weight( i );
154  }
155  }
156  }
157 
158  // Copy the trigger properties into the xAOD object:
159  if( aod->trigger_info() && !pileUpInfo ) {
160  xaod->setStatusElement( aod->trigger_info()->statusElement() );
163  std::vector< xAOD::EventInfo::StreamTag > streamTags;
164  std::vector< TriggerInfo::StreamTag >::const_iterator st_itr =
165  aod->trigger_info()->streamTags().begin();
166  std::vector< TriggerInfo::StreamTag >::const_iterator st_end =
167  aod->trigger_info()->streamTags().end();
168  for( ; st_itr != st_end; ++st_itr ) {
169  streamTags.emplace_back( st_itr->name(), st_itr->type(),
170  st_itr->obeysLumiblock(),
171  st_itr->robs(), st_itr->dets() );
172  }
173  xaod->setStreamTags( streamTags );
174  }
175 
176  // Copy/calculate the pileup information:
177  if( ! pileUpInfo ) {
178  bool haveLumi = false;
179 #if !defined(XAOD_ANALYSIS) && !defined(SIMULATIONBASE) && !defined(GENERATIONBASE)
180  if (!m_lumiDataKey.empty()) {
182  if (lumiData->lbAverageLuminosity() != 0 ||
183  lumiData->lbAverageInteractionsPerCrossing() != 0)
184  {
185  float actualMu = 0.0;
186  const float muToLumi = lumiData->muToLumi();
187  if( std::abs( muToLumi ) > 0.00001 ) {
188  unsigned int bcid = ctx.eventID().bunch_crossing_id();
189  actualMu = lumiData->lbLuminosityPerBCIDVector().at(bcid) / muToLumi;
190  }
191  xaod->setActualInteractionsPerCrossing( actualMu );
193  lumiData->lbAverageInteractionsPerCrossing() );
194  }
195  haveLumi = true;
196  }
197 #endif // not XAOD_ANALYSIS or SIMULATIONBASE or GENERATIONBASE
198  if (!haveLumi) {
203  }
204  }
205 
206  // Copy the sub-detector flags:
208  EventInfo::EventFlagSubDet >::const_iterator sd_itr =
209  subDetMap.begin();
211  EventInfo::EventFlagSubDet >::const_iterator sd_end =
212  subDetMap.end();
213  for( ; sd_itr != sd_end; ++sd_itr ) {
214 
215  // Lumi does not store event flags, or an error state:
216  if( (int)sd_itr->first == (int)EventInfo::Lumi ) {
217  continue;
218  }
219 
220  // Set the event flags for this sub-detector:
221  xaod->setEventFlags( sd_itr->first, aod->eventFlags( sd_itr->second ) );
222 
223  // Look up the error state of this sub-detector:
225  xAOD::EventInfo::EventFlagErrorState >::const_iterator state =
226  errorStateMap.find( aod->errorState( sd_itr->second ) );
227  if( state == errorStateMap.end() ) {
229  << "Unknown error state found for sub-detector "
230  << sd_itr->second << ": " << aod->errorState( sd_itr->second );
231  return StatusCode::FAILURE;
232  }
233 
234  // Set the error state for the sub-detector:
235  xaod->setErrorState( sd_itr->first, state->second );
236  }
237 
238  // Check if it is a PileUpEventInfo object:
239  const PileUpEventInfo* puei =
240  dynamic_cast< const PileUpEventInfo* >( aod );
241  if( puei && copyPileUpLinks ) {
242  // Create the sub-event objects to fill into the output object:
243  std::vector< xAOD::EventInfo::SubEvent > subEvents;
246  for( ; itr != end; ++itr ) {
247  // Look up the sub-event type:
248 
250  switch (itr->type()) {
253  break;
256  break;
259  break;
262  break;
265  break;
268  break;
270  break;
271  default:
272  ATH_MSG_WARNING( "Unknown sub-event type ("
273  << itr->type() << ") encountered" );
274  break;
275  }
276 
277  // Construct the link to the pile-up EventInfo object:
279  link.resetWithKeyAndIndex( "PileUpEventInfo", itr->index() );
280 
281  // Add the new object
282  subEvents.emplace_back( itr->time(),
283  itr->index(),
284  type, link );
285  }
286 
287  // Add the vector to the EventInfo:
288  xaod->setSubEvents( subEvents );
289  }
290 
291 #if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
292  // Fill the beam spot variables if the necessary service is available:
293  if( m_beamSpotInformationAvailable && ( ! pileUpInfo ) ) {
295  xaod->setBeamPos( beamSpotHandle->beamPos()[ Amg::x ],
296  beamSpotHandle->beamPos()[ Amg::y ],
297  beamSpotHandle->beamPos()[ Amg::z ] );
298  xaod->setBeamPosSigma( beamSpotHandle->beamSigma( 0 ),
299  beamSpotHandle->beamSigma( 1 ),
300  beamSpotHandle->beamSigma( 2 ) );
301  xaod->setBeamPosSigmaXY( beamSpotHandle->beamSigmaXY() );
302  xaod->setBeamTiltXZ( beamSpotHandle->beamTilt( 0 ) );
303  xaod->setBeamTiltYZ( beamSpotHandle->beamTilt( 1 ) );
304  xaod->setBeamStatus( beamSpotHandle->beamStatus() );
305  }
306 #endif // not XAOD_ANALYSIS or GENERATIONBASE
307 
308  if (!eventWeights.empty()) {
309  if (xaod->getStore()) {
310  // Ensure that this gets added as a decoration.
311  xaod->getStore()->lock();
312  }
313  static const xAOD::EventInfo::Decorator<std::vector<float> > ew ("mcEventWeights");
314  ew (*xaod) = std::move (eventWeights);
315  }
316 
317  // Finish with some printout:
318  ATH_MSG_DEBUG( "Finished conversion EventInfo="<<aod<<" xAOD::EventInfo="<<xaod<<" content=" << *xaod );
319 
320  // Return gracefully:
321  return StatusCode::SUCCESS;
322  }
323 
324 } // namespace xAODMaker
EventInfo::Error
@ Error
Definition: EventInfo/EventInfo/EventInfo.h:67
LuminosityCondData::lbLuminosityPerBCIDVector
const std::vector< float > & lbLuminosityPerBCIDVector() const
Definition: LuminosityCondData.cxx:46
xAODMaker::EventInfoCnvTool::m_beamSpotInformationAvailable
bool m_beamSpotInformationAvailable
Internal flag for the availability of the beam spot information.
Definition: EventInfoCnvTool.h:66
xAOD::EventInfo_v1::setActualInteractionsPerCrossing
void setActualInteractionsPerCrossing(float value)
Set average interactions per crossing for the current BCID.
Definition: EventInfo_v1.cxx:391
xAOD::EventInfo_v1::setSubEvents
void setSubEvents(const std::vector< SubEvent > &value)
Set the pileup events that were used in the simulation.
Definition: EventInfo_v1.cxx:607
xAOD::EventInfo_v1::Pixel
@ Pixel
The pixel tracker.
Definition: EventInfo_v1.h:332
TriggerInfo::streamTags
const std::vector< StreamTag > & streamTags() const
get stream tags
Definition: TriggerInfo.cxx:158
LuminosityCondData::muToLumi
float muToLumi() const
Definition: LuminosityCondData.cxx:56
EventType::get_detdescr_tags
void get_detdescr_tags(NameTagPairVec &pairs) const
Access DetDescr tags.
Definition: EventType.cxx:113
EventInfo::Warning
@ Warning
Definition: EventInfo/EventInfo/EventInfo.h:67
xAOD::EventInfo_v1::setEventNumber
void setEventNumber(uint64_t value)
Set the current event's event number.
EventInfo::averageInteractionsPerCrossing
float averageInteractionsPerCrossing() const
average interactions per crossing for all BCIDs - for out-of-time pile-up
Definition: EventInfo/EventInfo/EventInfo.h:296
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
PileUpTimeEventIndex::Cavern
@ Cavern
Definition: PileUpTimeEventIndex.h:18
PileUpEventInfo.h
This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts...
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::EventInfo_v1::HighPtMinimumBias
@ HighPtMinimumBias
High pT Minimum bias pileup event.
Definition: EventInfo_v1.h:270
xAOD::EventInfo_v1::MinimumBias
@ MinimumBias
(Low pT) Minimum bias pileup event
Definition: EventInfo_v1.h:267
xAOD::EventInfo_v1::IS_CALIBRATION
@ IS_CALIBRATION
true: calibration, false: physics
Definition: EventInfo_v1.h:155
xAOD::EventInfo_v1::setBeamPos
void setBeamPos(float x, float y, float z)
Set the beam spot position.
Definition: EventInfo_v1.cxx:916
Amg::y
@ y
Definition: GeoPrimitives.h:35
EventInfo::Tile
@ Tile
Definition: EventInfo/EventInfo/EventInfo.h:61
xAOD::EventInfo_v1::PileUpType
PileUpType
Enumerator describing the types of pileup events.
Definition: EventInfo_v1.h:264
xAOD::EventInfo_v1::setExtendedLevel1ID
void setExtendedLevel1ID(uint32_t value)
Set the extended Level-1 identifier.
xAOD::EventInfo_v1::NotSet
@ NotSet
The flag was not set to anything.
Definition: EventInfo_v1.h:347
TriggerInfo.h
This class contains trigger related information.
xAOD::EventInfo_v1::ZeroBias
@ ZeroBias
Zero bias pileup event.
Definition: EventInfo_v1.h:271
EventType.h
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
xAODMaker::EventInfoCnvTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition: EventInfoCnvTool.cxx:61
xAOD::EventInfo_v1::setBeamPosSigma
void setBeamPosSigma(float x, float y, float z)
Set the size of the beam spot.
Definition: EventInfo_v1.cxx:935
xAOD::EventInfo_v1::setDetDescrTags
void setDetDescrTags(const DetDescrTags_t &value)
Set the detector description tags.
xAODMaker
Definition: StoreGateSvc.h:72
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
xAOD::EventInfo_v1::Background
@ Background
The beam background detectors.
Definition: EventInfo_v1.h:340
EventInfoCnvTool.h
xAOD::EventInfo_v1::IS_SIMULATION
@ IS_SIMULATION
true: simulation, false: data
Definition: EventInfo_v1.h:151
AthenaAttributeList.h
xAOD::EventInfo_v1::LAr
@ LAr
The LAr calorimeter.
Definition: EventInfo_v1.h:335
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
LuminosityCondData::lbAverageLuminosity
float lbAverageLuminosity() const
Definition: LuminosityCondData.cxx:16
EventType::mc_event_weight
float mc_event_weight(unsigned int iweight=0) const
Access to MC weight.
Definition: EventType.cxx:175
SG::AuxElement::getStore
SG::IAuxStore * getStore() const
Return the current store, as a non-const interface.
Definition: AuxElement.cxx:319
EventType::mc_channel_number
number_type mc_channel_number() const
Access to the MC generator channel number (was used as run number for generator events)
Definition: EventType.cxx:165
ReadCondHandle.h
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
EventInfo::SCT
@ SCT
Definition: EventInfo/EventInfo/EventInfo.h:61
EventInfoContainer.h
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
EventInfo::errorState
EventFlagErrorState errorState(EventFlagSubDet subDet) const
return error state for a particular sub-detector
Definition: EventInfo/EventInfo/EventInfo.h:274
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
xAOD::EventInfo_v1::Error
@ Error
The sub-detector issued an error.
Definition: EventInfo_v1.h:349
EventInfo::TRT
@ TRT
Definition: EventInfo/EventInfo/EventInfo.h:61
PileUpTimeEventIndex::MinimumBias
@ MinimumBias
Definition: PileUpTimeEventIndex.h:17
EventInfo::ForwardDet
@ ForwardDet
Definition: EventInfo/EventInfo/EventInfo.h:61
xAOD::EventInfo_v1::setBeamTiltYZ
void setBeamTiltYZ(float value)
Set the beam's tilt in radians in YZ.
xAOD::EventInfo_v1::setBeamStatus
void setBeamStatus(uint32_t value)
Set the beam spot's status word.
xAOD::EventInfo_v1::setEventFlags
bool setEventFlags(EventFlagSubDet subDet, uint32_t flags)
Set the event flags for a particular sub-detector.
Definition: EventInfo_v1.cxx:719
EventInfo::EventFlagErrorState
EventFlagErrorState
Definition: EventInfo/EventInfo/EventInfo.h:66
xAOD::EventInfo_v1::setStreamTags
void setStreamTags(const std::vector< StreamTag > &value)
Set the streams that the event was put in.
Definition: EventInfo_v1.cxx:342
PileUpEventInfo::beginSubEvt
SubEvent::iterator beginSubEvt()
Definition: PileUpEventInfo.h:131
Amg::z
@ z
Definition: GeoPrimitives.h:36
EventID.h
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
xAOD::EventInfo_v1::setLevel1TriggerType
void setLevel1TriggerType(uint16_t value)
Set the Level-1 trigger type.
xAOD::EventInfo_v1::setErrorState
bool setErrorState(EventFlagSubDet subDet, EventFlagErrorState state)
Set the error state for a particular sub-detector.
Definition: EventInfo_v1.cxx:825
xAOD::EventInfo_v1::setMCEventNumber
void setMCEventNumber(uint64_t value)
Set the MC generator's event number.
xAOD::EventInfo_v1::setEventTypeBitmask
void setEventTypeBitmask(uint32_t value)
Set the event type bitmask.
SG::Decorator
Helper class to provide type-safe access to aux data.
Definition: Decorator.h:59
PileUpTimeEventIndex::HaloGas
@ HaloGas
Definition: PileUpTimeEventIndex.h:19
lumiFormat.i
int i
Definition: lumiFormat.py:85
EventType::NameTagPairVec
std::vector< NameTagPair > NameTagPairVec
Definition: EventType.h:101
EventInfo::eventFlags
unsigned int eventFlags(EventFlagSubDet subDet) const
event flags for a particular sub-detector
Definition: EventInfo/EventInfo/EventInfo.h:254
xAOD::EventInfo_v1::setDetectorMask
void setDetectorMask(uint32_t mask0, uint32_t mask1)
Set the bit fields indicating with TTC timezones were present.
Definition: EventInfo_v1.cxx:149
xAOD::EventInfo_v1::Unknown
@ Unknown
Type not known/specified.
Definition: EventInfo_v1.h:265
PileUpTimeEventIndex::ZeroBias
@ ZeroBias
Definition: PileUpTimeEventIndex.h:21
EventInfo::NotSet
@ NotSet
Definition: EventInfo/EventInfo/EventInfo.h:67
EventType::IS_CALIBRATION
static const EventTypeCode IS_CALIBRATION
true: IS_CALIBRATION, false: IS_PHYSICS
Definition: EventType.h:157
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
Amg::x
@ x
Definition: GeoPrimitives.h:34
EventInfo::event_ID
EventID * event_ID()
the unique identification of the event.
Definition: EventInfo/EventInfo/EventInfo.h:224
xAOD::EventInfo_v1::HaloGas
@ HaloGas
Halo-gas non-collision background.
Definition: EventInfo_v1.h:269
EventInfo::Core
@ Core
Definition: EventInfo/EventInfo/EventInfo.h:61
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
xAODMaker::EventInfoCnvTool::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: EventInfoCnvTool.h:62
PileUpTimeEventIndex::Signal
@ Signal
Definition: PileUpTimeEventIndex.h:16
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
xAODMaker::EventInfoCnvTool::convert
virtual StatusCode convert(const EventInfo *aod, xAOD::EventInfo *xaod, bool pileUpInfo=false, bool copyPileUpLinks=true, const EventContext &ctx=Gaudi::Hive::currentContext()) const override
Function that fills an existing xAOD::EventInfo object with data.
Definition: EventInfoCnvTool.cxx:103
xAOD::EventInfo_v1::setStatusElement
void setStatusElement(uint32_t value)
Set the trigger status element.
xAOD::EventInfo_v1::setTimeStamp
void setTimeStamp(uint32_t value)
Set the POSIX time of the event.
xAOD::EventInfo_v1::setBCID
void setBCID(uint32_t value)
Set the bunch crossing ID of the event.
xAOD::EventInfo_v1::EventFlagErrorState
EventFlagErrorState
States that a given sub-detector could be in.
Definition: EventInfo_v1.h:346
xAOD::EventInfo_v1::setBeamPosSigmaXY
void setBeamPosSigmaXY(float value)
Set the beam spot shape's X-Y correlation.
TriggerInfo::level1TriggerType
number_type level1TriggerType() const
get level1 trigger type
Definition: TriggerInfo.cxx:138
xAOD::EventInfo_v1::ForwardDet
@ ForwardDet
The forward detectors.
Definition: EventInfo_v1.h:338
EventType::IS_SIMULATION
static const EventTypeCode IS_SIMULATION
true: IS_SIMULATION, false: IS_DATA
Definition: EventType.h:151
xAOD::EventInfo_v1::Muon
@ Muon
The muon spectrometer.
Definition: EventInfo_v1.h:337
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
xAOD::EventInfo_v1::setDetectorMaskExt
void setDetectorMaskExt(uint32_t mask2, uint32_t mask3)
Set the bit fields indicating with TTC timezones were present.
Definition: EventInfo_v1.cxx:170
LuminosityCondData::lbAverageInteractionsPerCrossing
float lbAverageInteractionsPerCrossing() const
Definition: LuminosityCondData.cxx:26
errorcheck.h
Helpers for checking error return status codes and reporting errors.
xAOD::EventInfo_v1::EventFlagSubDet
EventFlagSubDet
Sub-detector types for which we store event-level flags.
Definition: EventInfo_v1.h:331
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
xAOD::EventInfo_v1::setAverageInteractionsPerCrossing
void setAverageInteractionsPerCrossing(float value)
Set average interactions per crossing for all BCIDs.
Definition: EventInfo_v1.cxx:408
xAOD::EventInfo_v1::TRT
@ TRT
The TRT.
Definition: EventInfo_v1.h:334
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
xAODMaker::EventInfoCnvTool::EventInfoCnvTool
EventInfoCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: EventInfoCnvTool.cxx:52
EventInfo.h
REPORT_MESSAGE
#define REPORT_MESSAGE(LVL)
Report a message.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:365
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
xAOD::EventInfo_v1::setTimeStampNSOffset
void setTimeStampNSOffset(uint32_t value)
Set the nanosecond offset wrt. the time stamp.
xAOD::EventInfo_v1::setMCChannelNumber
void setMCChannelNumber(uint32_t value)
Set the MC generator's channel number.
xAOD::EventInfo_v1::Signal
@ Signal
The signal event.
Definition: EventInfo_v1.h:266
xAOD::EventInfo_v1::Warning
@ Warning
The sub-detector issued a warning.
Definition: EventInfo_v1.h:348
PileUpEventInfo
This class provides information about an overlaid event. It extends EventInfo with a list of sub-evts...
Definition: PileUpEventInfo.h:37
xAOD::EventInfo_v1::Tile
@ Tile
The Tile calorimeter.
Definition: EventInfo_v1.h:336
TriggerInfo::extendedLevel1ID
number_type extendedLevel1ID() const
get extended level1 ID
Definition: TriggerInfo.cxx:133
EventType::IS_TESTBEAM
static const EventTypeCode IS_TESTBEAM
true: IS_TESTBEAM, false: IS_FROM_ATLAS_DET
Definition: EventType.h:154
EventInfo::Muon
@ Muon
Definition: EventInfo/EventInfo/EventInfo.h:61
EventInfo::Lumi
@ Lumi
Definition: EventInfo/EventInfo/EventInfo.h:61
EventType::mc_event_number
uint64_t mc_event_number() const
Access to the MC generator event number.
Definition: EventType.cxx:170
EventType::test
bool test(EventTypeCode type_code) const
Tests for standard characteristics.
Definition: EventType.cxx:62
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
xAOD::EventInfo_v1::setRunNumber
void setRunNumber(uint32_t value)
Set the current event's run number.
PileUpEventInfo::SubEvent::const_iterator
std::list< SubEvent >::const_iterator const_iterator
Definition: PileUpEventInfo.h:97
EventInfo::trigger_info
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
Definition: EventInfo/EventInfo/EventInfo.h:244
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::EventInfo_v1::setBeamTiltXZ
void setBeamTiltXZ(float value)
Set the beam's tilt in radians in XZ.
xAOD::EventInfo_v1::Cavern
@ Cavern
Cavern background pileup event.
Definition: EventInfo_v1.h:268
EventType::n_mc_event_weights
unsigned int n_mc_event_weights() const
Total number of MC weights.
Definition: EventType.cxx:214
SG::IConstAuxStore::lock
virtual void lock()=0
Lock the container.
EventInfo::LAr
@ LAr
Definition: EventInfo/EventInfo/EventInfo.h:61
EventInfo::EventFlagSubDet
EventFlagSubDet
Definition: EventInfo/EventInfo/EventInfo.h:60
xAODMaker::EventInfoCnvTool::m_lumiDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey
Definition: EventInfoCnvTool.h:71
xAOD::EventInfo_v1::Lumi
@ Lumi
The luminosity detectors.
Definition: EventInfo_v1.h:341
xAODMaker::EventInfoCnvTool::m_disableBeamSpot
Gaudi::Property< bool > m_disableBeamSpot
Definition: EventInfoCnvTool.h:63
AthAlgTool
Definition: AthAlgTool.h:26
PileUpTimeEventIndex::HighPtMinimumBias
@ HighPtMinimumBias
Definition: PileUpTimeEventIndex.h:20
EventInfo::Pixel
@ Pixel
Definition: EventInfo/EventInfo/EventInfo.h:61
xAOD::EventInfo_v1::setLumiBlock
void setLumiBlock(uint32_t value)
Set the current event's luminosity block number.
SG::AllowEmpty
@ AllowEmpty
Definition: StoreGate/StoreGate/VarHandleKey.h:30
TriggerInfo::statusElement
number_type statusElement() const
get status element
Definition: TriggerInfo.cxx:128
xAOD::EventInfo_v1::IS_TESTBEAM
@ IS_TESTBEAM
true: testbeam, false: full detector
Definition: EventInfo_v1.h:153
xAOD::EventInfo_v1::Core
@ Core
Core flags describing the event.
Definition: EventInfo_v1.h:339
EventInfo::event_type
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
Definition: EventInfo/EventInfo/EventInfo.h:234
PileUpEventInfo::endSubEvt
SubEvent::iterator endSubEvt()
Definition: PileUpEventInfo.h:132
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
PileUpTimeEventIndex::Unknown
@ Unknown
Definition: PileUpTimeEventIndex.h:15
xAOD::EventInfo_v1::eventType
bool eventType(EventType type) const
Check for one particular bitmask value.
xAOD::EventInfo_v1::SCT
@ SCT
The SCT.
Definition: EventInfo_v1.h:333
EventInfo::Background
@ Background
Definition: EventInfo/EventInfo/EventInfo.h:61
EventInfo::actualInteractionsPerCrossing
float actualInteractionsPerCrossing() const
Access to number of interactions per crossing:
Definition: EventInfo/EventInfo/EventInfo.h:283