PandaRoot
BSEmcPSAFPGASampleAnalyser Class Referenceabstract

#include <BSEmcPSAFPGASampleAnalyser.h>

Inheritance diagram for BSEmcPSAFPGASampleAnalyser:
BSEmcAbsPSA BSEmcPSAFPGAPileupAnalyser

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 ()
 
- Public Member Functions inherited from BSEmcAbsPSA
 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}
 
BSEmcPSAFPGAFilterCFfCF_filter {nullptr}
 
BSEmcPSAFPGAFilterCFfCF_filter2 {nullptr}
 
BSEmcPSAFPGAFilterMAfMA_triggering {nullptr}
 
BSEmcPSAFPGAFilterDelayfMA_delay {nullptr}
 
BSEmcPSAFPGAFilterDelayfCF_delay {nullptr}
 
BSEmcPSAFPGAFilterDelayfSignal_delay {nullptr}
 
BSEmcPSAFPGAFilterDelayfSignal_buffer {nullptr}
 
BSEmcPSAFPGALinFitterfCF_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] {}
 

Detailed Description

Definition at line 21 of file BSEmcPSAFPGASampleAnalyser.h.

Member Enumeration Documentation

◆ pileup_t

◆ status_t

Constructor & Destructor Documentation

◆ BSEmcPSAFPGASampleAnalyser() [1/2]

BSEmcPSAFPGASampleAnalyser::BSEmcPSAFPGASampleAnalyser ( )

◆ BSEmcPSAFPGASampleAnalyser() [2/2]

BSEmcPSAFPGASampleAnalyser::BSEmcPSAFPGASampleAnalyser ( const std::string &  t_fname)

◆ ~BSEmcPSAFPGASampleAnalyser()

virtual BSEmcPSAFPGASampleAnalyser::~BSEmcPSAFPGASampleAnalyser ( )
virtual

Member Function Documentation

◆ baseline()

virtual Float_t BSEmcPSAFPGASampleAnalyser::baseline ( )
pure virtual

Implemented in BSEmcPSAFPGAPileupAnalyser.

Referenced by setBaseline().

◆ ClassDef()

BSEmcPSAFPGASampleAnalyser::ClassDef ( BSEmcPSAFPGASampleAnalyser  ,
 
)
protected

◆ GetHit() [1/2]

virtual void BSEmcPSAFPGASampleAnalyser::GetHit ( Int_t  t_i,
Double_t &  t_energy,
Double_t &  t_time 
)
virtual

Get energy and time of hit.

Parameters
Int_tIndex of Hit
Double_tEnergy of Hit
Double_tTime of Hit
Returns

Implements BSEmcAbsPSA.

Reimplemented in BSEmcPSAFPGAPileupAnalyser.

Referenced by Reset().

◆ GetHit() [2/2]

virtual void BSEmcPSAFPGASampleAnalyser::GetHit ( Int_t  t_i,
Double_t &  t_energy,
Double_t &  t_time,
Int_t &  t_PileupType 
)
virtual

Reimplemented in BSEmcPSAFPGAPileupAnalyser.

◆ GetStatus()

status_t BSEmcPSAFPGASampleAnalyser::GetStatus ( )
inline

Definition at line 69 of file BSEmcPSAFPGASampleAnalyser.h.

References fStatus, and init().

◆ Init()

virtual void BSEmcPSAFPGASampleAnalyser::Init ( const std::vector< Double_t > &  t_params)
virtual

Referenced by Reset().

◆ init()

virtual void BSEmcPSAFPGASampleAnalyser::init ( SampleAnalyserParams t_params)
protectedvirtual

Referenced by GetStatus().

◆ initFromFile()

virtual void BSEmcPSAFPGASampleAnalyser::initFromFile ( const std::string &  t_fname)
virtual

◆ nHits()

Int_t BSEmcPSAFPGASampleAnalyser::nHits ( )
inline

◆ Process()

virtual Int_t BSEmcPSAFPGASampleAnalyser::Process ( const BSEmcWaveform t_waveform)
virtual

Find Hits in Waveform.

Parameters
BSEmcWaveform
Returns
Return number of hits, negative if an error occurred

Implements BSEmcAbsPSA.

Referenced by nHits().

◆ put()

virtual void BSEmcPSAFPGASampleAnalyser::put ( Float_t  t_valueToStore)
pure virtual

Implemented in BSEmcPSAFPGAPileupAnalyser.

◆ reset()

virtual void BSEmcPSAFPGASampleAnalyser::reset ( )
pure virtual

Implemented in BSEmcPSAFPGAPileupAnalyser.

Referenced by Reset().

◆ Reset()

virtual void BSEmcPSAFPGASampleAnalyser::Reset ( )
inlinevirtual

reset found hits

Returns

Reimplemented from BSEmcAbsPSA.

Definition at line 42 of file BSEmcPSAFPGASampleAnalyser.h.

References GetHit(), Init(), and reset().

42 { this->reset(); };
virtual void reset()=0

◆ sampleAmplitude()

Float_t BSEmcPSAFPGASampleAnalyser::sampleAmplitude ( Int_t  t_index)

Referenced by nHits().

◆ sampleIntegral()

Float_t BSEmcPSAFPGASampleAnalyser::sampleIntegral ( Int_t  t_index)

Referenced by nHits().

◆ samplePileup()

Int_t BSEmcPSAFPGASampleAnalyser::samplePileup ( Int_t  t_index)

Referenced by nHits().

◆ sampleTime()

Float_t BSEmcPSAFPGASampleAnalyser::sampleTime ( Int_t  t_index)

Referenced by nHits().

◆ setBaseline()

virtual void BSEmcPSAFPGASampleAnalyser::setBaseline ( Float_t  t_newBaseline)
inlinevirtual

Reimplemented in BSEmcPSAFPGAPileupAnalyser.

Definition at line 32 of file BSEmcPSAFPGASampleAnalyser.h.

References baseline(), and fBaseline_value.

32 { fBaseline_value = t_newBaseline; };

Member Data Documentation

◆ fAmplitude

Float_t BSEmcPSAFPGASampleAnalyser::fAmplitude[fgMaxNumberOfHits] {}
protected

Definition at line 96 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fAnalyserParams

SampleAnalyserParams BSEmcPSAFPGASampleAnalyser::fAnalyserParams
protected

Definition at line 74 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fBaseline_value

Float_t BSEmcPSAFPGASampleAnalyser::fBaseline_value {0}
protected

◆ fCF_delay

BSEmcPSAFPGAFilterDelay* BSEmcPSAFPGASampleAnalyser::fCF_delay {nullptr}
protected

Definition at line 86 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fCF_filter

BSEmcPSAFPGAFilterCF* BSEmcPSAFPGASampleAnalyser::fCF_filter {nullptr}
protected

Definition at line 82 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fCF_filter2

BSEmcPSAFPGAFilterCF* BSEmcPSAFPGASampleAnalyser::fCF_filter2 {nullptr}
protected

Definition at line 83 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fCF_Fitter

BSEmcPSAFPGALinFitter* BSEmcPSAFPGASampleAnalyser::fCF_Fitter {nullptr}
protected

Definition at line 90 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fCF_zero_crossing_points

Int_t BSEmcPSAFPGASampleAnalyser::fCF_zero_crossing_points {0}
protected

Definition at line 80 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fIntegral

Float_t BSEmcPSAFPGASampleAnalyser::fIntegral[fgMaxNumberOfHits] {}
protected

Definition at line 95 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fLocal_time

Int_t BSEmcPSAFPGASampleAnalyser::fLocal_time {0}
protected

Definition at line 77 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fMA_delay

BSEmcPSAFPGAFilterDelay* BSEmcPSAFPGASampleAnalyser::fMA_delay {nullptr}
protected

Definition at line 85 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fMA_triggering

BSEmcPSAFPGAFilterMA* BSEmcPSAFPGASampleAnalyser::fMA_triggering {nullptr}
protected

Definition at line 84 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fNumber_of_hits

Int_t BSEmcPSAFPGASampleAnalyser::fNumber_of_hits {0}
protected

Definition at line 93 of file BSEmcPSAFPGASampleAnalyser.h.

Referenced by nHits().

◆ fPileups

Int_t BSEmcPSAFPGASampleAnalyser::fPileups[fgMaxNumberOfHits] {}
protected

Definition at line 99 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fPulse_detected

Bool_t BSEmcPSAFPGASampleAnalyser::fPulse_detected {kFALSE}
protected

Definition at line 78 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fRough_pulse_timing

Int_t BSEmcPSAFPGASampleAnalyser::fRough_pulse_timing {0}
protected

Definition at line 79 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fSignal_buffer

BSEmcPSAFPGAFilterDelay* BSEmcPSAFPGASampleAnalyser::fSignal_buffer {nullptr}
protected

Definition at line 88 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fSignal_delay

BSEmcPSAFPGAFilterDelay* BSEmcPSAFPGASampleAnalyser::fSignal_delay {nullptr}
protected

Definition at line 87 of file BSEmcPSAFPGASampleAnalyser.h.

◆ fStatus

status_t BSEmcPSAFPGASampleAnalyser::fStatus {kUndefined}
protected

Definition at line 98 of file BSEmcPSAFPGASampleAnalyser.h.

Referenced by GetStatus().

◆ fTime

Float_t BSEmcPSAFPGASampleAnalyser::fTime[fgMaxNumberOfHits] {}
protected

Definition at line 94 of file BSEmcPSAFPGASampleAnalyser.h.


The documentation for this class was generated from the following file: