FairRoot/PandaRoot
|
#include <PndEmcPSAFPGASampleAnalyser.h>
Classes | |
struct | SampleAnalyserParams |
Public Types | |
enum | status_t { kBaseline, kInPulse, kPulseDetected, kPulseFinished, kPileupFinished, kUndefined =99 } |
Public Member Functions | |
PndEmcPSAFPGASampleAnalyser () | |
PndEmcPSAFPGASampleAnalyser (const std::string &fname) | |
virtual | ~PndEmcPSAFPGASampleAnalyser () |
virtual void | initFromFile (const std::string &fname) |
virtual void | reset ()=0 |
virtual void | put (float valueToStore)=0 |
virtual void | setBaseline (float newBaseline) |
virtual float | baseline ()=0 |
int | nHits () |
float | sampleTime (int index) |
float | sampleAmplitude (int index) |
float | sampleIntegral (int index) |
virtual Int_t | Process (const PndEmcWaveform *waveform) |
Find Hits in Waveform. More... | |
virtual void | Reset () |
reset found hits More... | |
virtual void | GetHit (Int_t i, Double_t &energy, Double_t &time) |
Get energy and time of hit. More... | |
virtual void | Init (const std::vector< Double_t > ¶ms) |
status_t | GetStatus () |
virtual void | Process (const PndEmcWaveform *waveform, Double_t &litude, Double_t &time) |
Deprecated. Do not use. More... | |
ClassDef (PndEmcAbsPSA, 1) | |
Protected Member Functions | |
virtual void | init (SampleAnalyserParams ¶ms) |
ClassDef (PndEmcPSAFPGASampleAnalyser, 2) | |
Protected Attributes | |
SampleAnalyserParams | analyserParams |
float | baseline_value |
unsigned int | local_time |
bool | pulse_detected |
int | rough_pulse_timing |
int | cf_zero_crossing_points |
PndEmcPSAFPGAFilterCF * | CF_filter |
PndEmcPSAFPGAFilterMA * | MA_triggering |
PndEmcPSAFPGAFilterDelay * | MA_delay |
PndEmcPSAFPGAFilterDelay * | CF_delay |
PndEmcPSAFPGAFilterDelay * | Signal_delay |
PndEmcPSAFPGALinFitter * | CF_Fitter |
int | Number_of_hits |
float | time [MAX_NUMBER_OF_HITS] |
float | integral [MAX_NUMBER_OF_HITS] |
float | amplitude [MAX_NUMBER_OF_HITS] |
status_t | status |
Definition at line 15 of file PndEmcPSAFPGASampleAnalyser.h.
Enumerator | |
---|---|
kBaseline | |
kInPulse | |
kPulseDetected | |
kPulseFinished | |
kPileupFinished | |
kUndefined |
Definition at line 57 of file PndEmcPSAFPGASampleAnalyser.h.
PndEmcPSAFPGASampleAnalyser::PndEmcPSAFPGASampleAnalyser | ( | ) |
Definition at line 21 of file PndEmcPSAFPGASampleAnalyser.cxx.
References baseline_value, CF_delay, CF_filter, CF_Fitter, MA_delay, MA_triggering, and Signal_delay.
PndEmcPSAFPGASampleAnalyser::PndEmcPSAFPGASampleAnalyser | ( | const std::string & | fname | ) |
Definition at line 31 of file PndEmcPSAFPGASampleAnalyser.cxx.
References baseline_value, CF_delay, CF_filter, CF_Fitter, initFromFile(), MA_delay, MA_triggering, and Signal_delay.
|
virtual |
Definition at line 42 of file PndEmcPSAFPGASampleAnalyser.cxx.
|
pure virtual |
Implemented in PndEmcPSAFPGAPileupAnalyser, PndEmcPSAFPGAIntegratingAnalyser, and PndEmcPSAFPGADigitalFilterAnalyser.
|
inherited |
|
protected |
Get energy and time of hit.
Int_t | Index of Hit |
Double_t | Energy of Hit |
Double_t | Time of Hit |
Implements PndEmcAbsPSA.
Reimplemented in PndEmcPSAFPGAPileupAnalyser.
Definition at line 189 of file PndEmcPSAFPGASampleAnalyser.cxx.
References sampleAmplitude(), and sampleTime().
Referenced by PndEmcHighLowPSA::GetHit().
|
inline |
Definition at line 58 of file PndEmcPSAFPGASampleAnalyser.h.
References status.
Referenced by PndEmcHighLowPSA::Process().
|
virtual |
Definition at line 132 of file PndEmcPSAFPGASampleAnalyser.cxx.
References PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_delay, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_fit_offset, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_fitter_length, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_ratio, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::clock_unit, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::hit_threshold, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::iafactor, init(), PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::ma_trig_M, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd_length, and PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd_tau.
|
protectedvirtual |
Reimplemented in PndEmcPSAFPGADigitalFilterAnalyser.
Definition at line 45 of file PndEmcPSAFPGASampleAnalyser.cxx.
References analyserParams, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_delay, CF_delay, CF_filter, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_fit_offset, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_fitter_length, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_ratio, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::clock_unit, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::hit_threshold, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::iafactor, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::ma_trig_M, MA_triggering, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd2_length, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd2_tau, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd3_length, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd3_tau, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd_length, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd_tau, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::rough_timing_corr, PndEmcPSAFPGAFilterDelay::set(), PndEmcPSAFPGAFilterMA::set(), PndEmcPSAFPGAFilterCF::set(), PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::sig_delay, and Signal_delay.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::init(), Init(), initFromFile(), and PndEmcPSAFPGAPileupAnalyser::InitParameters().
|
virtual |
Definition at line 71 of file PndEmcPSAFPGASampleAnalyser.cxx.
References PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_delay, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_fit_offset, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_fitter_length, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::cf_ratio, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::clock_unit, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::hit_threshold, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::iafactor, init(), PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::ma_trig_M, PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd_length, and PndEmcPSAFPGASampleAnalyser::SampleAnalyserParams::mwd_tau.
Referenced by PndEmcPSAFPGASampleAnalyser().
|
inline |
Definition at line 28 of file PndEmcPSAFPGASampleAnalyser.h.
References Number_of_hits.
Referenced by PndEmcPSAFPGAPileupAnalyser::GetHit(), PndEmcPSAFPGADigitalFilterAnalyser::Process(), Process(), sampleAmplitude(), sampleIntegral(), and sampleTime().
|
virtual |
Find Hits in Waveform.
PndEmcWaveform |
Implements PndEmcAbsPSA.
Reimplemented in PndEmcPSAFPGADigitalFilterAnalyser.
Definition at line 177 of file PndEmcPSAFPGASampleAnalyser.cxx.
References PndEmcWaveform::GetSignal(), nHits(), put(), and reset().
|
virtualinherited |
Deprecated. Do not use.
PndEmcWaveform | |
Double_t | |
Double_t |
Reimplemented in PndEmcPSAMatchedDigiFilter, PndEmcPSAParabolic, PndEmcPSAParabolicBaseline, and PndEmcPSATrapDigiFilter.
Definition at line 2 of file PndEmcAbsPSA.cxx.
References PndEmcAbsPSA::GetHit(), and PndEmcAbsPSA::Process().
|
pure virtual |
Implemented in PndEmcPSAFPGAPileupAnalyser, PndEmcPSAFPGADigitalFilterAnalyser, and PndEmcPSAFPGAIntegratingAnalyser.
Referenced by PndEmcHighLowPSA::Process(), and Process().
|
pure virtual |
Implemented in PndEmcPSAFPGAPileupAnalyser, PndEmcPSAFPGADigitalFilterAnalyser, and PndEmcPSAFPGAIntegratingAnalyser.
|
inlinevirtual |
reset found hits
Reimplemented from PndEmcAbsPSA.
Definition at line 34 of file PndEmcPSAFPGASampleAnalyser.h.
References reset().
Referenced by PndEmcHighLowPSA::Reset().
float PndEmcPSAFPGASampleAnalyser::sampleAmplitude | ( | int | index | ) |
Definition at line 165 of file PndEmcPSAFPGASampleAnalyser.cxx.
References amplitude, and nHits().
Referenced by PndEmcPSAFPGAPileupAnalyser::GetEnergyMeasures(), PndEmcPSAFPGAPileupAnalyser::GetHit(), and GetHit().
float PndEmcPSAFPGASampleAnalyser::sampleIntegral | ( | int | index | ) |
Definition at line 171 of file PndEmcPSAFPGASampleAnalyser.cxx.
References integral, and nHits().
Referenced by PndEmcPSAFPGAPileupAnalyser::GetEnergyMeasures().
float PndEmcPSAFPGASampleAnalyser::sampleTime | ( | int | index | ) |
Definition at line 159 of file PndEmcPSAFPGASampleAnalyser.cxx.
Referenced by PndEmcPSAFPGAPileupAnalyser::GetHit(), and GetHit().
|
inlinevirtual |
Reimplemented in PndEmcPSAFPGAPileupAnalyser.
Definition at line 25 of file PndEmcPSAFPGASampleAnalyser.h.
References baseline_value.
Referenced by PndEmcPSAFPGAPileupAnalyser::setBaseline().
|
protected |
Definition at line 82 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), and sampleAmplitude().
|
protected |
Definition at line 63 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::init(), init(), PndEmcPSAFPGAPileupAnalyser::Init2(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), and PndEmcPSAFPGAPileupAnalyser::put().
|
protected |
Definition at line 65 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGAIntegratingAnalyser::baseline(), PndEmcPSAFPGAPileupAnalyser::baseline(), PndEmcPSAFPGADigitalFilterAnalyser::PndEmcPSAFPGADigitalFilterAnalyser(), PndEmcPSAFPGASampleAnalyser(), PndEmcPSAFPGADigitalFilterAnalyser::Process(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), and setBaseline().
|
protected |
Definition at line 74 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by init(), PndEmcPSAFPGASampleAnalyser(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::reset(), and PndEmcPSAFPGAPileupAnalyser::reset().
|
protected |
Definition at line 71 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by init(), PndEmcPSAFPGASampleAnalyser(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::reset(), PndEmcPSAFPGADigitalFilterAnalyser::reset(), and PndEmcPSAFPGAPileupAnalyser::reset().
|
protected |
Definition at line 76 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGASampleAnalyser(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::put(), and PndEmcPSAFPGAPileupAnalyser::put().
|
protected |
Definition at line 69 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::put(), and PndEmcPSAFPGAIntegratingAnalyser::put().
|
protected |
Definition at line 81 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), and sampleIntegral().
|
protected |
Definition at line 66 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::reset(), PndEmcPSAFPGAIntegratingAnalyser::reset(), and PndEmcPSAFPGAPileupAnalyser::reset().
|
protected |
Definition at line 73 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGASampleAnalyser().
|
protected |
Definition at line 72 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by init(), PndEmcPSAFPGASampleAnalyser(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::reset(), PndEmcPSAFPGADigitalFilterAnalyser::reset(), and PndEmcPSAFPGAPileupAnalyser::reset().
|
protected |
Definition at line 79 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by nHits(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::reset(), PndEmcPSAFPGAIntegratingAnalyser::reset(), and PndEmcPSAFPGAPileupAnalyser::reset().
|
protected |
Definition at line 67 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::reset(), PndEmcPSAFPGAIntegratingAnalyser::reset(), and PndEmcPSAFPGAPileupAnalyser::reset().
|
protected |
Definition at line 68 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), and PndEmcPSAFPGAPileupAnalyser::reset().
|
protected |
Definition at line 75 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by init(), PndEmcPSAFPGAPileupAnalyser::Init2(), PndEmcPSAFPGASampleAnalyser(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), and PndEmcPSAFPGADigitalFilterAnalyser::reset().
|
protected |
Definition at line 84 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by GetStatus(), and PndEmcPSAFPGAPileupAnalyser::put().
|
protected |
Definition at line 80 of file PndEmcPSAFPGASampleAnalyser.h.
Referenced by PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), and sampleTime().