#include <emcTowerContentv1S.h>
Inherits emcTowerContent.
Inheritance diagram for emcTowerContentv1S:
Definition at line 12 of file emcTowerContentv1S.h.
Public Member Functions | |
emcTowerContentv1S () | |
emcTowerContentv1S (const emcTowerContentv1S &) | |
emcTowerContentv1S & | operator= (const emcTowerContentv1S &) |
virtual | ~emcTowerContentv1S () |
emcTowerContentv1S * | clone () const |
Make a copy of this tower. | |
emcTowerContentv1S * | create () const |
Make an empty copy of this tower (i.e. copy only the type). | |
int | ADC (void) const |
ADC value (i.e. | |
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 | hasGain (void) const |
Whether this tower has the gain (which was used to normalize the ADC value to take into account time evolution) 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 | canHaveGain () const |
Whether this tower can hold Gain value. | |
bool | canHaveRaw () const |
Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples. | |
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. | |
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) |
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 | SetSimFrac (float) |
Set the simulated energy fraction. | |
float | SimFrac () const |
Fraction of simulated energy (0=real tower, 1=simulated, in between for a merged, i.e. | |
void | SetToF (float tof) |
Set the (corrected) tof. | |
int | TDC (void) const |
TDC value. | |
float | ToF (void) const |
Get the ToF value (ns). | |
float | UncorrectedToF (void) const |
Uncorrected 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 Member Functions | |
void | copyTo (emcTowerContentv1S &dest) const |
Private Attributes | |
bool | fHasCalib |
bool | fHasDC |
int | fFEM |
int | fChannel |
unsigned int | fErrorNeighbours |
unsigned int | fWarnNeighbours |
int | fTDC |
int | fADC |
int | fTowerID |
float | fEnergy |
float | fTOF |
float | fUncorrectedTOF |
Static Private Attributes | |
static float | fEnergyThreshold |
Below this value, tower is considered to be empty. |
|
Referenced by clone(). |
|
Definition at line 20 of file emcTowerContentv1S.C. References copyTo(). |
|
Definition at line 38 of file emcTowerContentv1S.C. |
|
ADC value (i.e. pre-post-pedestals for the selected gain, either low or high). Reimplemented from emcTowerContent. Definition at line 26 of file emcTowerContentv1S.h. References fADC. |
|
Whether this tower can hold calibrated (energy,tof) values.
Reimplemented from emcTowerContent. Definition at line 43 of file emcTowerContentv1S.h. |
|
Whether this tower can hold DC (ADC,TDC) values.
Reimplemented from emcTowerContent. Definition at line 44 of file emcTowerContentv1S.h. |
|
Whether this tower can hold Gain value.
Reimplemented from emcTowerContent. Definition at line 45 of file emcTowerContentv1S.h. |
|
Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples.
Reimplemented from emcTowerContent. Definition at line 46 of file emcTowerContentv1S.h. |
|
Tower channel number within the FEM [0-143].
Reimplemented from emcTowerContent. Definition at line 28 of file emcTowerContentv1S.h. References fChannel. |
|
Make a copy of this tower.
Reimplemented from emcTowerContent. Definition at line 23 of file emcTowerContentv1S.h. References emcTowerContentv1S(). |
|
Definition at line 44 of file emcTowerContentv1S.C. References fADC, fChannel, fEnergy, fErrorNeighbours, fFEM, fHasCalib, fHasDC, fTDC, fTOF, fTowerID, fUncorrectedTOF, and fWarnNeighbours. Referenced by emcTowerContentv1S(), and operator=(). |
|
Make an empty copy of this tower (i.e. copy only the type).
Reimplemented from emcTowerContent. Definition at line 24 of file emcTowerContentv1S.h. |
|
A word indicating some error (e.g. sample too low or too high).
Reimplemented from emcTowerContent. Definition at line 30 of file emcTowerContentv1S.h. |
|
Tower energy in GeV.
Reimplemented from emcTowerContent. Definition at line 32 of file emcTowerContentv1S.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 34 of file emcTowerContentv1S.h. References fErrorNeighbours. |
|
FEM number of this tower [0-171 for data, >= 172 for monitoring.
Reimplemented from emcTowerContent. Definition at line 36 of file emcTowerContentv1S.h. References fFEM. |
|
Whether this tower has Energy and ToF available.
Reimplemented from emcTowerContent. Definition at line 38 of file emcTowerContentv1S.h. References fHasCalib. |
|
Whether this tower has ADC and TDC values available.
Reimplemented from emcTowerContent. Definition at line 39 of file emcTowerContentv1S.h. References fHasDC. |
|
Whether this tower has the gain (which was used to normalize the ADC value to take into account time evolution) available.
Reimplemented from emcTowerContent. Definition at line 40 of file emcTowerContentv1S.h. |
|
Whether this tower has raw samples availalble.
Reimplemented from emcTowerContent. Definition at line 41 of file emcTowerContentv1S.h. |
|
From PHObject.
Reimplemented from emcTowerContent. |
|
Whether this tower was merged (i.e. embedded).
Reimplemented from emcTowerContent. Definition at line 54 of file emcTowerContentv1S.h. |
|
Whether this tower is a simulated one.
Reimplemented from emcTowerContent. Definition at line 52 of file emcTowerContentv1S.h. |
|
From PHObject.
Reimplemented from emcTowerContent. Definition at line 69 of file emcTowerContentv1S.C. References fFEM. |
|
Whether raw samples are compatible with an empty tower.
Reimplemented from emcTowerContent. Definition at line 83 of file emcTowerContentv1S.C. References fEnergy, and fEnergyThreshold. |
|
Definition at line 28 of file emcTowerContentv1S.C. References copyTo(). |
|
Output to stream.
Reimplemented from emcTowerContent. |
|
Definition at line 137 of file emcTowerContentv1S.C. References fChannel, fFEM, fHasCalib, fHasDC, fTowerID, and Zero(). |
|
Set the "DC" values : ADC and TDC. Only useable if hasDC returns true. Reimplemented from emcTowerContent. Definition at line 151 of file emcTowerContentv1S.C. |
|
Set the calibrated values : energy and tof. Only useable if hasCalib returns true. Reimplemented from emcTowerContent. Definition at line 160 of file emcTowerContentv1S.C. References fEnergy, fHasCalib, fTOF, and fUncorrectedTOF. |
|
Set the data Error.
Reimplemented from emcTowerContent. Definition at line 66 of file emcTowerContentv1S.h. |
|
Set the id of this tower, by means of the pair (fem,channel).
Reimplemented from emcTowerContent. Definition at line 176 of file emcTowerContentv1S.C. References fChannel, fFEM, fTowerID, and EmcIndexer::PXSM144iCH_iPX(). |
|
Set the deadmap and warnmap.
Reimplemented from emcTowerContent. Definition at line 185 of file emcTowerContentv1S.C. References fErrorNeighbours, and fWarnNeighbours. |
|
Set the simulated energy fraction.
Reimplemented from emcTowerContent. Definition at line 72 of file emcTowerContentv1S.h. |
|
Set the (corrected) tof.
Reimplemented from emcTowerContent. Definition at line 169 of file emcTowerContentv1S.C. References fTOF. |
|
Fraction of simulated energy (0=real tower, 1=simulated, in between for a merged, i.e. embedded, tower. Reimplemented from emcTowerContent. Definition at line 74 of file emcTowerContentv1S.h. |
|
TDC value.
Reimplemented from emcTowerContent. Definition at line 78 of file emcTowerContentv1S.h. References fTDC. |
|
Get the ToF value (ns).
Reimplemented from emcTowerContent. Definition at line 79 of file emcTowerContentv1S.h. References fTOF. |
|
TowerID (computed from (fem,channel) pair).
Reimplemented from emcTowerContent. Definition at line 82 of file emcTowerContentv1S.h. References fTowerID. |
|
Uncorrected ToF value (ns).
Reimplemented from emcTowerContent. Definition at line 80 of file emcTowerContentv1S.h. References fUncorrectedTOF. |
|
Warnmap (see also ErrorNeighbours()).
Reimplemented from emcTowerContent. Definition at line 84 of file emcTowerContentv1S.h. References fWarnNeighbours. |
|
Reset the raw samples.
Reimplemented from emcTowerContent. Definition at line 193 of file emcTowerContentv1S.C. References fADC, fEnergy, fErrorNeighbours, fTDC, fTOF, fUncorrectedTOF, and fWarnNeighbours. Referenced by Reset(). |
|
Definition at line 100 of file emcTowerContentv1S.h. Referenced by ADC(), copyTo(), SetADCTDC(), and Zero(). |
|
Definition at line 96 of file emcTowerContentv1S.h. |
|
Definition at line 102 of file emcTowerContentv1S.h. Referenced by copyTo(), Energy(), isZero(), SetCalibrated(), and Zero(). |
|
Below this value, tower is considered to be empty.
Definition at line 107 of file emcTowerContentv1S.h. Referenced by isZero(). |
|
Definition at line 97 of file emcTowerContentv1S.h. Referenced by copyTo(), ErrorNeighbours(), SetNeighbours(), and Zero(). |
|
Definition at line 95 of file emcTowerContentv1S.h. Referenced by copyTo(), FEM(), isValid(), Reset(), and SetID(). |
|
Definition at line 93 of file emcTowerContentv1S.h. Referenced by copyTo(), hasCalib(), Reset(), and SetCalibrated(). |
|
Definition at line 94 of file emcTowerContentv1S.h. Referenced by copyTo(), hasDC(), Reset(), and SetADCTDC(). |
|
Definition at line 99 of file emcTowerContentv1S.h. Referenced by copyTo(), SetADCTDC(), TDC(), and Zero(). |
|
Definition at line 103 of file emcTowerContentv1S.h. Referenced by copyTo(), SetCalibrated(), SetToF(), ToF(), and Zero(). |
|
Definition at line 101 of file emcTowerContentv1S.h. |
|
Definition at line 104 of file emcTowerContentv1S.h. Referenced by copyTo(), SetCalibrated(), UncorrectedToF(), and Zero(). |
|
Definition at line 98 of file emcTowerContentv1S.h. Referenced by copyTo(), SetNeighbours(), WarnNeighbours(), and Zero(). |