FairRoot/PandaRoot
PndEmcFittedPulseshape.cxx
Go to the documentation of this file.
2 #include "math.h"
3 
4 
5 // Class Member definitions -----------
7 }
8 
9 PndEmcFittedPulseshape::PndEmcFittedPulseshape(double tau, double N) : fTau(tau), fN(N) {
10 }
11 
12 double PndEmcFittedPulseshape::operator() (const double t, const double amp, const double toffset) const {
13  if(t<toffset) {
14  return 0.0;
15  }
16 
17  double t_norm = (t-toffset) / fTau;
18  return amp * pow(t_norm, fN) * exp(-fN * t_norm);
19 }
20 
friend F32vec4 exp(const F32vec4 &a)
Definition: P4_F32vec4.h:109
virtual double operator()(const double t, const double amp, const double toffset) const
Experimentally derived Pulseshape.
ClassImp(PndAnaContFact)
TTree * t
Definition: bump_analys.C:13