#include <CalibCalorimetry/HcalAlgos/interface/HcalPulseShapes.h>
Public Member Functions | |
float | at (double time) const |
float | getTpeak () const |
float | integrate (double tmin, double tmax) const |
float | operator() (double time) const |
void | setNBin (int n) |
void | setShapeBin (int i, float f) |
Shape () | |
Private Attributes | |
int | nbin_ |
std::vector< float > | shape_ |
float | tpeak_ |
Definition at line 16 of file HcalPulseShapes.h.
HcalPulseShapes::Shape::Shape | ( | ) |
float HcalPulseShapes::Shape::at | ( | double | time | ) | const |
float HcalPulseShapes::Shape::getTpeak | ( | ) | const [inline] |
float HcalPulseShapes::Shape::integrate | ( | double | tmin, | |
double | tmax | |||
) | const |
Definition at line 169 of file HcalPulseShapes.cc.
00169 { 00170 static const float int_delta_ns = 0.05f; 00171 double intval = 0.0; 00172 00173 for (double t = t1; t < t2; t+= int_delta_ns) { 00174 float loedge = at(t); 00175 float hiedge = at(t+int_delta_ns); 00176 intval += (loedge+hiedge)*int_delta_ns/2.0; 00177 } 00178 00179 return (float)intval; 00180 }
float HcalPulseShapes::Shape::operator() | ( | double | time | ) | const |
Definition at line 144 of file HcalPulseShapes.cc.
Referenced by HcalPulseShapes::computeHFShape(), and HcalPulseShapes::computeHPDShape().
Definition at line 149 of file HcalPulseShapes.cc.
Referenced by HcalPulseShapes::computeHFShape(), and HcalPulseShapes::computeHPDShape().
int HcalPulseShapes::Shape::nbin_ [private] |
Definition at line 27 of file HcalPulseShapes.h.
Referenced by at(), operator()(), setNBin(), setShapeBin(), and Shape().
std::vector<float> HcalPulseShapes::Shape::shape_ [private] |
Definition at line 26 of file HcalPulseShapes.h.
Referenced by at(), operator()(), setNBin(), and setShapeBin().
float HcalPulseShapes::Shape::tpeak_ [private] |