#include <emcTowerContentv1.h>
Inherits emcTowerContent.
Inheritance diagram for emcTowerContentv1:
Definition at line 12 of file emcTowerContentv1.h.
Public Member Functions | |
emcTowerContentv1 () | |
virtual | ~emcTowerContentv1 () |
int | ADC (void) const |
ADC value (i.e. | |
int | AMUPre (void) const |
AMU cell that gave the pre sample [0-63]. | |
int | AMUPost (void) const |
AMU cell that gave the post sample [0-63]. | |
int | AMUTAC (void) const |
AMU cell that gave the tac sample [0-63]. | |
int | BeamClock (void) const |
int | Channel (void) const |
Tower channel number within the FEM [0-143]. | |
int | DataError (void) const |
A word indicating some error (e.g. sample too low or too high). | |
float | Energy (void) const |
Tower energy in GeV. | |
unsigned int | ErrorNeighbours (void) const |
A word indicating the status of the tower itself and of its neighbours (5x5). | |
int | FEM (void) const |
FEM number of this tower [0-171 for data, >= 172 for monitoring. | |
bool | hasCalib (void) const |
Whether this tower has Energy and ToF available. | |
bool | hasDC (void) const |
Whether this tower has ADC and TDC values available. | |
bool | hasRaw (void) const |
Whether this tower has raw samples availalble. | |
bool | canHaveCalib () const |
Whether this tower can hold calibrated (energy,tof) values. | |
bool | canHaveDC () const |
Whether this tower can hold DC (ADC,TDC) values. | |
bool | canHaveRaw () const |
Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples. | |
int | HG (void) const |
High gain value (pedestal subtracted). | |
int | HGPost (void) const |
High gain post sample (raw). | |
int | HGPre (void) const |
High gain pre sample (raw). | |
void | identify (std::ostream &os=std::cout) const |
From PHObject. | |
int | isValid () const |
From PHObject. | |
bool | isSimulated (void) const |
Whether this tower is a simulated one. | |
bool | isMerged (void) const |
Whether this tower was merged (i.e. embedded). | |
bool | isZero (void) const |
Whether raw samples are compatible with an empty tower. | |
int | LG (void) const |
Low gain (pedestal subtracted) value. | |
int | LGPost (void) const |
Low gain post sample. | |
int | LGPre (void) const |
Low gain pre sample. | |
void | print (std::ostream &out=std::cout, int level=0) const |
Output to stream. | |
void | Reset () |
void | SetADCTDC (int adc, int tdc, int hg=0, int lg=0) |
Set the "DC" values : ADC and TDC. | |
void | SetCalibrated (float energy, float tof) |
Set the calibrated values : energy and tof. | |
void | SetDataError (int dataerror) |
Set the data Error. | |
void | SetID (int fem, int channel) |
Set the id of this tower, by means of the pair (fem,channel). | |
void | SetNeighbours (unsigned int error, unsigned int warning) |
Set the deadmap and warnmap. | |
void | SetRaw (int hgpost, int hgpre, int lgpost, int lgpre, int tac, int amupre=0, int amupost=0, int amutac=0, int beamclock=0) |
Set the raw sample values. | |
int | TAC (void) const |
TAC sample value. | |
int | TDC (void) const |
TDC value. | |
float | ToF (void) const |
Get the ToF value (ns). | |
int | TowerID (void) const |
TowerID (computed from (fem,channel) pair). | |
unsigned int | WarnNeighbours (void) const |
Warnmap (see also ErrorNeighbours()). | |
void | Zero (void) |
Reset the raw samples. | |
Private Attributes | |
bool | fHasCalib |
bool | fHasDC |
bool | fHasRaw |
int | fFEM |
int | fChannel |
int | fDataError |
unsigned int | fErrorNeighbours |
unsigned int | fWarnNeighbours |
int | fHGPost |
int | fHGPre |
int | fLGPost |
int | fLGPre |
int | fTAC |
int | fTDC |
int | fADC |
int | fHG |
int | fLG |
int | fTowerID |
int | fBeamClock |
short | fAMUPre |
short | fAMUPost |
short | fAMUTAC |
float | fEnergy |
float | fTOF |
|
|
|
Definition at line 18 of file emcTowerContentv1.C. |
|
ADC value (i.e. pre-post-pedestals for the selected gain, either low or high). Reimplemented from emcTowerContent. Definition at line 21 of file emcTowerContentv1.h. References fADC. |
|
AMU cell that gave the post sample [0-63].
Reimplemented from emcTowerContent. Definition at line 25 of file emcTowerContentv1.h. References fAMUPost. |
|
AMU cell that gave the pre sample [0-63].
Reimplemented from emcTowerContent. Definition at line 23 of file emcTowerContentv1.h. References fAMUPre. |
|
AMU cell that gave the tac sample [0-63].
Reimplemented from emcTowerContent. Definition at line 27 of file emcTowerContentv1.h. References fAMUTAC. |
|
Reimplemented from emcTowerContent. Definition at line 29 of file emcTowerContentv1.h. References fBeamClock. |
|
Whether this tower can hold calibrated (energy,tof) values.
Reimplemented from emcTowerContent. Definition at line 45 of file emcTowerContentv1.h. |
|
Whether this tower can hold DC (ADC,TDC) values.
Reimplemented from emcTowerContent. Definition at line 46 of file emcTowerContentv1.h. |
|
Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples.
Reimplemented from emcTowerContent. Definition at line 47 of file emcTowerContentv1.h. |
|
Tower channel number within the FEM [0-143].
Reimplemented from emcTowerContent. Definition at line 31 of file emcTowerContentv1.h. References fChannel. |
|
A word indicating some error (e.g. sample too low or too high).
Reimplemented from emcTowerContent. Definition at line 33 of file emcTowerContentv1.h. References fDataError. |
|
Tower energy in GeV.
Reimplemented from emcTowerContent. Definition at line 35 of file emcTowerContentv1.h. References fEnergy. |
|
A word indicating the status of the tower itself and of its neighbours (5x5). See also emcBadModules class for more info. Reimplemented from emcTowerContent. Definition at line 37 of file emcTowerContentv1.h. References fErrorNeighbours. |
|
FEM number of this tower [0-171 for data, >= 172 for monitoring.
Reimplemented from emcTowerContent. Definition at line 39 of file emcTowerContentv1.h. References fFEM. |
|
Whether this tower has Energy and ToF available.
Reimplemented from emcTowerContent. Definition at line 41 of file emcTowerContentv1.h. References fHasCalib. |
|
Whether this tower has ADC and TDC values available.
Reimplemented from emcTowerContent. Definition at line 42 of file emcTowerContentv1.h. References fHasDC. |
|
Whether this tower has raw samples availalble.
Reimplemented from emcTowerContent. Definition at line 43 of file emcTowerContentv1.h. References fHasRaw. |
|
High gain value (pedestal subtracted).
Reimplemented from emcTowerContent. Definition at line 49 of file emcTowerContentv1.h. References fHG. |
|
High gain post sample (raw).
Reimplemented from emcTowerContent. Definition at line 50 of file emcTowerContentv1.h. References fHGPost. |
|
High gain pre sample (raw).
Reimplemented from emcTowerContent. Definition at line 51 of file emcTowerContentv1.h. References fHGPre. |
|
From PHObject.
Reimplemented from emcTowerContent. |
|
Whether this tower was merged (i.e. embedded).
Reimplemented from emcTowerContent. Definition at line 59 of file emcTowerContentv1.h. |
|
Whether this tower is a simulated one.
Reimplemented from emcTowerContent. Definition at line 57 of file emcTowerContentv1.h. |
|
From PHObject.
Reimplemented from emcTowerContent. Definition at line 31 of file emcTowerContentv1.C. References fFEM. |
|
Whether raw samples are compatible with an empty tower.
Reimplemented from emcTowerContent. Definition at line 45 of file emcTowerContentv1.C. References emcDataError::CHANNEL_DISABLED(), and fDataError. |
|
Low gain (pedestal subtracted) value.
Reimplemented from emcTowerContent. Definition at line 63 of file emcTowerContentv1.h. References fLG. |
|
Low gain post sample.
Reimplemented from emcTowerContent. Definition at line 64 of file emcTowerContentv1.h. References fLGPost. |
|
Low gain pre sample.
Reimplemented from emcTowerContent. Definition at line 65 of file emcTowerContentv1.h. References fLGPre. |
|
Output to stream.
Reimplemented from emcTowerContent. |
|
Definition at line 138 of file emcTowerContentv1.C. References fAMUPost, fAMUPre, fAMUTAC, fChannel, fFEM, fHasCalib, fHasDC, fHasRaw, fTowerID, and Zero(). |
|
Set the "DC" values : ADC and TDC. Only useable if hasDC returns true. Reimplemented from emcTowerContent. Definition at line 157 of file emcTowerContentv1.C. |
|
Set the calibrated values : energy and tof. Only useable if hasCalib returns true. Reimplemented from emcTowerContent. Definition at line 168 of file emcTowerContentv1.C. |
|
Set the data Error.
Reimplemented from emcTowerContent. Definition at line 177 of file emcTowerContentv1.C. References fDataError. |
|
Set the id of this tower, by means of the pair (fem,channel).
Reimplemented from emcTowerContent. Definition at line 184 of file emcTowerContentv1.C. References fChannel, fFEM, fTowerID, and EmcIndexer::PXSM144iCH_iPX(). |
|
Set the deadmap and warnmap.
Reimplemented from emcTowerContent. Definition at line 193 of file emcTowerContentv1.C. References fErrorNeighbours, and fWarnNeighbours. |
|
Set the raw sample values. Only useable if hasRaw returns true. Reimplemented from emcTowerContent. Definition at line 201 of file emcTowerContentv1.C. References fAMUPost, fAMUPre, fAMUTAC, fBeamClock, fHasRaw, fHGPost, fHGPre, fLGPost, fLGPre, and fTAC. |
|
TAC sample value.
Reimplemented from emcTowerContent. Definition at line 89 of file emcTowerContentv1.h. References fTAC. |
|
TDC value.
Reimplemented from emcTowerContent. Definition at line 90 of file emcTowerContentv1.h. References fTDC. |
|
Get the ToF value (ns).
Reimplemented from emcTowerContent. Definition at line 91 of file emcTowerContentv1.h. References fTOF. |
|
TowerID (computed from (fem,channel) pair).
Reimplemented from emcTowerContent. Definition at line 93 of file emcTowerContentv1.h. References fTowerID. |
|
Warnmap (see also ErrorNeighbours()).
Reimplemented from emcTowerContent. Definition at line 95 of file emcTowerContentv1.h. References fWarnNeighbours. |
|
Reset the raw samples.
Reimplemented from emcTowerContent. Definition at line 219 of file emcTowerContentv1.C. References fADC, fDataError, fEnergy, fErrorNeighbours, fHG, fHGPost, fHGPre, fLG, fLGPost, fLGPre, fTAC, fTDC, fTOF, and fWarnNeighbours. Referenced by Reset(). |
|
Definition at line 115 of file emcTowerContentv1.h. Referenced by ADC(), SetADCTDC(), and Zero(). |
|
Definition at line 121 of file emcTowerContentv1.h. |
|
Definition at line 120 of file emcTowerContentv1.h. |
|
Definition at line 122 of file emcTowerContentv1.h. |
|
Definition at line 119 of file emcTowerContentv1.h. Referenced by BeamClock(), and SetRaw(). |
|
Definition at line 105 of file emcTowerContentv1.h. |
|
Definition at line 106 of file emcTowerContentv1.h. Referenced by DataError(), isZero(), SetDataError(), and Zero(). |
|
Definition at line 123 of file emcTowerContentv1.h. Referenced by Energy(), SetCalibrated(), and Zero(). |
|
Definition at line 107 of file emcTowerContentv1.h. Referenced by ErrorNeighbours(), SetNeighbours(), and Zero(). |
|
Definition at line 104 of file emcTowerContentv1.h. |
|
Definition at line 101 of file emcTowerContentv1.h. Referenced by hasCalib(), Reset(), and SetCalibrated(). |
|
Definition at line 102 of file emcTowerContentv1.h. Referenced by hasDC(), Reset(), and SetADCTDC(). |
|
Definition at line 103 of file emcTowerContentv1.h. |
|
Definition at line 116 of file emcTowerContentv1.h. Referenced by HG(), SetADCTDC(), and Zero(). |
|
Definition at line 109 of file emcTowerContentv1.h. |
|
Definition at line 110 of file emcTowerContentv1.h. |
|
Definition at line 117 of file emcTowerContentv1.h. Referenced by LG(), SetADCTDC(), and Zero(). |
|
Definition at line 111 of file emcTowerContentv1.h. |
|
Definition at line 112 of file emcTowerContentv1.h. |
|
Definition at line 113 of file emcTowerContentv1.h. |
|
Definition at line 114 of file emcTowerContentv1.h. Referenced by SetADCTDC(), TDC(), and Zero(). |
|
Definition at line 124 of file emcTowerContentv1.h. Referenced by SetCalibrated(), ToF(), and Zero(). |
|
Definition at line 118 of file emcTowerContentv1.h. |
|
Definition at line 108 of file emcTowerContentv1.h. Referenced by SetNeighbours(), WarnNeighbours(), and Zero(). |