StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuFmsCluster.cxx
1 /*****************************************************************************
2  *
3  * $Id: StMuFmsCluster.cxx,v 1.3 2016/06/14 17:11:34 jdb Exp $
4  *
5  * Author: Thomas Burton , 2014
6  *****************************************************************************
7  *
8  * Description: Implementation of StMuFmsCluster, the MuDST FMS cluster class
9  *
10  *****************************************************************************
11  *
12  * $Log: StMuFmsCluster.cxx,v $
13  * Revision 1.3 2016/06/14 17:11:34 jdb
14  * Fixing Coverity Errors:
15  * StMuFmsCluster.cxx : UNINIT_CTOR on member mEnergy
16  * StMuFmsUtile.cxx : DEADCODE on check for null pointer
17  *
18  * Revision 1.2 2015/09/02 22:09:58 jdb
19  * Added Akios changes to Fms
20  *
21  *
22  *****************************************************************************/
23 #include "StMuFmsCluster.h"
24 
25 #include "StFmsCluster.h"
26 
27 StMuFmsCluster::StMuFmsCluster(int detectorId, int category, float energy,
28  float x, float y, float smin, float smax,
29  float chi1, float chi2, int id)
30  : mDetectorId(detectorId), mCategory(category), mEnergy(energy),
31  mX(x), mY(y), mSigmaMin(smin), mSigmaMax(smax),
32  mChi2Ndf1Photon(chi1), mChi2Ndf2Photon(chi2), mId(id){ }
33 
34 StMuFmsCluster::StMuFmsCluster(const StFmsCluster& cluster)
35  : mDetectorId(cluster.detectorId()), mCategory(cluster.category()), mEnergy(cluster.energy()),
36  mX(cluster.x()), mY(cluster.y()),
37  mSigmaMin(cluster.sigmaMin()), mSigmaMax(cluster.sigmaMax()),
38  mChi2Ndf1Photon(cluster.chi2Ndf1Photon()), mChi2Ndf2Photon(cluster.chi2Ndf2Photon()),
39  mId(cluster.id())
40 { }
41 
42 StMuFmsCluster::~StMuFmsCluster() { }
43 
44 void StMuFmsCluster::Clear(Option_t* /* option */) {
45  mHits.Clear();
46  mPhotons.Clear();
47 }
TRefArray mHits
StMuFmsHits in the current cluster.
TRefArray mPhotons
StMuFmsPoints in the cluster.