8#include "CLHEP/Units/SystemOfUnits.h"
18 : base_class(
type, name, parent)
27 StatusCode
sc{AthAlgTool::initialize()};
36 m_dt.setValue(
m_dt.value() * CLHEP::ns);
60 StatusCode
sc{AthAlgTool::finalize()};
76 float ch{
static_cast<float>(
charge.charge())};
77 float tC{
static_cast<float>(timeOfThreshold -
charge.time())};
80 resp += ch*tC*tC*tC*std::exp(-tC);
87 short bin_max{
static_cast<short>(
response.size())};
91 float ch{
static_cast<float>(
charge.charge())};
92 float ch_time{
static_cast<float>(
charge.time())};
93 short bin_end{
static_cast<short>(bin_max-1)};
95 float bin_timeOfThreshold{timeOfThreshold +
bin*25};
96 float tC{bin_timeOfThreshold - ch_time};
113 float ch{
static_cast<float>(
charge.charge())};
114 float tC{
static_cast<float>(timeOfThreshold -
charge.time())};
117 resp += ch*tC*tC*std::exp(-tC)*(3.0-tC);
124 short bin_max{
static_cast<short>(
response.size())};
128 float ch{
static_cast<float>(
charge.charge())};
129 float ch_time{
static_cast<float>(
charge.time())};
130 short bin_end{
static_cast<short>(bin_max-1)};
131 for (
short bin{-1};
bin<bin_end; ++
bin) {
132 float bin_timeOfThreshold{timeOfThreshold +
bin*25};
133 float tC{bin_timeOfThreshold - ch_time};
136 response[
bin+1] += ch*tC*tC*std::exp(-tC)*(3.0-tC);
double charge(const T &p)
virtual float response(const list_t &Charges, const float timeOverThreshold) const override
main purpose: CR-RC^3 response to a list of charges with times
float m_NormConstNeigh
Normalisation factor for the neighbour strip signal response.
FloatProperty m_PeakTime
signal peak time
SCT_Amp(const std::string &type, const std::string &name, const IInterface *parent)
constructor
virtual StatusCode finalize() override
AlgTool finalize.
FloatProperty m_CrossFactor2sides
Cross factor 2 side.
FloatProperty m_CrossFactorBack
cross factor
virtual float crosstalk(const list_t &Charges, const float timeOverThreshold) const override
Neighbour strip cross talk response strip to a list of charges with times.
virtual StatusCode initialize() override
AlgTool initialize.
float m_NormConstCentral
Normalisation factor for the signal response.