ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
22class SiTotalCharge;
23//
24namespace CLHEP{
25 class HepRandomEngine;
26}
27
29public:
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
49 this, "PixelReadoutManager", "PixelReadoutManager", "Pixel readout manager"
50 };
51
52
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
InDetRawDataCollection< PixelRDORawData > PixelRDO_Collection
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
SG::ReadCondHandleKey< PixelChargeCalibCondData > m_chargeDataKey
ServiceHandle< InDetDD::IPixelReadoutManager > m_pixelReadout
Gaudi::Property< bool > m_cosmics
virtual StatusCode initialize() override
static constexpr double m_bunchSpace
ToolHandle< IInDetConditionsTool > m_pixelConditionsTool
Gaudi::Property< bool > m_doNoise
Gaudi::Property< int > m_BarrelEC
virtual void process(const EventContext &ctx, SiChargedDiodeCollection &chargedDiodes, PixelRDO_Collection &rdoCollection, CLHEP::HepRandomEngine *rndmEngine) const =0