PandaRoot
PndEmcPSAFPGAFilterDelay.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 PNDEMCFPGAFILTERDELAY_HH
14 #define PNDEMCFPGAFILTERDELAY_HH
15 
16 #include <vector>
17 
19  public:
22  void set(unsigned int newBufferSize);
23  float put(float valueToStore);
24  void resetToZero();
25 
26  private:
27  std::vector<float> buffer;
28  unsigned int bpointer;
29  int numbSamples;
30 
31 };
32 
33 #endif
float put(float valueToStore)