StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPmdCluster.cxx
1 /************************************************************
2  *
3  * $Id: StPmdCluster.cxx,v 1.4 2010/05/28 17:24:19 rashmi Exp $
4  *
5  * Author: Subhasis Chattopadhyay
6  ************************************************************
7  *
8  * Description: StPmdCluster is base class for PMD cluster.
9  *
10  ************************************************************
11  *
12  * $Log: StPmdCluster.cxx,v $
13  * Revision 1.4 2010/05/28 17:24:19 rashmi
14  * Added initialization of mCluSigma in constructor
15  *
16  * Revision 1.3 2003/10/14 07:28:53 subhasis
17  * CluX, CluY added
18  *
19  * Revision 1.2 2003/05/12 12:07:12 subhasis
20  * Mapping added
21  *
22  ************************************************************/
23 #include "StPmdCluster.h"
24 
25 
26 ClassImp(StPmdCluster)
27 
28 //_____________________________________________________________________________
29 
30 StPmdCluster::StPmdCluster(TArrayI *cluster) : StObject()
31 {
32 }
33 //________________________________________________
34 
35 StPmdCluster::StPmdCluster() : StObject()
36 {
37  mCluEdep = 0.0; mCluEta = 0.0; mCluPhi = 0.0;
38  mNumofMems = 0.0 ; mModule = 0;
39  mCluSigmaS = 0.0; mCluSigmaL = 0.0;
40  mCluPID=0; mCluEdepPID=0; mMcCluPID=0;
41  mCluX = 0.0; mCluY = 0.0;
42 
43 }
44 //__________________________________________________
45 
46 void
47 StPmdCluster::print(ostream *os)
48 {
50  *os << " Module " << Module();
51  *os << " Members " << NumofMems();
52  *os << " Edep " << CluEdep();
53  *os << " eta " << CluEta();
54  *os <<" phi " << CluPhi()<< endl;
55 }
56 
57 ostream &operator<<(ostream &os, StPmdCluster &cl)
58 {
59  cl.print(&os); return os;
60 }
61 
62 //--------------------------------------------------
63 void
64 StPmdCluster::Browse(TBrowser *b)
65 {
66  cout << (*this) << endl;
67  StObject::Browse(b);
68 }
69 
70 void StPmdCluster::addHitCollection(StPmdHit* hits)
71 {
72  mHitCollection.Add(hits);
73  }
74 
75 
76 
Int_t Module() const
destructor
Definition: StPmdCluster.h:114
Float_t CluEdep() const
cluster phi
Definition: StPmdCluster.h:119
virtual void print(ostream *os)
Float_t CluPhi() const
cluster eta
Definition: StPmdCluster.h:118
Float_t NumofMems() const
for Supermodule number
Definition: StPmdCluster.h:116
Float_t CluEta() const
number of cells in the cluster as float
Definition: StPmdCluster.h:117