StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtCosmicTrack.h
1 /***************************************************************************
2  *
3  * $Id: StFgtCosmicTrack.h,v 1.1 2012/01/31 23:25:35 avossen Exp $
4  * Author: C. K. Riley (ckriley@bnl.gov), Oct. 10 2011
5  *
6  ***************************************************************************
7  *
8  * Description: container class for cosmic tracks from teststand
9  *
10  ***************************************************************************
11  *
12  * $Log: StFgtCosmicTrack.h,v $
13  * Revision 1.1 2012/01/31 23:25:35 avossen
14  * moved StFgtCosmicTrackMaker to StFgtPool
15  *
16  * Revision 1.3 2011/11/25 20:24:59 ckriley
17  * now will look at all possible point combinations for tracks and pick the best one
18  *
19  * Revision 1.2 2011/11/09 20:56:58 ckriley
20  * working version for new containers
21  *
22  * Revision 1.1 2011/11/01 18:49:59 sgliske
23  * moved from StEvent/StFgtEvent to StFgtCosmicTrackMaker
24  *
25  * Revision 1.8 2011/10/26 19:44:28 ckriley
26  * fix
27  *
28  * Revision 1.5 2011/10/20 17:13:44 ckriley
29  * major update -> headers, tracks stored in StFgtEvent instead of StFgtDisc, changes to trackmaker and algorithms
30  *
31  *
32  **************************************************************************/
33 
34 #ifndef _ST_FGT_COSMIC_TRACK_H_
35 #define _ST_FGT_COSMIC_TRACK_H_
36 
37 #include <vector>
38 #include "Stypes.h"
39 
40 class StFgtCosmicTrack;
41 typedef std::vector< StFgtCosmicTrack > StFgtCosmicTrackVec;
42 
44  public:
45  // constructors
47  StFgtCosmicTrack( Short_t key, Float_t a=1, Float_t b=1, Float_t x_0=0, Float_t y_0=0, Float_t varX=1, Float_t varY=1, Float_t chi2=1, Float_t hitX=0, Float_t hitY=0, Bool_t isTrack=0 );
49  StFgtCosmicTrack& operator=(const StFgtCosmicTrack&);
50 
51  // deconstructor
53 
54  // accessors
55  Short_t getKey() const;
56  Float_t getLineParameterA() const;
57  Float_t getLineParameterB() const;
58  Float_t getLineParameterX_0() const;
59  Float_t getLineParameterY_0() const;
60  Float_t getVarX() const;
61  Float_t getVarY() const;
62  Float_t getChiSquare() const;
63  Float_t getHitX() const;
64  Float_t getHitY() const;
65  Float_t getIsTrack() const;
66 
67  // modifiers
68  void setKey( Short_t key );
69 
70  protected:
71  // data members
72  Short_t mKey;
73  Float_t mA;
74  Float_t mB;
75  Float_t mX_0;
76  Float_t mY_0;
77  Float_t mVarX; // dX
78  Float_t mVarY; // dY
79  Float_t mChi2;
80  Float_t mHitX; // actual point on mid quad
81  Float_t mHitY; // actual point on mid quad
82  Bool_t mIsTrack;
83 
84  private:
85  ClassDef(StFgtCosmicTrack,1);
86 };
87 
88 // inline functions
89 
90 // deconstructor
91 inline StFgtCosmicTrack::~StFgtCosmicTrack() { /* */ };
92 
93 // accessors
94 inline Short_t StFgtCosmicTrack::getKey() const {
95  return mKey;
96 };
97 
98 inline Float_t StFgtCosmicTrack::getLineParameterA() const {
99  return mA;
100 };
101 
102 inline Float_t StFgtCosmicTrack::getLineParameterB() const {
103  return mB;
104 };
105 
106 inline Float_t StFgtCosmicTrack::getLineParameterX_0() const {
107  return mX_0;
108 };
109 
110 inline Float_t StFgtCosmicTrack::getLineParameterY_0() const {
111  return mY_0;
112 };
113 
114 inline Float_t StFgtCosmicTrack::getVarX() const {
115  return mVarX;
116 };
117 
118 inline Float_t StFgtCosmicTrack::getVarY() const {
119  return mVarY;
120 };
121 
122 inline Float_t StFgtCosmicTrack::getChiSquare() const {
123  return mChi2;
124 };
125 
126 inline Float_t StFgtCosmicTrack::getHitX() const {
127  return mHitX;
128 };
129 
130 inline Float_t StFgtCosmicTrack::getHitY() const {
131  return mHitY;
132 };
133 
134 inline Float_t StFgtCosmicTrack::getIsTrack() const {
135  return mIsTrack;
136 };
137 
138 
139 // modifiers
140 inline void StFgtCosmicTrack::setKey( Short_t key ){
141  mKey = key;
142 };
143 
144 #endif