PandaRoot
BSEmcAbsPSA.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 // Description:
15 // Abstract interface for EMC Pulse Shape Analyzer
16 // Dima Melnychuk
17 //-----------------------------------------------------------
18 
19 #ifndef BSEMCABSPSA_HH
20 #define BSEMCABSPSA_HH
21 
22 #include <vector>
23 
24 #include "Rtypes.h"
25 #include "RtypesCore.h"
26 #include "TObject.h"
27 
28 class BSEmcWaveform;
29 class TBuffer;
30 class TClass;
31 class TMemberInspector;
32 
38 class BSEmcAbsPSA {
39  public:
41  virtual ~BSEmcAbsPSA() { ; };
42 
50  virtual Int_t Process(const BSEmcWaveform *t_waveform) = 0;
51 
57  // Constructors/Destructors ---------
58  virtual void Reset(){};
59 
69  virtual void GetHit(Int_t t_i, Double_t &t_energy, Double_t &t_time) = 0;
70 
81  virtual void Process(const BSEmcWaveform *t_waveform, Double_t &t_amplitude, Double_t &t_time);
82  // deprecated do not use
83 
85 };
86 
87 // ClassImp(BSEmcAbsPSA);
88 #endif /*BSEMCABSPSA_HH*/
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: BSEmcAbsPSA.h:38
represents a simulated waveform in an emc crystal
Definition: BSEmcWaveform.h:75
virtual void GetHit(Int_t t_i, Double_t &t_energy, Double_t &t_time)=0
Get energy and time of hit.
virtual Int_t Process(const BSEmcWaveform *t_waveform)=0
Find Hits in Waveform.
virtual void Reset()
reset found hits
Definition: BSEmcAbsPSA.h:58
virtual ~BSEmcAbsPSA()
Definition: BSEmcAbsPSA.h:41
ClassDef(BSEmcAbsPSA, 1)