PandaRoot
BSEmcAbsPulseshape.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //-----------------------------------------------------------
14 // File and Version Information:
15 // $Id:$
16 //
17 // Description:
18 // EMC Digitization
19 // abstract Base class for Pulseshapes
20 // Author List:
21 // Sebastian Neubert TUM (original author)
22 //
23 //-----------------------------------------------------------
24 #ifndef BSEMCABSPULSESHAPE_HH
25 #define BSEMCABSPULSESHAPE_HH
26 
27 #include "TObject.h"
28 
34 class BSEmcAbsPulseshape : public TObject {
35  public:
37  virtual ~BSEmcAbsPulseshape() { ; }
38 
39  virtual Double_t operator()(const Double_t t_t, const Double_t t_amp, const Double_t t_toffset) const = 0;
40  virtual Double_t value(const Double_t t_t, const Double_t t_amp, const Double_t t_toffset) const { return operator()(t_t, t_amp, t_toffset); }
41 
42  ClassDef(BSEmcAbsPulseshape, 1)
43 };
44 
45 #endif /*BSEMCABSPULSESHAPE_HH*/
virtual Double_t value(const Double_t t_t, const Double_t t_amp, const Double_t t_toffset) const
pulseshape interface
virtual Double_t operator()(const Double_t t_t, const Double_t t_amp, const Double_t t_toffset) const =0