PandaRoot
BSEmcHighLowPSA Class Reference

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

#include <BSEmcHighLowPSA.h>

Inheritance diagram for BSEmcHighLowPSA:
BSEmcAbsPSA

Public Member Functions

 BSEmcHighLowPSA (Int_t t_verbose=0)
 
virtual void Init (BSEmcPSAFPGASampleAnalyser *t_highgainPSA, BSEmcPSAFPGASampleAnalyser *t_lowgainPSA, Double_t t_overflowThreshold, Int_t t_highgainWfIndex=0, Int_t t_lowgainWfIndex=1)
 
virtual ~BSEmcHighLowPSA ()
 
void SetVerbose (Int_t t_verbose=0)
 
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_idx, Double_t &t_energy, Double_t &t_time)
 Get energy and time of hit. More...
 
virtual void GetHit (Int_t t_idx, Double_t &t_energy, Double_t &t_time, Int_t &t_PileupType)
 
virtual Int_t GetWaveformIdx (Int_t t_idx)
 
- 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)
 

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 31 of file BSEmcHighLowPSA.h.

Constructor & Destructor Documentation

◆ BSEmcHighLowPSA()

BSEmcHighLowPSA::BSEmcHighLowPSA ( Int_t  t_verbose = 0)

◆ ~BSEmcHighLowPSA()

virtual BSEmcHighLowPSA::~BSEmcHighLowPSA ( )
inlinevirtual

Definition at line 36 of file BSEmcHighLowPSA.h.

36 {}

Member Function Documentation

◆ GetHit() [1/2]

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

Referenced by SetVerbose().

◆ GetHit() [2/2]

virtual void BSEmcHighLowPSA::GetHit ( Int_t  t_idx,
Double_t &  t_energy,
Double_t &  t_time,
Int_t &  t_PileupType 
)
virtual

◆ GetWaveformIdx()

virtual Int_t BSEmcHighLowPSA::GetWaveformIdx ( Int_t  t_idx)
virtual

Referenced by SetVerbose().

◆ Init()

virtual void BSEmcHighLowPSA::Init ( BSEmcPSAFPGASampleAnalyser t_highgainPSA,
BSEmcPSAFPGASampleAnalyser t_lowgainPSA,
Double_t  t_overflowThreshold,
Int_t  t_highgainWfIndex = 0,
Int_t  t_lowgainWfIndex = 1 
)
virtual

◆ Process()

virtual Int_t BSEmcHighLowPSA::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 SetVerbose().

◆ Reset()

virtual void BSEmcHighLowPSA::Reset ( )
virtual

reset found hits

Returns

Reimplemented from BSEmcAbsPSA.

Referenced by SetVerbose().

◆ SetVerbose()

void BSEmcHighLowPSA::SetVerbose ( Int_t  t_verbose = 0)
inline

Definition at line 38 of file BSEmcHighLowPSA.h.

References BSEmcAbsPSA::ClassDef(), GetHit(), GetWaveformIdx(), Process(), and Reset().

38 { fVerbose = t_verbose; };

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