CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
virtual double derivative(double t) const =0
return the value of the derivative of the shape at a given time (given in clock unit) ...
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) ...
virtual double getTimeOfMax() const =0
return the value of the time of the max of the shape (in clock unit).
virtual double eval(double t) const =0
return the value of the shape at a given time (given in clock unit)
Abstract Class of shape.
Definition: Shape.h:14