PandaRoot
BSEmcPSAFPGAFilterDelay.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 BSEMCPSAFPGAFILTERDELAY_HH
14 #define BSEMCPSAFPGAFILTERDELAY_HH
15 
16 #include <vector>
17 
18 #include "RtypesCore.h"
19 
21  public:
24  void set(UInt_t t_newBufferSize);
25  Float_t put(Float_t t_valueToStore);
26  void resetToZero();
27 
28  private:
29  std::vector<Float_t> fBuffer{};
30  UInt_t fBPointer{0};
31 };
32 
33 #endif /*BSEMCPSAFPGAFILTERDELAY_HH*/
Float_t put(Float_t t_valueToStore)