#include <CalibCalorimetry/CastorCalib/interface/CastorPulseShapes.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 14 of file CastorPulseShapes.h.
CastorPulseShapes::Shape::Shape | ( | ) |
float CastorPulseShapes::Shape::at | ( | double | time | ) | const |
float CastorPulseShapes::Shape::getTpeak | ( | ) | const [inline] |
float CastorPulseShapes::Shape::integrate | ( | double | tmin, | |
double | tmax | |||
) | const |
Definition at line 69 of file CastorPulseShapes.cc.
Referenced by RecoFCcorFactorAlgo::calcpair(), and RecoFCcorFactorAlgo::RecoFCcorFactorAlgo().
00069 { 00070 static const float int_delta_ns = 0.05f; 00071 double intval = 0.0; 00072 00073 for (double t = t1; t < t2; t+= int_delta_ns) { 00074 float loedge = at(t); 00075 float hiedge = at(t+int_delta_ns); 00076 intval += (loedge+hiedge)*int_delta_ns/2.0; 00077 } 00078 00079 return (float)intval; 00080 }
float CastorPulseShapes::Shape::operator() | ( | double | time | ) | const |
Definition at line 44 of file CastorPulseShapes.cc.
Referenced by CastorPulseShapes::computeCastorShape().
int CastorPulseShapes::Shape::nbin_ [private] |
Definition at line 25 of file CastorPulseShapes.h.
Referenced by at(), operator()(), setNBin(), setShapeBin(), and Shape().
std::vector<float> CastorPulseShapes::Shape::shape_ [private] |
Definition at line 24 of file CastorPulseShapes.h.
Referenced by at(), operator()(), setNBin(), and setShapeBin().
float CastorPulseShapes::Shape::tpeak_ [private] |