11 #include "StEEmcPoint.h"
12 #include "StEEmcUtil/EEmcGeom/EEmcGeomDefs.h"
15 #include "StEvent/StEmcPoint.h"
20 StEEmcPoint::StEEmcPoint()
25 for ( Int_t i=0;i<4;i++ ) mEnergy[i]=0.;
28 StEEmcClusterVec_t temp;
29 for ( Int_t i=0;i<4;i++ ) mTowerClusters.push_back(temp);
39 for ( Int_t i = 0; i < 4; i++ )
69 mEmcPoint->setEnergy(
energy() );
75 mEmcPoint->setPositionError( error );
80 mEmcPoint->addCluster( kEndcapEmcTowerId, 0 );
100 otherChi2 *= otherChi2;
102 return myChi2 < otherChi2;
110 std::cout <<
"---------------------------------" << std::endl;
117 for ( UInt_t i=0; i<
mTowers.size(); i++ )
120 for (UInt_t l = 0;l <= 3;l++) {
121 const StEEmcClusterVec_t &
v =
clusters(l);
122 std::cout <<
"layer " << l <<
": # clusters " << v.size() << std::endl;
123 for (UInt_t i = 0;i < v.size();i++) {
125 std::cout <<
"layer " << l <<
", cluster " << i << std::endl;
130 std::cout <<
"ucluster:" << std::endl;
132 std::cout <<
"vcluster:" << std::endl;
Base class for representing EEMC points.
Bool_t chiSquare(const StEEmcPoint &other) const
Chi2 sort method.
StEEmcSmdCluster mSmdClusters[2]
Smd clusters associated with this point.
void print() const
Prints cluster data.
StEmcPoint * mEmcPoint
Pointer to corresponding StEmcPoint (StEvent only)
Float_t mResidueU
Residual in U.
std::vector< StEEmcClusterVec_t > mTowerClusters
Tower clusters in each layer.
Int_t mRelatives
Number of points which share tower energy with this point.
TVector3 mPosition
Position of the point.
std::vector< Float_t > mWeights
Vector of weights.
Float_t mEnergy[4]
Energy of the point.
const TVector3 & position() const
Get the position of this point.
A base class for describing clusters of EEMC towers.
Float_t v() const
Returns mean V position.
Float_t energy()
Get the energy of this point.
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.