3 #include "/afs/rhic.bnl.gov/star/packages/DEV/StRoot/StarClassLibrary/StTimer.hh"
11 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
12 loadSharedLibraries();
14 cout <<
" loading done " << endl;
19 maker =
new StMuDstMaker(0,0,
"MuDST/central/ReversedFullField/runs/",
"",
"MuDst");
20 for (
int i=0; i<100; i++) {
27 for (
int i=0; i<n; i++) {
29 printf(
"momentumPrimary=%8f ",primaryTrack->
p().mag());
31 printf(
"momentumGlobal=%8f ratio=%8f\n",primaryTrack->
globalTrack()->
p().mag(),primaryTrack->
p().mag()/primaryTrack->
globalTrack()->
p().mag());
StMuDstMaker(const char *name="MuDst")
Default constructor.
static void setLevel(unsigned int level)
sets the debug level
const StThreeVectorF & p() const
Returns 3-momentum at dca to primary vertex.
static TObjArray * primaryTracks()
returns pointer to a list of tracks belonging to the selected primary vertex
static void fixTrackIndices(TClonesArray *primary, TClonesArray *global)
checks and if necessary corrects the indecies of elements pointing to each other (e.g., a primary track's index to the corresponding global track)
const StMuTrack * globalTrack() const
Returns pointer to associated global track. Null pointer if no global track available.