CMS 3D CMS Logo

CastorPulseShapes.h
Go to the documentation of this file.
1 #ifndef CALIBCALORIMETRY_CASTORALGOS_CASTORPULSESHAPES_H
2 #define CALIBCALORIMETRY_CASTORALGOS_CASTORPULSESHAPES_H 1
3 
4 #include <vector>
5 
11 public:
13 
14  class Shape {
15  public:
16  Shape();
17  void setNBin(int n);
18  void setShapeBin(int i, float f);
19  float getTpeak() const { return tpeak_; }
20  float operator()(double time) const;
21  float at(double time) const;
22  float integrate(double tmin, double tmax) const;
23 
24  private:
25  std::vector<float> shape_;
26  int nbin_;
27  float tpeak_;
28  };
29 
30  const Shape& castorShape() const { return castorShape_; }
31 
32 private:
34  void computeCastorShape(Shape& s);
35 };
36 #endif
CastorPulseShapes::Shape::setNBin
void setNBin(int n)
Definition: CastorPulseShapes.cc:42
mps_fire.i
i
Definition: mps_fire.py:355
CastorPulseShapes
Definition: CastorPulseShapes.h:10
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CastorPulseShapes::Shape::tpeak_
float tpeak_
Definition: CastorPulseShapes.h:27
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
muonTiming_cfi.tmin
tmin
Definition: muonTiming_cfi.py:24
CastorPulseShapes::Shape::getTpeak
float getTpeak() const
Definition: CastorPulseShapes.h:19
CastorPulseShapes::Shape::nbin_
int nbin_
Definition: CastorPulseShapes.h:26
CastorPulseShapes::computeCastorShape
void computeCastorShape(Shape &s)
Definition: CastorPulseShapes.cc:9
CastorPulseShapes::Shape::setShapeBin
void setShapeBin(int i, float f)
Definition: CastorPulseShapes.cc:47
CastorPulseShapes::Shape::integrate
float integrate(double tmin, double tmax) const
Definition: CastorPulseShapes.cc:70
tmax
static const double tmax[3]
Definition: CastorTimeSlew.cc:7
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CastorPulseShapes::Shape::at
float at(double time) const
Definition: CastorPulseShapes.cc:61
CastorPulseShapes::Shape::shape_
std::vector< float > shape_
Definition: CastorPulseShapes.h:25
CastorPulseShapes::Shape::Shape
Shape()
Definition: CastorPulseShapes.cc:37
CastorPulseShapes::CastorPulseShapes
CastorPulseShapes()
Definition: CastorPulseShapes.cc:4
CastorPulseShapes::Shape::operator()
float operator()(double time) const
Definition: CastorPulseShapes.cc:52
CastorPulseShapes::castorShape_
Shape castorShape_
Definition: CastorPulseShapes.h:33
CastorPulseShapes::Shape
Definition: CastorPulseShapes.h:14
CastorPulseShapes::castorShape
const Shape & castorShape() const
Definition: CastorPulseShapes.h:30
ntuplemaker.time
time
Definition: ntuplemaker.py:310