ATLAS Offline Software
Loading...
Searching...
No Matches
RT_Relation_DB_DigiTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MDT_DIGITIZATION_RT_RELATION_DB_DIGITOOL_H
6#define MDT_DIGITIZATION_RT_RELATION_DB_DIGITOOL_H
7
8/*-----------------------------------------------
9Created 8-10-2009 by Dinos Bachas
10Digitization tool which uses an rt-relation from Conditions Database
11Adopted from RT_Relation_DigiTool
12-----------------------------------------------*/
13
15#include "CLHEP/Random/RandFlat.h"
16#include "CLHEP/Random/RandGaussZiggurat.h"
17#include "Identifier/Identifier.h"
27
28namespace MuonGM {
30}
31
33public:
34 // Constructor
35 RT_Relation_DB_DigiTool(const std::string& type, const std::string& name, const IInterface* parent);
36
37 // Methods
38 virtual StatusCode initialize() override;
39 virtual MdtDigiToolOutput digitize(const EventContext& ctx,
40 const MdtDigiToolInput& input,
41 CLHEP::HepRandomEngine* rndmEngine) const override final;
42
43private:
44 // Methods
45 double getDriftTime(const EventContext& ctx,
46 double measRadius,
47 double innerTubeRadius,
48 const Identifier& DigitId,
49 CLHEP::HepRandomEngine* rndmEngine) const;
50
51 static double getAdcResponse(double radius, CLHEP::HepRandomEngine* rndmEngine) ;
52
54 "Conditions object containing the calibrations"};
55
56 SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_detMgrKey{this, "DetMgr", "MuonDetectorManager", ""};
57
58 Gaudi::Property<double> m_effRadius{this, "EffectiveRadius", 14.4275};
59};
60
61#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
RT_Relation_DB_DigiTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual MdtDigiToolOutput digitize(const EventContext &ctx, const MdtDigiToolInput &input, CLHEP::HepRandomEngine *rndmEngine) const override final
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
SG::ReadCondHandleKey< MuonCalib::MdtCalibDataContainer > m_calibDbKey
virtual StatusCode initialize() override
Gaudi::Property< double > m_effRadius
static double getAdcResponse(double radius, CLHEP::HepRandomEngine *rndmEngine)
double getDriftTime(const EventContext &ctx, double measRadius, double innerTubeRadius, const Identifier &DigitId, CLHEP::HepRandomEngine *rndmEngine) const
Ensure that the Athena extensions are properly loaded.
Definition GeoMuonHits.h:27