30 #include "StFmsCluster.h"
32 #include "StMessMgr.h"
34 static const char rcsid[] =
"$Id: StFmsCluster.cxx,v 2.5 2016/06/07 15:51:34 akio Exp $";
36 StFmsCluster::StFmsCluster()
37 :
StObject(), mDetectorId(0),mCategory(0), mNTowers(0), mEnergy(0.), mX(0.),
38 mY(0.), mSigmaMin(0.), mSigmaMax(0.), mChi2Ndf1Photon(-1.),
39 mChi2Ndf2Photon(-1.), mId(0), mFourMomentum(0.,0.,0.,0.) { }
41 StFmsCluster::~StFmsCluster() { }
43 void StFmsCluster::print(Option_t *option)
const {cout<< *
this <<endl;}
45 ostream& operator<<(ostream &os,
const StFmsCluster& cluster) {
46 os << Form(
"StFmsCluster id=%4d categ=%1d nTow=%2d nPhoton=%1d loc=%7.2f %7.2f PXYZE=%7.2f %7.2f %7.2f %7.2f E=%7.2f sigMin/max=%7.2f %7.2f",
47 cluster.id(), cluster.category(), cluster.nTowers(), cluster.nPhotons(),
48 cluster.x(), cluster.y(),
49 cluster.fourMomentum().px(),cluster.fourMomentum().py(),cluster.fourMomentum().pz(),cluster.fourMomentum().e(),
50 cluster.energy(), cluster.sigmaMin(), cluster.sigmaMax());