![]() |
PandaRoot
|
#include <BSEmcPSAFPGASampleAnalyser.h>
Classes | |
struct | SampleAnalyserParams |
Public Types | |
enum | pileup_t { kSingle = 0, kPileup1 = 1, kPileup2 = 2, kInvalid = 99 } |
enum | status_t { kBaseline, kInPulse, kPulseDetected, kPulseFinished, kPileupFinished, kUndefined = 99 } |
Public Member Functions | |
BSEmcPSAFPGASampleAnalyser () | |
BSEmcPSAFPGASampleAnalyser (const std::string &t_fname) | |
virtual | ~BSEmcPSAFPGASampleAnalyser () |
virtual void | initFromFile (const std::string &t_fname) |
virtual void | reset ()=0 |
virtual void | put (Float_t t_valueToStore)=0 |
virtual void | setBaseline (Float_t t_newBaseline) |
virtual Float_t | baseline ()=0 |
Int_t | nHits () |
Float_t | sampleTime (Int_t t_index) |
Float_t | sampleAmplitude (Int_t t_index) |
Float_t | sampleIntegral (Int_t t_index) |
Int_t | samplePileup (Int_t t_index) |
virtual Int_t | Process (const BSEmcWaveform *t_waveform) |
Find Hits in Waveform. More... | |
virtual void | Reset () |
reset found hits More... | |
virtual void | GetHit (Int_t t_i, Double_t &t_energy, Double_t &t_time) |
Get energy and time of hit. More... | |
virtual void | GetHit (Int_t t_i, Double_t &t_energy, Double_t &t_time, Int_t &t_PileupType) |
virtual void | Init (const std::vector< Double_t > &t_params) |
status_t | GetStatus () |
![]() | |
BSEmcAbsPSA () | |
virtual | ~BSEmcAbsPSA () |
virtual void | Process (const BSEmcWaveform *t_waveform, Double_t &t_amplitude, Double_t &t_time) |
Deprecated. Do not use. More... | |
ClassDef (BSEmcAbsPSA, 1) | |
Protected Member Functions | |
virtual void | init (SampleAnalyserParams &t_params) |
ClassDef (BSEmcPSAFPGASampleAnalyser, 2) | |
Protected Attributes | |
SampleAnalyserParams | fAnalyserParams |
Float_t | fBaseline_value {0} |
Int_t | fLocal_time {0} |
Bool_t | fPulse_detected {kFALSE} |
Int_t | fRough_pulse_timing {0} |
Int_t | fCF_zero_crossing_points {0} |
BSEmcPSAFPGAFilterCF * | fCF_filter {nullptr} |
BSEmcPSAFPGAFilterCF * | fCF_filter2 {nullptr} |
BSEmcPSAFPGAFilterMA * | fMA_triggering {nullptr} |
BSEmcPSAFPGAFilterDelay * | fMA_delay {nullptr} |
BSEmcPSAFPGAFilterDelay * | fCF_delay {nullptr} |
BSEmcPSAFPGAFilterDelay * | fSignal_delay {nullptr} |
BSEmcPSAFPGAFilterDelay * | fSignal_buffer {nullptr} |
BSEmcPSAFPGALinFitter * | fCF_Fitter {nullptr} |
Int_t | fNumber_of_hits {0} |
Float_t | fTime [fgMaxNumberOfHits] {} |
Float_t | fIntegral [fgMaxNumberOfHits] {} |
Float_t | fAmplitude [fgMaxNumberOfHits] {} |
status_t | fStatus {kUndefined} |
Int_t | fPileups [fgMaxNumberOfHits] {} |
Definition at line 21 of file BSEmcPSAFPGASampleAnalyser.h.
Enumerator | |
---|---|
kSingle | |
kPileup1 | |
kPileup2 | |
kInvalid |
Definition at line 67 of file BSEmcPSAFPGASampleAnalyser.h.
Enumerator | |
---|---|
kBaseline | |
kInPulse | |
kPulseDetected | |
kPulseFinished | |
kPileupFinished | |
kUndefined |
Definition at line 68 of file BSEmcPSAFPGASampleAnalyser.h.
BSEmcPSAFPGASampleAnalyser::BSEmcPSAFPGASampleAnalyser | ( | ) |
BSEmcPSAFPGASampleAnalyser::BSEmcPSAFPGASampleAnalyser | ( | const std::string & | t_fname | ) |
|
virtual |
|
pure virtual |
Implemented in BSEmcPSAFPGAPileupAnalyser.
Referenced by setBaseline().
|
protected |
|
virtual |
Get energy and time of hit.
Int_t | Index of Hit |
Double_t | Energy of Hit |
Double_t | Time of Hit |
Implements BSEmcAbsPSA.
Reimplemented in BSEmcPSAFPGAPileupAnalyser.
Referenced by Reset().
|
virtual |
Reimplemented in BSEmcPSAFPGAPileupAnalyser.
|
inline |
|
virtual |
Referenced by Reset().
|
protectedvirtual |
Referenced by GetStatus().
|
virtual |
|
inline |
Definition at line 35 of file BSEmcPSAFPGASampleAnalyser.h.
References fNumber_of_hits, Process(), sampleAmplitude(), sampleIntegral(), samplePileup(), and sampleTime().
|
virtual |
Find Hits in Waveform.
BSEmcWaveform |
Implements BSEmcAbsPSA.
Referenced by nHits().
|
pure virtual |
Implemented in BSEmcPSAFPGAPileupAnalyser.
|
pure virtual |
Implemented in BSEmcPSAFPGAPileupAnalyser.
Referenced by Reset().
|
inlinevirtual |
reset found hits
Reimplemented from BSEmcAbsPSA.
Definition at line 42 of file BSEmcPSAFPGASampleAnalyser.h.
References GetHit(), Init(), and reset().
Float_t BSEmcPSAFPGASampleAnalyser::sampleAmplitude | ( | Int_t | t_index | ) |
Referenced by nHits().
Float_t BSEmcPSAFPGASampleAnalyser::sampleIntegral | ( | Int_t | t_index | ) |
Referenced by nHits().
Int_t BSEmcPSAFPGASampleAnalyser::samplePileup | ( | Int_t | t_index | ) |
Referenced by nHits().
Float_t BSEmcPSAFPGASampleAnalyser::sampleTime | ( | Int_t | t_index | ) |
Referenced by nHits().
|
inlinevirtual |
Reimplemented in BSEmcPSAFPGAPileupAnalyser.
Definition at line 32 of file BSEmcPSAFPGASampleAnalyser.h.
References baseline(), and fBaseline_value.
|
protected |
Definition at line 96 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 74 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 76 of file BSEmcPSAFPGASampleAnalyser.h.
Referenced by BSEmcPSAFPGAPileupAnalyser::baseline(), and setBaseline().
|
protected |
Definition at line 86 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 82 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 83 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 90 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 80 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 95 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 77 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 85 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 84 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 93 of file BSEmcPSAFPGASampleAnalyser.h.
Referenced by nHits().
|
protected |
Definition at line 99 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 78 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 79 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 88 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 87 of file BSEmcPSAFPGASampleAnalyser.h.
|
protected |
Definition at line 98 of file BSEmcPSAFPGASampleAnalyser.h.
Referenced by GetStatus().
|
protected |
Definition at line 94 of file BSEmcPSAFPGASampleAnalyser.h.