ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDigitization
PixelDigitization
src
FrontEndSimTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PIXELDIGITIZATION_FrontEndSimTool_H
6
#define PIXELDIGITIZATION_FrontEndSimTool_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "Gaudi/Property.h"
10
#include "GaudiKernel/ServiceHandle.h"
11
#include "GaudiKernel/ToolHandle.h"
12
//
13
//for ToolHandles, ServiceHandles:
14
#include "
InDetConditionsSummaryService/IInDetConditionsTool.h
"
//ToolHandle template param
15
#include "
PixelReadoutGeometry/IPixelReadoutManager.h
"
//SvcHandle template param
16
#include "
PixelConditionsData/PixelChargeCalibCondData.h
"
//ReadCondHandleKey template param
17
#include "
InDetRawData/PixelRDO_Collection.h
"
//typedef
18
19
20
21
class
SiChargedDiodeCollection
;
22
class
SiTotalCharge
;
23
//
24
namespace
CLHEP
{
25
class
HepRandomEngine;
26
}
27
28
class
FrontEndSimTool
:
public
AthAlgTool
{
29
public
:
30
using
AthAlgTool::AthAlgTool
;
31
32
virtual
StatusCode
initialize
()
override
;
33
34
virtual
void
process
(
const
EventContext& ctx,
35
SiChargedDiodeCollection
& chargedDiodes,
PixelRDO_Collection
& rdoCollection,
36
CLHEP::HepRandomEngine* rndmEngine)
const
= 0;
37
38
protected
:
39
static
constexpr
double
m_bunchSpace
{25.0};
40
int
m_numberOfBcid
{1};
//assumed same for all positions
41
double
m_timeOffset
{5.0};
42
double
m_timeJitter
{0.0};
43
double
m_thermalNoise
{160.0};
//default noise level
44
ToolHandle<IInDetConditionsTool>
m_pixelConditionsTool
{
45
this
,
"PixelConditionsSummaryTool"
,
"PixelConditionsSummaryTool"
,
"Tool to retrieve Pixel Conditions summary"
46
};
47
48
ServiceHandle<InDetDD::IPixelReadoutManager>
m_pixelReadout
{
49
this
,
"PixelReadoutManager"
,
"PixelReadoutManager"
,
"Pixel readout manager"
50
};
51
52
53
SG::ReadCondHandleKey<PixelChargeCalibCondData>
m_chargeDataKey
{
54
this
,
"PixelChargeCalibCondData"
,
"PixelChargeCalibCondData"
,
"Pixel charge calibration data"
55
};
56
57
Gaudi::Property<int>
m_BarrelEC
{
58
this
,
"BarrelEC"
, 0,
"Index of barrel or endcap"
59
};
60
61
Gaudi::Property<bool>
m_doNoise
{
62
this
,
"DoNoise"
,
true
,
"Flag of noise simulation"
63
};
64
65
Gaudi::Property<bool>
m_cosmics
{
66
this
,
"Cosmics"
,
false
,
"Is this for Cosmics simulation?"
67
};
68
69
70
};
71
72
#endif
// PIXELDIGITIZATION_FrontEndSimTool_H
AthAlgTool.h
IInDetConditionsTool.h
IPixelReadoutManager.h
PixelChargeCalibCondData.h
PixelRDO_Collection.h
PixelRDO_Collection
InDetRawDataCollection< PixelRDORawData > PixelRDO_Collection
Definition
PixelRDO_Collection.h:22
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
FrontEndSimTool
Definition
FrontEndSimTool.h:28
FrontEndSimTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
FrontEndSimTool::m_thermalNoise
double m_thermalNoise
Definition
FrontEndSimTool.h:43
FrontEndSimTool::m_chargeDataKey
SG::ReadCondHandleKey< PixelChargeCalibCondData > m_chargeDataKey
Definition
FrontEndSimTool.h:53
FrontEndSimTool::m_pixelReadout
ServiceHandle< InDetDD::IPixelReadoutManager > m_pixelReadout
Definition
FrontEndSimTool.h:48
FrontEndSimTool::m_cosmics
Gaudi::Property< bool > m_cosmics
Definition
FrontEndSimTool.h:65
FrontEndSimTool::initialize
virtual StatusCode initialize() override
Definition
FrontEndSimTool.cxx:7
FrontEndSimTool::m_timeJitter
double m_timeJitter
Definition
FrontEndSimTool.h:42
FrontEndSimTool::m_bunchSpace
static constexpr double m_bunchSpace
Definition
FrontEndSimTool.h:39
FrontEndSimTool::m_pixelConditionsTool
ToolHandle< IInDetConditionsTool > m_pixelConditionsTool
Definition
FrontEndSimTool.h:44
FrontEndSimTool::m_doNoise
Gaudi::Property< bool > m_doNoise
Definition
FrontEndSimTool.h:61
FrontEndSimTool::m_timeOffset
double m_timeOffset
Definition
FrontEndSimTool.h:41
FrontEndSimTool::m_BarrelEC
Gaudi::Property< int > m_BarrelEC
Definition
FrontEndSimTool.h:57
FrontEndSimTool::m_numberOfBcid
int m_numberOfBcid
Definition
FrontEndSimTool.h:40
FrontEndSimTool::process
virtual void process(const EventContext &ctx, SiChargedDiodeCollection &chargedDiodes, PixelRDO_Collection &rdoCollection, CLHEP::HepRandomEngine *rndmEngine) const =0
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
SiChargedDiodeCollection
Definition
SiChargedDiodeCollection.h:109
SiTotalCharge
Definition
SiTotalCharge.h:24
CLHEP
STD'S.
Definition
CaloNoiseCompCondAlg.h:57
Generated on
for ATLAS Offline Software by
1.17.0