ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileRecAlgs
src
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
9
#include "
TileEvent/TileContainer.h
"
10
#include "
TileEvent/MBTSCollisionTime.h
"
11
12
// Atlas includes
13
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
14
#include "
xAODEventInfo/EventInfo.h
"
15
#include "
StoreGate/ReadHandleKey.h
"
16
#include "
StoreGate/WriteHandleKey.h
"
17
18
class
TileTBID
;
19
20
class
MBTSTimeDiffEventInfoAlg
:
public
AthReentrantAlgorithm
{
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
49
const
uint8_t
m_mask
{
TileCell::MASK_BADCH
|
TileCell::MASK_OVER
|
TileCell::MASK_TIME
};
50
const
uint8_t
m_pattern
{
TileCell::MASK_TIME
};
51
};
52
53
#endif
AthReentrantAlgorithm.h
MBTSCollisionTime.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TileContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
MBTSTimeDiffEventInfoAlg
Definition
MBTSTimeDiffEventInfoAlg.h:20
MBTSTimeDiffEventInfoAlg::m_mbts_threshold
Gaudi::Property< float > m_mbts_threshold
Definition
MBTSTimeDiffEventInfoAlg.h:39
MBTSTimeDiffEventInfoAlg::m_tileTBID
const TileTBID * m_tileTBID
Definition
MBTSTimeDiffEventInfoAlg.h:47
MBTSTimeDiffEventInfoAlg::m_mask
const uint8_t m_mask
Definition
MBTSTimeDiffEventInfoAlg.h:49
MBTSTimeDiffEventInfoAlg::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition
MBTSTimeDiffEventInfoAlg.h:45
MBTSTimeDiffEventInfoAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute once per event.
Definition
MBTSTimeDiffEventInfoAlg.cxx:45
MBTSTimeDiffEventInfoAlg::m_timeDiffThreshold
Gaudi::Property< float > m_timeDiffThreshold
Definition
MBTSTimeDiffEventInfoAlg.h:35
MBTSTimeDiffEventInfoAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
MBTSTimeDiffEventInfoAlg.h:43
MBTSTimeDiffEventInfoAlg::m_pattern
const uint8_t m_pattern
Definition
MBTSTimeDiffEventInfoAlg.h:50
MBTSTimeDiffEventInfoAlg::initialize
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
Definition
MBTSTimeDiffEventInfoAlg.cxx:25
MBTSTimeDiffEventInfoAlg::m_mbtsCollisionTimeKey
SG::WriteHandleKey< MBTSCollisionTime > m_mbtsCollisionTimeKey
Definition
MBTSTimeDiffEventInfoAlg.h:44
MBTSTimeDiffEventInfoAlg::m_mbtsContainerKey
SG::ReadHandleKey< TileCellContainer > m_mbtsContainerKey
Definition
MBTSTimeDiffEventInfoAlg.h:42
MBTSTimeDiffEventInfoAlg::m_minHitsPerSide
Gaudi::Property< unsigned int > m_minHitsPerSide
Definition
MBTSTimeDiffEventInfoAlg.h:37
MBTSTimeDiffEventInfoAlg::~MBTSTimeDiffEventInfoAlg
virtual ~MBTSTimeDiffEventInfoAlg() override=default
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
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
TileCell::MASK_TIME
@ MASK_TIME
Definition
TileCell.h:67
TileCell::MASK_OVER
@ MASK_OVER
Definition
TileCell.h:64
TileCell::MASK_BADCH
@ MASK_BADCH
Definition
TileCell.h:63
TileTBID
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
Definition
Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:65
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0