ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDigitization
MDT_Digitization
src
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
/*-----------------------------------------------
9
Created 8-10-2009 by Dinos Bachas
10
Digitization tool which uses an rt-relation from Conditions Database
11
Adopted from RT_Relation_DigiTool
12
-----------------------------------------------*/
13
14
#include "
AthenaBaseComps/AthAlgTool.h
"
15
#include "CLHEP/Random/RandFlat.h"
16
#include "CLHEP/Random/RandGaussZiggurat.h"
17
#include "Identifier/Identifier.h"
18
#include "
MDT_Digitization/IMDT_DigitizationTool.h
"
19
#include "
MDT_Digitization/MdtDigiToolOutput.h
"
20
#include "
MdtCalibData/IRtRelation.h
"
21
#include "
MdtCalibData/IRtResolution.h
"
22
#include "
MdtCalibData/MdtFullCalibData.h
"
23
#include "
MdtCalibData/MdtRtRelation.h
"
24
#include "
MdtCalibData/MdtCalibDataContainer.h
"
25
#include "
StoreGate/ReadCondHandleKey.h
"
26
#include "
MuonReadoutGeometry/MuonDetectorManager.h
"
27
28
namespace
MuonGM
{
29
class
MuonDetectorManager
;
30
}
31
32
class
RT_Relation_DB_DigiTool
:
public
AthAlgTool
,
virtual
public
IMDT_DigitizationTool
{
33
public
:
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
43
private
:
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
53
SG::ReadCondHandleKey<MuonCalib::MdtCalibDataContainer>
m_calibDbKey
{
this
,
"CalibDataKey"
,
"MdtCalibConstants"
,
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.h
IMDT_DigitizationTool.h
IRtRelation.h
IRtResolution.h
MdtCalibDataContainer.h
MdtDigiToolOutput.h
MdtFullCalibData.h
MdtRtRelation.h
MuonDetectorManager.h
ReadCondHandleKey.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
IMDT_DigitizationTool
Definition
IMDT_DigitizationTool.h:23
MdtDigiToolInput
Definition
MdtDigiToolInput.h:26
MdtDigiToolOutput
Definition
MdtDigiToolOutput.h:19
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:51
RT_Relation_DB_DigiTool::RT_Relation_DB_DigiTool
RT_Relation_DB_DigiTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
RT_Relation_DB_DigiTool.cxx:15
RT_Relation_DB_DigiTool::digitize
virtual MdtDigiToolOutput digitize(const EventContext &ctx, const MdtDigiToolInput &input, CLHEP::HepRandomEngine *rndmEngine) const override final
Definition
RT_Relation_DB_DigiTool.cxx:27
RT_Relation_DB_DigiTool::m_detMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
Definition
RT_Relation_DB_DigiTool.h:56
RT_Relation_DB_DigiTool::m_calibDbKey
SG::ReadCondHandleKey< MuonCalib::MdtCalibDataContainer > m_calibDbKey
Definition
RT_Relation_DB_DigiTool.h:53
RT_Relation_DB_DigiTool::initialize
virtual StatusCode initialize() override
Definition
RT_Relation_DB_DigiTool.cxx:20
RT_Relation_DB_DigiTool::m_effRadius
Gaudi::Property< double > m_effRadius
Definition
RT_Relation_DB_DigiTool.h:58
RT_Relation_DB_DigiTool::getAdcResponse
static double getAdcResponse(double radius, CLHEP::HepRandomEngine *rndmEngine)
Definition
RT_Relation_DB_DigiTool.cxx:126
RT_Relation_DB_DigiTool::getDriftTime
double getDriftTime(const EventContext &ctx, double measRadius, double innerTubeRadius, const Identifier &DigitId, CLHEP::HepRandomEngine *rndmEngine) const
Definition
RT_Relation_DB_DigiTool.cxx:46
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
Identifier
Definition
IdentifierFieldParser.cxx:14
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition
GeoMuonHits.h:27
type
Generated on
for ATLAS Offline Software by
1.17.0