1 #ifndef __StEEmcPoint_h__
2 #define __StEEmcPoint_h__
18 #include "StEEmcPool/StEEmcA2EMaker/StEEmcTower.h"
19 #include "StEEmcPool/StEEmcClusterMaker/StEEmcCluster.h"
20 #include "StEEmcPool/StEEmcClusterMaker/StEEmcSmdCluster.h"
95 Float_t
u()
const {
return mU; }
97 void u(Float_t uu){
mU=uu; }
100 Float_t
v()
const {
return mV; }
102 void v(Float_t vv){
mV=vv; }
121 Int_t key()
const {
return mKey; }
122 void key( Int_t k ) { mKey = k; }
124 Float_t asymmetry()
const {
132 Float_t chisquared()
const {
135 Float_t nmip = 1000.0*esum / 1.3;
136 if ( nmip > 0. )
return (edif*edif)/nmip;
186 typedef std::vector<StEEmcPoint> StEEmcPointVec_t;
191 return TMath::Abs(me.asymmetry()) < TMath::Abs(other.asymmetry());
Float_t residueU() const
Get the residual in the U plane.
void cluster(const StEEmcSmdCluster &c, Int_t plane)
Add an smd cluster to this point.
Base class for representing EEMC points.
Float_t weight(Int_t t) const
Gets the weight associated with a specific tower.
void v(Float_t vv)
Sets mean U position.
void energy(Float_t e, Int_t layer=0)
Set the energy of this point.
Int_t numberOfTowers() const
Gets the number of towers.
Bool_t chiSquare(const StEEmcPoint &other) const
Chi2 sort method.
Float_t energy(Int_t layer=0) const
Get the energy of this point.
Int_t sector() const
Returns the sector.
void fraction(Float_t f)
Set the fraction of the tower energy used.
StEEmcSmdCluster mSmdClusters[2]
Smd clusters associated with this point.
void sector(Int_t s)
Sets the sector.
Bool_t operator<(const StEEmcPoint &other) const
Point is less than another based on energy.
Float_t fraction() const
Get the fraction of tower energy associated with this point.
Float_t u() const
Returns mean U position.
void numberOfRelatives(Int_t r)
Set the number of other points which share tower energy.
StEmcPoint * mEmcPoint
Pointer to corresponding StEmcPoint (StEvent only)
Float_t mResidueU
Residual in U.
void u(Float_t uu)
Sets mean U position.
void sigma(Float_t s)
Sets the width.
void residueV(Float_t r)
Set the residual in the V plane.
Float_t sigma() const
Returns the width.
StEEmcSmdCluster & cluster(Int_t c)
Base class for representing tower, preshower and postshower elements.
std::vector< StEEmcClusterVec_t > mTowerClusters
Tower clusters in each layer.
Int_t mRelatives
Number of points which share tower energy with this point.
Float_t residueV() const
Get the residual in the V plane.
TVector3 mPosition
Position of the point.
void residueU(Float_t r)
Set the residual in the U plane.
A base class for representing clusters of EEMC smd strips.
std::vector< Float_t > mWeights
Vector of weights.
void tower(const StEEmcTower &t, Float_t w=1.)
Add a tower with specified weight to the point.
Float_t mEnergy[4]
Energy of the point.
Int_t numberOfRelatives() const
void position(const TVector3 &p)
Set the position of this point at the SMD plane.
const TVector3 & position() const
Get the position of this point.
A base class for describing clusters of EEMC towers.
void cluster(const StEEmcCluster &c, Int_t layer)
Add a tower cluster to this point.
Float_t v() const
Returns mean V position.
Float_t energy()
Get the energy of this point.
ClassDef(StEEmcPoint, 1)
Makes class available to root.
const StEEmcTower & tower(Int_t t) const
Gets a specific tower.
Float_t mResidueV
Residual in V.
StEEmcClusterVec_t & clusters(Int_t layer)
Returns tower clusters for the specified layer 0=T, 1=P, 2=Q, 3=R, 4+=crash.