StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRpsCluster.h
1 /***************************************************************************
2  *
3  * $Id: StRpsCluster.h,v 2.2 2015/10/02 19:50:09 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, Nov 2009
6  ***************************************************************************
7  *
8  * Description: Reconstructed cluster in the Roman Pot Silicon
9  * detectors.
10  *
11  ***************************************************************************
12  *
13  * $Log: StRpsCluster.h,v $
14  * Revision 2.2 2015/10/02 19:50:09 ullrich
15  * Added mPositionRMS and accessors.
16  *
17  * Revision 2.1 2009/11/23 22:18:25 ullrich
18  * Initial Revision
19  *
20  **************************************************************************/
21 #ifndef StRpsCluster_hh
22 #define StRpsCluster_hh
23 
24 #include <Stiostream.h>
25 #include "StObject.h"
26 
27 class StRpsPlane;
28 
29 class StRpsCluster : public StObject {
30 public:
31  StRpsCluster();
32  StRpsCluster(double pos, double posRMS, short len,
33  double e, double xy, unsigned char qual);
34  ~StRpsCluster();
35 
36  double position() const;
37  double positionRMS() const;
38  short length() const;
39  double energy() const;
40  double xy() const;
41  unsigned char quality() const;
42 
43  unsigned int romanPotId() const;
44  unsigned int planeId() const;
45 
46  void setPosition(double);
47  void setPositionRMS(double);
48  void setLength(short);
49  void setEnergy(double);
50  void setXY(double);
51  void setQuality(unsigned char);
52 
53 protected:
54  friend class StRpsPlane;
55  void setPlaneId(unsigned char);
56  void setRomanPotId(unsigned char);
57 
58  protected:
59  Double_t mPosition;
60  Double_t mPositionRMS;
61  Short_t mLength;
62  Double_t mEnergy;
63  Double_t mXY;
64  UChar_t mQuality;
65  UChar_t mPlaneId;
66  UChar_t mRomanPotId;
67 
68  ClassDef(StRpsCluster,2)
69 };
70 
71 ostream& operator<<(ostream&, const StRpsCluster&);
72 
73 #endif