ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecBackground
RecBackgroundAlgs
src
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
"
6
#include "
xAODEventInfo/EventInfo.h
"
7
#include <algorithm>
8
9
using
xAOD::EventInfo
;
10
11
//----------------------------------------------------------------
12
13
BackgroundWordTest::BackgroundWordTest
(
const
std::string& name,
14
ISvcLocator* pSvcLocator) :
15
AthAlgorithm
(name,pSvcLocator)
16
{
17
}
18
19
//----------------------------------------------------------------
20
21
BackgroundWordTest::~BackgroundWordTest
() =
default
;
22
23
24
//----------------------------------------------------------------
25
26
StatusCode
BackgroundWordTest::initialize
()
27
{
28
ATH_MSG_INFO
(
"In initialize()"
);
29
return
StatusCode::SUCCESS;
30
}
31
32
//----------------------------------------------------------------
33
34
StatusCode
BackgroundWordTest::execute
(
const
EventContext&
/*ctx*/
)
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:"
);
46
ATH_MSG_DEBUG
(
"MBTSTimeDiffHalo: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::MBTSTimeDiffHalo
));
47
ATH_MSG_DEBUG
(
"MBTSTimeDiffCol: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::MBTSTimeDiffCol
));
48
ATH_MSG_DEBUG
(
"MBTSBeamVeto: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::MBTSBeamVeto
));
49
ATH_MSG_DEBUG
(
"LArECTimeDiffHalo: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::LArECTimeDiffHalo
));
50
ATH_MSG_DEBUG
(
"LArECTimeDiffCol: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::LArECTimeDiffCol
));
51
ATH_MSG_DEBUG
(
"PixMultiplicityHuge: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::PixMultiplicityHuge
));
52
ATH_MSG_DEBUG
(
"PixSPNonEmpty: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::PixSPNonEmpty
));
53
ATH_MSG_DEBUG
(
"SCTMultiplicityHuge: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::SCTMultiplicityHuge
));
54
ATH_MSG_DEBUG
(
"SCTSPNonEmpty: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::SCTSPNonEmpty
));
55
ATH_MSG_DEBUG
(
"CSCTimeDiffHalo: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::CSCTimeDiffHalo
));
56
ATH_MSG_DEBUG
(
"CSCTimeDiffCol: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::CSCTimeDiffCol
));
57
ATH_MSG_DEBUG
(
"BCMTimeDiffHalo: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::BCMTimeDiffHalo
));
58
ATH_MSG_DEBUG
(
"BCMTimeDiffCol: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::BCMTimeDiffCol
));
59
ATH_MSG_DEBUG
(
"BCMBeamVeto: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::BCMBeamVeto
));
60
ATH_MSG_DEBUG
(
"MuonTimingCol: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::MuonTimingCol
));
61
ATH_MSG_DEBUG
(
"MuonTimingCosmic: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::MuonTimingCosmic
));
62
ATH_MSG_DEBUG
(
"LUCIDBeamVeto: "
<<eventInfo->
isEventFlagBitSet
(
EventInfo::Background
,
EventInfo::LUCIDBeamVeto
));
63
//
64
65
return
StatusCode::SUCCESS;
66
}
67
68
//----------------------------------------------------------------
69
70
StatusCode
BackgroundWordTest::finalize
() {
71
72
ATH_MSG_INFO
(
"In finalize()"
);
73
return
StatusCode::SUCCESS;
74
}
75
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
BackgroundWordTest.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthCommonAlgorithm< Gaudi::Algorithm >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
Definition
AthCommonDataStore.h:85
BackgroundWordTest::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
BackgroundWordTest.cxx:34
BackgroundWordTest::~BackgroundWordTest
~BackgroundWordTest()
BackgroundWordTest::BackgroundWordTest
BackgroundWordTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition
BackgroundWordTest.cxx:13
BackgroundWordTest::initialize
StatusCode initialize()
Definition
BackgroundWordTest.cxx:26
BackgroundWordTest::finalize
StatusCode finalize()
Definition
BackgroundWordTest.cxx:70
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
xAOD::EventInfo_v1::Background
@ Background
The beam background detectors.
Definition
EventInfo_v1.h:340
xAOD::EventInfo_v1::SCTMultiplicityHuge
@ SCTMultiplicityHuge
Definition
EventInfo_v1.h:360
xAOD::EventInfo_v1::MBTSTimeDiffCol
@ MBTSTimeDiffCol
Definition
EventInfo_v1.h:355
xAOD::EventInfo_v1::SCTSPNonEmpty
@ SCTSPNonEmpty
Definition
EventInfo_v1.h:361
xAOD::EventInfo_v1::LArECTimeDiffCol
@ LArECTimeDiffCol
Definition
EventInfo_v1.h:357
xAOD::EventInfo_v1::MBTSTimeDiffHalo
@ MBTSTimeDiffHalo
Definition
EventInfo_v1.h:354
xAOD::EventInfo_v1::MBTSBeamVeto
@ MBTSBeamVeto
Definition
EventInfo_v1.h:368
xAOD::EventInfo_v1::MuonTimingCosmic
@ MuonTimingCosmic
Definition
EventInfo_v1.h:367
xAOD::EventInfo_v1::CSCTimeDiffCol
@ CSCTimeDiffCol
Definition
EventInfo_v1.h:363
xAOD::EventInfo_v1::LUCIDBeamVeto
@ LUCIDBeamVeto
Definition
EventInfo_v1.h:370
xAOD::EventInfo_v1::PixSPNonEmpty
@ PixSPNonEmpty
Definition
EventInfo_v1.h:359
xAOD::EventInfo_v1::BCMTimeDiffCol
@ BCMTimeDiffCol
Definition
EventInfo_v1.h:365
xAOD::EventInfo_v1::PixMultiplicityHuge
@ PixMultiplicityHuge
Definition
EventInfo_v1.h:358
xAOD::EventInfo_v1::BCMTimeDiffHalo
@ BCMTimeDiffHalo
Definition
EventInfo_v1.h:364
xAOD::EventInfo_v1::CSCTimeDiffHalo
@ CSCTimeDiffHalo
Definition
EventInfo_v1.h:362
xAOD::EventInfo_v1::MuonTimingCol
@ MuonTimingCol
Definition
EventInfo_v1.h:366
xAOD::EventInfo_v1::BCMBeamVeto
@ BCMBeamVeto
Definition
EventInfo_v1.h:369
xAOD::EventInfo_v1::LArECTimeDiffHalo
@ LArECTimeDiffHalo
Definition
EventInfo_v1.h:356
EventInfo
Definition
EventInfo.py:1
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0