StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPhmdCluster.h
1 
5 /********************************************************************
6  *
7  * $Id: StPhmdCluster.h,v 2.3 2003/09/02 17:58:05 perev Exp $
8  *
9  * Author: Subhasis Chattopadhyay, Dec 2002
10  ********************************************************************
11  *
12  * Description: Base class for PMD cluster
13  *
14  ********************************************************************
15  *
16  * $Log: StPhmdCluster.h,v $
17  * Revision 2.3 2003/09/02 17:58:05 perev
18  * gcc 3.2 updates + WarnOff
19  *
20  * Revision 2.2 2003/04/22 00:08:13 ullrich
21  * Removed //! comments
22  *
23  * Revision 2.1 2002/12/20 22:33:00 ullrich
24  * Initial Revision.
25  *
26  ********************************************************************/
27 #ifndef STAR_StPhmdCluster
28 #define STAR_StPhmdCluster
29 
30 #include <math.h>
31 #include <Stiostream.h>
32 #include "StObject.h"
33 #include "StPhmdHit.h"
34 #include "StContainers.h"
35 
36 class StPhmdCluster : public StObject {
37 public:
38  StPhmdCluster();
39  ~StPhmdCluster();
40 
41  int module() const;
42  int numberOfCells() const;
43  float eta() const;
44  float phi() const;
45  float energy() const;
46  float sigma() const;
47  int energyPid() const;
48  int pid() const;
49  int mcPid() const;
50 
51  void setModule(int);
52  void setNumberOfCells(int);
53  void setEta(float);
54  void setPhi(float);
55  void setEnergy(float);
56  void setSigma(float);
57  void setEnergyPid(int);
58  void setPid(int);
59  void setMcPid(int);
60 
61  void addHit(StPhmdHit*);
62 
63  StPtrVecPhmdHit& hit();
64  const StPtrVecPhmdHit& hit() const;
65 
66 private:
67  Int_t mModule; // supermodule no
68  Int_t mNumberOfCells; // no. of cells in the cluster
69  Float_t mEta; // cluster eta
70  Float_t mPhi; // cluster phi
71  Float_t mEnergy; // cluster edep
72  Float_t mSigma; // sigma of the cluster
73  Int_t mPID; // cluster PID based on matching
74  Int_t mEnergyPID; // clusterPID based on edep
75  Int_t mMcPID; // Mc Cluster PID
76  StPtrVecPhmdHit mHits;
77 
78  ClassDef(StPhmdCluster,1)
79 };
80 
81 ostream &operator<<(ostream&, StPhmdCluster&); // Printing operator
82 
83 
84 inline int StPhmdCluster::module() const {return mModule;}
85 inline int StPhmdCluster::numberOfCells() const {return mNumberOfCells;}
86 inline float StPhmdCluster::eta() const {return mEta;}
87 inline float StPhmdCluster::phi() const {return mPhi;}
88 inline float StPhmdCluster::energy() const {return mEnergy;}
89 inline float StPhmdCluster::sigma() const {return mSigma;}
90 inline int StPhmdCluster::energyPid() const {return mEnergyPID;}
91 inline int StPhmdCluster::pid() const {return mPID;}
92 inline int StPhmdCluster::mcPid() const {return mMcPID;}
93 
94 inline void StPhmdCluster::setModule(int var) {mModule=var;}
95 inline void StPhmdCluster::setNumberOfCells(int var) {mNumberOfCells=var;}
96 inline void StPhmdCluster::setEta(float var) {mEta=var;}
97 inline void StPhmdCluster::setPhi(float var) {mPhi=var;}
98 inline void StPhmdCluster::setEnergy(float var) {mEnergy=var;}
99 inline void StPhmdCluster::setSigma(float var) {mSigma=var;}
100 inline void StPhmdCluster::setEnergyPid(int var) {mEnergyPID=var;}
101 inline void StPhmdCluster::setPid(int var) {mPID=var;}
102 inline void StPhmdCluster::setMcPid(int var) {mMcPID=var;}
103 
104 ostream& operator<<(ostream &, const StPhmdCluster&);
105 
106 #endif
107 
108 
109 
110 
111 
112 
113