PandaRoot
PndEmcPSATrapDigiFilter.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 // Pulseshape analysis for ADC waveforms
16 //
17 //-----------------------------------------------------------
18 
19 #ifndef EMCPSATRAPDIGIFILTER_HH
20 #define EMCPSATRAPDIGIFILTER_HH
21 
22 // Base Class Headers ----------------
23 #include <vector>
24 #include "PndEmcAbsPSA.h"
25 #include "TObject.h"
26 
27 class PndEmcWaveform;
28 
34  public:
35  // Constructors/Destructors ---------
36  PndEmcPSATrapDigiFilter(const std::vector<Double_t> params);
37  virtual ~PndEmcPSATrapDigiFilter() { ; }
38 
39  virtual Int_t Process(const PndEmcWaveform *waveform);
40  virtual void GetHit(Int_t i, Double_t &energy, Double_t &time);
41 
42  virtual void Process(const PndEmcWaveform *waveform, Double_t &amplitude, Double_t &time);
43  void Draw(const PndEmcWaveform *waveform);
44 
45  std::vector<Double_t> fParams; // Parameters of the filter
46 
47  private:
48  Double_t lAmplitude;
49  Double_t lTime;
50 };
51 
52 #endif
std::vector< Double_t > fParams
void Draw(const PndEmcWaveform *waveform)
unsigned int i
Definition: P4_F32vec4.h:33
virtual void GetHit(Int_t i, Double_t &energy, Double_t &time)
Get energy and time of hit.
Pulseshape analysis for ADC waveforms.
represents a simulated waveform in an emc crystal
Baseclass for pulseshapeanalysis ( featureextraction )
Definition: PndEmcAbsPSA.h:33
PndEmcPSATrapDigiFilter(const std::vector< Double_t > params)
virtual Int_t Process(const PndEmcWaveform *waveform)
Find Hits in Waveform.