PandaRoot
BSEmcFittedCosmicPulseshape.h
Go to the documentation of this file.
1 #ifndef BSEmcFittedCosmicPulseshape_HH
2 #define BSEmcFittedCosmicPulseshape_HH
3 
4 #include "Rtypes.h"
5 #include "RtypesCore.h"
6 
7 #include "BSEmcAbsPulseshape.h"
8 
9 class TBuffer;
10 class TClass;
11 class TMemberInspector;
12 
44 
45  public:
47  BSEmcFittedCosmicPulseshape(Double_t t_AmpConv, Double_t t_Rise, Double_t t_FastDecay);
48 
50 
51  virtual Double_t operator()(const Double_t t_time, const Double_t t_amp, const Double_t t_timeOffset) const;
52 
58  void SetAmplitudeConversionFactor(Double_t t_ampConv) { fAmpConv = t_ampConv; }
59 
65  void SetRiseTime(Double_t t_rise) { fRise = t_rise; }
66 
72  void SetDecayTime(Double_t t_fastDecay) { fFastDecay = t_fastDecay; }
73 
74  private:
75  Double_t RisingSigmoid(Double_t t, Double_t t0, Double_t t_r) const;
76  Double_t FallingSigmoid(Double_t t, Double_t t0, Double_t t_f) const;
77 
78  Double_t fAmpConv{0}; // Amplitude conversion an "Amplitude" of 2.49 corresponds to 1 MeV input energy
79  Double_t fRise{0}; // Rise time in samples*12.5ns
80  Double_t fFastDecay{0}; // Fast decay time in samples*12.5ns
81 
82  ClassDef(BSEmcFittedCosmicPulseshape, 1)
83 };
84 
85 #endif /*BSEmcFittedCosmicPulseshape_HH*/
virtual Double_t operator()(const Double_t t_time, const Double_t t_amp, const Double_t t_timeOffset) const
Pulseshape of Cosmic signals measured a FwEndcap alveole in the Bonner Teststation.
pulseshape interface
void SetRiseTime(Double_t t_rise)
Set the Rise Time in ns.
void SetAmplitudeConversionFactor(Double_t t_ampConv)
Set the Amplitude Conversion Factor ~2.0.
void SetDecayTime(Double_t t_fastDecay)
Set the Decay Time in ns.