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
StEEmcTower Class Reference

Base class for representing tower, preshower and postshower elements. More...

Inheritance diagram for StEEmcTower:
StEEmcElement StEEmcElement

Public Member Functions

 StEEmcTower ()
 Constructor.
 
virtual ~StEEmcTower ()
 Destructor.
 
 StEEmcTower (const StEEmcTower &other)
 copy constructor
 
TVector3 direction (Float_t zvertex=0.0) const
 
void index (Int_t i)
 
void layer (Int_t l)
 Sets the layer, [0-4]=[TPQR].
 
void et (Float_t e)
 
Int_t index () const
 Returns index of this tower, pre- or postshower element.
 
Int_t layer () const
 Returns layer of this tower element, [0-4]=[TPQR].
 
Int_t sector () const
 Returns sector of this tower, pre- or postshower element.
 
Int_t subsector () const
 Returns subsector of this tower, pre- or postshower element.
 
Int_t etabin () const
 Returns the etabin of this tower, pre- or postshower element.
 
Int_t phibin () const
 Returns the phibin of this tower.
 
Float_t et () const
 Returns the "E_T" response of the tower.
 
void neighbor (StEEmcTower *n)
 add a tower to list of neighbors
 
Int_t numberOfNeighbors () const
 get the number of neighboring towers
 
StEEmcTowerneighbor (Int_t i)
 returns a specific neighbor [0,numberOfNeighbors)
 
const StEEmcTowerneighbor (Int_t i) const
 
Bool_t isNeighbor (const StEEmcTower &t) const
 
void print () const
 Print a summary of this tower.
 
void printLine () const
 Print a one line summary of this tower.
 
Bool_t operator< (const StEEmcTower &other) const
 A tower is "less than" another tower if its energy is less than it.
 
virtual void Clear (Option_t *opts="")
 Clears the tower.
 
 StEEmcTower (const StEEmcTower &other)
 copy constructor
 
void index (Int_t i)
 
void layer (Int_t l)
 Sets the layer, [0-4]=[TPQR].
 
void et (Float_t e)
 
Int_t index ()
 Returns index of this tower, pre- or postshower element.
 
Int_t layer ()
 Returns layer of this tower element, [0-4]=[TPQR].
 
Int_t sector ()
 Returns sector of this tower, pre- or postshower element.
 
Int_t subsector ()
 Returns subsector of this tower, pre- or postshower element.
 
Int_t etabin ()
 Returns the etabin of this tower, pre- or postshower element.
 
Int_t phibin ()
 Returns the phibin of this tower.
 
Float_t et ()
 Returns the "E_T" response of the tower.
 
void neighbor (StEEmcTower *n)
 add a tower to list of neighbors
 
Int_t numberOfNeighbors ()
 get the number of neighboring towers
 
StEEmcTower neighbor (Int_t i)
 returns a specific neighbor [0,numberOfNeighbors)
 
Bool_t isNeighbor (StEEmcTower t)
 
void print ()
 Print a summary of this tower.
 
void printLine ()
 
Bool_t operator< (const StEEmcTower &other) const
 
- Public Member Functions inherited from StEEmcElement
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
 
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 (StEEmcTower, 1)
 Makes class available to root.
 
 ClassDef (StEEmcTower, 1)
 
- Protected Member Functions inherited from StEEmcElement
 ClassDef (StEEmcElement, 1)
 Raw hit from StEvent.
 
 ClassDef (StEEmcElement, 1)
 raw hit from StEvent, used for providing StEmcClusters
 

Protected Attributes

Int_t mIndex
 
Int_t mLayer
 
Int_t mSector
 
Int_t mSubsector
 
Int_t mEtabin
 
Int_t mPhibin
 
Float_t mET
 Equivalent transverse energy, assuming a vertex of 0,0,0.
 
StEEmcTowerPtrVec_t mNeighbors
 
- Protected Attributes inherited from StEEmcElement
Float_t mRaw
 
Float_t mAdc
 
Float_t mEnergy
 
unsigned mStat
 
unsigned mFail
 
TString mName
 
StEmcRawHitmstRawHit
 

Detailed Description

Base class for representing tower, preshower and postshower elements.

This class inherits the StEEmcElement properies. In addition, each tower object stores its index in a 720 element array. It knows its sector, subsector and etabin. It also has pointers to its 8 nearest neighbors on the endcap.

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

Definition at line 11 of file StEEmcTower.h.

Member Function Documentation

TVector3 StEEmcTower::direction ( Float_t  zvertex = 0.0) const

Returns a direction vector pointing from the specified vertex to the center of the tower

Definition at line 127 of file StEEmcTower.cxx.

References etabin(), EEmcGeomSimple::getTowerCenter(), EEmcGeomSimple::Instance(), sector(), and subsector().

void StEEmcTower::et ( Float_t  e)

Sets the equivalent "E_T" response, assuming the particle originated from the nominal vertex of 0,0,0.

void StEEmcTower::et ( Float_t  e)
inline

Sets the equivalent "E_T" response, assuming the particle originated from the nominal vertex of 0,0,0.

Definition at line 34 of file StEEmcTower.h.

References mET.

Referenced by StEEmcPi0Analysis::accept(), StEEmcIUPi0Analysis::accept(), StEEmcA2EMaker::addTowerHit(), StEEmcQAMaker::CheckTriggers(), and StEEmcFilterMaker::Make().

void StEEmcTower::index ( Int_t  i)

Sets the index for this tower, pre- or postshower element. See StEEmcAnalysisMaker. This single index will define the position of the element on the endcap, as well as its neighbors.

void StEEmcTower::index ( Int_t  i)
Bool_t StEEmcTower::isNeighbor ( StEEmcTower  t)

returns true if the specified tower neighbors this one or is equal to this tower.

passed a copy of this tower, return true

outside of eta range

neighbors in phi

test for cyclic neighbor in phi

neighbors in phi

Definition at line 78 of file StEEmcTower.cxx.

References etabin(), index(), and phibin().

Bool_t StEEmcTower::isNeighbor ( const StEEmcTower t) const

returns true if the specified tower neighbors this one or is equal to this tower.

passed a copy of this tower, return true

outside of eta range

neighbors in phi

test for cyclic neighbor in phi

neighbors in phi

Definition at line 98 of file StEEmcTower.cxx.

References etabin(), index(), and phibin().

Referenced by StEEmcPointMaker::fracp2t(), StEEmcIUPointMaker::fracp2t(), StEEmcCluster::isNeighbor(), and StEEmcGenericClusterMaker::match().

Member Data Documentation

Int_t StEEmcTower::mEtabin
protected
  • Etabin of the tower [0,12)

Definition at line 80 of file StEEmcTower.h.

Referenced by etabin(), index(), and StEEmcTower().

Int_t StEEmcTower::mIndex
protected
  • Index of the tower [0,720)

Definition at line 76 of file StEEmcTower.h.

Referenced by index(), print(), and StEEmcTower().

Int_t StEEmcTower::mLayer
protected
  • Layer of the tower element 0=T,1=P,2=Q,3=R

Definition at line 77 of file StEEmcTower.h.

Referenced by index(), layer(), and StEEmcTower().

StEEmcTowerPtrVec_t StEEmcTower::mNeighbors
protected

List of pointers to neighboring towers. User never sees the pointer.

Definition at line 88 of file StEEmcTower.h.

Referenced by neighbor(), numberOfNeighbors(), and StEEmcTower().

Int_t StEEmcTower::mPhibin
protected
  • Phibin of the tower [0,60)

Definition at line 81 of file StEEmcTower.h.

Referenced by index(), phibin(), and StEEmcTower().

Int_t StEEmcTower::mSector
protected
  • Sector of the tower [0,12)

Definition at line 78 of file StEEmcTower.h.

Referenced by index(), sector(), and StEEmcTower().

Int_t StEEmcTower::mSubsector
protected
  • Subsector of the tower [0,5) = A-E

Definition at line 79 of file StEEmcTower.h.

Referenced by index(), StEEmcTower(), and subsector().


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