StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichCluster.cxx
1 /***************************************************************************
2  *
3  * $Id: StRichCluster.cxx,v 2.3 2001/04/05 04:00:52 ullrich Exp $
4  *
5  * Author: Brian Lasiuk, May 2000
6  ***************************************************************************
7  *
8  * Description: Implementation of Cluster definition
9  *
10  ***************************************************************************
11  *
12  * $Log: StRichCluster.cxx,v $
13  * Revision 2.3 2001/04/05 04:00:52 ullrich
14  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
15  *
16  * Revision 2.2 2000/08/08 14:42:10 ullrich
17  * Added missing ClassDef and ClassImp macros.
18  *
19  * Revision 2.1 2000/05/22 21:44:53 ullrich
20  * Initial Revision
21  *
22  **************************************************************************/
23 #include "StRichCluster.h"
24 
25 static const char rcsid[] = "$Id: StRichCluster.cxx,v 2.3 2001/04/05 04:00:52 ullrich Exp $";
26 
27 ClassImp(StRichCluster)
28 
30  : mNumberOfPads(0), mNumberOfLocalMax(0), mFirstPad(0),
31  mAmplitudeSum(0), mAmplitude2Sum(0) {/* noop */}
32 
33 StRichCluster::StRichCluster(int nPads, int nLocMax, int fPad, float ampSum, float amp2Sum, float rms2)
34  : mNumberOfPads(nPads), mNumberOfLocalMax(nLocMax), mFirstPad(fPad),
35  mAmplitudeSum(ampSum), mAmplitude2Sum(amp2Sum), mRms2(rms2) {/* noop */}
36 
37 StRichCluster::~StRichCluster() {/* noop */}
38 
39 int
40 StRichCluster::operator==(const StRichCluster& cluster) const
41 {
42  return ( mNumberOfPads == cluster.mNumberOfPads &&
43  mFirstPad == cluster.mFirstPad &&
44  mNumberOfLocalMax == cluster.mNumberOfLocalMax &&
45  mMinimumAmplitudeOfLocalMax == cluster.mMinimumAmplitudeOfLocalMax &&
46  mAmplitudeSum == cluster.mAmplitudeSum &&
47  mRms2 == cluster.mRms2 );
48 }