CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
16 public:
18  virtual double eval(double t) const = 0 ;
20  virtual double derivative(double t) const = 0 ;
22  virtual double getTimeOfMax() const = 0 ;
24  virtual bool fillShapeFor(int tower=0, int crystal=0, int gain=0) = 0 ;
25 
26  ClassDef(Shape,1) // Definition of a general interface to pulse shapes
27 };
28 
29 #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