41 #include "StEmcCluster.h"
45 static const
char rcsid[] = "$Id:
StEmcCluster.cxx,v 2.9 2013/01/15 23:21:05 fisyak Exp $";
49 StEmcCluster::~StEmcCluster() {};
52 StEmcCluster::eta()
const {
return mEta;}
55 StEmcCluster::phi()
const {
return mPhi;}
58 StEmcCluster::sigmaEta()
const {
return mSigmaEta;}
61 StEmcCluster::sigmaPhi()
const {
return mSigmaPhi;}
64 StEmcCluster::energy()
const {
return mEnergy;}
67 StEmcCluster::nHits()
const {
return mHits.size();}
70 StEmcCluster::nNeighbors()
const {
return mNeighbors.size();}
73 StEmcCluster::nTracks()
const {
return mTracks.size();}
76 StEmcCluster::hit() {
return mHits;}
78 const StPtrVecEmcRawHit&
79 StEmcCluster::hit()
const {
return mHits;}
82 StEmcCluster::neighbor() {
return mNeighbors;}
84 const StPtrVecEmcCluster&
85 StEmcCluster::neighbor()
const {
return mNeighbors;}
88 StEmcCluster::track() {
return mTracks;}
91 StEmcCluster::track()
const {
return mTracks;}
94 StEmcCluster::setEta(
float ver) {mEta=ver;}
97 StEmcCluster::setPhi(
float ver) {mPhi=ver;}
100 StEmcCluster::setSigmaEta(
float ver) {mSigmaEta=ver;}
103 StEmcCluster::setSigmaPhi(
float ver) {mSigmaPhi=ver;}
106 StEmcCluster::setEnergy(
float ver) {mEnergy=ver;}
112 StEmcCluster::addNeighbor(
StEmcCluster* cluster) {mNeighbors.push_back(cluster);}
115 StEmcCluster::addTrack(
StTrack*
track) {mTracks.push_back(track);}
120 return os << Form(
"EmcCluster Energy %5.2f Eta %7.4f +/- %6.4f", cl.energy(), cl.eta(),cl.sigmaEta())
121 << Form(
" Phi %7.4f +/- %6.4f",cl.phi(),cl.sigmaPhi())
122 <<
" # of hits " << cl.nHits() <<
",# of neighbor " << cl.nNeighbors();
125 void StEmcCluster::Print(Option_t *option)
const {cout << *
this << endl;}