StRoot
1
|
Base class for representing tower, preshower and postshower elements. More...
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 | |
StEEmcTower & | neighbor (Int_t i) |
returns a specific neighbor [0,numberOfNeighbors) | |
const StEEmcTower & | neighbor (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. | |
StEmcRawHit * | stemc () |
Returns pointer to StEmcRawHit. | |
const StEmcRawHit * | stemc () 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) |
StEmcRawHit * | stemc () |
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 |
StEmcRawHit * | mstRawHit |
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.
Definition at line 11 of file StEEmcTower.h.
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.
|
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 | ) |
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.
Definition at line 76 of file StEEmcTower.cxx.
References mEtabin, mIndex, mLayer, StEEmcElement::mName, mPhibin, mSector, and mSubsector.
Referenced by StEEmcClusterMaker::buildTowerClusters(), StEEmcIUClusterMaker::buildTowerClusters(), StEEmcPointMaker::countRelatives(), StEEmcIUPointMaker::countRelatives(), StEEmcCluster::hasTower(), isNeighbor(), StEEmcPi0Analysis::Make(), StMyPointMaker::Make(), StEEmcIUCluster::operator==(), StEEmcCluster::operator==(), StEEmcPointMaker::shareEnergySimple(), StEEmcIUPointMaker::shareEnergySimple(), StEEmcPointMaker::shareEnergySmd(), StEEmcIUPointMaker::shareEnergySmd(), StEEmcA2EMaker::StEEmcA2EMaker(), StEEmcPi0Analysis::twoBodyCut(), StEEmcIUPi0Analysis::twoBodyCut(), and StEEmcMixQAMaker::twoBodyCut().
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.
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().
|
protected |
Definition at line 80 of file StEEmcTower.h.
Referenced by etabin(), index(), and StEEmcTower().
|
protected |
Definition at line 76 of file StEEmcTower.h.
Referenced by index(), print(), and StEEmcTower().
|
protected |
Definition at line 77 of file StEEmcTower.h.
Referenced by index(), layer(), and StEEmcTower().
|
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().
|
protected |
Definition at line 81 of file StEEmcTower.h.
Referenced by index(), phibin(), and StEEmcTower().
|
protected |
Definition at line 78 of file StEEmcTower.h.
Referenced by index(), sector(), and StEEmcTower().
|
protected |
Definition at line 79 of file StEEmcTower.h.
Referenced by index(), StEEmcTower(), and subsector().