ATLAS Offline Software
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 
10 
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  MmFastDigiTool(const std::string& type, const std::string& name, const IInterface* pIID);
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:
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 
45 
46  };
47 }
48 #endif
MuonR4::MmFastDigiTool::initialize
StatusCode initialize() override final
Definition: MmFastDigiTool.cxx:18
MuonR4::MmFastDigiTool::finalize
StatusCode finalize() override final
Definition: MmFastDigiTool.cxx:25
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:98
MuonDigitizationTool.h
SG::WriteHandleKey< MmDigitContainer >
MmDigitContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonR4::MmFastDigiTool
Definition: MmFastDigiTool.h:18
MuonR4::MmFastDigiTool::DigiCache
OutDigitCache_t< MmDigitCollection > DigiCache
Definition: MmFastDigiTool.h:33
NswErrorCalibData.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
MuonR4::MmFastDigiTool::m_effiDataKey
SG::ReadCondHandleKey< Muon::DigitEffiData > m_effiDataKey
Definition: MmFastDigiTool.h:36
MuonR4::MmFastDigiTool::ATLAS_THREAD_SAFE
std::array< std::atomic< unsigned >, 8 > m_allHits ATLAS_THREAD_SAFE
Definition: MmFastDigiTool.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonR4::MmFastDigiTool::MmFastDigiTool
MmFastDigiTool(const std::string &type, const std::string &name, const IInterface *pIID)
Definition: MmFastDigiTool.cxx:15
MuonR4
The CsvMuonSimHitDumper reads a Simulation Hit container for muons and dumps information to csv files...
Definition: MuonSpacePoint.h:11
SG::ReadCondHandleKey< Muon::DigitEffiData >
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:60
MuonR4::MmFastDigiTool::m_writeKey
SG::WriteHandleKey< MmDigitContainer > m_writeKey
Definition: MmFastDigiTool.h:34
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DigitEffiData.h
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:37
MuonR4::MmFastDigiTool::m_uncertCalibKey
SG::ReadCondHandleKey< NswErrorCalibData > m_uncertCalibKey
Definition: MmFastDigiTool.h:39