ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonDigitization
MmDigitizationR4
src
MmFastDigiTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MM_DIGITIZATIONR4_MMFASTDIGITOOL_H
5
#define MM_DIGITIZATIONR4_MMFASTDIGITOOL_H
6
7
8
#include "
MuonDigitizationR4/MuonDigitizationTool.h
"
9
#include "
MuonDigitContainer/MmDigitContainer.h
"
10
11
#include "
MuonCondData/DigitEffiData.h
"
12
#include "
MuonCondData/NswErrorCalibData.h
"
13
14
namespace
MuonR4
{
15
/***
16
* @brief: Smearing of hits stemming from muons using the best knowledge uncertainties
17
*/
18
class
MmFastDigiTool
final:
public
MuonDigitizationTool
{
19
public
:
20
using
MuonDigitizationTool::MuonDigitizationTool;
21
22
StatusCode
initialize
()
override
final
;
23
StatusCode
finalize
()
override
final
;
24
protected
:
25
StatusCode
digitize
(
const
EventContext& ctx,
26
const
TimedHits
& hitsToDigit,
27
xAOD::MuonSimHitContainer
* sdoContainer)
const
override
final
;
28
29
30
private
:
31
using
DigiCache
=
OutDigitCache_t<MmDigitCollection>
;
32
SG::WriteHandleKey<MmDigitContainer>
m_writeKey
{
this
,
"OutputObjectName"
,
"MM_DIGITS"
};
33
34
SG::ReadCondHandleKey<Muon::DigitEffiData>
m_effiDataKey
{
this
,
"EffiDataKey"
,
"MmDigitEff"
,
35
"Efficiency constants of the individual Rpc gasGaps"
};
36
37
SG::ReadCondHandleKey<NswErrorCalibData>
m_uncertCalibKey
{
this
,
"ErrorCalibKey"
,
"NswUncertData"
,
38
"Key of the parametrized NSW uncertainties"
};
39
40
41
mutable
std::array<std::atomic<unsigned>, 8> m_allHits
ATLAS_THREAD_SAFE
{};
42
mutable
std::array<std::atomic<unsigned>, 8> m_acceptedHits
ATLAS_THREAD_SAFE
{};
43
44
// Dead time between two hits in the same channel
45
Gaudi::Property<double>
m_deadTime
{
this
,
"deadTime"
, 300. * Gaudi::Units::ns};
46
47
Gaudi::Property<bool>
m_digitizeMuonOnly
{
this
,
"ProcessTrueMuonsOnly"
,
false
,
48
"If set to true hit with pdgId != 13 are skipped"
};
49
Gaudi::Property<double>
m_energyThreshold
{
this
,
"EnergyThreshold"
, 50,
"Minimal energy to process an electron sim hit"
};
50
};
51
}
52
#endif
DigitEffiData.h
MmDigitContainer.h
MuonDigitizationTool.h
NswErrorCalibData.h
MuonR4::MmFastDigiTool
Definition
MmFastDigiTool.h:18
MuonR4::MmFastDigiTool::m_uncertCalibKey
SG::ReadCondHandleKey< NswErrorCalibData > m_uncertCalibKey
Definition
MmFastDigiTool.h:37
MuonR4::MmFastDigiTool::m_effiDataKey
SG::ReadCondHandleKey< Muon::DigitEffiData > m_effiDataKey
Definition
MmFastDigiTool.h:34
MuonR4::MmFastDigiTool::m_deadTime
Gaudi::Property< double > m_deadTime
Definition
MmFastDigiTool.h:45
MuonR4::MmFastDigiTool::m_digitizeMuonOnly
Gaudi::Property< bool > m_digitizeMuonOnly
Definition
MmFastDigiTool.h:47
MuonR4::MmFastDigiTool::m_energyThreshold
Gaudi::Property< double > m_energyThreshold
Definition
MmFastDigiTool.h:49
MuonR4::MmFastDigiTool::digitize
StatusCode digitize(const EventContext &ctx, const TimedHits &hitsToDigit, xAOD::MuonSimHitContainer *sdoContainer) const override final
Digitize the time ordered hits and write them to the digit format specific for the detector technolog...
Definition
MmFastDigiTool.cxx:38
MuonR4::MmFastDigiTool::finalize
StatusCode finalize() override final
Definition
MmFastDigiTool.cxx:26
MuonR4::MmFastDigiTool::m_writeKey
SG::WriteHandleKey< MmDigitContainer > m_writeKey
Definition
MmFastDigiTool.h:32
MuonR4::MmFastDigiTool::ATLAS_THREAD_SAFE
std::array< std::atomic< unsigned >, 8 > m_allHits ATLAS_THREAD_SAFE
Definition
MmFastDigiTool.h:41
MuonR4::MmFastDigiTool::initialize
StatusCode initialize() override final
Definition
MmFastDigiTool.cxx:19
MuonR4::MmFastDigiTool::DigiCache
OutDigitCache_t< MmDigitCollection > DigiCache
Definition
MmFastDigiTool.h:31
MuonR4::MuonDigitizationTool
Barebone implementation of the I/O infrastructure for all MuonDigitizationTools.
Definition
MuonDigitizationTool.h:30
MuonR4::MuonDigitizationTool::TimedHits
std::vector< TimedHitPtr< xAOD::MuonSimHit > > TimedHits
Definition
MuonDigitizationTool.h:58
MuonR4::MuonDigitizationTool::OutDigitCache_t
std::vector< std::unique_ptr< DetType > > OutDigitCache_t
DigitContainers are sorted by DigitCollections which are the ensemble of all hits in a given MuonCham...
Definition
MuonDigitizationTool.h:80
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
xAOD::MuonSimHitContainer
MuonSimHitContainer_v1 MuonSimHitContainer
Define the version of the pixel cluster container.
Definition
MuonSimHitContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0