PandaRoot
PndEmcAbsPSA.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 EMCABSPSA_HH
20 #define EMCABSPSA_HH
21 
22 // Base Class Headers ----------------
23 #include <vector>
24 #include "TObject.h"
25 
26 class PndEmcWaveform;
27 
33 class PndEmcAbsPSA {
34  public:
36  virtual ~PndEmcAbsPSA() { ; };
37 
45  virtual Int_t Process(const PndEmcWaveform *waveform) = 0;
46 
52  // Constructors/Destructors ---------
53  virtual void Reset(){};
54 
64  virtual void GetHit(Int_t i, Double_t &energy, Double_t &time) = 0;
65 
76  virtual void Process(const PndEmcWaveform *waveform, Double_t &amplitude, Double_t &time);
77  // deprecated do not use
78 
80 };
81 
82 // ClassImp(PndEmcAbsPSA);
83 #endif
virtual Int_t Process(const PndEmcWaveform *waveform)=0
Find Hits in Waveform.
ClassDef(PndEmcAbsPSA, 1)
virtual void GetHit(Int_t i, Double_t &energy, Double_t &time)=0
Get energy and time of hit.
unsigned int i
Definition: P4_F32vec4.h:33
virtual ~PndEmcAbsPSA()
Definition: PndEmcAbsPSA.h:36
represents a simulated waveform in an emc crystal
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: PndEmcAbsPSA.h:33
virtual void Reset()
reset found hits
Definition: PndEmcAbsPSA.h:53