PandaRoot
PndEmcPSAFPGAFilterMWD.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 PNDEMCFPGAFILTERMWD_HH
14 #define PNDEMCFPGAFILTERMWD_HH
15 
17 #include <vector>
18 
20 
21  public:
23  virtual ~PndEmcPSAFPGAFilterMWD();
24  void set(float tau, unsigned int newBufferSize);
25  virtual float put(float valueToStore);
26  void resetToZero();
27 
28  private:
29  std::vector<float> buffer;
30  unsigned int bpointer;
31  float sum;
32  float lambda;
33 };
34 
35 #endif
virtual float put(float valueToStore)
virtual ~PndEmcPSAFPGAFilterMWD()