PandaRoot
PndEmcPSAFPGADigitalFilterAnalyser.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 #ifndef PNDEMCFPGADIGITALFILTERANALYSER_HH
14 #define PNDEMCFPGADIGITALFILTERANALYSER_HH
15 
17 #include <string>
18 
20 
21 #define MAX_NUMBER_OF_HITS 100
22 
24 
25  public:
27  PndEmcPSAFPGADigitalFilterAnalyser(const std::string &fname);
29 
30  virtual void setBaselineInterval(int anl_start, int bl_stop);
31  virtual float baseline();
33  virtual void reset();
34  virtual void put(float valueToStore);
35  virtual void enable_mwd_filter(bool flag);
36 
37  virtual Int_t Process(const PndEmcWaveform *waveform);
38 
39  private:
40  unsigned int analysis_start_position;
41  unsigned int baseline_stop_position;
42  float baseline_value_calculated;
43  float ma_value_delay;
44  int increasement;
45  int decreasement;
46  bool useMWDFilter;
47  bool pulse_finished;
48  int ith_pulse;
49  int rising_count;
50 
51  PndEmcPSAFPGAFilterMWD *MWD_filter;
52 
54 };
55 
56 #endif
virtual void init(PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams &params)
virtual void setBaselineInterval(int anl_start, int bl_stop)
represents a simulated waveform in an emc crystal
virtual void enable_mwd_filter(bool flag)
virtual void put(float valueToStore)
virtual Int_t Process(const PndEmcWaveform *waveform)
Find Hits in Waveform.