AlcapDAQ
1
|
#include <TNaIHit.h>
Data Structures | |
struct | TimeSortNaIHits |
struct | TNaIHitComparator |
struct | TNaIHitTimeComparator |
Public Member Functions | |
TNaIHit () | |
TNaIHit (const TOctalFADCIsland &timePulse, const TOctalFADCIsland &energyPulse, int count, int nAv) | |
TNaIHit (const TOctalFADCIsland &timePulse, const TOctalFADCIsland &energyPulse, int count) | |
double | GetTime () const |
double | GetEnergy () const |
int | GetDetector () const |
void | SetFromTimingPulse (const TOctalFADCIsland &timePulse) |
void | SetFromEnergyPulse (const TOctalFADCIsland &energyPulse) |
const TOctalFADCIsland * | GetTimingIsland () const |
const TOctalFADCIsland * | GetEnergyIsland () const |
void | SetTimingIsland (const TOctalFADCIsland *island) |
void | SetEnergyIsland (const TOctalFADCIsland *island) |
double | GetTimingTime () const |
double | GetTimingAmp () const |
double | GetEnergyTime () const |
double | GetEnergyAmp () const |
void | SetTimingTime (double time) |
void | SetEnergyTime (double time) |
void | SetTimingAmp (double amp) |
void | SetEnergyAmp (double amp) |
void | SetDetector (int det) |
double | GetCount () const |
double | GetnAverage () const |
bool | GetPileUp () const |
bool | GetNoisy () const |
void | SetCount (int counts) |
void | SetnAverage (int Av) |
void | SetPileUp (bool PU) |
void | SetNoisy (bool fN) |
Private Member Functions | |
ClassDef (TNaIHit, 1) | |
This does not own the FADC Islands. More... | |
Private Attributes | |
double | fTimingTime |
double | fTimingAmp |
double | fEnergyTime |
double | fEnergyAmp |
int | detector |
int | fCount |
int | nAverage |
bool | fPileUp |
bool | fNoisy |
const TOctalFADCIsland * | fTimePulse |
const TOctalFADCIsland * | fEnergyPulse |
This does not own the FADC Islands. More... | |
This class is a wrapper for the two NaI channels (timing, egy)
TNaIHit::TNaIHit | ( | ) |
TNaIHit::TNaIHit | ( | const TOctalFADCIsland & | timePulse, |
const TOctalFADCIsland & | energyPulse, | ||
int | count, | ||
int | nAv | ||
) |
Definition at line 12 of file TNaIHit.cpp.
References count, fCount, fNoisy, fPileUp, nAverage, SetFromEnergyPulse(), and SetFromTimingPulse().
TNaIHit::TNaIHit | ( | const TOctalFADCIsland & | timePulse, |
const TOctalFADCIsland & | energyPulse, | ||
int | count | ||
) |
Definition at line 22 of file TNaIHit.cpp.
References count, fCount, fNoisy, fPileUp, TOctalFADCIsland::GetFADCChannel(), nAverage, SetDetector(), SetFromEnergyPulse(), and SetFromTimingPulse().
|
private |
This does not own the FADC Islands.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 16 of file TNaIHit.h.
References GetTimingTime().
Referenced by TNaIHit::TNaIHitTimeComparator::operator()(), TNaIHit::TNaIHitComparator::operator()(), and TNaIHit::TimeSortNaIHits::operator()().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 27 of file TNaIHit.h.
References fEnergyPulse.
Referenced by SetFromEnergyPulse().
|
inline |
Definition at line 35 of file TNaIHit.h.
References fEnergyTime, and time.
Referenced by SetFromEnergyPulse().
void TNaIHit::SetFromEnergyPulse | ( | const TOctalFADCIsland & | energyPulse) |
Sets the time and energy parameters of TNaIHit for the energy data. Uses the maximum bin of the pulse for the time and the maximum value as the amplitude.
Definition at line 54 of file TNaIHit.cpp.
References TOctalFADCIsland::GetAverageMax(), TOctalFADCIsland::GetFADCChannel(), TOctalFADCIsland::GetMax(), TOctalFADCIsland::GetMaxBinBlockTime(), nAverage, octalfadc_parameters, SetEnergyAmp(), SetEnergyIsland(), and SetEnergyTime().
Referenced by TNaIHit().
void TNaIHit::SetFromTimingPulse | ( | const TOctalFADCIsland & | timePulse) |
Sets the time and energy parameters of TNaIHit for the timing data. Uses the CF time of the pulse for the time and the maximum value as the amplitude.
Definition at line 37 of file TNaIHit.cpp.
References TOctalFADCIsland::GetAverageMax(), TOctalFADCIsland::GetCFBlockTime(), TOctalFADCIsland::GetFADCChannel(), TOctalFADCIsland::GetMax(), TOctalFADCIsland::GetPulseQuality(), nAverage, octalfadc_parameters, SetNoisy(), SetTimingAmp(), SetTimingIsland(), and SetTimingTime().
Referenced by TNaIHit().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 34 of file TNaIHit.h.
References fTimingTime, and time.
Referenced by SetFromTimingPulse().
|
private |
Definition at line 84 of file TNaIHit.h.
Referenced by GetDetector(), and SetDetector().
|
private |
Definition at line 85 of file TNaIHit.h.
Referenced by GetCount(), SetCount(), and TNaIHit().
|
private |
Definition at line 82 of file TNaIHit.h.
Referenced by GetEnergyAmp(), and SetEnergyAmp().
|
private |
This does not own the FADC Islands.
Definition at line 91 of file TNaIHit.h.
Referenced by GetEnergyIsland(), and SetEnergyIsland().
|
private |
Definition at line 81 of file TNaIHit.h.
Referenced by GetEnergyTime(), and SetEnergyTime().
|
private |
Definition at line 88 of file TNaIHit.h.
Referenced by GetNoisy(), SetNoisy(), and TNaIHit().
|
private |
Definition at line 87 of file TNaIHit.h.
Referenced by GetPileUp(), SetPileUp(), and TNaIHit().
|
private |
Definition at line 90 of file TNaIHit.h.
Referenced by GetTimingIsland(), and SetTimingIsland().
|
private |
Definition at line 80 of file TNaIHit.h.
Referenced by GetTimingAmp(), and SetTimingAmp().
|
private |
Definition at line 79 of file TNaIHit.h.
Referenced by GetTimingTime(), and SetTimingTime().
|
private |
Definition at line 86 of file TNaIHit.h.
Referenced by GetnAverage(), SetFromEnergyPulse(), SetFromTimingPulse(), SetnAverage(), and TNaIHit().