StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFlowPicoTrack.cxx
1 //
3 // $Id: StFlowPicoTrack.cxx,v 1.11 2003/01/08 19:26:51 posk Exp $
4 //
5 // Author: Raimond Snellings, March 2000
6 //
7 // Description: A persistent Flow Pico DST
8 //
10 
11 #include "StFlowPicoTrack.h"
12 #include <math.h>
13 // Needed for Solaris, which does not have fabs():
14 #define ABS(x) (x>0?x:-x)
15 
16 ClassImp(StFlowPicoTrack)
17 
18 //-----------------------------------------------------------------------
19 
21 
22  Float_t maxInt = 32.;
23  Float_t pid;
24 
25  mPt = track->Pt();
26  mPtGlobal = track->PtGlobal();
27  mEta = track->Eta();
28  mEtaGlobal = track->EtaGlobal();
29  mDedx = track->Dedx();
30  mPhi = track->Phi();
31  mPhiGlobal = track->PhiGlobal();
32  mCharge = track->Charge();
33  mDca = track->Dca();
34  mDcaSigned = track->DcaSigned();
35  mDcaGlobal = track->DcaGlobal();
36  mZFirstPoint = track->ZFirstPoint();
37  mZLastPoint = track->ZLastPoint();
38  mChi2 = track->Chi2();
39  mFitPts = track->FitPts();
40  mMaxPts = track->MaxPts();
41  mNhits = track->Nhits();
42  mNdedxPts = track->NdedxPts();
43  mDcaGlobalX = (Float_t)track->DcaGlobalX();
44  mDcaGlobalY = (Float_t)track->DcaGlobalY();
45  mDcaGlobalZ = (Float_t)track->DcaGlobalZ();
46  mTrackLength = track->TrackLength();
47  mMostLikelihoodPID = track->MostLikelihoodPID();
48  mMostLikelihoodProb = track->MostLikelihoodProb();
49  mExtrapTag = track->ExtrapTag();
50  mElectronPositronProb = track->ElectronPositronProb();
51  mPionPlusMinusProb = track->PionPlusMinusProb();
52  mKaonPlusMinusProb = track->KaonPlusMinusProb();
53  mProtonPbarProb = track->ProtonPbarProb();
54  mTopologyMap0 = track->TopologyMap0();
55  mTopologyMap1 = track->TopologyMap1();
56 
57  pid = track->PidPion();
58  if (ABS(pid) > maxInt) pid = maxInt; mPidPion = (Int_t)(pid*1000.);
59  pid = track->PidProton();
60  if (ABS(pid) > maxInt) pid = maxInt; mPidProton = (Int_t)(pid*1000.);
61  pid = track->PidKaon();
62  if (ABS(pid) > maxInt) pid = maxInt; mPidKaon = (Int_t)(pid*1000.);
63  pid = track->PidDeuteron();
64  if (ABS(pid) > maxInt) pid = maxInt; mPidDeuteron = (Int_t)(pid*1000.);
65  pid = track->PidElectron();
66  if (ABS(pid) > maxInt) pid = maxInt; mPidElectron = (Int_t)(pid*1000.);
67 
68 }
69 
71 //
72 // $Log: StFlowPicoTrack.cxx,v $
73 // Revision 1.11 2003/01/08 19:26:51 posk
74 // PhiWgt hists sorted on sign of z of first and last points.
75 // Version 6 of pico file.
76 //
77 // Revision 1.10 2001/12/18 19:22:35 posk
78 // "proton" and "antiproton" changed to "pr+" and "pr-".
79 // Compiles on Solaris.
80 //
81 // Revision 1.9 2001/12/12 21:36:20 posk
82 // For Solaris compatability, added: #include <math.h>
83 //
84 // Revision 1.8 2001/07/27 01:26:37 snelling
85 // Added and changed variables for picoEvent. Changed trackCut class to StTrack
86 //
87 // Revision 1.7 2001/07/24 22:29:37 snelling
88 // First attempt to get a standard root pico file again, added variables
89 //
90 // Revision 1.6 2000/12/12 20:22:06 posk
91 // Put log comments at end of files.
92 // Deleted persistent StFlowEvent (old micro DST).
93 //
94 // Revision 1.5 2000/12/10 02:01:13 oldi
95 // A new member (StTrackTopologyMap mTopology) was added to StFlowPicoTrack.
96 // The evaluation of either a track originates from the FTPC or not is
97 // unambiguous now. The evaluation itself is easily extendible for other
98 // detectors (e.g. SVT+TPC). Old flowpicoevent.root files are treated as if
99 // they contain TPC tracks only (backward compatibility).
100 //
101 // Revision 1.4 2000/10/12 22:46:39 snelling
102 // Added support for the new pDST's and the probability pid method
103 //
104 // Revision 1.3 2000/09/15 22:51:32 posk
105 // Added pt weighting for event plane calcualtion.
106 //
107 // Revision 1.2 2000/09/05 17:57:12 snelling
108 // Solaris needs math.h for fabs
109 //
110 // Revision 1.1 2000/09/05 16:11:36 snelling
111 // Added global DCA, electron and positron
112 //
113 //