29 const float ts2 = 10.;
30 const float ts3 = 29.3;
31 const float thpd = 4.;
32 const float tpre = 9.;
35 const float wd2 = 0.7;
39 std::vector<float> nth(
nbin_,0.0);
40 std::vector<float> ntp(
nbin_,0.0);
41 std::vector<float> ntd(
nbin_,0.0);
48 for(j=0;j<thpd && j<
nbin_;j++){
49 nth[
j] = 1.0 + j/thpd;
53 for(j=0;j<thpd && j<
nbin_;j++){
59 for(j=0;j<6*tpre && j<
nbin_;j++){
60 ntp[
j] = j*
exp(-(j*j)/(tpre*tpre));
64 for(j=0;j<6*tpre && j<
nbin_;j++){
72 int tmax = 6 *
static_cast<int>(ts3);
75 for(j=0;j<tmax && j<
nbin_;j++){
76 ntd[
j] = wd1 *
exp(-j/ts1) +
82 for(j=0;j<tmax && j<
nbin_;j++){
87 for(i=0;i<tmax && i<
nbin_;i++){
92 for(j=0;j<thpd && j<
nbin_;j++){
94 for(k=0;k<4*tpre && k<
nbin_;k++){
98 nt_[ntb] += ntd[
i]*nth[
j]*ntp[
k];
106 for(i=0;i<
nbin_;i++){
111 for(i=0; i<
nbin_; i++){
122 int jtime =
static_cast<int>(time_+0.5);
123 if(jtime>=0 && jtime<
nbin_){
Electronic response of the preamp.
Exp< T >::type exp(const T &t)
shaper for Hcal (not for HF)
static const double tmax[3]
virtual double operator()(double time) const
virtual double timeToRise() const