PandaRoot
PndEmcHighLowPSA Class Reference

Wrapping class to manage two independent PSAs for high, resp. low gain. More...

#include <PndEmcHighLowPSA.h>

Inheritance diagram for PndEmcHighLowPSA:
PndEmcAbsPSA

Public Member Functions

 PndEmcHighLowPSA (Int_t verbose=0)
 
virtual void Init (PndEmcPSAFPGASampleAnalyser *highgainPSA, PndEmcPSAFPGASampleAnalyser *lowgainPSA, Double_t overflowThreshold, Int_t highgainWfIndex=0, Int_t lowgainWfIndex=1)
 
virtual ~PndEmcHighLowPSA ()
 
virtual void SetVerbose (Int_t verbose=0)
 
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 Int_t GetWaveformIdx (Int_t i)
 
- 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)
 

Detailed Description

Wrapping class to manage two independent PSAs for high, resp. low gain.

Author
Ph. Mahlberg mahlb.nosp@m.erg@.nosp@m.hiskp.nosp@m..uni.nosp@m.-bonn.nosp@m..de

Definition at line 24 of file PndEmcHighLowPSA.h.

Constructor & Destructor Documentation

◆ PndEmcHighLowPSA()

PndEmcHighLowPSA::PndEmcHighLowPSA ( Int_t  verbose = 0)

◆ ~PndEmcHighLowPSA()

virtual PndEmcHighLowPSA::~PndEmcHighLowPSA ( )
inlinevirtual

Definition at line 29 of file PndEmcHighLowPSA.h.

29 {}

Member Function Documentation

◆ GetHit()

virtual void PndEmcHighLowPSA::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.

Referenced by SetVerbose().

◆ GetHit2()

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

Referenced by SetVerbose().

◆ GetWaveformIdx()

virtual Int_t PndEmcHighLowPSA::GetWaveformIdx ( Int_t  i)
virtual

Referenced by SetVerbose().

◆ Init()

virtual void PndEmcHighLowPSA::Init ( PndEmcPSAFPGASampleAnalyser highgainPSA,
PndEmcPSAFPGASampleAnalyser lowgainPSA,
Double_t  overflowThreshold,
Int_t  highgainWfIndex = 0,
Int_t  lowgainWfIndex = 1 
)
virtual

◆ Process()

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

Find Hits in Waveform.

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

Implements PndEmcAbsPSA.

Referenced by SetVerbose().

◆ Reset()

virtual void PndEmcHighLowPSA::Reset ( )
virtual

reset found hits

Returns

Reimplemented from PndEmcAbsPSA.

Referenced by SetVerbose().

◆ SetVerbose()

virtual void PndEmcHighLowPSA::SetVerbose ( Int_t  verbose = 0)
inlinevirtual

Definition at line 31 of file PndEmcHighLowPSA.h.

References PndEmcAbsPSA::ClassDef(), GetHit(), GetHit2(), GetWaveformIdx(), i, Process(), and Reset().

31 { fVerbose = verbose; };

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