Header file for SCT_Amp Class.
More...
#include <SCT_Amp.h>
|
| | SCT_Amp (const std::string &type, const std::string &name, const IInterface *parent) |
| | constructor
|
| virtual | ~SCT_Amp ()=default |
| | Destructor.
|
| virtual StatusCode | initialize () override |
| | AlgTool initialize.
|
| virtual StatusCode | finalize () override |
| | AlgTool finalize.
|
| 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
|
| virtual void | response (const list_t &Charges, const float timeOverThreshold, std::vector< float > &resp) const override |
| 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 void | crosstalk (const list_t &Charges, const float timeOverThreshold, std::vector< float > &resp) const override |
|
| FloatProperty | m_PeakTime {this, "PeakTime", 21., "Front End Electronics peaking time"} |
| | signal peak time
|
| FloatProperty | m_CrossFactor2sides {this, "CrossFactor2sides", 0.1, "Loss of charge to neighbour strip constant"} |
| | Cross factor 2 side.
|
| FloatProperty | m_CrossFactorBack {this, "CrossFactorBack", 0.07, "Loss of charge to back plane constant"} |
| | cross factor
|
| FloatProperty | m_tmin {this, "Tmin", -25.0} |
| FloatProperty | m_tmax {this, "Tmax", 150.0} |
| FloatProperty | m_dt {this, "deltaT", 1.0} |
| float | m_NormConstCentral {0.} |
| | Normalisation factor for the signal response.
|
| float | m_NormConstNeigh {0.} |
| | Normalisation factor for the neighbour strip signal response.
|
◆ SCT_Amp()
| SCT_Amp::SCT_Amp |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
constructor
Definition at line 17 of file SCT_Amp.cxx.
18 : base_class(type, name, parent)
19{
20}
◆ ~SCT_Amp()
| virtual SCT_Amp::~SCT_Amp |
( |
| ) |
|
|
virtualdefault |
◆ crosstalk() [1/2]
| float SCT_Amp::crosstalk |
( |
const list_t & | Charges, |
|
|
const float | timeOverThreshold ) const |
|
overridevirtual |
Neighbour strip cross talk response strip to a list of charges with times.
Definition at line 109 of file SCT_Amp.cxx.
109 {
110 float resp{0};
112 for (
const SiCharge&
charge: Charges) {
113 float ch{
static_cast<float>(
charge.charge())};
114 float tC{
static_cast<float>(timeOfThreshold -
charge.time())};
115 if (tC > 0.0) {
117 resp +=
ch*tC*tC*std::exp(-tC)*(3.0-tC);
118 }
119 }
121}
double charge(const T &p)
float m_NormConstNeigh
Normalisation factor for the neighbour strip signal response.
FloatProperty m_PeakTime
signal peak time
◆ crosstalk() [2/2]
| void SCT_Amp::crosstalk |
( |
const list_t & | Charges, |
|
|
const float | timeOverThreshold, |
|
|
std::vector< float > & | resp ) const |
|
overridevirtual |
Definition at line 123 of file SCT_Amp.cxx.
123 {
124 short bin_max{
static_cast<short>(
response.size())};
127 for (
const SiCharge&
charge: Charges) {
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};
134 if (tC > 0.0) {
137 }
138 }
139 }
141}
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
◆ finalize()
| StatusCode SCT_Amp::finalize |
( |
| ) |
|
|
overridevirtual |
AlgTool finalize.
Definition at line 59 of file SCT_Amp.cxx.
59 {
64 }
67}
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ initialize()
| StatusCode SCT_Amp::initialize |
( |
| ) |
|
|
overridevirtual |
AlgTool initialize.
CHLEP Units
Definition at line 25 of file SCT_Amp.cxx.
25 {
26
31 }
33
36 m_dt.setValue(
m_dt.value() * CLHEP::ns);
39
43
44#ifdef SCT_DIG_DEBUG
51#endif
52
54}
FloatProperty m_CrossFactor2sides
Cross factor 2 side.
FloatProperty m_CrossFactorBack
cross factor
float m_NormConstCentral
Normalisation factor for the signal response.
◆ response() [1/2]
| float SCT_Amp::response |
( |
const list_t & | Charges, |
|
|
const float | timeOverThreshold ) const |
|
overridevirtual |
main purpose: CR-RC^3 response to a list of charges with times
Definition at line 72 of file SCT_Amp.cxx.
72 {
73 float resp{0.0};
75 for (
const SiCharge&
charge: Charges) {
76 float ch{
static_cast<float>(
charge.charge())};
77 float tC{
static_cast<float>(timeOfThreshold -
charge.time())};
78 if (tC > 0.0) {
80 resp +=
ch*tC*tC*tC*std::exp(-tC);
81 }
82 }
84}
◆ response() [2/2]
| void SCT_Amp::response |
( |
const list_t & | Charges, |
|
|
const float | timeOverThreshold, |
|
|
std::vector< float > & | resp ) const |
|
overridevirtual |
Definition at line 86 of file SCT_Amp.cxx.
86 {
87 short bin_max{
static_cast<short>(
response.size())};
90 for (
const SiCharge&
charge: Charges) {
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)};
94 for (
short bin{-1};
bin<bin_end; ++
bin) {
95 float bin_timeOfThreshold{timeOfThreshold +
bin*25};
96 float tC{bin_timeOfThreshold - ch_time};
97 if (tC > 0.0) {
100 }
101 }
102 }
104}
◆ m_CrossFactor2sides
| FloatProperty SCT_Amp::m_CrossFactor2sides {this, "CrossFactor2sides", 0.1, "Loss of charge to neighbour strip constant"} |
|
private |
Cross factor 2 side.
Definition at line 53 of file SCT_Amp.h.
53{this, "CrossFactor2sides", 0.1, "Loss of charge to neighbour strip constant"};
◆ m_CrossFactorBack
| FloatProperty SCT_Amp::m_CrossFactorBack {this, "CrossFactorBack", 0.07, "Loss of charge to back plane constant"} |
|
private |
cross factor
Definition at line 56 of file SCT_Amp.h.
56{this, "CrossFactorBack", 0.07, "Loss of charge to back plane constant"};
◆ m_dt
| FloatProperty SCT_Amp::m_dt {this, "deltaT", 1.0} |
|
private |
◆ m_NormConstCentral
| float SCT_Amp::m_NormConstCentral {0.} |
|
private |
Normalisation factor for the signal response.
Definition at line 63 of file SCT_Amp.h.
◆ m_NormConstNeigh
| float SCT_Amp::m_NormConstNeigh {0.} |
|
private |
Normalisation factor for the neighbour strip signal response.
Definition at line 66 of file SCT_Amp.h.
◆ m_PeakTime
| FloatProperty SCT_Amp::m_PeakTime {this, "PeakTime", 21., "Front End Electronics peaking time"} |
|
private |
signal peak time
Definition at line 50 of file SCT_Amp.h.
50{this, "PeakTime", 21., "Front End Electronics peaking time"};
◆ m_tmax
| FloatProperty SCT_Amp::m_tmax {this, "Tmax", 150.0} |
|
private |
◆ m_tmin
| FloatProperty SCT_Amp::m_tmin {this, "Tmin", -25.0} |
|
private |
The documentation for this class was generated from the following files: