ATLAS Offline Software
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
()
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
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
Generated on Mon Dec 23 2024 21:07:21 for ATLAS Offline Software by
1.8.18