ATLAS Offline Software
MBTSTimeDiffEventInfoAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 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 
18 class TileTBID;
19 
21 
22  public:
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", "EventInfo.MBTSBackground", "EventInfo decoration key"};
46 
47  const TileTBID* m_tileTBID{nullptr};
48 
51 };
52 
53 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::EventInfo >
MBTSTimeDiffEventInfoAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute once per event.
Definition: MBTSTimeDiffEventInfoAlg.cxx:45
MBTSTimeDiffEventInfoAlg::m_mask
const uint8_t m_mask
Definition: MBTSTimeDiffEventInfoAlg.h:49
MBTSTimeDiffEventInfoAlg::m_mbtsCollisionTimeKey
SG::WriteHandleKey< MBTSCollisionTime > m_mbtsCollisionTimeKey
Definition: MBTSTimeDiffEventInfoAlg.h:44
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
MBTSTimeDiffEventInfoAlg::m_minHitsPerSide
Gaudi::Property< unsigned int > m_minHitsPerSide
Definition: MBTSTimeDiffEventInfoAlg.h:37
MBTSTimeDiffEventInfoAlg::m_mbtsContainerKey
SG::ReadHandleKey< TileCellContainer > m_mbtsContainerKey
Definition: MBTSTimeDiffEventInfoAlg.h:42
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MBTSTimeDiffEventInfoAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: MBTSTimeDiffEventInfoAlg.h:43
MBTSTimeDiffEventInfoAlg::initialize
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
Definition: MBTSTimeDiffEventInfoAlg.cxx:25
TileCell::MASK_BADCH
@ MASK_BADCH
Definition: TileCell.h:63
MBTSTimeDiffEventInfoAlg::m_pattern
const uint8_t m_pattern
Definition: MBTSTimeDiffEventInfoAlg.h:50
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MBTSCollisionTime.h
MBTSTimeDiffEventInfoAlg::m_mbts_threshold
Gaudi::Property< float > m_mbts_threshold
Definition: MBTSTimeDiffEventInfoAlg.h:39
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey< MBTSCollisionTime >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileCell::MASK_OVER
@ MASK_OVER
Definition: TileCell.h:64
MBTSTimeDiffEventInfoAlg::m_tileTBID
const TileTBID * m_tileTBID
Definition: MBTSTimeDiffEventInfoAlg.h:47
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
MBTSTimeDiffEventInfoAlg
Definition: MBTSTimeDiffEventInfoAlg.h:20
EventInfo.h
TileCell::MASK_TIME
@ MASK_TIME
Definition: TileCell.h:67
MBTSTimeDiffEventInfoAlg::m_timeDiffThreshold
Gaudi::Property< float > m_timeDiffThreshold
Definition: MBTSTimeDiffEventInfoAlg.h:35
MBTSTimeDiffEventInfoAlg::~MBTSTimeDiffEventInfoAlg
virtual ~MBTSTimeDiffEventInfoAlg() override=default
MBTSTimeDiffEventInfoAlg::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: MBTSTimeDiffEventInfoAlg.h:45
TileTBID
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
Definition: Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:65
TileContainer.h