PandaRoot
BSEmcPSAFPGAFilterMWD.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 BSEMCPSAFPGAFILTERMWD_HH
14 #define BSEMCPSAFPGAFILTERMWD_HH
15 
16 #include <vector>
17 
18 #include "RtypesCore.h"
19 
20 #include "BSEmcPSAFPGAFilterLine.h"
21 
23 
24  public:
26  virtual ~BSEmcPSAFPGAFilterMWD();
27  void set(Float_t t_tau, UInt_t t_newBufferSize);
28  virtual Float_t put(Float_t t_valueToStore) /*override*/;
29  void resetToZero();
30 
31  private:
32  std::vector<Float_t> fBuffer{};
33  UInt_t fBPointer{0};
34  Float_t fSum{0};
35  Float_t fLambda{0};
36 };
37 
38 #endif /*BSEMCPSAFPGAFILTERMWD_HH*/
virtual ~BSEmcPSAFPGAFilterMWD()
virtual Float_t put(Float_t t_valueToStore)