emcTowerContentv1S Class Reference
[Tower calibration]

#include <emcTowerContentv1S.h>

Inherits emcTowerContent.

Inheritance diagram for emcTowerContentv1S:

Inheritance graph
[legend]
List of all members.

Detailed Description

(VERSION) emcTowerContent version 1 for simulated towers.

Definition at line 12 of file emcTowerContentv1S.h.

Public Member Functions

 emcTowerContentv1S ()
 emcTowerContentv1S (const emcTowerContentv1S &)
emcTowerContentv1Soperator= (const emcTowerContentv1S &)
virtual ~emcTowerContentv1S ()
emcTowerContentv1Sclone () const
 Make a copy of this tower.
emcTowerContentv1Screate () 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.


Constructor & Destructor Documentation

emcTowerContentv1S::emcTowerContentv1S  ) 
 

Referenced by clone().

emcTowerContentv1S::emcTowerContentv1S const emcTowerContentv1S  ) 
 

Definition at line 20 of file emcTowerContentv1S.C.

References copyTo().

emcTowerContentv1S::~emcTowerContentv1S  )  [virtual]
 

Definition at line 38 of file emcTowerContentv1S.C.


Member Function Documentation

int emcTowerContentv1S::ADC void   )  const [inline, virtual]
 

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.

bool emcTowerContentv1S::canHaveCalib  )  const [inline, virtual]
 

Whether this tower can hold calibrated (energy,tof) values.

Reimplemented from emcTowerContent.

Definition at line 43 of file emcTowerContentv1S.h.

bool emcTowerContentv1S::canHaveDC  )  const [inline, virtual]
 

Whether this tower can hold DC (ADC,TDC) values.

Reimplemented from emcTowerContent.

Definition at line 44 of file emcTowerContentv1S.h.

bool emcTowerContentv1S::canHaveGain  )  const [inline, virtual]
 

Whether this tower can hold Gain value.

Reimplemented from emcTowerContent.

Definition at line 45 of file emcTowerContentv1S.h.

bool emcTowerContentv1S::canHaveRaw  )  const [inline, virtual]
 

Whether this tower can hold raw (HGPre,HGPost,LGPre,LGPost,TAC) samples.

Reimplemented from emcTowerContent.

Definition at line 46 of file emcTowerContentv1S.h.

int emcTowerContentv1S::Channel void   )  const [inline, virtual]
 

Tower channel number within the FEM [0-143].

Reimplemented from emcTowerContent.

Definition at line 28 of file emcTowerContentv1S.h.

References fChannel.

emcTowerContentv1S* emcTowerContentv1S::clone void   )  const [inline, virtual]
 

Make a copy of this tower.

Reimplemented from emcTowerContent.

Definition at line 23 of file emcTowerContentv1S.h.

References emcTowerContentv1S().

void emcTowerContentv1S::copyTo emcTowerContentv1S dest  )  const [private]
 

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=().

emcTowerContentv1S* emcTowerContentv1S::create void   )  const [inline, virtual]
 

Make an empty copy of this tower (i.e. copy only the type).

Reimplemented from emcTowerContent.

Definition at line 24 of file emcTowerContentv1S.h.

int emcTowerContentv1S::DataError void   )  const [inline, virtual]
 

A word indicating some error (e.g. sample too low or too high).

Reimplemented from emcTowerContent.

Definition at line 30 of file emcTowerContentv1S.h.

float emcTowerContentv1S::Energy void   )  const [inline, virtual]
 

Tower energy in GeV.

Reimplemented from emcTowerContent.

Definition at line 32 of file emcTowerContentv1S.h.

References fEnergy.

unsigned int emcTowerContentv1S::ErrorNeighbours void   )  const [inline, virtual]
 

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.

int emcTowerContentv1S::FEM void   )  const [inline, virtual]
 

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.

bool emcTowerContentv1S::hasCalib void   )  const [inline, virtual]
 

Whether this tower has Energy and ToF available.

Reimplemented from emcTowerContent.

Definition at line 38 of file emcTowerContentv1S.h.

References fHasCalib.

bool emcTowerContentv1S::hasDC void   )  const [inline, virtual]
 

Whether this tower has ADC and TDC values available.

Reimplemented from emcTowerContent.

Definition at line 39 of file emcTowerContentv1S.h.

References fHasDC.

bool emcTowerContentv1S::hasGain void   )  const [inline, virtual]
 

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.

bool emcTowerContentv1S::hasRaw void   )  const [inline, virtual]
 

Whether this tower has raw samples availalble.

Reimplemented from emcTowerContent.

Definition at line 41 of file emcTowerContentv1S.h.

void emcTowerContentv1S::identify std::ostream &  os = std::cout  )  const [virtual]
 

From PHObject.

Reimplemented from emcTowerContent.

bool emcTowerContentv1S::isMerged void   )  const [inline, virtual]
 

Whether this tower was merged (i.e. embedded).

Reimplemented from emcTowerContent.

Definition at line 54 of file emcTowerContentv1S.h.

bool emcTowerContentv1S::isSimulated void   )  const [inline, virtual]
 

Whether this tower is a simulated one.

Reimplemented from emcTowerContent.

Definition at line 52 of file emcTowerContentv1S.h.

int emcTowerContentv1S::isValid  )  const [virtual]
 

From PHObject.

Reimplemented from emcTowerContent.

Definition at line 69 of file emcTowerContentv1S.C.

References fFEM.

bool emcTowerContentv1S::isZero void   )  const [virtual]
 

Whether raw samples are compatible with an empty tower.

Reimplemented from emcTowerContent.

Definition at line 83 of file emcTowerContentv1S.C.

References fEnergy, and fEnergyThreshold.

emcTowerContentv1S & emcTowerContentv1S::operator= const emcTowerContentv1S  ) 
 

Definition at line 28 of file emcTowerContentv1S.C.

References copyTo().

void emcTowerContentv1S::print std::ostream &  out = std::cout,
int  level = 0
const [virtual]
 

Output to stream.

Reimplemented from emcTowerContent.

void emcTowerContentv1S::Reset  ) 
 

Definition at line 137 of file emcTowerContentv1S.C.

References fChannel, fFEM, fHasCalib, fHasDC, fTowerID, and Zero().

void emcTowerContentv1S::SetADCTDC int  adc,
int  tdc,
int  hg = 0,
int  lg = 0
[virtual]
 

Set the "DC" values : ADC and TDC.

Only useable if hasDC returns true.

Reimplemented from emcTowerContent.

Definition at line 151 of file emcTowerContentv1S.C.

References fADC, fHasDC, and fTDC.

void emcTowerContentv1S::SetCalibrated float  energy,
float  tof
[virtual]
 

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.

void emcTowerContentv1S::SetDataError int   )  [inline, virtual]
 

Set the data Error.

Reimplemented from emcTowerContent.

Definition at line 66 of file emcTowerContentv1S.h.

void emcTowerContentv1S::SetID int  fem,
int  channel
[virtual]
 

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().

void emcTowerContentv1S::SetNeighbours unsigned int  error,
unsigned int  warning
[virtual]
 

Set the deadmap and warnmap.

Reimplemented from emcTowerContent.

Definition at line 185 of file emcTowerContentv1S.C.

References fErrorNeighbours, and fWarnNeighbours.

void emcTowerContentv1S::SetSimFrac float   )  [inline, virtual]
 

Set the simulated energy fraction.

Reimplemented from emcTowerContent.

Definition at line 72 of file emcTowerContentv1S.h.

void emcTowerContentv1S::SetToF float  tof  )  [virtual]
 

Set the (corrected) tof.

Reimplemented from emcTowerContent.

Definition at line 169 of file emcTowerContentv1S.C.

References fTOF.

float emcTowerContentv1S::SimFrac  )  const [inline, virtual]
 

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.

int emcTowerContentv1S::TDC void   )  const [inline, virtual]
 

TDC value.

Reimplemented from emcTowerContent.

Definition at line 78 of file emcTowerContentv1S.h.

References fTDC.

float emcTowerContentv1S::ToF void   )  const [inline, virtual]
 

Get the ToF value (ns).

Reimplemented from emcTowerContent.

Definition at line 79 of file emcTowerContentv1S.h.

References fTOF.

int emcTowerContentv1S::TowerID void   )  const [inline, virtual]
 

TowerID (computed from (fem,channel) pair).

Reimplemented from emcTowerContent.

Definition at line 82 of file emcTowerContentv1S.h.

References fTowerID.

float emcTowerContentv1S::UncorrectedToF void   )  const [inline, virtual]
 

Uncorrected ToF value (ns).

Reimplemented from emcTowerContent.

Definition at line 80 of file emcTowerContentv1S.h.

References fUncorrectedTOF.

unsigned int emcTowerContentv1S::WarnNeighbours void   )  const [inline, virtual]
 

Warnmap (see also ErrorNeighbours()).

Reimplemented from emcTowerContent.

Definition at line 84 of file emcTowerContentv1S.h.

References fWarnNeighbours.

void emcTowerContentv1S::Zero void   )  [virtual]
 

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().


Member Data Documentation

int emcTowerContentv1S::fADC [private]
 

Definition at line 100 of file emcTowerContentv1S.h.

Referenced by ADC(), copyTo(), SetADCTDC(), and Zero().

int emcTowerContentv1S::fChannel [private]
 

Definition at line 96 of file emcTowerContentv1S.h.

Referenced by Channel(), copyTo(), Reset(), and SetID().

float emcTowerContentv1S::fEnergy [private]
 

Definition at line 102 of file emcTowerContentv1S.h.

Referenced by copyTo(), Energy(), isZero(), SetCalibrated(), and Zero().

float emcTowerContentv1S::fEnergyThreshold [static, private]
 

Below this value, tower is considered to be empty.

Definition at line 107 of file emcTowerContentv1S.h.

Referenced by isZero().

unsigned int emcTowerContentv1S::fErrorNeighbours [private]
 

Definition at line 97 of file emcTowerContentv1S.h.

Referenced by copyTo(), ErrorNeighbours(), SetNeighbours(), and Zero().

int emcTowerContentv1S::fFEM [private]
 

Definition at line 95 of file emcTowerContentv1S.h.

Referenced by copyTo(), FEM(), isValid(), Reset(), and SetID().

bool emcTowerContentv1S::fHasCalib [private]
 

Definition at line 93 of file emcTowerContentv1S.h.

Referenced by copyTo(), hasCalib(), Reset(), and SetCalibrated().

bool emcTowerContentv1S::fHasDC [private]
 

Definition at line 94 of file emcTowerContentv1S.h.

Referenced by copyTo(), hasDC(), Reset(), and SetADCTDC().

int emcTowerContentv1S::fTDC [private]
 

Definition at line 99 of file emcTowerContentv1S.h.

Referenced by copyTo(), SetADCTDC(), TDC(), and Zero().

float emcTowerContentv1S::fTOF [private]
 

Definition at line 103 of file emcTowerContentv1S.h.

Referenced by copyTo(), SetCalibrated(), SetToF(), ToF(), and Zero().

int emcTowerContentv1S::fTowerID [private]
 

Definition at line 101 of file emcTowerContentv1S.h.

Referenced by copyTo(), Reset(), SetID(), and TowerID().

float emcTowerContentv1S::fUncorrectedTOF [private]
 

Definition at line 104 of file emcTowerContentv1S.h.

Referenced by copyTo(), SetCalibrated(), UncorrectedToF(), and Zero().

unsigned int emcTowerContentv1S::fWarnNeighbours [private]
 

Definition at line 98 of file emcTowerContentv1S.h.

Referenced by copyTo(), SetNeighbours(), WarnNeighbours(), and Zero().


The documentation for this class was generated from the following files: