17 #include "StFcsCluster.h"
19 #include "StMessMgr.h"
21 #include "StFcsPoint.h"
22 #include "StFwdTrack.h"
24 static const char rcsid[] =
"$Id: StFcsCluster.cxx,v 2.1 2021/01/11 20:25:37 ullrich Exp $";
26 StFcsCluster::StFcsCluster():
StObject(), mFourMomentum(0.,0.,0.,0.) { }
28 StFcsCluster::~StFcsCluster() { }
32 for(
int i=0; i<n; i++)
if(mNeighbor[i]==neighbor)
return;
33 mNeighbor.push_back(neighbor);
41 mPoints.push_back(p1);
42 mPoints.push_back(p2);
49 void StFcsCluster::sortTrackByPT() {
51 return b->momentum().perp() < a->momentum().perp();
55 void StFcsCluster::print(Option_t *option)
const {
57 "StFcsCluster id=%4d ctg=%1d n=%2d nNeigh=%1d nPoints=%1d loc=%7.2f %7.2f PXYZE=%7.2lf %7.2lf %7.2lf %7.2lf E=%7.2lf sigMin/max=%7.2f %7.2f Chi2=%7.2f %7.2f",
58 id(), category(), nTowers(), nNeighbor(),nPoints(),
60 fourMomentum().px(),fourMomentum().py(),fourMomentum().pz(),fourMomentum().e(),
61 energy(), sigmaMin(), sigmaMax(), chi2Ndf1Photon(), chi2Ndf2Photon()) << endl;