#include <coresoftware/blob/master/offline/packages/mbd/MbdSig.h>
|
| MbdSig (const int chnum=0, const int nsamp=0) |
|
virtual | ~MbdSig () |
|
void | SetY (const Float_t *y, const int invert=1) |
|
void | SetXY (const Float_t *x, const Float_t *y, const int invert=1) |
|
TH1 * | GetHist () |
|
TGraphErrors * | GetGraph () |
|
Double_t | GetAmpl () |
|
Double_t | GetTime () |
|
Double_t | GetIntegral () |
|
void | FillPed0 (const Int_t minsamp, const Int_t maxsamp) |
|
void | FillPed0 (const Double_t minsamp, const Double_t maxsamp) |
|
Double_t | GetPed0 () |
|
Double_t | GetPed0RMS () |
|
void | SetPed0 (const Double_t mean, const Double_t rms=0.) |
|
void | SetEventPed0Range (const Int_t minsamp, const Int_t maxsamp) |
|
void | SetEventPed0Range (const Double_t minx, const Double_t maxx) |
|
void | SetEventPed0PreSamp (const Int_t presample, const Int_t nsamps=1) |
|
void | CalcEventPed0 (const Int_t minsamp, const Int_t maxsamp) |
|
void | CalcEventPed0 (const Double_t minx, const Double_t maxx) |
|
void | CalcEventPed0_PreSamp (const Int_t pre_samp, const Int_t nsamps=1) |
|
Double_t | LeadingEdge (const Double_t threshold) |
|
Double_t | dCFD (const Double_t fraction_threshold) |
|
Double_t | MBD (const Int_t max_samp) |
|
Double_t | GetSplineAmpl () |
|
Double_t | Integral (const Double_t xmin, const Double_t xmax) |
|
void | LocMax (Double_t &x_at_max, Double_t &ymax, Double_t minxrange=0., Double_t maxxrange=0.) |
|
void | LocMin (Double_t &x_at_min, Double_t &ymin, Double_t minxrange=0., Double_t maxxrange=0.) |
|
Int_t | FitTemplate () |
|
void | SetTemplateSize (const Int_t nptsx, const Int_t nptsy, const Double_t begt, const Double_t endt) |
|
Int_t | SetTemplate (const std::vector< float > &shape, const std::vector< float > &sherr) |
|
void | SetTimeOffset (const Double_t o) |
|
Double_t | TemplateFcn (const Double_t *x, const Double_t *par) |
|
TF1 * | GetTemplateFcn () |
|
void | SetMinMaxFitTime (const Double_t mintime, const Double_t maxtime) |
|
void | PadUpdate () |
|
void | Print () |
|
void | Verbose (const int v) |
|
MbdSig: Single Channel digital signal class, includes processing
Definition at line 22 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 22 of file MbdSig.h
MbdSig::MbdSig |
( |
const int |
chnum = 0 , |
|
|
const int |
nsamp = 0 |
|
) |
| |
|
explicit |
virtual MbdSig::~MbdSig |
( |
| ) |
|
|
virtual |
void MbdSig::CalcEventPed0 |
( |
const Int_t |
minsamp, |
|
|
const Int_t |
maxsamp |
|
) |
| |
void MbdSig::CalcEventPed0 |
( |
const Double_t |
minx, |
|
|
const Double_t |
maxx |
|
) |
| |
void MbdSig::CalcEventPed0_PreSamp |
( |
const Int_t |
pre_samp, |
|
|
const Int_t |
nsamps = 1 |
|
) |
| |
Double_t MbdSig::dCFD |
( |
const Double_t |
fraction_threshold | ) |
|
digital CFD, threshold is in fraction of amplitude
void MbdSig::FillPed0 |
( |
const Int_t |
minsamp, |
|
|
const Int_t |
maxsamp |
|
) |
| |
Fill hists from data between minsamp and maxsamp bins sample number starts from 0 Ped0 is the running pedestal and rms
void MbdSig::FillPed0 |
( |
const Double_t |
minsamp, |
|
|
const Double_t |
maxsamp |
|
) |
| |
Int_t MbdSig::FitTemplate |
( |
| ) |
|
Use template fit to get ampl and time
Double_t MbdSig::GetAmpl |
( |
| ) |
|
|
inline |
TGraphErrors* MbdSig::GetGraph |
( |
| ) |
|
|
inline |
Double_t MbdSig::GetIntegral |
( |
| ) |
|
|
inline |
Double_t MbdSig::GetPed0 |
( |
| ) |
|
|
inline |
Definition at line 48 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 48 of file MbdSig.h
References ped0.
Double_t MbdSig::GetPed0RMS |
( |
| ) |
|
|
inline |
Double_t MbdSig::GetSplineAmpl |
( |
| ) |
|
Get pulse amplitude with spline fit
TF1* MbdSig::GetTemplateFcn |
( |
| ) |
|
|
inline |
Double_t MbdSig::GetTime |
( |
| ) |
|
|
inline |
Double_t MbdSig::Integral |
( |
const Double_t |
xmin, |
|
|
const Double_t |
xmax |
|
) |
| |
Simple integral to get total charge, etc
Double_t MbdSig::LeadingEdge |
( |
const Double_t |
threshold | ) |
|
Leading Edge Discriminator signal
void MbdSig::LocMax |
( |
Double_t & |
x_at_max, |
|
|
Double_t & |
ymax, |
|
|
Double_t |
minxrange = 0. , |
|
|
Double_t |
maxxrange = 0. |
|
) |
| |
The maximum value from all samples
void MbdSig::LocMin |
( |
Double_t & |
x_at_min, |
|
|
Double_t & |
ymin, |
|
|
Double_t |
minxrange = 0. , |
|
|
Double_t |
maxxrange = 0. |
|
) |
| |
The minimum value from all samples (including negatives)
Double_t MbdSig::MBD |
( |
const Int_t |
max_samp | ) |
|
MBD method to get time, max_samp is the sample to use
void MbdSig::PadUpdate |
( |
| ) |
|
void MbdSig::SetEventPed0PreSamp |
( |
const Int_t |
presample, |
|
|
const Int_t |
nsamps = 1 |
|
) |
| |
|
inline |
void MbdSig::SetEventPed0Range |
( |
const Int_t |
minsamp, |
|
|
const Int_t |
maxsamp |
|
) |
| |
|
inline |
void MbdSig::SetEventPed0Range |
( |
const Double_t |
minx, |
|
|
const Double_t |
maxx |
|
) |
| |
|
inline |
void MbdSig::SetMinMaxFitTime |
( |
const Double_t |
mintime, |
|
|
const Double_t |
maxtime |
|
) |
| |
void MbdSig::SetPed0 |
( |
const Double_t |
mean, |
|
|
const Double_t |
rms = 0. |
|
) |
| |
Set the global pedestal. Once set, it is applied to the data for all events.
Int_t MbdSig::SetTemplate |
( |
const std::vector< float > & |
shape, |
|
|
const std::vector< float > & |
sherr |
|
) |
| |
void MbdSig::SetTemplateSize |
( |
const Int_t |
nptsx, |
|
|
const Int_t |
nptsy, |
|
|
const Double_t |
begt, |
|
|
const Double_t |
endt |
|
) |
| |
Make template waveforms for later fits
void MbdSig::SetTimeOffset |
( |
const Double_t |
o | ) |
|
|
inline |
void MbdSig::SetXY |
( |
const Float_t * |
x, |
|
|
const Float_t * |
y, |
|
|
const int |
invert = 1 |
|
) |
| |
void MbdSig::SetY |
( |
const Float_t * |
y, |
|
|
const int |
invert = 1 |
|
) |
| |
Double_t MbdSig::TemplateFcn |
( |
const Double_t * |
x, |
|
|
const Double_t * |
par |
|
) |
| |
void MbdSig::Verbose |
( |
const int |
v | ) |
|
|
inline |
Double_t MbdSig::f_integral |
|
private |
best guess (from fit of spline or template, or max adc)
Definition at line 124 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 124 of file MbdSig.h
Referenced by GetTime().
Double_t MbdSig::f_time_offset |
|
private |
best guess (from fit of spline or template, or max adc)
Definition at line 126 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 126 of file MbdSig.h
Referenced by SetTimeOffset().
Double_t MbdSig::fit_max_time {} |
|
private |
min time for fit, in original units of waveform data
Definition at line 171 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 171 of file MbdSig.h
Double_t MbdSig::fit_min_time {} |
|
private |
TGraphErrors* MbdSig::gpulse |
|
private |
TGraphErrors* MbdSig::gRawPulse |
|
private |
TGraphErrors* MbdSig::gSubPulse |
|
private |
num of presamples for ped calculation
for time calibration For pulse template extraction
Definition at line 154 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 154 of file MbdSig.h
for CalcPed0
Definition at line 139 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 139 of file MbdSig.h
integral
Definition at line 130 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 130 of file MbdSig.h
Int_t MbdSig::maxped0samp |
|
private |
Double_t MbdSig::maxped0x |
|
private |
Int_t MbdSig::minped0samp |
|
private |
Double_t MbdSig::minped0x |
|
private |
Double_t MbdSig::ped_presamp {} |
|
private |
Double_t MbdSig::ped_presamp_nsamps {} |
|
private |
Double_t MbdSig::template_begintime |
|
private |
Double_t MbdSig::template_endtime |
|
private |
TF1* MbdSig::template_fcn |
|
private |
Int_t MbdSig::template_npointsx |
|
private |
Int_t MbdSig::template_npointsy |
|
private |
std::vector<float> MbdSig::template_y |
|
private |
std::vector<float> MbdSig::template_yrms |
|
private |
max time for fit, in original units of waveform data
Definition at line 173 of file MbdSig.h.
View newest version in sPHENIX GitHub at line 173 of file MbdSig.h
Referenced by Verbose().
The documentation for this class was generated from the following files:
- coresoftware/blob/master/offline/packages/mbd/MbdSig.h
- coresoftware/blob/master/offline/packages/mbd/MbdSig.cc