00001
00002
00003
00004
00005
00006
00007
00008
00010
00011 #include "StFlowPicoTrack.h"
00012 #include <math.h>
00013
00014 #define ABS(x) (x>0?x:-x)
00015
00016 ClassImp(StFlowPicoTrack)
00017
00018
00019
00020 StFlowPicoTrack::StFlowPicoTrack(StFlowPicoTrack *track) : TObject() {
00021
00022 Float_t maxInt = 32.;
00023 Float_t pid;
00024
00025 mPt = track->Pt();
00026 mPtGlobal = track->PtGlobal();
00027 mEta = track->Eta();
00028 mEtaGlobal = track->EtaGlobal();
00029 mDedx = track->Dedx();
00030 mPhi = track->Phi();
00031 mPhiGlobal = track->PhiGlobal();
00032 mCharge = track->Charge();
00033 mDca = track->Dca();
00034 mDcaSigned = track->DcaSigned();
00035 mDcaGlobal = track->DcaGlobal();
00036 mZFirstPoint = track->ZFirstPoint();
00037 mZLastPoint = track->ZLastPoint();
00038 mChi2 = track->Chi2();
00039 mFitPts = track->FitPts();
00040 mMaxPts = track->MaxPts();
00041 mNhits = track->Nhits();
00042 mNdedxPts = track->NdedxPts();
00043 mDcaGlobalX = (Float_t)track->DcaGlobalX();
00044 mDcaGlobalY = (Float_t)track->DcaGlobalY();
00045 mDcaGlobalZ = (Float_t)track->DcaGlobalZ();
00046 mTrackLength = track->TrackLength();
00047 mMostLikelihoodPID = track->MostLikelihoodPID();
00048 mMostLikelihoodProb = track->MostLikelihoodProb();
00049 mExtrapTag = track->ExtrapTag();
00050 mElectronPositronProb = track->ElectronPositronProb();
00051 mPionPlusMinusProb = track->PionPlusMinusProb();
00052 mKaonPlusMinusProb = track->KaonPlusMinusProb();
00053 mProtonPbarProb = track->ProtonPbarProb();
00054 mTopologyMap0 = track->TopologyMap0();
00055 mTopologyMap1 = track->TopologyMap1();
00056
00057 pid = track->PidPion();
00058 if (ABS(pid) > maxInt) pid = maxInt; mPidPion = (Int_t)(pid*1000.);
00059 pid = track->PidProton();
00060 if (ABS(pid) > maxInt) pid = maxInt; mPidProton = (Int_t)(pid*1000.);
00061 pid = track->PidKaon();
00062 if (ABS(pid) > maxInt) pid = maxInt; mPidKaon = (Int_t)(pid*1000.);
00063 pid = track->PidDeuteron();
00064 if (ABS(pid) > maxInt) pid = maxInt; mPidDeuteron = (Int_t)(pid*1000.);
00065 pid = track->PidElectron();
00066 if (ABS(pid) > maxInt) pid = maxInt; mPidElectron = (Int_t)(pid*1000.);
00067
00068 }
00069
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113