PandaRoot
PndEmcAbsPulseshape.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 #pragma once
25 #ifndef PNDEMCABSPULSESHAPE_H
26 #define PNDEMCABSPULSESHAPE_H
27 
28 #include "TObject.h"
29 // Collaborating Class Headers -------
30 
31 // Collaborating Class Declarations --
32 
37 class PndEmcAbsPulseshape : public TObject {
38  public:
39  // Constructors/Destructors ---------
41  virtual ~PndEmcAbsPulseshape() { ; }
42 
43  // Operators
44 
45  virtual double operator()(const double t, const double amp, const double toffset) const = 0;
46  virtual double value(const double t, const double amp, const double toffset) const { return operator()(t, amp, toffset); }
47 
48  ClassDef(PndEmcAbsPulseshape, 1)
49 };
50 
51 #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