StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StEEmcElement Class Reference

Base class for EEMC detectors. More...

Inheritance diagram for StEEmcElement:
StEEmcStrip StEEmcStrip StEEmcTower StEEmcTower

Public Member Functions

void raw (Float_t r)
 Set the raw ADC for this element.
 
void adc (Float_t a)
 Set the pedestal-subtracted ADC for this element.
 
void energy (Float_t e)
 Set the energy (adc-ped+0.5)/gain for this element.
 
void stat (unsigned s)
 Set a status bit for this element.
 
void fail (unsigned f)
 Set a fail bit for this element.
 
void name (const Char_t *n)
 Set the name for this element.
 
Float_t raw () const
 Return raw ADC for this element.
 
Float_t adc () const
 Return the pedestal-subtracted ADC for this element.
 
Float_t energy () const
 Return the EM energy (towers) or energy deposit for this element (SMD,pre,post). If a fail bit is set, will return 0.
 
unsigned stat () const
 Return the status bit for this element.
 
unsigned fail () const
 Return the fail bit for this element.
 
const Char_t * name () const
 Return the name of this element.
 
void stemc (StEmcRawHit *h)
 Sets pointer to the StEmcRawHit when processing an StEvent file.
 
StEmcRawHitstemc ()
 Returns pointer to StEmcRawHit.
 
const StEmcRawHitstemc () const
 
virtual void Clear (Option_t *opts="")
 Clears the element.
 
void raw (Float_t r)
 Set the raw ADC for this element.
 
void adc (Float_t a)
 Set the pedestal-subtracted ADC for this element.
 
void energy (Float_t e)
 Set the energy (adc-ped+0.5)/gain for this element.
 
void stat (unsigned s)
 Set a status bit for this element.
 
void fail (unsigned f)
 Set a fail bit for this element.
 
void name (const Char_t *n)
 Set the name for this element.
 
Float_t raw ()
 Return raw ADC for this element.
 
Float_t raw () const
 Return raw ADC for this element.
 
Float_t adc ()
 Return the pedestal-subtracted ADC for this element.
 
Float_t adc () const
 Return the pedestal-subtracted ADC for this element.
 
Float_t energy ()
 Return the EM energy (towers) or energy deposit for this element (SMD,pre,post). If a fail bit is set, will return 0.
 
Float_t energy () const
 Return the EM energy (towers) or energy deposit for this element (SMD,pre,post). If a fail bit is set, will return 0.
 
unsigned stat ()
 Return the status bit for this element.
 
unsigned fail ()
 Return the fail bit for this element.
 
const Char_t * name ()
 Return the name of this element.
 
void stemc (StEmcRawHit *h)
 
StEmcRawHitstemc ()
 
void Clear (Option_t *opts="")
 

Protected Member Functions

 ClassDef (StEEmcElement, 1)
 Raw hit from StEvent.
 
 ClassDef (StEEmcElement, 1)
 raw hit from StEvent, used for providing StEmcClusters
 

Protected Attributes

Float_t mRaw
 
Float_t mAdc
 
Float_t mEnergy
 
unsigned mStat
 
unsigned mFail
 
TString mName
 
StEmcRawHitmstRawHit
 

Detailed Description

Base class for EEMC detectors.

This class provides the common functionality for EEMC detectors. Each detector will have a raw adc value, ped-subtracted adc value, gain-corrected adc value (aka energy) as well as status bits (fail and stat) and a pointer to the corresponding StEmcRawHit when processing StEvent files.

Author
Jason C. Webb
Date:
2010/08/26 22:49:21
Revision:
1.2

Definition at line 9 of file StEEmcElement.h.

Member Data Documentation

Float_t StEEmcElement::mAdc
protected
  • Ped subtracted ADC

Definition at line 53 of file StEEmcElement.h.

Referenced by adc(), and StEEmcTower::StEEmcTower().

Float_t StEEmcElement::mEnergy
protected
  • EM energy/energy deposit

Definition at line 54 of file StEEmcElement.h.

Referenced by energy(), and StEEmcTower::StEEmcTower().

unsigned StEEmcElement::mFail
protected
  • fatal detector problems

Definition at line 56 of file StEEmcElement.h.

Referenced by energy(), fail(), and StEEmcTower::StEEmcTower().

TString StEEmcElement::mName
protected
Float_t StEEmcElement::mRaw
protected
  • Raw ADC

Definition at line 52 of file StEEmcElement.h.

Referenced by raw(), and StEEmcTower::StEEmcTower().

unsigned StEEmcElement::mStat
protected
  • detector problems

Definition at line 55 of file StEEmcElement.h.

Referenced by stat(), and StEEmcTower::StEEmcTower().


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