#include <emcTowerContent.h>
Inherited by emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3.
Inheritance diagram for emcTowerContent:
You generally obtain such object from an emcTowerContainer. Then you can access tower characteristics, being raw ones (the 5 DC samples), ped-subtracted ones (ADC and TDC), or calibrated ones (Energy,ToF).
Definition at line 20 of file emcTowerContent.h.
Public Member Functions | |
virtual | ~emcTowerContent () |
virtual emcTowerContent * | clone () const |
Make a copy of this tower. | |
virtual emcTowerContent * | create () const |
Make an empty copy of this tower (i.e. copy only the type). | |
virtual int | ADC (void) const |
ADC value (i.e. | |
virtual int | AMUPre (void) const |
AMU cell that gave the pre sample [0-63]. | |
virtual int | AMUPost (void) const |
AMU cell that gave the post sample [0-63]. | |
virtual int | AMUTAC (void) const |
AMU cell that gave the tac sample [0-63]. | |
virtual int | BeamClock (void) const |
virtual int | Channel (void) const |
Tower channel number within the FEM [0-143]. | |
virtual int | DataError (void) const |
A word indicating some error (e.g. sample too low or too high). | |
virtual float | Energy (void) const |
Tower energy in GeV. | |
virtual unsigned int | ErrorNeighbours (void) const |
A word indicating the status of the tower itself and of its neighbours (5x5). | |
virtual int | FEM (void) const |
FEM number of this tower [0-171 for data, >= 172 for monitoring. | |
virtual int | HG (void) const |
High gain value (pedestal subtracted). | |
virtual int | HGPost (void) const |
High gain post sample (raw). | |
virtual int | HGPre (void) const |
High gain pre sample (raw). | |
virtual int | HGPP (void) const |
HGPre()-HGPost(). | |
virtual float | Gain (void) const |
Gain for this tower. | |
virtual void | identify (std::ostream &os=std::cout) const |
From PHObject. | |
virtual bool | isSimulated (void) const |
Whether this tower is a simulated one. | |
virtual bool | isMerged (void) const |
Whether this tower was merged (i.e. embedded). | |
virtual bool | isReference (void) const |
Whether this tower is a reference one. | |
virtual int | isValid () const |
From PHObject. | |
virtual bool | isZero (void) const |
Whether raw samples are compatible with an empty tower. | |
virtual int | LG (void) const |
Low gain (pedestal subtracted) value. | |
virtual int | LGPost (void) const |
Low gain post sample. | |
virtual int | LGPre (void) const |
Low gain pre sample. | |
virtual int | LGPP (void) const |
LGPre()-LGPost(). | |
virtual void | print (std::ostream &=std::cout, int=0) const |
Output to stream. | |
virtual emcTowerContent * | Reference (void) const |
Pointer to reference (if available, see hasReference()). | |
virtual void | SetADCTDC (int, int, int=0, int=0) |
Set the "DC" values : ADC and TDC. | |
virtual void | SetCalibrated (float, float) |
Set the calibrated values : energy and tof. | |
virtual void | SetDataError (int) |
Set the data Error. | |
virtual void | SetID (int, int) |
Set the id of this tower, by means of the pair (fem,channel). | |
virtual void | SetGain (float) |
Set the gain. | |
virtual void | SetNeighbours (unsigned int, unsigned int) |
Set the deadmap and warnmap. | |
virtual void | SetMerSimStatus (bool, bool) |
Set the merged and sim status. | |
virtual void | SetRaw (int, int, int, int, int, int=0, int=0, int=0, int=0) |
Set the raw sample values. | |
virtual void | SetSimFrac (float) |
Set the simulated energy fraction. | |
virtual void | SetToF (float) |
Set the (corrected) tof. | |
virtual float | SimFrac () const |
Fraction of simulated energy (0=real tower, 1=simulated, in between for a merged, i.e. | |
virtual int | TAC (void) const |
TAC sample value. | |
virtual int | TDC (void) const |
TDC value. | |
virtual float | ToF (void) const |
Get the ToF value (ns). | |
virtual float | UncorrectedToF () const |
Uncorrected ToF value (ns). | |
virtual int | TowerID (void) const |
TowerID (computed from (fem,channel) pair). | |
int | TowerId (void) const |
Alias for TowerID. | |
int | towerid (void) const |
Another alias for TowerID. | |
virtual unsigned int | WarnNeighbours (void) const |
Warnmap (see also ErrorNeighbours()). | |
virtual void | Zero (void) |
Reset the raw samples. | |
void | ShutUp (const int i=1) |
Actual features. | |
Test if this tower actually has some feature. | |
virtual bool | hasCalib (void) const |
Whether this tower has Energy and ToF available. | |
virtual bool | hasDC (void) const |
Whether this tower has ADC and TDC values available. | |
virtual 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. | |
virtual bool | hasMerSimStatus (void) const |
Whether we can set the merged/simulated status. | |
virtual bool | hasRaw (void) const |
Whether this tower has raw samples availalble. | |
virtual bool | hasReference (void) const |
Tells whether this tower has a reference (from monitoring system information available. | |
Possible features. | |
Test if this tower *might* have some feature. (to test if the tower actually has it, use the hasXXX methods). | |
virtual bool | canHaveCalib () const |
Whether this tower can hold calibrated (energy,tof) values. | |
virtual bool | canHaveDC () const |
Whether this tower can hold DC (ADC,TDC) values. | |
virtual bool | canHaveGain () const |
Whether this tower can hold Gain value. | |
virtual bool | canHaveMerSimStatus () const |
Whether this tower can have the Merged/Simulated status. | |
virtual bool | canHaveRaw () const |
Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples. | |
Protected Member Functions | |
emcTowerContent & | operator= (const emcTowerContent &rhs) |
This one is protected on purpose. | |
Private Member Functions | |
void | warning (const char *) const |
|
|
|
ADC value (i.e. pre-post-pedestals for the selected gain, either low or high). Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 35 of file emcTowerContent.h. References warning(). Referenced by emcDCProcessorv3::calibrateTimePbGl(), emcDCProcessorv2::calibrateTimePbGl(), and emcDCProcessorv2::calibrateTimePbSc(). |
|
AMU cell that gave the post sample [0-63].
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 43 of file emcTowerContent.h. References warning(). |
|
AMU cell that gave the pre sample [0-63].
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 39 of file emcTowerContent.h. References warning(). |
|
AMU cell that gave the tac sample [0-63].
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 47 of file emcTowerContent.h. References warning(). |
|
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 50 of file emcTowerContent.h. References warning(). |
|
Whether this tower can hold calibrated (energy,tof) values.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 107 of file emcTowerContent.h. |
|
Whether this tower can hold DC (ADC,TDC) values.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 110 of file emcTowerContent.h. |
|
Whether this tower can hold Gain value.
Reimplemented in emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 113 of file emcTowerContent.h. |
|
Whether this tower can have the Merged/Simulated status.
Reimplemented in emcTowerContentv1M. Definition at line 116 of file emcTowerContent.h. |
|
Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 121 of file emcTowerContent.h. |
|
Tower channel number within the FEM [0-143].
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 53 of file emcTowerContent.h. References warning(). Referenced by emcDCProcessorv3::calibrateEnergyPbGl(), emcDCProcessorv2::calibrateEnergyPbGl(), emcDCProcessorv3::calibrateEnergyPbSc(), emcDCProcessorv2::calibrateEnergyPbSc(), emcDCProcessorv3::calibrateTimePbGl(), emcDCProcessorv2::calibrateTimePbGl(), emcDCProcessorv3::calibrateTimePbSc(), emcDCProcessorv2::calibrateTimePbSc(), emcRawDataProcessorv3::chooseLowGainPbGl(), emcRawDataProcessorv2::chooseLowGainPbGl(), emcRawDataProcessorv3::chooseLowGainPbSc(), and emcRawDataProcessorv2::chooseLowGainPbSc(). |
|
Make a copy of this tower.
Reimplemented in emcTowerContentv1M, emcTowerContentv1S, and emcTowerContentv3. Definition at line 27 of file emcTowerContent.h. References warning(). |
|
Make an empty copy of this tower (i.e. copy only the type).
Reimplemented in emcTowerContentv1M, emcTowerContentv1S, and emcTowerContentv3. Definition at line 30 of file emcTowerContent.h. References warning(). |
|
A word indicating some error (e.g. sample too low or too high).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 56 of file emcTowerContent.h. References warning(). Referenced by emcRawDataProcessorv3::chooseLowGainPbGl(), emcRawDataProcessorv2::chooseLowGainPbGl(), emcRawDataProcessorv3::chooseLowGainPbSc(), and emcRawDataProcessorv2::chooseLowGainPbSc(). |
|
Tower energy in GeV.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 59 of file emcTowerContent.h. References warning(). |
|
A word indicating the status of the tower itself and of its neighbours (5x5). See also emcBadModules class for more info. Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 65 of file emcTowerContent.h. References warning(). |
|
FEM number of this tower [0-171 for data, >= 172 for monitoring.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 69 of file emcTowerContent.h. References warning(). Referenced by emcDCProcessorv3::calibrateEnergyPbGl(), emcDCProcessorv2::calibrateEnergyPbGl(), emcDCProcessorv3::calibrateEnergyPbSc(), emcDCProcessorv2::calibrateEnergyPbSc(), emcDCProcessorv3::calibrateTimePbGl(), emcDCProcessorv2::calibrateTimePbGl(), emcDCProcessorv3::calibrateTimePbSc(), emcDCProcessorv2::calibrateTimePbSc(), emcRawDataProcessorv3::chooseLowGainPbGl(), emcRawDataProcessorv2::chooseLowGainPbGl(), emcRawDataProcessorv3::chooseLowGainPbSc(), and emcRawDataProcessorv2::chooseLowGainPbSc(). |
|
Gain for this tower.
Reimplemented in emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 137 of file emcTowerContent.h. References warning(). |
|
Whether this tower has Energy and ToF available.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 76 of file emcTowerContent.h. |
|
Whether this tower has ADC and TDC values available.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 79 of file emcTowerContent.h. |
|
Whether this tower has the gain (which was used to normalize the ADC value to take into account time evolution) available.
Reimplemented in emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 84 of file emcTowerContent.h. Referenced by emcDCProcessorv3::calibrateEnergyPbGl(), emcDCProcessorv2::calibrateEnergyPbGl(), emcDCProcessorv3::calibrateEnergyPbSc(), and emcDCProcessorv2::calibrateEnergyPbSc(). |
|
Whether we can set the merged/simulated status.
Reimplemented in emcTowerContentv1M. Definition at line 88 of file emcTowerContent.h. |
|
Whether this tower has raw samples availalble.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 91 of file emcTowerContent.h. |
|
Tells whether this tower has a reference (from monitoring system information available.
Definition at line 22 of file emcTowerContent.C. |
|
High gain value (pedestal subtracted).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 125 of file emcTowerContent.h. References warning(). |
|
High gain post sample (raw).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 128 of file emcTowerContent.h. References warning(). Referenced by emcRawDataProcessorv3::chooseLowGainPbGl(), emcRawDataProcessorv2::chooseLowGainPbGl(), ClassImp(), and HGPP(). |
|
HGPre()-HGPost().
Definition at line 29 of file emcTowerContent.C. References HGPost(), and HGPre(). Referenced by emcRawDataProcessorv3::chooseLowGainPbGl(), and emcRawDataProcessorv2::chooseLowGainPbGl(). |
|
High gain pre sample (raw).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 131 of file emcTowerContent.h. References warning(). Referenced by HGPP(). |
|
From PHObject.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 36 of file emcTowerContent.C. |
|
Whether this tower was merged (i.e. embedded).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 147 of file emcTowerContent.h. References warning(). |
|
Whether this tower is a reference one.
Definition at line 45 of file emcTowerContent.C. |
|
Whether this tower is a simulated one.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 143 of file emcTowerContent.h. References warning(). |
|
From PHObject.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 52 of file emcTowerContent.C. |
|
Whether raw samples are compatible with an empty tower.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 156 of file emcTowerContent.h. References warning(). |
|
Low gain (pedestal subtracted) value.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 159 of file emcTowerContent.h. References warning(). Referenced by emcDCProcessorv3::calibrateTimePbSc(). |
|
Low gain post sample.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 162 of file emcTowerContent.h. References warning(). Referenced by LGPP(). |
|
LGPre()-LGPost().
Definition at line 59 of file emcTowerContent.C. References LGPost(), and LGPre(). Referenced by emcRawDataProcessorv3::chooseLowGainPbGl(), emcRawDataProcessorv2::chooseLowGainPbGl(), emcRawDataProcessorv3::chooseLowGainPbSc(), and emcRawDataProcessorv2::chooseLowGainPbSc(). |
|
Low gain pre sample.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 165 of file emcTowerContent.h. References warning(). Referenced by LGPP(). |
|
This one is protected on purpose. See e.g. Scott Meyers' More Effective C++ Item 33. Definition at line 15 of file emcTowerContent.C. |
|
Output to stream.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 171 of file emcTowerContent.h. References warning(). Referenced by operator<<(). |
|
Pointer to reference (if available, see hasReference()).
Definition at line 66 of file emcTowerContent.C. |
|
Set the "DC" values : ADC and TDC. Only useable if hasDC returns true. Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 180 of file emcTowerContent.h. References warning(). Referenced by emcPatch::event(). |
|
Set the calibrated values : energy and tof. Only useable if hasCalib returns true. Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 186 of file emcTowerContent.h. References warning(). Referenced by emcPatch::event(). |
|
Set the data Error.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 190 of file emcTowerContent.h. References warning(). Referenced by emcPatch::event(), emcRawDataProcessorv3::toADCandTDC(), and emcRawDataProcessorv2::toADCandTDC(). |
|
Set the gain.
Reimplemented in emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 196 of file emcTowerContent.h. References warning(). Referenced by emcDCProcessorv3::calibrateEnergyPbGl(), emcDCProcessorv2::calibrateEnergyPbGl(), emcDCProcessorv3::calibrateEnergyPbSc(), and emcDCProcessorv2::calibrateEnergyPbSc(). |
|
Set the id of this tower, by means of the pair (fem,channel).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 193 of file emcTowerContent.h. References warning(). Referenced by emcPatch::event(), and emcPacketProcessorv1::process(). |
|
Set the merged and sim status. Only useable if isMerSimStatus returns true. Reimplemented in emcTowerContentv1M. Definition at line 206 of file emcTowerContent.h. References warning(). |
|
Set the deadmap and warnmap.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 199 of file emcTowerContent.h. References warning(). Referenced by emcPatch::event(). |
|
Set the raw sample values. Only useable if hasRaw returns true. Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 212 of file emcTowerContent.h. References warning(). Referenced by emcPatch::event(). |
|
Set the simulated energy fraction.
Reimplemented in emcTowerContentv1M, emcTowerContentv1S, and emcTowerContentv3. Definition at line 221 of file emcTowerContent.h. References warning(). |
|
Set the (corrected) tof.
Reimplemented in emcTowerContentv1M, emcTowerContentv1S, and emcTowerContentv3. Definition at line 224 of file emcTowerContent.h. References warning(). |
|
Definition at line 73 of file emcTowerContent.C. |
|
Fraction of simulated energy (0=real tower, 1=simulated, in between for a merged, i.e. embedded, tower. Reimplemented in emcTowerContentv1M, emcTowerContentv1S, and emcTowerContentv3. Definition at line 228 of file emcTowerContent.h. |
|
TAC sample value.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv2, and emcTowerContentv3. Definition at line 231 of file emcTowerContent.h. References warning(). |
|
TDC value.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 234 of file emcTowerContent.h. References warning(). Referenced by emcDCProcessorv3::calibrateTimePbGl(), emcDCProcessorv2::calibrateTimePbGl(), emcDCProcessorv3::calibrateTimePbSc(), and emcDCProcessorv2::calibrateTimePbSc(). |
|
Get the ToF value (ns).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 237 of file emcTowerContent.h. References warning(). |
|
Another alias for TowerID.
Definition at line 249 of file emcTowerContent.h. References TowerID(). Referenced by mEmcReCalibratorModulev1::event(). |
|
Alias for TowerID.
Definition at line 246 of file emcTowerContent.h. References TowerID(). |
|
TowerID (computed from (fem,channel) pair).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 243 of file emcTowerContent.h. References warning(). Referenced by mEmcTOFCorr6Module::event(), mEmcTOFCorr5Module::event(), emcRawDataProcessorv3::toADCandTDC(), emcRawDataProcessorv2::toADCandTDC(), towerid(), and TowerId(). |
|
Uncorrected ToF value (ns).
Reimplemented in emcTowerContentv1M, emcTowerContentv1S, and emcTowerContentv3. Definition at line 240 of file emcTowerContent.h. References warning(). |
|
Definition at line 80 of file emcTowerContent.C. Referenced by ADC(), AMUPost(), AMUPre(), AMUTAC(), BeamClock(), Channel(), clone(), create(), DataError(), Energy(), ErrorNeighbours(), FEM(), Gain(), HG(), HGPost(), HGPre(), isMerged(), isSimulated(), isZero(), LG(), LGPost(), LGPre(), print(), SetADCTDC(), SetCalibrated(), SetDataError(), SetGain(), SetID(), SetMerSimStatus(), SetNeighbours(), SetRaw(), SetSimFrac(), SetToF(), TAC(), TDC(), ToF(), TowerID(), UncorrectedToF(), WarnNeighbours(), and Zero(). |
|
Warnmap (see also ErrorNeighbours()).
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 252 of file emcTowerContent.h. References warning(). |
|
Reset the raw samples.
Reimplemented in emcTowerContentv1, emcTowerContentv1M, emcTowerContentv1S, emcTowerContentv2, and emcTowerContentv3. Definition at line 256 of file emcTowerContent.h. References warning(). Referenced by emcRawDataProcessorv3::toADCandTDC(), and emcRawDataProcessorv2::toADCandTDC(). |