StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFpsSlat.h
1 /***************************************************************************
2  *
3  * $Id: StFpsSlat.h,v 2.2 2015/10/21 14:45:55 ullrich Exp $
4  *
5  * Author: Jingguo Ma, Akio Ogawa, Sep 2015
6  ***************************************************************************
7  *
8  * Description: StFpsSlat is data for individual FPS slat
9  *
10  ***************************************************************************
11  *
12  * $Log: StFpsSlat.h,v $
13  * Revision 2.2 2015/10/21 14:45:55 ullrich
14  * Moved 7 members out of the schema.
15  *
16  * Revision 2.1 2015/09/01 18:26:45 ullrich
17  * Initial Revision.
18  *
19  **************************************************************************/
20 #ifndef StFpsSlat_hh
21 #define StFpsSlat_hh
22 
23 #include "Stiostream.h"
24 #include "StObject.h"
25 #include "StContainers.h"
26 #include "StEnumerations.h"
27 
28 class StFpsSlat : public StObject {
29 public:
30  StFpsSlat();
31  StFpsSlat(int slatid, float mip);
32  ~StFpsSlat();
33 
34  int slatId() const;
35  float mip() const;
36 
37  void setSlatId(int);
38  void setMip(float);
39 
40  unsigned int nPoint(int type) const; // 0 for closest, 1/2/3 for 2nd/3rd/4th closest, 5 for eithe
41  StPtrVecFmsPoint& point(int type); // return fmsPoints pointing to the slat
42  const StPtrVecFmsPoint& point(int type) const;
43  void addPoint(StFmsPoint* point, int type);
44 
45  void print(int option=0) const;
46 
47 protected:
48  Int_t mSlatId;
49  Float_t mMip;
50  UInt_t mNPoint[kFpsNCandidate+1];
51  StPtrVecFmsPoint mPoint1;
52  StPtrVecFmsPoint mPoint2;
53  StPtrVecFmsPoint mPoint3;
54  StPtrVecFmsPoint mPoint4;
55 
56  ClassDef(StFpsSlat,2)
57 };
58 
59 inline int StFpsSlat::slatId() const {return mSlatId;}
60 inline float StFpsSlat::mip() const {return mMip;}
61 inline void StFpsSlat::setSlatId(int slatid) {mSlatId=slatid;}
62 inline void StFpsSlat::setMip(float mip) {mMip=mip;}
63 inline unsigned int StFpsSlat::nPoint(int type) const {return mNPoint[type];}
64 
65 #endif
StPtrVecFmsPoint mPoint4
3rd closest points
Definition: StFpsSlat.h:54
StPtrVecFmsPoint mPoint1
0 for closest, 1/2/3 for 2nd/3rd/4th closest, 5 for either
Definition: StFpsSlat.h:51
StPtrVecFmsPoint mPoint3
2nd closest points
Definition: StFpsSlat.h:53
StPtrVecFmsPoint mPoint2
closest points
Definition: StFpsSlat.h:52