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 //
11 #ifndef Shape_H
12 #define Shape_H
13 
14 #include "TObject.h"
15 
16 class Shape: public TObject
17 {
18 public:
20  virtual double eval(double t) const = 0 ;
22  virtual double derivative(double t) const = 0 ;
24  virtual double getTimeOfMax() const = 0 ;
26  virtual bool fillShapeFor(int tower=0, int crystal=0, int gain=0) = 0 ;
27 
28  ClassDef(Shape,1) // Definition of a general interface to pulse shapes
29 };
30 
31 #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:16