49 #include "TClonesArray.h"
53 EEmcHelix() { mOx=mOy=mOz=mPx=mPy=mPz=mLength=mB=0.0; mQ=mPoints=mFlag=0; };
54 EEmcHelix(Float_t x, Float_t y, Float_t z, Float_t px, Float_t py, Float_t pz,
55 Int_t q, Float_t B, Int_t np, Float_t l , Int_t mFlag);
58 void setOrigin (Float_t x ,Float_t y ,Float_t z ) { mOx=x; mOy=y; mOz=z; }
59 void setMomentum(Float_t px,Float_t py,Float_t pz) { mPx=px;mPy=py;mPz=pz;}
60 void setQ (Int_t q ) { mQ = q; }
61 void setB (Float_t B ) { mB = B; }
62 void setFlag (Int_t f ) { mFlag = f; }
63 void setPoints (Int_t n ) { mPoints = n; }
64 void setLength (Float_t l ) { mLength = l; }
66 void getOrigin (Float_t &x,Float_t &y,Float_t &z)
const {x=mOx;y=mOy;z=mOz;}
67 void getMomentum(Float_t &x,Float_t &y,Float_t &z)
const {x=mPx;y=mPy;z=mPz;}
69 Float_t Ox()
const {
return mOx; }
70 Float_t Oy()
const {
return mOy; }
71 Float_t Oz()
const {
return mOz; }
72 Float_t Px()
const {
return mPx; }
73 Float_t Py()
const {
return mPy; }
74 Float_t Pt()
const { return ::sqrt(mPx*mPx+mPy*mPy); }
75 Float_t Pz()
const {
return mPz; }
76 Int_t Q ()
const {
return mQ; }
77 Float_t B ()
const {
return mB; }
78 Int_t Points()
const {
return mPoints;}
79 Float_t Length()
const {
return mLength;}
80 Int_t Flag()
const {
return mFlag;}
82 void print(FILE *fd=stdout)
const;
107 void setVertex(
float x,
float y,
float z) {mVertX=x; mVertY=y; mVertZ=z;};
109 void getVertex(
float& x,
float& y,
float& z) {x=mVertX; y=mVertY; z=mVertZ;};
110 Float_t getdEdx (
int i) {
return((0<=i && i<mNTracks)?mDedx[i]:-MAXFLOAT);}
111 Int_t getNumberOfTracks() {
return mNTracks;}
114 void print(FILE *f = stdout)
const;
117 static const Int_t mAllocTracks;
123 TClonesArray *mHelix;