StFms  0.0.0
FMS software in the STAR framework
StMuFmsCluster.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // $Log$
11 #ifndef STROOT_STMUDSTMAKER_COMMON_STMUFMSCLUSTER_H_
12 #define STROOT_STMUDSTMAKER_COMMON_STMUFMSCLUSTER_H_
13 
14 #include <TObject.h>
15 #include <TRefArray.h>
16 
17 class StFmsCluster; // Equivalent class in StEvent
18 
28 class StMuFmsCluster : public TObject {
29  public:
31  StMuFmsCluster(int detectorId = 0, int category = -1, float energy = 0.f,
32  float x = 0.f, float y = 0.f);
34  explicit StMuFmsCluster(const StFmsCluster&);
36  virtual ~StMuFmsCluster();
38  virtual void Clear(Option_t* option = "");
40  UShort_t detectorId() const { return mDetectorId; }
42  UShort_t category() const { return mCategory; }
44  float energy() const { return mEnergy; }
46  float x() const { return mX; }
48  float y() const { return mY; }
50  TRefArray* hits() { return &mHits; }
52  const TRefArray* hits() const { return &mHits; }
54  TRefArray* photons() { return &mPhotons; }
56  const TRefArray* photons() const { return &mPhotons; }
58  void setDetectorId(UShort_t detector) { mDetectorId = detector; }
60  void setCategory(UShort_t category) { mCategory = category; }
62  void setEnergy(float energy) { mEnergy = energy; }
64  void setX(float x) { mX = x; }
66  void setY(float y) { mY = y; }
67 
68  protected:
69  UShort_t mDetectorId;
70  UShort_t mCategory;
71  Float_t mEnergy;
72  Float_t mX;
73  Float_t mY;
74  TRefArray mHits;
75  TRefArray mPhotons;
76 
77  private:
90  ClassDef(StMuFmsCluster, 1)
91 };
92 #endif // STROOT_STMUDSTMAKER_COMMON_STMUFMSCLUSTER_H_
Float_t mX
Mean x ("center of gravity")
TRefArray * photons()
UShort_t mDetectorId
Detector ID as defined in database.
void setY(float y)
void setEnergy(float energy)
float energy() const
virtual ~StMuFmsCluster()
TRefArray * hits()
float x() const
UShort_t detectorId() const
TRefArray mPhotons
StMuFmsPoints in the cluster.
void setCategory(UShort_t category)
TRefArray mHits
StMuFmsHits in the current cluster.
StMuFmsCluster & operator=(const StMuFmsCluster &)
StMuFmsCluster(int detectorId=0, int category=-1, float energy=0.f, float x=0.f, float y=0.f)
float y() const
UShort_t mCategory
Category of cluster (see EFmsClusterCategory)
const TRefArray * hits() const
Float_t mY
Mean y ("center of gravity")
void setDetectorId(UShort_t detector)
Float_t mEnergy
Total energy contained in the cluster.
const TRefArray * photons() const
virtual void Clear(Option_t *option="")
void setX(float x)
UShort_t category() const