StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjPrimaryVertex.h
1 // -*- mode:c++ -*-
2 //
3 // Pibero Djawotho <pibero@tamu.edu>
4 // Texas A&M University
5 // 28 May 2010
6 //
7 
8 #ifndef STJ_PRIMARY_VERTEX_H
9 #define STJ_PRIMARY_VERTEX_H
10 
11 #include "TObject.h"
12 #include "TVector3.h"
13 
14 class StjPrimaryVertex : public TObject {
15 public:
17  : mPosition(-999,-999,-999)
18  , mPosError(-999,-999,-999)
19  , mVertexFinderId(-999)
20  , mRanking(-999)
21  , mNTracksUsed(-999)
22  , mNBTOFMatch(-999)
23  , mNCTBMatch(-999)
24  , mNBEMCMatch(-999)
25  , mNEEMCMatch(-999)
26  , mNCrossCentralMembrane(-999)
27  , mSumTrackPt(-999)
28  , mMeanDip(-999)
29  , mChiSquared(-999)
30  , mRefMultPos(-999)
31  , mRefMultNeg(-999)
32  , mRefMultFtpcEast(-999)
33  , mRefMultFtpcWest(-999)
34  {
35  }
36 
37  const TVector3& position() const { return mPosition; }
38  const TVector3& posError() const { return mPosError; }
39  int vertexFinderId() const { return mVertexFinderId; }
40  float ranking() const { return mRanking; }
41  short nTracksUsed() const { return mNTracksUsed; }
42  short nBTOFMatch() const { return mNBTOFMatch; }
43  short nCTBMatch() const { return mNCTBMatch; }
44  short nBEMCMatch() const { return mNBEMCMatch; }
45  short nEEMCMatch() const { return mNEEMCMatch; }
46  short nCrossCentralMembrane() const { return mNCrossCentralMembrane; }
47  float sumTrackPt() const { return mSumTrackPt; }
48  float meanDip() const { return mMeanDip; }
49  float chiSquared() const { return mChiSquared; }
50  short refMultPos() const { return mRefMultPos; }
51  short refMultNeg() const { return mRefMultNeg; }
52  short refMult() const { return refMultPos() + refMultNeg(); }
53  short refMultFtpcEast() const { return mRefMultFtpcEast; }
54  short refMultFtpcWest() const { return mRefMultFtpcWest; }
55  short refMultFtpc() const { return refMultFtpcEast() + refMultFtpcWest(); }
56 
57 private:
58  friend class StjTPCMuDst;
59  friend class StjMCMuDst;
60 
61  TVector3 mPosition;
62  TVector3 mPosError;
63  int mVertexFinderId;
64  float mRanking;
65  short mNTracksUsed;
66  short mNBTOFMatch;
67  short mNCTBMatch;
68  short mNBEMCMatch;
69  short mNEEMCMatch;
70  short mNCrossCentralMembrane;
71  float mSumTrackPt;
72  float mMeanDip;
73  float mChiSquared;
74  short mRefMultPos;
75  short mRefMultNeg;
76  short mRefMultFtpcEast;
77  short mRefMultFtpcWest;
78 
79  ClassDef(StjPrimaryVertex,0);
80 };
81 
82 #endif // STJ_PRIMARY_VERTEX_H