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