PandaRoot
PndEmcPSAFPGASampleAnalyser Class Referenceabstract

#include <PndEmcPSAFPGASampleAnalyser.h>

Inheritance diagram for PndEmcPSAFPGASampleAnalyser:
PndEmcAbsPSA PndEmcPSAFPGADigitalFilterAnalyser PndEmcPSAFPGAIntegratingAnalyser PndEmcPSAFPGAPileupAnalyser

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)
 
Int_t samplePileup (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 GetHit2 (Int_t i, Double_t &energy, Double_t &time, Int_t &PileupType)
 
virtual void Init (const std::vector< Double_t > &params)
 
status_t GetStatus ()
 
- Public Member Functions inherited from PndEmcAbsPSA
 PndEmcAbsPSA ()
 
virtual ~PndEmcAbsPSA ()
 
virtual void Process (const PndEmcWaveform *waveform, Double_t &amplitude, Double_t &time)
 Deprecated. Do not use. More...
 
 ClassDef (PndEmcAbsPSA, 1)
 

Protected Member Functions

virtual void init (SampleAnalyserParams &params)
 
 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
 
std::ofstream Ratio
 
PndEmcPSAFPGAFilterCFCF_filter
 
PndEmcPSAFPGAFilterCFCF_filter2
 
PndEmcPSAFPGAFilterMAMA_triggering
 
PndEmcPSAFPGAFilterDelayMA_delay
 
PndEmcPSAFPGAFilterDelayCF_delay
 
PndEmcPSAFPGAFilterDelaySignal_delay
 
PndEmcPSAFPGAFilterDelaySignal_buffer
 
PndEmcPSAFPGALinFitterCF_Fitter
 
int Number_of_hits
 
float time [MAX_NUMBER_OF_HITS]
 
float integral [MAX_NUMBER_OF_HITS]
 
float amplitude [MAX_NUMBER_OF_HITS]
 
Int_t pileups [MAX_NUMBER_OF_HITS]
 
status_t status
 

Detailed Description

Definition at line 15 of file PndEmcPSAFPGASampleAnalyser.h.

Member Enumeration Documentation

◆ status_t

Constructor & Destructor Documentation

◆ PndEmcPSAFPGASampleAnalyser() [1/2]

PndEmcPSAFPGASampleAnalyser::PndEmcPSAFPGASampleAnalyser ( )

◆ PndEmcPSAFPGASampleAnalyser() [2/2]

PndEmcPSAFPGASampleAnalyser::PndEmcPSAFPGASampleAnalyser ( const std::string &  fname)

◆ ~PndEmcPSAFPGASampleAnalyser()

virtual PndEmcPSAFPGASampleAnalyser::~PndEmcPSAFPGASampleAnalyser ( )
virtual

Member Function Documentation

◆ baseline()

virtual float PndEmcPSAFPGASampleAnalyser::baseline ( )
pure virtual

◆ ClassDef()

PndEmcPSAFPGASampleAnalyser::ClassDef ( PndEmcPSAFPGASampleAnalyser  ,
 
)
protected

◆ GetHit()

virtual void PndEmcPSAFPGASampleAnalyser::GetHit ( Int_t  i,
Double_t &  energy,
Double_t &  time 
)
virtual

Get energy and time of hit.

Parameters
Int_tIndex of Hit
Double_tEnergy of Hit
Double_tTime of Hit
Returns

Implements PndEmcAbsPSA.

Reimplemented in PndEmcPSAFPGAPileupAnalyser.

Referenced by Reset().

◆ GetHit2()

virtual void PndEmcPSAFPGASampleAnalyser::GetHit2 ( Int_t  i,
Double_t &  energy,
Double_t &  time,
Int_t &  PileupType 
)
virtual

Reimplemented in PndEmcPSAFPGAPileupAnalyser.

Referenced by Reset().

◆ GetStatus()

status_t PndEmcPSAFPGASampleAnalyser::GetStatus ( )
inline

Definition at line 59 of file PndEmcPSAFPGASampleAnalyser.h.

References init(), and status.

◆ Init()

virtual void PndEmcPSAFPGASampleAnalyser::Init ( const std::vector< Double_t > &  params)
virtual

Referenced by Reset().

◆ init()

virtual void PndEmcPSAFPGASampleAnalyser::init ( SampleAnalyserParams params)
protectedvirtual

Reimplemented in PndEmcPSAFPGADigitalFilterAnalyser.

Referenced by GetStatus().

◆ initFromFile()

virtual void PndEmcPSAFPGASampleAnalyser::initFromFile ( const std::string &  fname)
virtual

◆ nHits()

int PndEmcPSAFPGASampleAnalyser::nHits ( )
inline

◆ Process()

virtual Int_t PndEmcPSAFPGASampleAnalyser::Process ( const PndEmcWaveform waveform)
virtual

Find Hits in Waveform.

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

Implements PndEmcAbsPSA.

Reimplemented in PndEmcPSAFPGADigitalFilterAnalyser.

Referenced by nHits().

◆ put()

virtual void PndEmcPSAFPGASampleAnalyser::put ( float  valueToStore)
pure virtual

◆ reset()

virtual void PndEmcPSAFPGASampleAnalyser::reset ( )
pure virtual

◆ Reset()

virtual void PndEmcPSAFPGASampleAnalyser::Reset ( )
inlinevirtual

reset found hits

Returns

Reimplemented from PndEmcAbsPSA.

Definition at line 34 of file PndEmcPSAFPGASampleAnalyser.h.

References GetHit(), GetHit2(), i, Init(), reset(), and time.

34 {this->reset();};

◆ sampleAmplitude()

float PndEmcPSAFPGASampleAnalyser::sampleAmplitude ( int  index)

Referenced by nHits().

◆ sampleIntegral()

float PndEmcPSAFPGASampleAnalyser::sampleIntegral ( int  index)

Referenced by nHits().

◆ samplePileup()

Int_t PndEmcPSAFPGASampleAnalyser::samplePileup ( int  index)

Referenced by nHits().

◆ sampleTime()

float PndEmcPSAFPGASampleAnalyser::sampleTime ( int  index)

Referenced by nHits().

◆ setBaseline()

virtual void PndEmcPSAFPGASampleAnalyser::setBaseline ( float  newBaseline)
inlinevirtual

Reimplemented in PndEmcPSAFPGAPileupAnalyser.

Definition at line 25 of file PndEmcPSAFPGASampleAnalyser.h.

References baseline(), and baseline_value.

Member Data Documentation

◆ amplitude

float PndEmcPSAFPGASampleAnalyser::amplitude[MAX_NUMBER_OF_HITS]
protected

Definition at line 86 of file PndEmcPSAFPGASampleAnalyser.h.

◆ analyserParams

SampleAnalyserParams PndEmcPSAFPGASampleAnalyser::analyserParams
protected

Definition at line 64 of file PndEmcPSAFPGASampleAnalyser.h.

◆ baseline_value

float PndEmcPSAFPGASampleAnalyser::baseline_value
protected

◆ CF_delay

PndEmcPSAFPGAFilterDelay* PndEmcPSAFPGASampleAnalyser::CF_delay
protected

Definition at line 77 of file PndEmcPSAFPGASampleAnalyser.h.

◆ CF_filter

PndEmcPSAFPGAFilterCF* PndEmcPSAFPGASampleAnalyser::CF_filter
protected

Definition at line 73 of file PndEmcPSAFPGASampleAnalyser.h.

◆ CF_filter2

PndEmcPSAFPGAFilterCF* PndEmcPSAFPGASampleAnalyser::CF_filter2
protected

Definition at line 74 of file PndEmcPSAFPGASampleAnalyser.h.

◆ CF_Fitter

PndEmcPSAFPGALinFitter* PndEmcPSAFPGASampleAnalyser::CF_Fitter
protected

Definition at line 80 of file PndEmcPSAFPGASampleAnalyser.h.

◆ cf_zero_crossing_points

int PndEmcPSAFPGASampleAnalyser::cf_zero_crossing_points
protected

Definition at line 70 of file PndEmcPSAFPGASampleAnalyser.h.

◆ integral

float PndEmcPSAFPGASampleAnalyser::integral[MAX_NUMBER_OF_HITS]
protected

Definition at line 85 of file PndEmcPSAFPGASampleAnalyser.h.

◆ local_time

unsigned int PndEmcPSAFPGASampleAnalyser::local_time
protected

Definition at line 67 of file PndEmcPSAFPGASampleAnalyser.h.

◆ MA_delay

PndEmcPSAFPGAFilterDelay* PndEmcPSAFPGASampleAnalyser::MA_delay
protected

Definition at line 76 of file PndEmcPSAFPGASampleAnalyser.h.

◆ MA_triggering

PndEmcPSAFPGAFilterMA* PndEmcPSAFPGASampleAnalyser::MA_triggering
protected

Definition at line 75 of file PndEmcPSAFPGASampleAnalyser.h.

◆ Number_of_hits

int PndEmcPSAFPGASampleAnalyser::Number_of_hits
protected

Definition at line 83 of file PndEmcPSAFPGASampleAnalyser.h.

Referenced by nHits().

◆ pileups

Int_t PndEmcPSAFPGASampleAnalyser::pileups[MAX_NUMBER_OF_HITS]
protected

Definition at line 87 of file PndEmcPSAFPGASampleAnalyser.h.

◆ pulse_detected

bool PndEmcPSAFPGASampleAnalyser::pulse_detected
protected

Definition at line 68 of file PndEmcPSAFPGASampleAnalyser.h.

◆ Ratio

std::ofstream PndEmcPSAFPGASampleAnalyser::Ratio
protected

Definition at line 71 of file PndEmcPSAFPGASampleAnalyser.h.

◆ rough_pulse_timing

int PndEmcPSAFPGASampleAnalyser::rough_pulse_timing
protected

Definition at line 69 of file PndEmcPSAFPGASampleAnalyser.h.

◆ Signal_buffer

PndEmcPSAFPGAFilterDelay* PndEmcPSAFPGASampleAnalyser::Signal_buffer
protected

Definition at line 79 of file PndEmcPSAFPGASampleAnalyser.h.

◆ Signal_delay

PndEmcPSAFPGAFilterDelay* PndEmcPSAFPGASampleAnalyser::Signal_delay
protected

Definition at line 78 of file PndEmcPSAFPGASampleAnalyser.h.

◆ status

status_t PndEmcPSAFPGASampleAnalyser::status
protected

Definition at line 88 of file PndEmcPSAFPGASampleAnalyser.h.

Referenced by GetStatus().

◆ time

float PndEmcPSAFPGASampleAnalyser::time[MAX_NUMBER_OF_HITS]
protected

Definition at line 84 of file PndEmcPSAFPGASampleAnalyser.h.

Referenced by Reset().


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