CMS 3D CMS Logo

Shape.h
Go to the documentation of this file.
1 // Shape.h
2 //
9 #ifndef Shape_H
10 #define Shape_H
11 
12 #include "TObject.h"
13 
14 class Shape : public TObject {
15 public:
17  virtual double eval(double t) const = 0;
19  virtual double derivative(double t) const = 0;
21  virtual double getTimeOfMax() const = 0;
23  virtual bool fillShapeFor(int tower = 0, int crystal = 0, int gain = 0) = 0;
24 
25  ClassDefOverride(Shape, 1) // Definition of a general interface to pulse shapes
26 };
27 
28 #endif
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:3
Shape::derivative
virtual double derivative(double t) const =0
return the value of the derivative of the shape at a given time (given in clock unit)
Shape
Abstract Class of shape.
Definition: Shape.h:14
OrderedSet.t
t
Definition: OrderedSet.py:90
Shape::eval
virtual double eval(double t) const =0
return the value of the shape at a given time (given in clock unit)
Shape::fillShapeFor
virtual bool fillShapeFor(int tower=0, int crystal=0, int gain=0)=0
Calling this method fill the shape corresponding to a given channel (tower, crystal and gain)
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
Shape::getTimeOfMax
virtual double getTimeOfMax() const =0
return the value of the time of the max of the shape (in clock unit).