ATLAS Offline Software
BackgroundWordFiller.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
24 
26 
27  public:
28  BackgroundWordFiller(const std::string& name, ISvcLocator* pSvcLocator);
30 
34 
35  private:
38  this, "eventInfoKey", "EventInfo", "Key for EventInfo object"};
39 
42  this, "BeamBackgroundDataKey", "BeamBackgroundData",
43  "Key for BeamBackgroundData object"};
44 
47  this, "LUCID_rawDataContainerKey", "Lucid_RawData",
48  "Key for LUCID_RawDataContainer object"};
49 
52  this, "BcmCollisionTimeKey", "BcmCollisionTime",
53  "Key for BcmCollisionTime"};
54 
57  this, "SCT_SpacePointKey", "SCT_SpacePoints", ""};
59  this, "Pixel_SpacePointKey", "PixelSpacePoints", ""};
60 
63  this, "TileCellContainerKey", "MBTSContainer",
64  "Key for TileCellContainer"};
65 
68  this, "LArCollisionTimeKey", "LArCollisionTime",
69  "Key for LArCollisionTime"};
70 
73  this, "eventInfoDecorKey", "EventInfo.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 
96 
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
BackgroundWordFiller::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
WriteDecorHandleKey: needed for scheduling downstream clients.
Definition: BackgroundWordFiller.h:72
SG::WriteDecorHandleKey< xAOD::EventInfo >
LUCID_RawDataContainer.h
BackgroundWordFiller::m_bitnamevec
std::array< const char *, xAOD::EventInfo::NBackgroundWords > m_bitnamevec
Definition: BackgroundWordFiller.h:103
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
BackgroundWordFiller::m_BCMTimeDiffHalo_CutLo
float m_BCMTimeDiffHalo_CutLo
Definition: BackgroundWordFiller.h:89
BackgroundWordFiller::m_HaloNumTwoSided_Cut
int m_HaloNumTwoSided_Cut
Definition: BackgroundWordFiller.h:82
BackgroundWordFiller::finalize
StatusCode finalize()
Definition: BackgroundWordFiller.cxx:481
BackgroundWordFiller::m_LArEC_SideCut
int m_LArEC_SideCut
Definition: BackgroundWordFiller.h:97
BackgroundWordFiller::m_LArECTimeDiffHalo_CutHi
float m_LArECTimeDiffHalo_CutHi
Definition: BackgroundWordFiller.h:99
SG::ReadHandleKey< xAOD::EventInfo >
BackgroundWordFiller::m_lArCollisionTimeKey
SG::ReadHandleKey< LArCollisionTime > m_lArCollisionTimeKey
ReadHandleKey for LArCollisionTime.
Definition: BackgroundWordFiller.h:67
BackgroundWordFiller::m_LUCID_rawDataContainerKey
SG::ReadHandleKey< LUCID_RawDataContainer > m_LUCID_rawDataContainerKey
ReadHandleKey for LUCID_RawDataContainer.
Definition: BackgroundWordFiller.h:46
SpacePointContainer.h
BackgroundWordFiller::m_sctSpacePointKey
SG::ReadHandleKey< SpacePointContainer > m_sctSpacePointKey
ReadHandleKey for SpacePointContainers.
Definition: BackgroundWordFiller.h:56
BackgroundWordFiller::m_HaloNumSegment_Cut
int m_HaloNumSegment_Cut
Definition: BackgroundWordFiller.h:79
AthAlgorithm.h
BackgroundWordFiller::execute
StatusCode execute()
Definition: BackgroundWordFiller.cxx:149
BcmCollisionTime.h
BackgroundWordFiller::m_MBTSpattern
const uint8_t m_MBTSpattern
Definition: BackgroundWordFiller.h:95
BackgroundWordFiller
Definition: BackgroundWordFiller.h:25
BackgroundWordFiller::m_PixMultiplicityHuge_Cut
int m_PixMultiplicityHuge_Cut
Definition: BackgroundWordFiller.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
BackgroundWordFiller::m_isMC
Gaudi::Property< bool > m_isMC
Definition: BackgroundWordFiller.h:76
BackgroundWordFiller::m_MBTSmask
const uint8_t m_MBTSmask
Definition: BackgroundWordFiller.h:95
BackgroundWordFiller::m_SCTMultiplicityHuge_Cut
int m_SCTMultiplicityHuge_Cut
Definition: BackgroundWordFiller.h:85
BeamBackgroundData.h
BackgroundWordFiller::m_tileCellContainerKey
SG::ReadHandleKey< TileCellContainer > m_tileCellContainerKey
ReadHandleKey for TileCellContainer.
Definition: BackgroundWordFiller.h:62
BackgroundWordFiller::initialize
StatusCode initialize()
Definition: BackgroundWordFiller.cxx:131
BackgroundWordFiller::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ReadHandleKey for EventInfo object.
Definition: BackgroundWordFiller.h:37
BackgroundWordFiller::m_LUCIDBeamVeto_Cut
int m_LUCIDBeamVeto_Cut
Definition: BackgroundWordFiller.h:87
BackgroundWordFiller::BackgroundWordFiller
BackgroundWordFiller(const std::string &name, ISvcLocator *pSvcLocator)
Definition: BackgroundWordFiller.cxx:45
AthAlgorithm
Definition: AthAlgorithm.h:47
BackgroundWordFiller::m_LArECTimeDiffHalo_CutLo
float m_LArECTimeDiffHalo_CutLo
Definition: BackgroundWordFiller.h:99
BackgroundWordFiller::m_PixSPNonEmpty_Cut
int m_PixSPNonEmpty_Cut
Definition: BackgroundWordFiller.h:84
BackgroundWordFiller::m_pixSpacePointKey
SG::ReadHandleKey< SpacePointContainer > m_pixSpacePointKey
Definition: BackgroundWordFiller.h:58
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
BackgroundWordFiller::~BackgroundWordFiller
~BackgroundWordFiller()
Definition: BackgroundWordFiller.cxx:127
BackgroundWordFiller::m_BCMLowGainCut
int m_BCMLowGainCut
Definition: BackgroundWordFiller.h:91
BackgroundWordFiller::m_bcmCollisionTimeKey
SG::ReadHandleKey< BcmCollisionTime > m_bcmCollisionTimeKey
ReadHandleKey for BcmCollisionTime.
Definition: BackgroundWordFiller.h:51
EventInfo.h
BackgroundWordFiller::m_beamBackgroundDataKey
SG::ReadHandleKey< BeamBackgroundData > m_beamBackgroundDataKey
ReadHandleKey for BeamBackgroundData.
Definition: BackgroundWordFiller.h:41
BackgroundWordFiller::m_HaloNumClusterShape_Cut
int m_HaloNumClusterShape_Cut
Definition: BackgroundWordFiller.h:80
BackgroundWordFiller::m_totalcnt
unsigned int m_totalcnt
Definition: BackgroundWordFiller.h:101
BackgroundWordFiller::m_HaloNumOneSidedLoose_Cut
int m_HaloNumOneSidedLoose_Cut
Definition: BackgroundWordFiller.h:81
BackgroundWordFiller::m_SCTSPNonEmpty_Cut
int m_SCTSPNonEmpty_Cut
Definition: BackgroundWordFiller.h:86
BackgroundWordFiller::m_MBTSBeamVeto_TimeCut
int m_MBTSBeamVeto_TimeCut
Definition: BackgroundWordFiller.h:93
BackgroundWordFiller::m_LArECTimeDiffCol_Cut
float m_LArECTimeDiffCol_Cut
Definition: BackgroundWordFiller.h:98
BackgroundWordFiller::m_bitcntvec
std::array< unsigned int, xAOD::EventInfo::NBackgroundWords > m_bitcntvec
Definition: BackgroundWordFiller.h:102
BackgroundWordFiller::m_BCMTimeDiffCol_Cut
float m_BCMTimeDiffCol_Cut
Definition: BackgroundWordFiller.h:88
BackgroundWordFiller::m_BCMHiGainCut
int m_BCMHiGainCut
Definition: BackgroundWordFiller.h:90
LArCollisionTime.h
BackgroundWordFiller::m_MBTSBeamVeto_MultiplicityCut
int m_MBTSBeamVeto_MultiplicityCut
Definition: BackgroundWordFiller.h:92
TileContainer.h
BackgroundWordFiller::m_MBTSBeamVeto_ThresholdCut
float m_MBTSBeamVeto_ThresholdCut
Definition: BackgroundWordFiller.h:94