PandaRoot
PndEmcPSAFPGAPileupAnalyser Class Reference

#include <PndEmcPSAFPGAPileupAnalyser.h>

Inheritance diagram for PndEmcPSAFPGAPileupAnalyser:
PndEmcPSAFPGASampleAnalyser PndEmcAbsPSA

Public Types

enum  pileup_t { kSingle =0, kPileup1 =1, kPileup2 =2, kInvalid =99 }
 
- Public Types inherited from PndEmcPSAFPGASampleAnalyser
enum  status_t {
  kBaseline, kInPulse, kPulseDetected, kPulseFinished,
  kPileupFinished, kUndefined =99
}
 

Public Member Functions

 PndEmcPSAFPGAPileupAnalyser ()
 
virtual ~PndEmcPSAFPGAPileupAnalyser ()
 
virtual void SetVerbose (Int_t verbose=0)
 
virtual void initFromFile ()
 
virtual void Init (const std::vector< Double_t > &params, TF1 *R_thres, TF1 *R_mean, float extBaselineValue=0)
 
virtual void Init (const std::vector< Double_t > &params, TF1 *R_thres, TF1 *R_mean, unsigned int baselineStartSample, unsigned int baselineStopSample)
 
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)
 
void GetEnergyMeasures (Int_t i, Double_t &Amplitude, Double_t &Integral)
 
virtual void reset ()
 
virtual void put (float valueToStore)
 
virtual float baseline ()
 
- Public Member Functions inherited from PndEmcPSAFPGASampleAnalyser
 PndEmcPSAFPGASampleAnalyser ()
 
 PndEmcPSAFPGASampleAnalyser (const std::string &fname)
 
virtual ~PndEmcPSAFPGASampleAnalyser ()
 
virtual void initFromFile (const std::string &fname)
 
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 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 Types

enum  { kWindow, kExtern, kFollow }
 

Protected Member Functions

virtual void setBaseline (float newBaseline)
 
virtual void setBaselineWindow (unsigned int startSample, unsigned int stopSample)
 
virtual void InitParameters (const std::vector< Double_t > &params)
 
virtual void Init2 (const std::vector< Double_t > &params, TF1 *R_thres, TF1 *R_mean)
 
 ClassDef (PndEmcPSAFPGAPileupAnalyser, 2)
 
- Protected Member Functions inherited from PndEmcPSAFPGASampleAnalyser
virtual void init (SampleAnalyserParams &params)
 
 ClassDef (PndEmcPSAFPGASampleAnalyser, 2)
 

Protected Attributes

enum PndEmcPSAFPGAPileupAnalyser:: { ... }  baselineMode
 
Int_t fVerbose
 
TF1 * Int_thres
 
TF1 * Int_mean
 
TGraph * grxy
 
unsigned int BaselineStartSample
 
unsigned int BaselineStopSample
 
float BaselineSum
 
PndEmcPSAFPGAFilterMWDMWD_filter1
 
PndEmcPSAFPGAFilterMAMA_filter1
 
PndEmcPSAFPGAFilterMWDMWD_filter2
 
PndEmcPSAFPGAFilterMWDMWD_filter3
 
PndEmcPSAFPGAFilterDelayCF_prev
 
double CF_prev_val
 
double CF_prev_val2
 
std::ofstream Ratio
 
std::ofstream MWD
 
std::ofstream MWD2
 
std::ofstream Ratio_int
 
bool energy_finished
 
bool energy_finished_mwd
 
bool energy_finished_mwd2
 
bool pulse_detected_mwd
 
bool pulse_detected_mwd2
 
bool timing_finished
 
bool func_defined
 
unsigned int cf_crossing
 
bool in_cfRise
 
float savedValuetoStore
 
float sav_mwd
 
float sav_mwd2
 
float Square_mwd2
 
float Square
 
float t
 
float t_mwd
 
float t_mwd2 [MAX_NUMBER_OF_HITS]
 
float max
 
float max_mwd2 [100]
 
float max_mwd
 
float R_mwd
 
int saved_local_time [MAX_NUMBER_OF_HITS]
 
int saved_local_time_mwd [MAX_NUMBER_OF_HITS]
 
int saved_local_time_mwd2 [MAX_NUMBER_OF_HITS]
 
int Number_of_puls
 
int Number_of_puls_mwd
 
int Number_of_puls_mwd2
 
int Number_of_sample_mwd
 
int Number_of_sample_mwd2
 
int Number_of_sample
 
int z [MAX_NUMBER_OF_HITS]
 
int z_mwd [MAX_NUMBER_OF_HITS]
 
int z_mwd2 [MAX_NUMBER_OF_HITS]
 
float cfZero [MAX_NUMBER_OF_HITS]
 
float cfZero2 [MAX_NUMBER_OF_HITS]
 
float cfRise [MAX_NUMBER_OF_HITS]
 
float signal_buffer [MAX_NUMBER_OF_HITS][MAX_NUMBER_OF_HITS]
 
float signal_buffer_mwd [MAX_NUMBER_OF_HITS][MAX_NUMBER_OF_HITS]
 
float signal_buffer_mwd2 [MAX_NUMBER_OF_HITS][MAX_NUMBER_OF_HITS]
 
- Protected Attributes inherited from PndEmcPSAFPGASampleAnalyser
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 21 of file PndEmcPSAFPGAPileupAnalyser.h.

Member Enumeration Documentation

◆ anonymous enum

◆ pileup_t

Constructor & Destructor Documentation

◆ PndEmcPSAFPGAPileupAnalyser()

PndEmcPSAFPGAPileupAnalyser::PndEmcPSAFPGAPileupAnalyser ( )

◆ ~PndEmcPSAFPGAPileupAnalyser()

virtual PndEmcPSAFPGAPileupAnalyser::~PndEmcPSAFPGAPileupAnalyser ( )
virtual

Member Function Documentation

◆ baseline()

virtual float PndEmcPSAFPGAPileupAnalyser::baseline ( )
inlinevirtual

◆ ClassDef()

PndEmcPSAFPGAPileupAnalyser::ClassDef ( PndEmcPSAFPGAPileupAnalyser  ,
 
)
protected

◆ GetEnergyMeasures()

void PndEmcPSAFPGAPileupAnalyser::GetEnergyMeasures ( Int_t  i,
Double_t &  Amplitude,
Double_t &  Integral 
)

Referenced by initFromFile().

◆ GetHit()

virtual void PndEmcPSAFPGAPileupAnalyser::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

Reimplemented from PndEmcPSAFPGASampleAnalyser.

Referenced by initFromFile().

◆ GetHit2()

virtual void PndEmcPSAFPGAPileupAnalyser::GetHit2 ( Int_t  i,
Double_t &  Energy,
Double_t &  Time,
Int_t &  PileupType 
)
virtual

Reimplemented from PndEmcPSAFPGASampleAnalyser.

Referenced by initFromFile().

◆ Init() [1/2]

virtual void PndEmcPSAFPGAPileupAnalyser::Init ( const std::vector< Double_t > &  params,
TF1 *  R_thres,
TF1 *  R_mean,
float  extBaselineValue = 0 
)
virtual

Referenced by initFromFile().

◆ Init() [2/2]

virtual void PndEmcPSAFPGAPileupAnalyser::Init ( const std::vector< Double_t > &  params,
TF1 *  R_thres,
TF1 *  R_mean,
unsigned int  baselineStartSample,
unsigned int  baselineStopSample 
)
virtual

◆ Init2()

virtual void PndEmcPSAFPGAPileupAnalyser::Init2 ( const std::vector< Double_t > &  params,
TF1 *  R_thres,
TF1 *  R_mean 
)
protectedvirtual

◆ initFromFile()

virtual void PndEmcPSAFPGAPileupAnalyser::initFromFile ( )
inlinevirtual

Definition at line 30 of file PndEmcPSAFPGAPileupAnalyser.h.

References GetEnergyMeasures(), GetHit(), GetHit2(), i, Init(), put(), and reset().

30 {};

◆ InitParameters()

virtual void PndEmcPSAFPGAPileupAnalyser::InitParameters ( const std::vector< Double_t > &  params)
protectedvirtual

◆ put()

virtual void PndEmcPSAFPGAPileupAnalyser::put ( float  valueToStore)
virtual

Implements PndEmcPSAFPGASampleAnalyser.

Referenced by initFromFile().

◆ reset()

virtual void PndEmcPSAFPGAPileupAnalyser::reset ( )
virtual

Implements PndEmcPSAFPGASampleAnalyser.

Referenced by initFromFile().

◆ setBaseline()

virtual void PndEmcPSAFPGAPileupAnalyser::setBaseline ( float  newBaseline)
protectedvirtual

Reimplemented from PndEmcPSAFPGASampleAnalyser.

◆ setBaselineWindow()

virtual void PndEmcPSAFPGAPileupAnalyser::setBaselineWindow ( unsigned int  startSample,
unsigned int  stopSample 
)
protectedvirtual

◆ SetVerbose()

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

Definition at line 26 of file PndEmcPSAFPGAPileupAnalyser.h.

References fVerbose.

Member Data Documentation

◆ baselineMode

enum { ... } PndEmcPSAFPGAPileupAnalyser::baselineMode

◆ BaselineStartSample

unsigned int PndEmcPSAFPGAPileupAnalyser::BaselineStartSample
protected

Definition at line 57 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ BaselineStopSample

unsigned int PndEmcPSAFPGAPileupAnalyser::BaselineStopSample
protected

Definition at line 58 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ BaselineSum

float PndEmcPSAFPGAPileupAnalyser::BaselineSum
protected

Definition at line 59 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ cf_crossing

unsigned int PndEmcPSAFPGAPileupAnalyser::cf_crossing
protected

Definition at line 77 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ CF_prev

PndEmcPSAFPGAFilterDelay* PndEmcPSAFPGAPileupAnalyser::CF_prev
protected

Definition at line 65 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ CF_prev_val

double PndEmcPSAFPGAPileupAnalyser::CF_prev_val
protected

Definition at line 66 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ CF_prev_val2

double PndEmcPSAFPGAPileupAnalyser::CF_prev_val2
protected

Definition at line 67 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ cfRise

float PndEmcPSAFPGAPileupAnalyser::cfRise[MAX_NUMBER_OF_HITS]
protected

Definition at line 105 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ cfZero

float PndEmcPSAFPGAPileupAnalyser::cfZero[MAX_NUMBER_OF_HITS]
protected

Definition at line 103 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ cfZero2

float PndEmcPSAFPGAPileupAnalyser::cfZero2[MAX_NUMBER_OF_HITS]
protected

Definition at line 104 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ energy_finished

bool PndEmcPSAFPGAPileupAnalyser::energy_finished
protected

Definition at line 69 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ energy_finished_mwd

bool PndEmcPSAFPGAPileupAnalyser::energy_finished_mwd
protected

Definition at line 70 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ energy_finished_mwd2

bool PndEmcPSAFPGAPileupAnalyser::energy_finished_mwd2
protected

Definition at line 71 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ func_defined

bool PndEmcPSAFPGAPileupAnalyser::func_defined
protected

Definition at line 76 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ fVerbose

Int_t PndEmcPSAFPGAPileupAnalyser::fVerbose
protected

Definition at line 53 of file PndEmcPSAFPGAPileupAnalyser.h.

Referenced by SetVerbose().

◆ grxy

TGraph* PndEmcPSAFPGAPileupAnalyser::grxy
protected

Definition at line 56 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ in_cfRise

bool PndEmcPSAFPGAPileupAnalyser::in_cfRise
protected

Definition at line 78 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Int_mean

TF1* PndEmcPSAFPGAPileupAnalyser::Int_mean
protected

Definition at line 55 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Int_thres

TF1* PndEmcPSAFPGAPileupAnalyser::Int_thres
protected

Definition at line 54 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ MA_filter1

PndEmcPSAFPGAFilterMA* PndEmcPSAFPGAPileupAnalyser::MA_filter1
protected

Definition at line 62 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ max

float PndEmcPSAFPGAPileupAnalyser::max
protected

Definition at line 87 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ max_mwd

float PndEmcPSAFPGAPileupAnalyser::max_mwd
protected

Definition at line 89 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ max_mwd2

float PndEmcPSAFPGAPileupAnalyser::max_mwd2[100]
protected

Definition at line 88 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ MWD

std::ofstream PndEmcPSAFPGAPileupAnalyser::MWD
protected

Definition at line 68 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ MWD2

std::ofstream PndEmcPSAFPGAPileupAnalyser::MWD2
protected

Definition at line 68 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ MWD_filter1

PndEmcPSAFPGAFilterMWD* PndEmcPSAFPGAPileupAnalyser::MWD_filter1
protected

Definition at line 61 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ MWD_filter2

PndEmcPSAFPGAFilterMWD* PndEmcPSAFPGAPileupAnalyser::MWD_filter2
protected

Definition at line 63 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ MWD_filter3

PndEmcPSAFPGAFilterMWD* PndEmcPSAFPGAPileupAnalyser::MWD_filter3
protected

Definition at line 64 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Number_of_puls

int PndEmcPSAFPGAPileupAnalyser::Number_of_puls
protected

Definition at line 94 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Number_of_puls_mwd

int PndEmcPSAFPGAPileupAnalyser::Number_of_puls_mwd
protected

Definition at line 95 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Number_of_puls_mwd2

int PndEmcPSAFPGAPileupAnalyser::Number_of_puls_mwd2
protected

Definition at line 96 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Number_of_sample

int PndEmcPSAFPGAPileupAnalyser::Number_of_sample
protected

Definition at line 99 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Number_of_sample_mwd

int PndEmcPSAFPGAPileupAnalyser::Number_of_sample_mwd
protected

Definition at line 97 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Number_of_sample_mwd2

int PndEmcPSAFPGAPileupAnalyser::Number_of_sample_mwd2
protected

Definition at line 98 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ pulse_detected_mwd

bool PndEmcPSAFPGAPileupAnalyser::pulse_detected_mwd
protected

Definition at line 72 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ pulse_detected_mwd2

bool PndEmcPSAFPGAPileupAnalyser::pulse_detected_mwd2
protected

Definition at line 73 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ R_mwd

float PndEmcPSAFPGAPileupAnalyser::R_mwd
protected

Definition at line 90 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Ratio

std::ofstream PndEmcPSAFPGAPileupAnalyser::Ratio
protected

Definition at line 68 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Ratio_int

std::ofstream PndEmcPSAFPGAPileupAnalyser::Ratio_int
protected

Definition at line 68 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ sav_mwd

float PndEmcPSAFPGAPileupAnalyser::sav_mwd
protected

Definition at line 80 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ sav_mwd2

float PndEmcPSAFPGAPileupAnalyser::sav_mwd2
protected

Definition at line 81 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ saved_local_time

int PndEmcPSAFPGAPileupAnalyser::saved_local_time[MAX_NUMBER_OF_HITS]
protected

Definition at line 91 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ saved_local_time_mwd

int PndEmcPSAFPGAPileupAnalyser::saved_local_time_mwd[MAX_NUMBER_OF_HITS]
protected

Definition at line 92 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ saved_local_time_mwd2

int PndEmcPSAFPGAPileupAnalyser::saved_local_time_mwd2[MAX_NUMBER_OF_HITS]
protected

Definition at line 93 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ savedValuetoStore

float PndEmcPSAFPGAPileupAnalyser::savedValuetoStore
protected

Definition at line 79 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ signal_buffer

float PndEmcPSAFPGAPileupAnalyser::signal_buffer[MAX_NUMBER_OF_HITS][MAX_NUMBER_OF_HITS]
protected

Definition at line 106 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ signal_buffer_mwd

float PndEmcPSAFPGAPileupAnalyser::signal_buffer_mwd[MAX_NUMBER_OF_HITS][MAX_NUMBER_OF_HITS]
protected

Definition at line 107 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ signal_buffer_mwd2

float PndEmcPSAFPGAPileupAnalyser::signal_buffer_mwd2[MAX_NUMBER_OF_HITS][MAX_NUMBER_OF_HITS]
protected

Definition at line 108 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Square

float PndEmcPSAFPGAPileupAnalyser::Square
protected

Definition at line 83 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ Square_mwd2

float PndEmcPSAFPGAPileupAnalyser::Square_mwd2
protected

Definition at line 82 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ t

float PndEmcPSAFPGAPileupAnalyser::t
protected

Definition at line 84 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ t_mwd

float PndEmcPSAFPGAPileupAnalyser::t_mwd
protected

Definition at line 85 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ t_mwd2

float PndEmcPSAFPGAPileupAnalyser::t_mwd2[MAX_NUMBER_OF_HITS]
protected

Definition at line 86 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ timing_finished

bool PndEmcPSAFPGAPileupAnalyser::timing_finished
protected

Definition at line 74 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ z

int PndEmcPSAFPGAPileupAnalyser::z[MAX_NUMBER_OF_HITS]
protected

Definition at line 100 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ z_mwd

int PndEmcPSAFPGAPileupAnalyser::z_mwd[MAX_NUMBER_OF_HITS]
protected

Definition at line 101 of file PndEmcPSAFPGAPileupAnalyser.h.

◆ z_mwd2

int PndEmcPSAFPGAPileupAnalyser::z_mwd2[MAX_NUMBER_OF_HITS]
protected

Definition at line 102 of file PndEmcPSAFPGAPileupAnalyser.h.


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