ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecBackground
RecBackgroundAlgs
src
BackgroundWordFiller.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/* Algorihtm to fill the background word that is stored in the EventInfo
6
Jamie Boyd 7/2/2010
7
8
Updated Mark Tibbetts 6/3/2012
9
*/
10
11
#ifndef RECBACKGROUNDALGS_CHBACKGROUNDWORDFILLER
12
#define RECBACKGROUNDALGS_CHBACKGROUNDWORDFILLER
13
14
#include <array>
15
16
#include "
AthenaBaseComps/AthAlgorithm.h
"
17
#include "
BCM_CollisionTime/BcmCollisionTime.h
"
18
#include "
LArRecEvent/LArCollisionTime.h
"
19
#include "
LUCID_RawEvent/LUCID_RawDataContainer.h
"
20
#include "
RecBackgroundEvent/BeamBackgroundData.h
"
21
#include "
TileEvent/TileContainer.h
"
22
#include "
TrkSpacePoint/SpacePointContainer.h
"
23
#include "
xAODEventInfo/EventInfo.h
"
24
25
class
BackgroundWordFiller
:
public
AthAlgorithm
{
26
27
public
:
28
BackgroundWordFiller
(
const
std::string& name, ISvcLocator* pSvcLocator);
29
~BackgroundWordFiller
();
30
31
StatusCode
initialize
();
32
StatusCode
execute
(
const
EventContext& ctx);
33
StatusCode
finalize
();
34
35
private
:
37
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
38
this
,
"eventInfoKey"
,
"EventInfo"
,
"Key for EventInfo object"
};
39
41
SG::ReadHandleKey<BeamBackgroundData>
m_beamBackgroundDataKey
{
42
this
,
"BeamBackgroundDataKey"
,
"BeamBackgroundData"
,
43
"Key for BeamBackgroundData object"
};
44
46
SG::ReadHandleKey<LUCID_RawDataContainer>
m_LUCID_rawDataContainerKey
{
47
this
,
"LUCID_rawDataContainerKey"
,
"Lucid_RawData"
,
48
"Key for LUCID_RawDataContainer object"
};
49
51
SG::ReadHandleKey<BcmCollisionTime>
m_bcmCollisionTimeKey
{
52
this
,
"BcmCollisionTimeKey"
,
"BcmCollisionTime"
,
53
"Key for BcmCollisionTime"
};
54
56
SG::ReadHandleKey<SpacePointContainer>
m_sctSpacePointKey
{
57
this
,
"SCT_SpacePointKey"
,
"SCT_SpacePoints"
,
""
};
58
SG::ReadHandleKey<SpacePointContainer>
m_pixSpacePointKey
{
59
this
,
"Pixel_SpacePointKey"
,
"PixelSpacePoints"
,
""
};
60
62
SG::ReadHandleKey<TileCellContainer>
m_tileCellContainerKey
{
63
this
,
"TileCellContainerKey"
,
"MBTSContainer"
,
64
"Key for TileCellContainer"
};
65
67
SG::ReadHandleKey<LArCollisionTime>
m_lArCollisionTimeKey
{
68
this
,
"LArCollisionTimeKey"
,
"LArCollisionTime"
,
69
"Key for LArCollisionTime"
};
70
72
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_eventInfoDecorKey
{
73
this
,
"eventInfoDecorKey"
,
m_eventInfoKey
,
"backgroundWord"
,
74
"Decoration key for downstream clients"
};
75
76
Gaudi::Property<bool>
m_isMC
{
this
,
"IsMC"
,
false
,
77
"Sets whether we should expect MC objects"
};
78
79
int
m_HaloNumSegment_Cut
;
80
int
m_HaloNumClusterShape_Cut
;
81
int
m_HaloNumOneSidedLoose_Cut
;
82
int
m_HaloNumTwoSided_Cut
;
83
int
m_PixMultiplicityHuge_Cut
;
84
int
m_PixSPNonEmpty_Cut
;
85
int
m_SCTMultiplicityHuge_Cut
;
86
int
m_SCTSPNonEmpty_Cut
;
87
int
m_LUCIDBeamVeto_Cut
;
88
float
m_BCMTimeDiffCol_Cut
;
89
float
m_BCMTimeDiffHalo_CutLo
;
90
int
m_BCMHiGainCut
;
91
int
m_BCMLowGainCut
;
92
int
m_MBTSBeamVeto_MultiplicityCut
;
93
int
m_MBTSBeamVeto_TimeCut
;
94
float
m_MBTSBeamVeto_ThresholdCut
;
95
const
uint8_t
m_MBTSmask
,
m_MBTSpattern
;
96
97
int
m_LArEC_SideCut
;
98
float
m_LArECTimeDiffCol_Cut
;
99
float
m_LArECTimeDiffHalo_CutLo
,
m_LArECTimeDiffHalo_CutHi
;
100
101
unsigned
int
m_totalcnt
;
102
std::array<unsigned int, xAOD::EventInfo::NBackgroundWords>
m_bitcntvec
;
103
std::array<const char*, xAOD::EventInfo::NBackgroundWords>
m_bitnamevec
;
104
};
105
106
#endif
AthAlgorithm.h
BcmCollisionTime.h
BeamBackgroundData.h
LArCollisionTime.h
LUCID_RawDataContainer.h
TileContainer.h
SpacePointContainer.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
BackgroundWordFiller::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ReadHandleKey for EventInfo object.
Definition
BackgroundWordFiller.h:37
BackgroundWordFiller::m_LArECTimeDiffCol_Cut
float m_LArECTimeDiffCol_Cut
Definition
BackgroundWordFiller.h:98
BackgroundWordFiller::m_BCMTimeDiffCol_Cut
float m_BCMTimeDiffCol_Cut
Definition
BackgroundWordFiller.h:88
BackgroundWordFiller::m_PixMultiplicityHuge_Cut
int m_PixMultiplicityHuge_Cut
Definition
BackgroundWordFiller.h:83
BackgroundWordFiller::m_bcmCollisionTimeKey
SG::ReadHandleKey< BcmCollisionTime > m_bcmCollisionTimeKey
ReadHandleKey for BcmCollisionTime.
Definition
BackgroundWordFiller.h:51
BackgroundWordFiller::m_tileCellContainerKey
SG::ReadHandleKey< TileCellContainer > m_tileCellContainerKey
ReadHandleKey for TileCellContainer.
Definition
BackgroundWordFiller.h:62
BackgroundWordFiller::m_LUCIDBeamVeto_Cut
int m_LUCIDBeamVeto_Cut
Definition
BackgroundWordFiller.h:87
BackgroundWordFiller::m_BCMLowGainCut
int m_BCMLowGainCut
Definition
BackgroundWordFiller.h:91
BackgroundWordFiller::m_pixSpacePointKey
SG::ReadHandleKey< SpacePointContainer > m_pixSpacePointKey
Definition
BackgroundWordFiller.h:58
BackgroundWordFiller::m_bitnamevec
std::array< const char *, xAOD::EventInfo::NBackgroundWords > m_bitnamevec
Definition
BackgroundWordFiller.h:103
BackgroundWordFiller::m_sctSpacePointKey
SG::ReadHandleKey< SpacePointContainer > m_sctSpacePointKey
ReadHandleKey for SpacePointContainers.
Definition
BackgroundWordFiller.h:56
BackgroundWordFiller::m_HaloNumTwoSided_Cut
int m_HaloNumTwoSided_Cut
Definition
BackgroundWordFiller.h:82
BackgroundWordFiller::m_MBTSmask
const uint8_t m_MBTSmask
Definition
BackgroundWordFiller.h:95
BackgroundWordFiller::~BackgroundWordFiller
~BackgroundWordFiller()
Definition
BackgroundWordFiller.cxx:127
BackgroundWordFiller::m_beamBackgroundDataKey
SG::ReadHandleKey< BeamBackgroundData > m_beamBackgroundDataKey
ReadHandleKey for BeamBackgroundData.
Definition
BackgroundWordFiller.h:41
BackgroundWordFiller::m_SCTSPNonEmpty_Cut
int m_SCTSPNonEmpty_Cut
Definition
BackgroundWordFiller.h:86
BackgroundWordFiller::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
WriteDecorHandleKey: needed for scheduling downstream clients.
Definition
BackgroundWordFiller.h:72
BackgroundWordFiller::m_MBTSBeamVeto_MultiplicityCut
int m_MBTSBeamVeto_MultiplicityCut
Definition
BackgroundWordFiller.h:92
BackgroundWordFiller::m_LUCID_rawDataContainerKey
SG::ReadHandleKey< LUCID_RawDataContainer > m_LUCID_rawDataContainerKey
ReadHandleKey for LUCID_RawDataContainer.
Definition
BackgroundWordFiller.h:46
BackgroundWordFiller::m_HaloNumSegment_Cut
int m_HaloNumSegment_Cut
Definition
BackgroundWordFiller.h:79
BackgroundWordFiller::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
BackgroundWordFiller.cxx:149
BackgroundWordFiller::finalize
StatusCode finalize()
Definition
BackgroundWordFiller.cxx:481
BackgroundWordFiller::m_LArECTimeDiffHalo_CutLo
float m_LArECTimeDiffHalo_CutLo
Definition
BackgroundWordFiller.h:99
BackgroundWordFiller::m_isMC
Gaudi::Property< bool > m_isMC
Definition
BackgroundWordFiller.h:76
BackgroundWordFiller::m_HaloNumOneSidedLoose_Cut
int m_HaloNumOneSidedLoose_Cut
Definition
BackgroundWordFiller.h:81
BackgroundWordFiller::m_bitcntvec
std::array< unsigned int, xAOD::EventInfo::NBackgroundWords > m_bitcntvec
Definition
BackgroundWordFiller.h:102
BackgroundWordFiller::m_BCMHiGainCut
int m_BCMHiGainCut
Definition
BackgroundWordFiller.h:90
BackgroundWordFiller::m_MBTSpattern
const uint8_t m_MBTSpattern
Definition
BackgroundWordFiller.h:95
BackgroundWordFiller::m_MBTSBeamVeto_TimeCut
int m_MBTSBeamVeto_TimeCut
Definition
BackgroundWordFiller.h:93
BackgroundWordFiller::m_lArCollisionTimeKey
SG::ReadHandleKey< LArCollisionTime > m_lArCollisionTimeKey
ReadHandleKey for LArCollisionTime.
Definition
BackgroundWordFiller.h:67
BackgroundWordFiller::BackgroundWordFiller
BackgroundWordFiller(const std::string &name, ISvcLocator *pSvcLocator)
Definition
BackgroundWordFiller.cxx:45
BackgroundWordFiller::m_HaloNumClusterShape_Cut
int m_HaloNumClusterShape_Cut
Definition
BackgroundWordFiller.h:80
BackgroundWordFiller::m_totalcnt
unsigned int m_totalcnt
Definition
BackgroundWordFiller.h:101
BackgroundWordFiller::initialize
StatusCode initialize()
Definition
BackgroundWordFiller.cxx:131
BackgroundWordFiller::m_MBTSBeamVeto_ThresholdCut
float m_MBTSBeamVeto_ThresholdCut
Definition
BackgroundWordFiller.h:94
BackgroundWordFiller::m_BCMTimeDiffHalo_CutLo
float m_BCMTimeDiffHalo_CutLo
Definition
BackgroundWordFiller.h:89
BackgroundWordFiller::m_LArEC_SideCut
int m_LArEC_SideCut
Definition
BackgroundWordFiller.h:97
BackgroundWordFiller::m_LArECTimeDiffHalo_CutHi
float m_LArECTimeDiffHalo_CutHi
Definition
BackgroundWordFiller.h:99
BackgroundWordFiller::m_PixSPNonEmpty_Cut
int m_PixSPNonEmpty_Cut
Definition
BackgroundWordFiller.h:84
BackgroundWordFiller::m_SCTMultiplicityHuge_Cut
int m_SCTMultiplicityHuge_Cut
Definition
BackgroundWordFiller.h:85
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0