StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPhmdCluster.cxx
1 /********************************************************************
2  *
3  * $Id: StPhmdCluster.cxx,v 2.1 2002/12/20 22:33:00 ullrich Exp $
4  *
5  * Author: Subhasis Chattopadhyay, Dec 2002
6  ********************************************************************
7  *
8  * Description: StPhmdCluster is base class for PMD cluster.
9  *
10  ********************************************************************
11  *
12  * $Log: StPhmdCluster.cxx,v $
13  * Revision 2.1 2002/12/20 22:33:00 ullrich
14  * Initial Revision.
15  *
16  ********************************************************************/
17 #include "StPhmdCluster.h"
18 
19 
20 ClassImp(StPhmdCluster)
21 
23 {
24  mModule = 0;
25  mNumberOfCells = 0;
26  mEta = 0;
27  mPhi = 0;
28  mEnergy = 0;
29  mSigma = 0;
30  mPID = 0;
31  mEnergyPID = 0;
32  mMcPID = 0;
33 }
34 
35 StPhmdCluster::~StPhmdCluster(){ /* noop */ }
36 
37 StPtrVecPhmdHit&
38 StPhmdCluster::hit() {return mHits;}
39 
40 const StPtrVecPhmdHit&
41 StPhmdCluster::hit() const {return mHits;}
42 
43 void
44 StPhmdCluster::addHit(StPhmdHit* hit) {mHits.push_back(hit);}
45 
46 ostream& operator<<(ostream &os, const StPhmdCluster& c)
47 {
48  os << "module=" << c.module();
49  os << "\tcells=" << c.numberOfCells();
50  os << "\tenergy=" << c.energy();
51  os << "\teta=" << c.eta();
52  os << "\tphi=" << c.phi();
53  return os;
54 }