PandaRoot
BSEmcLUTBasedPulseshape.h
Go to the documentation of this file.
1 #ifndef BSEMCLUTBASEDPULSESHAPE_HH
2 #define BSEMCLUTBASEDPULSESHAPE_HH
3 
4 #include <vector>
5 
6 #include "BSEmcAbsPulseshape.h"
7 
17 
18  public:
21 
22  virtual Double_t operator()(const Double_t t_time, const Double_t t_amp, const Double_t t_timeOffset) const;
23  void SetLUTFile(const std::string &t_lutfile)
24  {
25  fLUTFileName = t_lutfile;
26  ReadLUT(fLUTFileName);
27  }
28 
29  UInt_t GetWaveformLength() const { return fLUT.size(); }
30 
31  private:
32  void ReadLUT(const std::string &t_lutfile);
33 
34  std::vector<Double_t> fLUT{};
35  std::string fLUTFileName{};
36  ClassDef(BSEmcLUTBasedPulseshape, 1)
37 };
38 
39 #endif /*BSEMCLUTBASEDPULSESHAPE_HH*/
virtual Double_t operator()(const Double_t t_time, const Double_t t_amp, const Double_t t_timeOffset) const
Look-Up-Table based Pulseshape.
pulseshape interface
void SetLUTFile(const std::string &t_lutfile)