AlcapDAQ
1
|
#include <TOctalFADCIsland.h>
Data Structures | |
struct | TimeSortFADCIslands |
struct | TOctalFADCIslandTimeComparator |
Public Member Functions | |
TOctalFADCIsland () | |
TOctalFADCIsland (int timestamp, const std::vector< int > &samples) | |
int | GetTime () const |
int | GetNSamples () const |
std::vector< int > & | GetSampleVector () |
int | GetMax (int first=0) const |
int | GetMax (int first, int last) const |
int | GetMaxBin (int first=0) const |
int | GetMaxBin (int first, int last) const |
int | GetMaxBinTime (int first=0) const |
int | GetMaxBinTime (int first, int last) const |
double | GetAverageMax (int nAv, int first=0) const |
double | GetAverageMax (int nAv, int first, int last) const |
int | GetCFBlockTime (int first=0) const |
int | GetCFBlockTime (int first, int last) const |
int | GetCFBin (int first=0) const |
int | GetCFBin (int first, int last) const |
double | GetAverage (int first=0) const |
double | GetAverage (int first, int last) const |
double | GetIntegral (int first=0) const |
double | GetIntegral (int first, int last) const |
TOctalFADCIsland (int timestamp, const std::vector< int > &samples, int channel) | |
int | GetTime () const |
int | GetNSamples () const |
int | GetSample (int i) const |
int | GetFADCChannel () const |
std::vector< int > & | GetSampleVector () |
int | GetMax (int first=0) const |
int | GetMax (int first, int last) const |
int | GetMaxBin (int first=0) const |
int | GetMaxBin (int first, int last) const |
int | GetMaxBinBlockTime (int first=0) const |
int | GetMaxBinBlockTime (int first, int last) const |
double | GetTimeNs () const |
double | GetAverageMax (int nAv, int first=0) const |
double | GetAverageMax (int nAv, int first, int last) const |
bool | GoodPulse (int shapTime, double clockPeriod, int level) |
bool | GoodPulse (int shapTime, double clockPeriod, int pedestal, int runnr, int level, int channel) |
int | GetCFBlockTime (int first=0) const |
int | GetCFBlockTime (int first, int last) const |
int | GetCFBin (int first=0) const |
int | GetCFBin (int first, int last) const |
double | GetAverage (int first=0) const |
double | GetAverage (int first, int last) const |
double | GetIntegral (int first=0) const |
double | GetIntegral (int first, int last) const |
int | FitGauss (int left, int right, int shapTime, double clockPeriod, int pedestal) |
double | GetMaxGauss () const |
double | GetMaxBinGauss () const |
double | GetChiSqrRed () const |
void | SetMaxGauss (double value) |
void | SetMaxBinGauss (double value) |
void | SetChiSqrRed (double value) |
void | SetPulseQuality (int value) |
int | GetPulseQuality () const |
Protected Attributes | |
int | fTime |
std::vector< int > | fData |
Private Attributes | |
int | fChannel |
int | fPulseQuality |
double | fmaxbinGauss |
double | fmaxGauss |
double | fchiSqrRed |
Timestamp and vector of ADC samples. This class is not specific to neutron detectors or Ge det. It should be useable for any of the Octal FADCs.
Timestamp and vector of ADC samples. This class is not specific to neutron detectors or Ge det. It should be useable for any of Fred's FADCs
Definition at line 10 of file TOctalFADCIsland.h.
TOctalFADCIsland::TOctalFADCIsland | ( | ) |
Definition at line 13 of file TOctalFADCIsland.cpp.
|
inline |
Definition at line 14 of file TOctalFADCIsland.h.
|
inline |
Definition at line 16 of file TOctalFADCIsland.h.
References fchiSqrRed, fmaxbinGauss, fmaxGauss, and fPulseQuality.
int TOctalFADCIsland::FitGauss | ( | int | left, |
int | right, | ||
int | shapTime, | ||
double | clockPeriod, | ||
int | pedestal | ||
) |
Definition at line 223 of file TOctalFADCIsland.cpp.
References fData, GetMaxBin(), i, SetChiSqrRed(), SetMaxBinGauss(), SetMaxGauss(), and size.
|
inline |
Definition at line 36 of file TOctalFADCIsland.h.
References fData, and GetAverage().
Referenced by GetAverage(), and GoodPulse().
double TOctalFADCIsland::GetAverage | ( | int | first, |
int | last | ||
) | const |
Definition at line 108 of file TOctalFADCIsland.cpp.
|
inline |
Definition at line 52 of file TOctalFADCIsland.h.
References fData, and GetAverage().
Referenced by GetAverage().
double TOctalFADCIsland::GetAverage | ( | int | first, |
int | last | ||
) | const |
|
inline |
Definition at line 28 of file TOctalFADCIsland.h.
References fData.
Referenced by TNaIHit::SetFromEnergyPulse(), and TNaIHit::SetFromTimingPulse().
double TOctalFADCIsland::GetAverageMax | ( | int | nAv, |
int | first, | ||
int | last | ||
) | const |
Give the average value between two boundaries. It is the user responsibility to make sure that "first" and "last" are ok. Use GetNSamples for that. The function will return -1 for arguments out of range.
Definition at line 42 of file TOctalFADCIsland.cpp.
References fData, GetMaxBin(), and i.
|
inline |
Definition at line 43 of file TOctalFADCIsland.h.
References fData, and GetAverageMax().
Referenced by GetAverageMax().
double TOctalFADCIsland::GetAverageMax | ( | int | nAv, |
int | first, | ||
int | last | ||
) | const |
|
inline |
Definition at line 33 of file TOctalFADCIsland.h.
References fData, and GetCFBin().
Referenced by GetCFBin(), and GetCFBlockTime().
int TOctalFADCIsland::GetCFBin | ( | int | first, |
int | last | ||
) | const |
Constant fraction discrimination. This returns the sample where the pulse first crosses half-maximum.
Definition at line 85 of file TOctalFADCIsland.cpp.
References fData, GetMax(), GetMaxBin(), and value.
|
inline |
Definition at line 49 of file TOctalFADCIsland.h.
References fData, and GetCFBin().
Referenced by GetCFBin().
int TOctalFADCIsland::GetCFBin | ( | int | first, |
int | last | ||
) | const |
|
inline |
Definition at line 31 of file TOctalFADCIsland.h.
References fData, and GetCFBlockTime().
Referenced by GetCFBlockTime(), and TNaIHit::SetFromTimingPulse().
int TOctalFADCIsland::GetCFBlockTime | ( | int | first, |
int | last | ||
) | const |
Definition at line 73 of file TOctalFADCIsland.cpp.
References fData, GetCFBin(), and GetTime().
|
inline |
Definition at line 47 of file TOctalFADCIsland.h.
References fData, and GetCFBlockTime().
Referenced by GetCFBlockTime().
int TOctalFADCIsland::GetCFBlockTime | ( | int | first, |
int | last | ||
) | const |
|
inline |
|
inline |
Definition at line 22 of file TOctalFADCIsland.h.
References fChannel.
Referenced by GoodPulse(), TNaIHit::SetFromEnergyPulse(), TNaIHit::SetFromTimingPulse(), and TNaIHit::TNaIHit().
|
inline |
Definition at line 38 of file TOctalFADCIsland.h.
References fData, and GetIntegral().
Referenced by GetIntegral().
double TOctalFADCIsland::GetIntegral | ( | int | first, |
int | last | ||
) | const |
Definition at line 126 of file TOctalFADCIsland.cpp.
|
inline |
Definition at line 54 of file TOctalFADCIsland.h.
References fData, and GetIntegral().
Referenced by GetIntegral().
double TOctalFADCIsland::GetIntegral | ( | int | first, |
int | last | ||
) | const |
|
inline |
Definition at line 21 of file TOctalFADCIsland.h.
References fData, and GetMax().
Referenced by GetCFBin(), GetMax(), GoodPulse(), TNaIHit::SetFromEnergyPulse(), and TNaIHit::SetFromTimingPulse().
int TOctalFADCIsland::GetMax | ( | int | first, |
int | last | ||
) | const |
|
inline |
Definition at line 28 of file TOctalFADCIsland.h.
References fData, and GetMax().
Referenced by GetMax().
int TOctalFADCIsland::GetMax | ( | int | first, |
int | last | ||
) | const |
|
inline |
Definition at line 23 of file TOctalFADCIsland.h.
References fData, and GetMaxBin().
Referenced by FitGauss(), GetAverageMax(), GetCFBin(), GetMaxBin(), GetMaxBinBlockTime(), GetMaxBinTime(), and GoodPulse().
int TOctalFADCIsland::GetMaxBin | ( | int | first, |
int | last | ||
) | const |
|
inline |
Definition at line 30 of file TOctalFADCIsland.h.
References fData, and GetMaxBin().
Referenced by GetMaxBin().
int TOctalFADCIsland::GetMaxBin | ( | int | first, |
int | last | ||
) | const |
|
inline |
Definition at line 32 of file TOctalFADCIsland.h.
References fData, and GetMaxBinBlockTime().
Referenced by GetMaxBinBlockTime(), and TNaIHit::SetFromEnergyPulse().
int TOctalFADCIsland::GetMaxBinBlockTime | ( | int | first, |
int | last | ||
) | const |
Definition at line 62 of file TOctalFADCIsland.cpp.
References fData, GetMaxBin(), and GetTime().
|
inline |
|
inline |
Definition at line 25 of file TOctalFADCIsland.h.
References fData, and GetMaxBinTime().
Referenced by GetMaxBinTime().
int TOctalFADCIsland::GetMaxBinTime | ( | int | first, |
int | last | ||
) | const |
Definition at line 64 of file TOctalFADCIsland.cpp.
References fData, GetMaxBin(), and GetTime().
|
inline |
|
inline |
Definition at line 18 of file TOctalFADCIsland.h.
References fData.
Referenced by TOctalFADCBankReader::StitchIslands().
|
inline |
|
inline |
Definition at line 67 of file TOctalFADCIsland.h.
References fPulseQuality.
Referenced by TNaIHit::SetFromTimingPulse().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 17 of file TOctalFADCIsland.h.
References fTime.
Referenced by GetCFBlockTime(), GetMaxBinBlockTime(), GetMaxBinTime(), TOctalFADCIsland::TimeSortFADCIslands::operator()(), and TOctalFADCBankReader::StitchIslands().
|
inline |
double TOctalFADCIsland::GetTimeNs | ( | ) | const |
Definition at line 120 of file TOctalFADCIsland.cpp.
References fChannel, fTime, and octalfadc_parameters.
Referenced by TOctalFADCIsland::TOctalFADCIslandTimeComparator::operator()().
bool TOctalFADCIsland::GoodPulse | ( | int | shapTime, |
double | clockPeriod, | ||
int | level | ||
) |
Definition at line 145 of file TOctalFADCIsland.cpp.
References channel, fData, GetFADCChannel(), GetMax(), GetMaxBin(), octalfadc_parameters, and SetPulseQuality().
bool TOctalFADCIsland::GoodPulse | ( | int | shapTime, |
double | clockPeriod, | ||
int | pedestal, | ||
int | runnr, | ||
int | level, | ||
int | channel | ||
) |
Definition at line 170 of file TOctalFADCIsland.cpp.
References fData, GetAverage(), GetMax(), GetMaxBin(), ped, and SetPulseQuality().
|
inline |
Definition at line 64 of file TOctalFADCIsland.h.
References fchiSqrRed, and value.
Referenced by FitGauss().
|
inline |
Definition at line 63 of file TOctalFADCIsland.h.
References fmaxbinGauss, and value.
Referenced by FitGauss().
|
inline |
Definition at line 62 of file TOctalFADCIsland.h.
References fmaxGauss, and value.
Referenced by FitGauss().
|
inline |
Definition at line 66 of file TOctalFADCIsland.h.
References fPulseQuality, and value.
Referenced by GoodPulse().
|
private |
Definition at line 88 of file TOctalFADCIsland.h.
Referenced by GetFADCChannel(), and GetTimeNs().
|
private |
Definition at line 91 of file TOctalFADCIsland.h.
Referenced by GetChiSqrRed(), SetChiSqrRed(), and TOctalFADCIsland().
|
protected |
Definition at line 51 of file TOctalFADCIsland.h.
Referenced by FitGauss(), GetAverage(), GetAverageMax(), GetCFBin(), GetCFBlockTime(), GetIntegral(), GetMax(), GetMaxBin(), GetMaxBinBlockTime(), GetMaxBinTime(), GetNSamples(), GetSample(), GetSampleVector(), and GoodPulse().
|
private |
Definition at line 91 of file TOctalFADCIsland.h.
Referenced by GetMaxBinGauss(), SetMaxBinGauss(), and TOctalFADCIsland().
|
private |
Definition at line 91 of file TOctalFADCIsland.h.
Referenced by GetMaxGauss(), SetMaxGauss(), and TOctalFADCIsland().
|
private |
Definition at line 89 of file TOctalFADCIsland.h.
Referenced by GetPulseQuality(), SetPulseQuality(), and TOctalFADCIsland().
|
protected |
Definition at line 50 of file TOctalFADCIsland.h.
Referenced by GetTime(), and GetTimeNs().