ATLAS Offline Software
BackgroundWordTest.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "BackgroundWordTest.h"
7 #include <algorithm>
8 
9 using xAOD::EventInfo;
10 
11 //----------------------------------------------------------------
12 
14  ISvcLocator* pSvcLocator) :
15  AthAlgorithm(name,pSvcLocator)
16 {
17 }
18 
19 //----------------------------------------------------------------
20 
22 
23 
24 //----------------------------------------------------------------
25 
27 {
28  ATH_MSG_INFO( "In initialize()" );
29  return StatusCode::SUCCESS;
30 }
31 
32 //----------------------------------------------------------------
33 
35 {
37  // get the EventInfo
39  const EventInfo * eventInfo = nullptr;
40  ATH_CHECK( evtStore()->retrieve( eventInfo ) );
41 
43  // printout the final background word
45  ATH_MSG_DEBUG( "Summary of background word contents:");
63  //
64 
65  return StatusCode::SUCCESS;
66 }
67 
68 //----------------------------------------------------------------
69 
71 
72  ATH_MSG_INFO( "In finalize()" );
73  return StatusCode::SUCCESS;
74 }
75 
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
EventInfo::BCMBeamVeto
@ BCMBeamVeto
Definition: EventInfo/EventInfo/EventInfo.h:85
EventInfo::MBTSBeamVeto
@ MBTSBeamVeto
Definition: EventInfo/EventInfo/EventInfo.h:84
EventInfo::isEventFlagBitSet
bool isEventFlagBitSet(EventFlagSubDet subDet, unsigned char bit) const
check for a event flag bit for a particular sub-detector
Definition: EventInfo/EventInfo/EventInfo.h:261
BackgroundWordTest::initialize
StatusCode initialize()
Definition: BackgroundWordTest.cxx:26
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition: IEventInfoCnvTool.h:17
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
EventInfo::PixSPNonEmpty
@ PixSPNonEmpty
Definition: EventInfo/EventInfo/EventInfo.h:79
EventInfo::CSCTimeDiffHalo
@ CSCTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:81
EventInfo::MBTSTimeDiffCol
@ MBTSTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:77
EventInfo::SCTSPNonEmpty
@ SCTSPNonEmpty
Definition: EventInfo/EventInfo/EventInfo.h:80
BackgroundWordTest.h
EventInfo::PixMultiplicityHuge
@ PixMultiplicityHuge
Definition: EventInfo/EventInfo/EventInfo.h:79
AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
BackgroundWordTest::BackgroundWordTest
BackgroundWordTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: BackgroundWordTest.cxx:13
BackgroundWordTest::finalize
StatusCode finalize()
Definition: BackgroundWordTest.cxx:70
EventInfo::LUCIDBeamVeto
@ LUCIDBeamVeto
Definition: EventInfo/EventInfo/EventInfo.h:86
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
EventInfo::SCTMultiplicityHuge
@ SCTMultiplicityHuge
Definition: EventInfo/EventInfo/EventInfo.h:80
EventInfo::BCMTimeDiffHalo
@ BCMTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:82
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthAlgorithm
Definition: AthAlgorithm.h:47
EventInfo::CSCTimeDiffCol
@ CSCTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:81
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
BackgroundWordTest::~BackgroundWordTest
~BackgroundWordTest()
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
EventInfo.h
EventInfo::MuonTimingCosmic
@ MuonTimingCosmic
Definition: EventInfo/EventInfo/EventInfo.h:83
BackgroundWordTest::execute
StatusCode execute()
Definition: BackgroundWordTest.cxx:34
EventInfo::LArECTimeDiffHalo
@ LArECTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:78
EventInfo::MuonTimingCol
@ MuonTimingCol
Definition: EventInfo/EventInfo/EventInfo.h:83
EventInfo::BCMTimeDiffCol
@ BCMTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:82
EventInfo::LArECTimeDiffCol
@ LArECTimeDiffCol
Definition: EventInfo/EventInfo/EventInfo.h:78
EventInfo::MBTSTimeDiffHalo
@ MBTSTimeDiffHalo
Definition: EventInfo/EventInfo/EventInfo.h:77
EventInfo::Background
@ Background
Definition: EventInfo/EventInfo/EventInfo.h:61