StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StKinkMuDst.hh
1 
10 #ifndef STAR_StKinkMuDst
11 #define STAR_StKinkMuDst
12 #include "StKinkBase.hh"
13 
14 class StKinkVertex;
15 
16 class StKinkMuDst : public StKinkBase { // StKinkBase inherits StKinkI methods
17  friend class StMuMomentumShiftMaker;
18 
19 public:
20  StKinkMuDst();
22  ~StKinkMuDst();
23 
24  Float_t dcaParentDaughter() const;
25  Float_t dcaDaughterPrimaryVertex() const;
26  Float_t dcaParentPrimaryVertex() const;
27 
28  Float_t hitDistanceParentDaughter() const;
29  Float_t hitDistanceParentVertex() const;
30  Float_t mindE() const;
31  Float_t decayAngle() const;
32  Float_t parentMomentum() const;
33  Float_t parentPrimMomentum() const;
34  Int_t parentCharge() const;
35  Float_t daughterMomentum() const;
36  Int_t daughterCharge() const;
37  Float_t decayLength() const;
38  Float_t transverseMomentum() const;
39  Float_t transverseMassKaon() const;
40  Float_t transverseMassPion() const;
41  Float_t rapidityKaon() const;
42  Float_t rapidityPion() const;
43  Int_t keyParent() const; // Track id of parent
44  Int_t keyDaughter() const; // Track id of daughter
45 
46  Float_t chi2Kink() const; // Chi square of Kink
47  Float_t clKink() const; // Confidence level of Kink
48  Float_t chi2Parent() const; // Chi square of parent
49  Float_t clParent() const; // Confidence level of parent
50  Float_t chi2Daughter() const; // Chi square of daughter
51  Float_t clDaughter() const; // Confidence level of daughter
52  void setParentBad(); // Set the parent as bad
53  void setDaughterBad(); // Set the daughter as bad
54  Float_t dedxParent() const; // dE/dX of parent
55  Float_t dedxDaughter() const; // dE/dX of daughter
56  Float_t errDedxParent() const; // Error on mean of dE/dX of parent
57  Float_t errDedxDaughter() const; // Error on mean of dE/dX of daughter
58  UShort_t numDedxParent() const; // Number of dE/dX points for parent
59  UShort_t numDedxDaughter() const; // Number of dE/dX points for daughter
60  Float_t lenDedxParent() const; // Length of dE/dX track of parent
61  Float_t lenDedxDaughter() const; // Length of dE/dX track of daughter
62 
63  Float_t mDcaParentDaughter;
64  Float_t mDcaDaughterPrimaryVertex;
65  Float_t mDcaParentPrimaryVertex;
66  Float_t mHitDistanceParentDaughter;
67  Float_t mHitDistanceParentVertex;
68  Float_t mMinDeltaEnergy;
69  Float_t mDecayAngle;
70  Float_t mParentMomentum;
71  Float_t mParentPrimMomentum;
72  Int_t mParentCharge;
73  Float_t mDaughterMomentum;
74  Int_t mDaughterCharge;
75  Float_t mDecayLength;
76  Float_t mTransverseMomentum;
77  Float_t mTransverseMassKaon;
78  Float_t mTransverseMassPion;
79  Float_t mRapidityKaon;
80  Float_t mRapidityPion;
81  Float_t mChi2Kink;
82  Float_t mClKink;
83  Float_t mChi2Parent;
84  Float_t mClParent;
85  Float_t mChi2Daughter;
86  Float_t mClDaughter;
87  Float_t mDedxParent;
88  Float_t mDedxDaughter;
89  Float_t mErrDedxParent;
90  Float_t mErrDedxDaughter;
91  UShort_t mNumDedxParent;
92  UShort_t mNumDedxDaughter;
93  Int_t mKeyParent;
94  Int_t mKeyDaughter;
95 
96 private:
97  void findMinDeltaEnergy(StKinkVertex*);
98  void findDecayLength(StKinkVertex*);
99  void findTransverseMomentum();
100  void findTransverseMassKaon();
101  void findTransverseMassPion();
102  void findRapidityKaon();
103  void findRapidityPion();
104  ClassDef(StKinkMuDst,9)
105 };
106 
107 inline Float_t StKinkMuDst::dcaParentDaughter() const
108  { return mDcaParentDaughter; }
109 inline Float_t StKinkMuDst::dcaDaughterPrimaryVertex() const
110  { return mDcaDaughterPrimaryVertex; }
111 inline Float_t StKinkMuDst::dcaParentPrimaryVertex() const
112  { return mDcaParentPrimaryVertex; }
113 inline Float_t StKinkMuDst::hitDistanceParentDaughter() const
114  { return mHitDistanceParentDaughter; }
115 inline Float_t StKinkMuDst::hitDistanceParentVertex() const
116  { return mHitDistanceParentVertex; }
117 inline Float_t StKinkMuDst::mindE() const { return mMinDeltaEnergy; }
118 inline Float_t StKinkMuDst::decayAngle() const { return mDecayAngle; }
119 inline Float_t StKinkMuDst::parentMomentum() const
120  { return mParentMomentum; }
121 inline Float_t StKinkMuDst::parentPrimMomentum() const
122  { return mParentPrimMomentum; }
123 inline Int_t StKinkMuDst::parentCharge() const
124  { return mParentCharge; }
125 inline Float_t StKinkMuDst::daughterMomentum() const
126  { return mDaughterMomentum; }
127 inline Int_t StKinkMuDst::daughterCharge() const
128  { return mDaughterCharge; }
129 inline Float_t StKinkMuDst::decayLength() const { return mDecayLength; }
130 inline Float_t StKinkMuDst::transverseMomentum() const
131  { return mTransverseMomentum; }
132 inline Float_t StKinkMuDst::transverseMassKaon() const
133  { return mTransverseMassKaon; }
134 inline Float_t StKinkMuDst::transverseMassPion() const
135  { return mTransverseMassPion; }
136 inline Float_t StKinkMuDst::rapidityKaon() const { return mRapidityKaon; }
137 inline Float_t StKinkMuDst::rapidityPion() const { return mRapidityPion; }
138 inline Float_t StKinkMuDst::chi2Kink() const { return mChi2Kink; }
139 inline Float_t StKinkMuDst::clKink() const { return mClKink; }
140 inline Float_t StKinkMuDst::chi2Parent() const { return mChi2Parent; }
141 inline Float_t StKinkMuDst::clParent() const { return mClParent; }
142 inline Float_t StKinkMuDst::chi2Daughter() const { return mChi2Daughter; }
143 inline Float_t StKinkMuDst::clDaughter() const { return mClDaughter; }
144 inline void StKinkMuDst::setParentBad() { mChi2Parent = -TMath::Abs(mChi2Parent); }
145 inline void StKinkMuDst::setDaughterBad() { mChi2Daughter = -TMath::Abs(mChi2Daughter); }
146 inline Float_t StKinkMuDst::dedxParent() const { return mDedxParent; }
147 inline Float_t StKinkMuDst::dedxDaughter() const { return mDedxDaughter; }
148 inline Float_t StKinkMuDst::errDedxParent() const { return mErrDedxParent; }
149 inline Float_t StKinkMuDst::errDedxDaughter() const { return mErrDedxDaughter; }
150 inline UShort_t StKinkMuDst::numDedxParent() const
151  { return (mNumDedxParent%100); }
152 inline UShort_t StKinkMuDst::numDedxDaughter() const
153  { return (mNumDedxDaughter%100); }
154 inline Float_t StKinkMuDst::lenDedxParent() const
155  { return (mNumDedxParent/100); }
156 inline Float_t StKinkMuDst::lenDedxDaughter() const
157  { return (mNumDedxDaughter/100); }
158 inline Int_t StKinkMuDst::keyParent() const { return mKeyParent; }
159 inline Int_t StKinkMuDst::keyDaughter() const { return mKeyDaughter; }
160 #endif
161 
162 
163 /***********************************************************************
164  * $Id: StKinkMuDst.hh,v 3.13 2011/05/27 18:25:32 genevb Exp $
165  * $Log: StKinkMuDst.hh,v $
166  * Revision 3.13 2011/05/27 18:25:32 genevb
167  * Propagate StTrack::key => Int_t to other codes
168  *
169  * Revision 3.12 2008/07/11 16:23:08 genevb
170  * bad() won't work unless chi2 allows to return negative values
171  *
172  * Revision 3.11 2008/07/10 16:16:55 genevb
173  * Allow for marking of bad tracks -> bad secondary vertices
174  *
175  * Revision 3.10 2005/03/17 05:02:20 genevb
176  * Add StMuMomentumShiftMaker friend
177  *
178  * Revision 3.9 2004/02/03 20:09:07 genevb
179  * Update ClassDef version for added data members
180  *
181  * Revision 3.8 2004/02/03 03:49:27 genevb
182  * Added keys (IDs) for Kink parent and daughter
183  *
184  * Revision 3.7 2003/06/01 04:25:19 genevb
185  * Update ClassDef version for altered inheritance
186  *
187  * Revision 3.6 2003/05/30 21:20:19 genevb
188  * doxygen savvy, encoding of FTPC mults, change virtual funcs
189  *
190  * Revision 3.5 2002/04/30 16:02:47 genevb
191  * Common muDst, improved MC code, better kinks, StrangeCuts now a branch
192  *
193  * Revision 3.4 2001/11/05 23:41:06 genevb
194  * Add more dEdx, B field info, careful of changes to TTree unrolling
195  *
196  * Revision 3.3 2001/05/04 20:15:14 genevb
197  * Common interfaces and reorganization of components, add MC event info
198  *
199  * Revision 3.2 2000/09/06 21:09:03 wdeng
200  * Added track charges and total momenta
201  *
202  * Revision 3.1 2000/08/10 01:16:24 genevb
203  * Added number of dedx points
204  *
205  * Revision 3.0 2000/07/14 12:56:48 genevb
206  * Revision 3 has event multiplicities and dedx information for vertex tracks
207  *
208  * Revision 2.1 2000/06/09 22:17:10 genevb
209  * Allow MC data to be copied between DSTs, other small improvements
210  *
211  * Revision 2.0 2000/06/02 22:11:54 genevb
212  * New version of Strangeness micro DST package
213  *
214  * Revision 1.1 2000/03/30 00:18:08 genevb
215  * Introduction of StKinkMuDst
216  *
217  ***********************************************************************/
Float_t clParent() const
Confidence level of parent.
Definition: StKinkMuDst.hh:141
Int_t keyDaughter() const
Track id of daughter.
Definition: StKinkMuDst.hh:159
Float_t errDedxDaughter() const
Error on mean of dE/dX of daughter.
Definition: StKinkMuDst.hh:149
UShort_t numDedxParent() const
Number of dE/dX points for parent.
Definition: StKinkMuDst.hh:150
Float_t dedxParent() const
dE/dX of parent
Definition: StKinkMuDst.hh:146
Float_t clKink() const
Confidence level of Kink.
Definition: StKinkMuDst.hh:139
Float_t dedxDaughter() const
dE/dX of daughter
Definition: StKinkMuDst.hh:147
Float_t chi2Daughter() const
Chi square of daughter.
Definition: StKinkMuDst.hh:142
Int_t keyParent() const
Track id of parent.
Definition: StKinkMuDst.hh:158
Float_t lenDedxDaughter() const
Length of dE/dX track of daughter.
Definition: StKinkMuDst.hh:156
void setParentBad()
Set the parent as bad.
Definition: StKinkMuDst.hh:144
Float_t chi2Kink() const
Chi square of Kink.
Definition: StKinkMuDst.hh:138
UShort_t numDedxDaughter() const
Number of dE/dX points for daughter.
Definition: StKinkMuDst.hh:152
Float_t errDedxParent() const
Error on mean of dE/dX of parent.
Definition: StKinkMuDst.hh:148
Float_t chi2Parent() const
Chi square of parent.
Definition: StKinkMuDst.hh:140
Float_t lenDedxParent() const
Length of dE/dX track of parent.
Definition: StKinkMuDst.hh:154
void setDaughterBad()
Set the daughter as bad.
Definition: StKinkMuDst.hh:145
Float_t clDaughter() const
Confidence level of daughter.
Definition: StKinkMuDst.hh:143