13 #ifndef StTinyMcTrack_H
14 #define StTinyMcTrack_H
24 void setPtMc(Float_t val) { mPtMc=val; }
25 void setPzMc(Float_t val) { mPzMc=val; }
26 void setEtaMc(Float_t val) { mEtaMc=val; }
27 void setPhiMc(Float_t val) { mPhiMc=val; }
28 void setNHitMc(Short_t val) { mNHitMc=val; }
29 void setNSvtHitMc(Short_t val) { mNSvtHitMc=val; }
30 void setNSsdHitMc(Short_t val) { mNSsdHitMc=val; }
31 void setNFtpcHitMc(Short_t val) { mNFtpcHitMc=val; }
32 void setNBemcHitMc(Short_t val) { mNBemcHitMc=val; }
33 void setNBprsHitMc(Short_t val) { mNBprsHitMc=val; }
34 void setNBsmdeHitMc(Short_t val) { mNBsmdeHitMc=val; }
35 void setNBsmdpHitMc(Short_t val) { mNBsmdpHitMc=val; }
36 void setNEemcHitMc(Short_t val) { mNEemcHitMc=val; }
37 void setNEprsHitMc(Short_t val) { mNEprsHitMc=val; }
38 void setNEsmduHitMc(Short_t val) { mNEsmduHitMc=val; }
39 void setNEsmdvHitMc(Short_t val) { mNEsmdvHitMc=val; }
40 void setGeantId(
int val);
41 void setPdgId(
int val) { mPdgId = val; }
42 void setChargeMc(Short_t val) { mChargeMc= val; }
43 void setNAssocGl(Short_t val) { mNAssocGl= val; }
44 void setNAssocPr(Short_t val) { mNAssocPr= val; }
45 void setStopR(Float_t val) { mStopR=val; }
46 void setKey(Int_t val) { mKey=val; }
47 void setPrimary(Bool_t val) { mIsPrimary = val;}
48 void setValid() {mIsValid = 1;}
49 void setParentKey(Int_t val) { mParentKey=val; }
50 void setParentGeantId(
int val);
51 void setEmcEnergyMcHit(Float_t val,
size_t index) {
if (index<3) mEmcEnergyMcHit[index]=val;}
52 void setEmcEnergyMcSum(Float_t val) {mEmcEnergyMcSum=val;}
53 void setEmcSoftIdHiTowerMc(Short_t val,
size_t index) {
if (index<3) mEmcSoftIdHiTowerMc[index]=val;}
55 float ptMc()
const {
return mPtMc; }
56 float pxMc()
const {
return mPtMc*cos(mPhiMc); }
57 float pyMc()
const {
return mPtMc*sin(mPhiMc); }
58 float pzMc()
const {
return mPzMc; }
59 float pMc()
const { return ::sqrt((mPtMc*mPtMc)+(mPzMc*mPzMc)); }
60 float etaMc()
const {
return mEtaMc; }
61 float phiMc()
const {
return mPhiMc; }
62 short nHitMc()
const {
return mNHitMc; }
63 short nSvtHitMc()
const {
return mNSvtHitMc; }
64 short nSsdHitMc()
const {
return mNSsdHitMc; }
65 short nFtpcHitMc()
const {
return mNFtpcHitMc; }
66 short nBemcHitMc()
const {
return mNBemcHitMc; }
67 short nBprsHitMc()
const {
return mNBprsHitMc; }
68 short nBsmdeHitMc()
const {
return mNBsmdeHitMc; }
69 short nBsmdpHitMc()
const {
return mNBsmdpHitMc; }
70 short nEemcHitMc()
const {
return mNEemcHitMc; }
71 short nEprsHitMc()
const {
return mNEprsHitMc; }
72 short nEsmduHitMc()
const {
return mNEsmduHitMc; }
73 short nEsmdvHitMc()
const {
return mNEsmdvHitMc; }
74 int geantId()
const {
return mGeantId; }
75 short chargeMc()
const {
return mChargeMc; }
76 short nAssocGl()
const {
return mNAssocGl; }
77 short nAssocPr()
const {
return mNAssocPr; }
78 float stopR()
const {
return mStopR; }
79 int key()
const {
return mKey; }
80 Bool_t isPrimary()
const {
return mIsPrimary;}
81 Bool_t isValid() {
return mIsValid;}
82 virtual void Print(Option_t *option=
"")
const;
83 int parentKey()
const {
return mParentKey; }
84 int parentGeantId()
const {
return mParentGeantId; }
85 float emcEnergyMcHit(
size_t index)
const {
if (index<3)
return mEmcEnergyMcHit[index];
else return -999;}
86 float emcEnergyMcSum()
const {
return mEmcEnergyMcSum; }
87 short emcSoftIdHiTowerMc(
size_t index)
const {
if (index<3)
return mEmcSoftIdHiTowerMc[index];
else return -999; }
102 Short_t mNBsmdeHitMc;
103 Short_t mNBsmdpHitMc;
106 Short_t mNEsmduHitMc;
107 Short_t mNEsmdvHitMc;
114 UShort_t mParentGeantId;
115 Float_t mEmcEnergyMcHit[3];
116 Float_t mEmcEnergyMcSum;
117 Short_t mEmcSoftIdHiTowerMc[3];