ATLAS Offline Software
Loading...
Searching...
No Matches
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
6Jamie Boyd 7/2/2010
7
8Updated 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
31 StatusCode initialize();
32 StatusCode execute();
33 StatusCode finalize();
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", 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
95 const uint8_t m_MBTSmask, m_MBTSpattern;
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
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ReadHandleKey for EventInfo object.
SG::ReadHandleKey< BcmCollisionTime > m_bcmCollisionTimeKey
ReadHandleKey for BcmCollisionTime.
SG::ReadHandleKey< TileCellContainer > m_tileCellContainerKey
ReadHandleKey for TileCellContainer.
SG::ReadHandleKey< SpacePointContainer > m_pixSpacePointKey
std::array< const char *, xAOD::EventInfo::NBackgroundWords > m_bitnamevec
SG::ReadHandleKey< SpacePointContainer > m_sctSpacePointKey
ReadHandleKey for SpacePointContainers.
SG::ReadHandleKey< BeamBackgroundData > m_beamBackgroundDataKey
ReadHandleKey for BeamBackgroundData.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
WriteDecorHandleKey: needed for scheduling downstream clients.
SG::ReadHandleKey< LUCID_RawDataContainer > m_LUCID_rawDataContainerKey
ReadHandleKey for LUCID_RawDataContainer.
Gaudi::Property< bool > m_isMC
std::array< unsigned int, xAOD::EventInfo::NBackgroundWords > m_bitcntvec
SG::ReadHandleKey< LArCollisionTime > m_lArCollisionTimeKey
ReadHandleKey for LArCollisionTime.
BackgroundWordFiller(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.