ATLAS Offline Software
SCT_ElectricFieldTool.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
14 #ifndef SCT_ElectricFieldTool_h
15 #define SCT_ElectricFieldTool_h
16 
19 
20 #include "TF1.h"
21 
26 class SCT_ElectricFieldTool: public extends<AthAlgTool, ISCT_ElectricFieldTool>
27 {
28  public:
29  SCT_ElectricFieldTool(const std::string& t, const std::string& n, const IInterface* p);
30 
31  virtual ~SCT_ElectricFieldTool() = default;
32  virtual StatusCode initialize() override;
33  virtual StatusCode finalize() override;
34 
35  virtual double getElectricField(double positionZ,
36  double fluence,
37  double depletionVoltage,
38  double sensorThickness,
39  double biasVoltage) const override;
40  private:
42 
43  IntegerProperty m_eFieldModel{this, "EFieldModel", FLAT_DIODE, "UNIFORM_FIELD=0 uniform E-field model, FLAT_DIODE=1 flat diode model"};
44  TF1 m_model{"pol6", "pol6", 0., 0.03};
45 };
46 
47 #endif // SCT_ElectricFieldTool_h
SCT_ElectricFieldTool::SCT_ElectricFieldTool
SCT_ElectricFieldTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: SCT_ElectricFieldTool.cxx:11
SCT_ElectricFieldTool::m_model
TF1 m_model
Definition: SCT_ElectricFieldTool.h:44
SCT_ElectricFieldTool::finalize
virtual StatusCode finalize() override
Definition: SCT_ElectricFieldTool.cxx:31
ISCT_ElectricFieldTool.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
SCT_ElectricFieldTool::FLAT_DIODE
@ FLAT_DIODE
Definition: SCT_ElectricFieldTool.h:41
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
SCT_ElectricFieldTool::m_eFieldModel
IntegerProperty m_eFieldModel
Definition: SCT_ElectricFieldTool.h:43
SCT_ElectricFieldTool::getElectricField
virtual double getElectricField(double positionZ, double fluence, double depletionVoltage, double sensorThickness, double biasVoltage) const override
Definition: SCT_ElectricFieldTool.cxx:35
SCT_ElectricFieldTool::UNIFORM_FIELD
@ UNIFORM_FIELD
Definition: SCT_ElectricFieldTool.h:41
SCT_ElectricFieldTool::initialize
virtual StatusCode initialize() override
Definition: SCT_ElectricFieldTool.cxx:16
SCT_ElectricFieldTool::~SCT_ElectricFieldTool
virtual ~SCT_ElectricFieldTool()=default
SCT_ElectricFieldTool::FieldModel
FieldModel
Definition: SCT_ElectricFieldTool.h:41
SCT_ElectricFieldTool
Definition: SCT_ElectricFieldTool.h:27