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