PandaRoot
PndEmcAbsPulseshape.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id:$
4 //
5 // Description:
6 // EMC Digitization
7 // abstract Base class for Pulseshapes
8 // Author List:
9 // Sebastian Neubert TUM (original author)
10 //
11 //-----------------------------------------------------------
12 #pragma once
13 #ifndef PNDEMCABSPULSESHAPE_H
14 #define PNDEMCABSPULSESHAPE_H
15 
16 #include "TObject.h"
17 // Collaborating Class Headers -------
18 
19 // Collaborating Class Declarations --
20 
25 class PndEmcAbsPulseshape : public TObject {
26  public:
27  // Constructors/Destructors ---------
29  virtual ~PndEmcAbsPulseshape() { ; }
30 
31  // Operators
32 
33  virtual double operator()(const double t, const double amp, const double toffset) const = 0;
34  virtual double value(const double t, const double amp, const double toffset) const { return operator()(t, amp, toffset); }
35 
36  ClassDef(PndEmcAbsPulseshape, 1)
37 };
38 
39 #endif
virtual double value(const double t, const double amp, const double toffset) const
pulseshape interface
virtual double operator()(const double t, const double amp, const double toffset) const =0