StFms  0.0.0
FMS software in the STAR framework
StFmsCluster.cxx
Go to the documentation of this file.
1 // $Id$
2 //
3 // $Log$
12 #include "StEvent/StFmsCluster.h"
13 
14 #include "St_base/StMessMgr.h"
15 
16 #define MAX_PHOTON_PER_CLUSTER 2
17 
19  : StObject(), mCategory(0), mNTowers(0), mNPhotons(0), mEnergy(0.), mX(0.),
20  mY(0.), mSigmaMin(0.), mSigmaMax(0.), mChi2Ndf1Photon(-1.),
21  mChi2Ndf2Photon(-1.), mId(0) { }
22 
24 }
25 
26 void StFmsCluster::Print(Option_t* /* not used */) const {
27  LOG_INFO << "========StFmsCluster:\n\tcatag:\t" << category()
28  << "\n\tnumberTower:\t" << nTowers()
29  << "\n\tnPhoton:\t" << nPhotons()
30  << "\n\tcluster energy:\t" << energy()
31  << "\n\tx0:\t" << x()
32  << "\n\ty0:\t" << y()
33  << "\n\tsiggmaMax:\t" << sigmaMax()
34  << "\n\tsigmaMax:\t" << sigmaMin()
35  << "\n\tchi2NdfPh1:\t" << chi2Ndf1Photon()
36  << "\n\tchi2NdfPh2:\t" << chi2Ndf2Photon()
37  << "\n\tid:\t" << id()
38  << "\n\tPhoton List: \n" << endm;
39 }
40 
41 Bool_t StFmsCluster::setNPhotons(Int_t nPhoton) {
42  if (nPhoton <= 0 || nPhoton > MAX_PHOTON_PER_CLUSTER) {
43  LOG_ERROR << "StFmsCluster::setNPhotons() illegal nPhoton" << endm;
44  return false;
45  } // if
46  mNPhotons = nPhoton;
47  return true;
48 }
Float_t sigmaMax() const
Definition: StFmsCluster.h:63
Float_t x() const
Definition: StFmsCluster.h:59
Declaration of StFmsCluster, a group of adjacent FMS hits.
Int_t mNPhotons
Number of photons forming this cluster.
Definition: StFmsCluster.h:113
Int_t nTowers() const
Definition: StFmsCluster.h:53
Float_t chi2Ndf2Photon() const
Definition: StFmsCluster.h:69
Bool_t setNPhotons(Int_t nPhoton)
Int_t nPhotons() const
Definition: StFmsCluster.h:55
Float_t y() const
Definition: StFmsCluster.h:61
void Print(Option_t *optionNotUsed="") const
Int_t category() const
Definition: StFmsCluster.h:51
#define MAX_PHOTON_PER_CLUSTER
Float_t sigmaMin() const
Definition: StFmsCluster.h:65
Float_t energy() const
Definition: StFmsCluster.h:57
Float_t chi2Ndf1Photon() const
Definition: StFmsCluster.h:67
Int_t id() const
Definition: StFmsCluster.h:71