StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StV0Mc.hh
1 
9 #ifndef STAR_StV0Mc
10 #define STAR_StV0Mc
11 #include "StV0I.hh"
12 #include "StStrangeMuDst.hh"
13 
14 class StMcVertex;
15 class StMcTrack;
16 
17 class StV0Mc : public StStrangeMuDst, public virtual StV0I {
18 
19 public:
20  StV0Mc();
22  ~StV0Mc();
23 
24  Int_t decayMode() const;
25  Int_t geantIdParent() const;
26  Int_t geantIdPositive() const;
27  Int_t geantIdNegative() const;
28  Float_t parentMomentumX() const;
29  Float_t parentMomentumY() const;
30  Float_t parentMomentumZ() const;
31  Float_t positiveMomentumX() const;
32  Float_t positiveMomentumY() const;
33  Float_t positiveMomentumZ() const;
34  Float_t negativeMomentumX() const;
35  Float_t negativeMomentumY() const;
36  Float_t negativeMomentumZ() const;
37  Float_t positionX() const;
38  Float_t positionY() const;
39  Float_t positionZ() const;
40 
41  Int_t positiveSimTpcHits() const;
42  Int_t positiveCommonTpcHits() const;
43  Int_t negativeSimTpcHits() const;
44  Int_t negativeCommonTpcHits() const;
45 
46  void SetHitInfoPositive(Int_t commonHits);
47  void SetHitInfoNegative(Int_t commonHits);
48 
49  // Coordinates of decay vertex
50  Float_t decayVertexV0X() const {return positionX();}
51  Float_t decayVertexV0Y() const {return positionY();}
52  Float_t decayVertexV0Z() const {return positionZ();}
53  // Momentum components of pos. daughter
54  Float_t momPosX() const {return positiveMomentumX();}
55  Float_t momPosY() const {return positiveMomentumY();}
56  Float_t momPosZ() const {return positiveMomentumZ();}
57  // Momentum components of neg. daughter
58  Float_t momNegX() const {return negativeMomentumX();}
59  Float_t momNegY() const {return negativeMomentumY();}
60  Float_t momNegZ() const {return negativeMomentumZ();}
61  // Momentum components of V0
62  Float_t momV0X() const {return parentMomentumX();}
63  Float_t momV0Y() const {return parentMomentumY();}
64  Float_t momV0Z() const {return parentMomentumZ();}
65 
66 protected:
67 // StStrangeEvMuDst *mEvent; //!
68 
69  Int_t mPositiveSimTpcHits;
70  Int_t mPositiveCommonTpcHits;
71 
72  Int_t mNegativeSimTpcHits;
73  Int_t mNegativeCommonTpcHits;
74 
75  Int_t mDecayMode;
76  Int_t mParentGeantId;
77  Int_t mPositiveGeantId;
78  Int_t mNegativeGeantId;
79  Float_t mParentMomentumX;
80  Float_t mParentMomentumY;
81  Float_t mParentMomentumZ;
82  Float_t mPositiveMomentumX;
83  Float_t mPositiveMomentumY;
84  Float_t mPositiveMomentumZ;
85  Float_t mNegativeMomentumX;
86  Float_t mNegativeMomentumY;
87  Float_t mNegativeMomentumZ;
88  Float_t mPositionX;
89  Float_t mPositionY;
90  Float_t mPositionZ;
91 
92 private:
93  ClassDef(StV0Mc,5)
94 };
95 
96 inline Int_t StV0Mc::decayMode() const
97  { return mDecayMode; }
98 inline void StV0Mc::SetHitInfoPositive(Int_t commonHits)
99  { mPositiveCommonTpcHits = commonHits; }
100 inline Int_t StV0Mc::positiveCommonTpcHits() const
101  { return mPositiveCommonTpcHits; }
102 inline Int_t StV0Mc::positiveSimTpcHits() const
103  { return mPositiveSimTpcHits; }
104 inline void StV0Mc::SetHitInfoNegative(Int_t commonHits)
105  { mNegativeCommonTpcHits = commonHits; }
106 inline Int_t StV0Mc::negativeCommonTpcHits() const
107  { return mNegativeCommonTpcHits; }
108 inline Int_t StV0Mc::negativeSimTpcHits() const
109  { return mNegativeSimTpcHits; }
110 inline Int_t StV0Mc::geantIdParent() const
111  { return mParentGeantId; }
112 inline Int_t StV0Mc::geantIdPositive() const
113  { return mPositiveGeantId; }
114 inline Int_t StV0Mc::geantIdNegative() const
115  { return mNegativeGeantId; }
116 inline Float_t StV0Mc::parentMomentumX() const
117  { return mParentMomentumX; }
118 inline Float_t StV0Mc::parentMomentumY() const
119  { return mParentMomentumY; }
120 inline Float_t StV0Mc::parentMomentumZ() const
121  { return mParentMomentumZ; }
122 inline Float_t StV0Mc::positiveMomentumX() const
123  { return mPositiveMomentumX; }
124 inline Float_t StV0Mc::positiveMomentumY() const
125  { return mPositiveMomentumY; }
126 inline Float_t StV0Mc::positiveMomentumZ() const
127  { return mPositiveMomentumZ; }
128 inline Float_t StV0Mc::negativeMomentumX() const
129  { return mNegativeMomentumX; }
130 inline Float_t StV0Mc::negativeMomentumY() const
131  { return mNegativeMomentumY; }
132 inline Float_t StV0Mc::negativeMomentumZ() const
133  { return mNegativeMomentumZ; }
134 inline Float_t StV0Mc::positionX() const
135  { return mPositionX; }
136 inline Float_t StV0Mc::positionY() const
137  { return mPositionY; }
138 inline Float_t StV0Mc::positionZ() const
139  { return mPositionZ; }
140 
141 #endif
142 
143 
144 /***********************************************************************
145  * $Id: StV0Mc.hh,v 3.3 2003/10/20 17:20:18 perev Exp $
146  * $Log: StV0Mc.hh,v $
147  * Revision 3.3 2003/10/20 17:20:18 perev
148  * Change the order of inheritance and increased version numbers
149  *
150  * Revision 3.2 2003/05/30 21:20:20 genevb
151  * doxygen savvy, encoding of FTPC mults, change virtual funcs
152  *
153  * Revision 3.1 2001/05/04 20:15:14 genevb
154  * Common interfaces and reorganization of components, add MC event info
155  *
156  * Revision 3.0 2000/07/14 12:56:50 genevb
157  * Revision 3 has event multiplicities and dedx information for vertex tracks
158  *
159  * Revision 2.0 2000/06/05 05:19:45 genevb
160  * New version of Strangeness micro DST package
161  *
162  ***********************************************************************/
Float_t momPosZ() const
Momentum components of pos. daughter.
Definition: StV0Mc.hh:56
Definition: StV0I.hh:31
Float_t momV0Z() const
Momentum components of V0.
Definition: StV0Mc.hh:64
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Definition: StMcTrack.hh:144
Float_t decayVertexV0Z() const
Coordinates of decay vertex.
Definition: StV0Mc.hh:52
Definition: StV0Mc.hh:17
Float_t momNegZ() const
Momentum components of neg. daughter.
Definition: StV0Mc.hh:60
Int_t decayMode() const
Definition: StV0Mc.hh:96