#include <emcTowerContentv1M.h>
Inherits emcTowerContent.
Inheritance diagram for emcTowerContentv1M:
Definition at line 12 of file emcTowerContentv1M.h.
Public Member Functions | |
emcTowerContentv1M () | |
emcTowerContentv1M (const emcTowerContentv1M &) | |
emcTowerContentv1M & | operator= (const emcTowerContentv1M &) |
virtual | ~emcTowerContentv1M () |
emcTowerContentv1M * | clone () const |
Make a copy of this tower. | |
emcTowerContentv1M * | create () const |
Make an empty copy of this tower (i.e. copy only the type). | |
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 | 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 | hasMerSimStatus (void) const |
Whether we can set the merged/simulated status. | |
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. | |
bool | canHaveMerSimStatus () const |
Whether this tower can have the Merged/Simulated status. | |
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). | |
float | Gain (void) const |
Gain for this tower. | |
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 | SetGain (float gain) |
Set the gain. | |
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 | SetMerSimStatus (bool ismerged, bool issimulated) |
Set the merged and sim status. | |
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. | |
void | SetSimFrac (float simfrac) |
Set the simulated energy fraction. | |
void | SetToF (float tof) |
Set the (corrected) tof. | |
float | SimFrac () const |
Fraction of simulated energy (0=real tower, 1=simulated, in between for a merged, i.e. | |
int | TAC (void) const |
TAC sample value. | |
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 (emcTowerContentv1M &dest) const |
Private Attributes | |
bool | fHasCalib |
bool | fHasDC |
bool | fHasGain |
bool | fHasRaw |
bool | fIsMerged |
bool | fIsSimulated |
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 |
float | fGain |
float | fSimFrac |
float | fUncorrectedTOF |
Static Private Attributes | |
static float | fEnergyThreshold |
Below this value, a simulated tower is considered to be empty. |
|
Referenced by clone(). |
|
Definition at line 21 of file emcTowerContentv1M.C. References copyTo(). |
|
Definition at line 39 of file emcTowerContentv1M.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 emcTowerContentv1M.h. References fADC. |
|
AMU cell that gave the post sample [0-63].
Reimplemented from emcTowerContent. Definition at line 30 of file emcTowerContentv1M.h. References fAMUPost. |
|
AMU cell that gave the pre sample [0-63].
Reimplemented from emcTowerContent. Definition at line 28 of file emcTowerContentv1M.h. References fAMUPre. |
|
AMU cell that gave the tac sample [0-63].
Reimplemented from emcTowerContent. Definition at line 32 of file emcTowerContentv1M.h. References fAMUTAC. |
|
Reimplemented from emcTowerContent. Definition at line 34 of file emcTowerContentv1M.h. References fBeamClock. |
|
Whether this tower can hold calibrated (energy,tof) values.
Reimplemented from emcTowerContent. Definition at line 52 of file emcTowerContentv1M.h. |
|
Whether this tower can hold DC (ADC,TDC) values.
Reimplemented from emcTowerContent. Definition at line 53 of file emcTowerContentv1M.h. |
|
Whether this tower can hold Gain value.
Reimplemented from emcTowerContent. Definition at line 54 of file emcTowerContentv1M.h. |
|
Whether this tower can have the Merged/Simulated status.
Reimplemented from emcTowerContent. Definition at line 56 of file emcTowerContentv1M.h. |
|
Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples.
Reimplemented from emcTowerContent. Definition at line 55 of file emcTowerContentv1M.h. |
|
Tower channel number within the FEM [0-143].
Reimplemented from emcTowerContent. Definition at line 36 of file emcTowerContentv1M.h. References fChannel. |
|
Make a copy of this tower.
Reimplemented from emcTowerContent. Definition at line 23 of file emcTowerContentv1M.h. References emcTowerContentv1M(). |
|
Definition at line 45 of file emcTowerContentv1M.C. References fADC, fAMUPost, fAMUPre, fAMUTAC, fBeamClock, fChannel, fDataError, fEnergy, fErrorNeighbours, fFEM, fGain, fHasCalib, fHasDC, fHasGain, fHasRaw, fHG, fHGPost, fHGPre, fIsMerged, fIsSimulated, fLG, fLGPost, fLGPre, fSimFrac, fTAC, fTDC, fTOF, fTowerID, fUncorrectedTOF, and fWarnNeighbours. Referenced by emcTowerContentv1M(), and operator=(). |
|
Make an empty copy of this tower (i.e. copy only the type).
Reimplemented from emcTowerContent. Definition at line 24 of file emcTowerContentv1M.h. |
|
A word indicating some error (e.g. sample too low or too high).
Reimplemented from emcTowerContent. Definition at line 38 of file emcTowerContentv1M.h. References fDataError. |
|
Tower energy in GeV.
Reimplemented from emcTowerContent. Definition at line 40 of file emcTowerContentv1M.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 42 of file emcTowerContentv1M.h. References fErrorNeighbours. |
|
FEM number of this tower [0-171 for data, >= 172 for monitoring.
Reimplemented from emcTowerContent. Definition at line 44 of file emcTowerContentv1M.h. References fFEM. |
|
Gain for this tower.
Reimplemented from emcTowerContent. Definition at line 62 of file emcTowerContentv1M.h. References fGain. |
|
Whether this tower has Energy and ToF available.
Reimplemented from emcTowerContent. Definition at line 46 of file emcTowerContentv1M.h. References fHasCalib. |
|
Whether this tower has ADC and TDC values available.
Reimplemented from emcTowerContent. Definition at line 47 of file emcTowerContentv1M.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 48 of file emcTowerContentv1M.h. References fHasGain. |
|
Whether we can set the merged/simulated status.
Reimplemented from emcTowerContent. Definition at line 49 of file emcTowerContentv1M.h. |
|
Whether this tower has raw samples availalble.
Reimplemented from emcTowerContent. Definition at line 50 of file emcTowerContentv1M.h. References fHasRaw. |
|
High gain value (pedestal subtracted).
Reimplemented from emcTowerContent. Definition at line 58 of file emcTowerContentv1M.h. References fHG. |
|
High gain post sample (raw).
Reimplemented from emcTowerContent. Definition at line 59 of file emcTowerContentv1M.h. References fHGPost. |
|
High gain pre sample (raw).
Reimplemented from emcTowerContent. Definition at line 60 of file emcTowerContentv1M.h. References fHGPre. |
|
From PHObject.
Reimplemented from emcTowerContent. |
|
Whether this tower was merged (i.e. embedded).
Reimplemented from emcTowerContent. Definition at line 70 of file emcTowerContentv1M.h. References fIsMerged. |
|
Whether this tower is a simulated one.
Reimplemented from emcTowerContent. Definition at line 68 of file emcTowerContentv1M.h. References fIsSimulated. |
|
From PHObject.
Reimplemented from emcTowerContent. Definition at line 88 of file emcTowerContentv1M.C. References fFEM. |
|
Whether raw samples are compatible with an empty tower.
Reimplemented from emcTowerContent. Definition at line 102 of file emcTowerContentv1M.C. References emcDataError::CHANNEL_DISABLED(), fDataError, fEnergy, fEnergyThreshold, and fIsSimulated. |
|
Low gain (pedestal subtracted) value.
Reimplemented from emcTowerContent. Definition at line 74 of file emcTowerContentv1M.h. References fLG. |
|
Low gain post sample.
Reimplemented from emcTowerContent. Definition at line 75 of file emcTowerContentv1M.h. References fLGPost. |
|
Low gain pre sample.
Reimplemented from emcTowerContent. Definition at line 76 of file emcTowerContentv1M.h. References fLGPre. |
|
Definition at line 29 of file emcTowerContentv1M.C. References copyTo(). |
|
Output to stream.
Reimplemented from emcTowerContent. |
|
Definition at line 214 of file emcTowerContentv1M.C. References fAMUPost, fAMUPre, fAMUTAC, fChannel, fFEM, fGain, fHasCalib, fHasDC, fHasGain, fHasRaw, fIsMerged, fIsSimulated, fTowerID, and Zero(). |
|
Set the "DC" values : ADC and TDC. Only useable if hasDC returns true. Reimplemented from emcTowerContent. Definition at line 239 of file emcTowerContentv1M.C. |
|
Set the calibrated values : energy and tof. Only useable if hasCalib returns true. Reimplemented from emcTowerContent. Definition at line 250 of file emcTowerContentv1M.C. References fEnergy, fHasCalib, fTOF, and fUncorrectedTOF. |
|
Set the data Error.
Reimplemented from emcTowerContent. Definition at line 259 of file emcTowerContentv1M.C. References fDataError. |
|
Set the gain.
Reimplemented from emcTowerContent. Definition at line 266 of file emcTowerContentv1M.C. References fGain. |
|
Set the id of this tower, by means of the pair (fem,channel).
Reimplemented from emcTowerContent. Definition at line 273 of file emcTowerContentv1M.C. References fChannel, fFEM, fTowerID, and EmcIndexer::PXSM144iCH_iPX(). |
|
Set the merged and sim status. Only useable if isMerSimStatus returns true. Reimplemented from emcTowerContent. Definition at line 282 of file emcTowerContentv1M.C. References fIsMerged, and fIsSimulated. |
|
Set the deadmap and warnmap.
Reimplemented from emcTowerContent. Definition at line 290 of file emcTowerContentv1M.C. References fErrorNeighbours, and fWarnNeighbours. |
|
Set the raw sample values. Only useable if hasRaw returns true. Reimplemented from emcTowerContent. Definition at line 298 of file emcTowerContentv1M.C. References fAMUPost, fAMUPre, fAMUTAC, fBeamClock, fHasRaw, fHGPost, fHGPre, fLGPost, fLGPre, and fTAC. |
|
Set the simulated energy fraction.
Reimplemented from emcTowerContent. Definition at line 316 of file emcTowerContentv1M.C. References fSimFrac. |
|
Set the (corrected) tof.
Reimplemented from emcTowerContent. Definition at line 323 of file emcTowerContentv1M.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 108 of file emcTowerContentv1M.h. References fSimFrac. |
|
TAC sample value.
Reimplemented from emcTowerContent. Definition at line 110 of file emcTowerContentv1M.h. References fTAC. |
|
TDC value.
Reimplemented from emcTowerContent. Definition at line 111 of file emcTowerContentv1M.h. References fTDC. |
|
Get the ToF value (ns).
Reimplemented from emcTowerContent. Definition at line 112 of file emcTowerContentv1M.h. References fTOF. |
|
TowerID (computed from (fem,channel) pair).
Reimplemented from emcTowerContent. Definition at line 115 of file emcTowerContentv1M.h. References fTowerID. |
|
Uncorrected ToF value (ns).
Reimplemented from emcTowerContent. Definition at line 113 of file emcTowerContentv1M.h. References fUncorrectedTOF. |
|
Warnmap (see also ErrorNeighbours()).
Reimplemented from emcTowerContent. Definition at line 117 of file emcTowerContentv1M.h. References fWarnNeighbours. |
|
Reset the raw samples.
Reimplemented from emcTowerContent. Definition at line 330 of file emcTowerContentv1M.C. References fADC, fDataError, fEnergy, fErrorNeighbours, fGain, fHG, fHGPost, fHGPre, fLG, fLGPost, fLGPre, fSimFrac, fTAC, fTDC, fTOF, fUncorrectedTOF, and fWarnNeighbours. Referenced by Reset(). |
|
Definition at line 143 of file emcTowerContentv1M.h. Referenced by ADC(), copyTo(), SetADCTDC(), and Zero(). |
|
Definition at line 149 of file emcTowerContentv1M.h. |
|
Definition at line 148 of file emcTowerContentv1M.h. |
|
Definition at line 150 of file emcTowerContentv1M.h. |
|
Definition at line 147 of file emcTowerContentv1M.h. Referenced by BeamClock(), copyTo(), and SetRaw(). |
|
Definition at line 133 of file emcTowerContentv1M.h. |
|
Definition at line 134 of file emcTowerContentv1M.h. Referenced by copyTo(), DataError(), isZero(), SetDataError(), and Zero(). |
|
Definition at line 151 of file emcTowerContentv1M.h. Referenced by copyTo(), Energy(), isZero(), SetCalibrated(), and Zero(). |
|
Below this value, a simulated tower is considered to be empty.
Definition at line 158 of file emcTowerContentv1M.h. Referenced by isZero(). |
|
Definition at line 135 of file emcTowerContentv1M.h. Referenced by copyTo(), ErrorNeighbours(), SetNeighbours(), and Zero(). |
|
Definition at line 132 of file emcTowerContentv1M.h. Referenced by copyTo(), FEM(), isValid(), Reset(), and SetID(). |
|
Definition at line 153 of file emcTowerContentv1M.h. Referenced by copyTo(), Gain(), Reset(), SetGain(), and Zero(). |
|
Definition at line 126 of file emcTowerContentv1M.h. Referenced by copyTo(), hasCalib(), Reset(), and SetCalibrated(). |
|
Definition at line 127 of file emcTowerContentv1M.h. Referenced by copyTo(), hasDC(), Reset(), and SetADCTDC(). |
|
Definition at line 128 of file emcTowerContentv1M.h. |
|
Definition at line 129 of file emcTowerContentv1M.h. |
|
Definition at line 144 of file emcTowerContentv1M.h. Referenced by copyTo(), HG(), SetADCTDC(), and Zero(). |
|
Definition at line 137 of file emcTowerContentv1M.h. |
|
Definition at line 138 of file emcTowerContentv1M.h. |
|
Definition at line 130 of file emcTowerContentv1M.h. Referenced by copyTo(), isMerged(), Reset(), and SetMerSimStatus(). |
|
Definition at line 131 of file emcTowerContentv1M.h. Referenced by copyTo(), isSimulated(), isZero(), Reset(), and SetMerSimStatus(). |
|
Definition at line 145 of file emcTowerContentv1M.h. Referenced by copyTo(), LG(), SetADCTDC(), and Zero(). |
|
Definition at line 139 of file emcTowerContentv1M.h. |
|
Definition at line 140 of file emcTowerContentv1M.h. |
|
Definition at line 154 of file emcTowerContentv1M.h. Referenced by copyTo(), SetSimFrac(), SimFrac(), and Zero(). |
|
Definition at line 141 of file emcTowerContentv1M.h. |
|
Definition at line 142 of file emcTowerContentv1M.h. Referenced by copyTo(), SetADCTDC(), TDC(), and Zero(). |
|
Definition at line 152 of file emcTowerContentv1M.h. Referenced by copyTo(), SetCalibrated(), SetToF(), ToF(), and Zero(). |
|
Definition at line 146 of file emcTowerContentv1M.h. |
|
Definition at line 155 of file emcTowerContentv1M.h. Referenced by copyTo(), SetCalibrated(), UncorrectedToF(), and Zero(). |
|
Definition at line 136 of file emcTowerContentv1M.h. Referenced by copyTo(), SetNeighbours(), WarnNeighbours(), and Zero(). |