ATLAS Offline Software
Loading...
Searching...
No Matches
MBTSTimeDiffEventInfoAlg.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#ifndef TILERECALGS_MBTSTIMEDIFFEVENTINFOALG_
6#define TILERECALGS_MBTSTIMEDIFFEVENTINFOALG_
7
8// Tile includes
11
12// Atlas includes
17
18class TileTBID;
19
21
22 public:
24 using AthReentrantAlgorithm::AthReentrantAlgorithm;
25 virtual ~MBTSTimeDiffEventInfoAlg() override = default;
26
28 virtual StatusCode initialize() override;
29
31 virtual StatusCode execute(const EventContext& ctx) const override;
32
33 private:
34
35 Gaudi::Property<float> m_timeDiffThreshold{this,
36 "TimeDiffThreshold", 10.0, "Time difference threshold to mark event as background"};
37 Gaudi::Property<unsigned int> m_minHitsPerSide{this,
38 "MinHitsPerSide", 2, "Minimum nubmer of hits per side required to distinguish halo from collision event"};
39 Gaudi::Property<float> m_mbts_threshold{this,
40 "MBTS_Threshold", 40.0 / 222.0, "Only MBTS hits with apmplitude above threshold in pC will be used"};
41
42 SG::ReadHandleKey<TileCellContainer> m_mbtsContainerKey{this,"MBTSContainer","MBTSContainer","Input MBTS container key"};
43 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EventInfo", "EventInfo", "Input Event info key"};
44 SG::WriteHandleKey<MBTSCollisionTime> m_mbtsCollisionTimeKey{this,"MBTSCollisionTime","MBTSCollisionTime","Output MBTS collision time key"};
45 SG::WriteDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this, "EventInfoDecorKey", m_eventInfoKey, "MBTSBackground", "EventInfo decoration key"};
46
47 const TileTBID* m_tileTBID{nullptr};
48
51};
52
53#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Gaudi::Property< float > m_mbts_threshold
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute once per event.
Gaudi::Property< float > m_timeDiffThreshold
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
SG::WriteHandleKey< MBTSCollisionTime > m_mbtsCollisionTimeKey
SG::ReadHandleKey< TileCellContainer > m_mbtsContainerKey
Gaudi::Property< unsigned int > m_minHitsPerSide
virtual ~MBTSTimeDiffEventInfoAlg() override=default
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.
Property holding a SG store/key/clid from which a WriteHandle is made.
@ MASK_TIME
Definition TileCell.h:67
@ MASK_OVER
Definition TileCell.h:64
@ MASK_BADCH
Definition TileCell.h:63
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.