17 #include "StEEmcTower.h"
19 #include "StEEmcUtil/EEmcGeom/EEmcGeomSimple.h"
54 mstRawHit=other.mstRawHit;
61 std::cout <<
"--------------------------- StEEmcTower::print()" << std::endl;
62 std::cout <<
"name = " <<
mName << std::endl;
63 std::cout <<
"index = " <<
mIndex << std::endl;
64 std::cout <<
"energy = " <<
energy() << std::endl;
65 std::cout <<
"raw = " <<
raw() << std::endl;
66 std::cout <<
"adc = " <<
adc() << std::endl;
85 const Char_t *secs[]={
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12"};
86 const Char_t *subs[]={
"A",
"B",
"C",
"D",
"E"};
87 const Char_t *lays[]={
"T",
"P",
"Q",
"R",
"S"};
105 if ( TMath::Abs(t.
etabin()-
etabin()) > 1 )
return false;
110 Int_t dphi = phi1 - phi2;
113 if ( TMath::Abs(dphi) <= 1 )
return true;
116 if ( phi1==59 ) phi1=-1;
117 if ( phi2==59 ) phi2=-1;
121 if ( TMath::Abs(dphi) <= 1 )
return true;
129 TVector3
vertex(0.,0.,zvertex);
133 return position.Unit();
TVector3 getTowerCenter(const UInt_t sec, const UInt_t sub, const UInt_t etabin) const
Bool_t isNeighbor(const StEEmcTower &t) const
static EEmcGeomSimple & Instance()
returns a reference to a static instance of EEmcGeomSimple
Int_t index() const
Returns index of this tower, pre- or postshower element.
StEEmcTower()
Constructor.
StEEmcTowerPtrVec_t mNeighbors
Float_t raw() const
Return raw 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...
Int_t etabin() const
Returns the etabin of this tower, pre- or postshower element.
Int_t subsector() const
Returns subsector of this tower, pre- or postshower element.
void print() const
Print a summary of this tower.
void printLine() const
Print a one line summary of this tower.
Base class for representing tower, preshower and postshower elements.
Float_t adc() const
Return the pedestal-subtracted ADC for this element.
Int_t sector() const
Returns sector of this tower, pre- or postshower element.
Float_t mET
Equivalent transverse energy, assuming a vertex of 0,0,0.
Int_t phibin() const
Returns the phibin of this tower.
TVector3 direction(Float_t zvertex=0.0) const
Base class for EEMC detectors.