8 if (gClassTable->GetID(
"TTable") < 0) {
9 gSystem->Load(
"libTable");
10 gSystem->Load(
"libPhysics");
12 gROOT->LoadMacro(
"StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
13 loadSharedLibraries();
14 cout <<
" loading done " << endl;
19 maker =
new StMuDstMaker(0,0,
"",
"test.lis",
"MuDst.root",2);
38 for (
int i=0; i<n; i++) {
43 printf(
"primary momentum=%8f first-helix=%8f last-outerHelix=%8f length=%8f lengthMeasured=%8f charge=%d \n",
46 printf(
"global momentum=%8f first-helix=%8f last-outerHelix=%8f length=%8f lengthMeasured=%8f charge=%d \n",
47 tt->p().mag(), (tt->firstPoint() - tt->helix().origin()).mag(), (tt->lastPoint() - tt->outerHelix().origin()).mag(), tt->length(), tt->lengthMeasured(), tt->charge() );
49 printf(
"EVENT id=%d, runId=%d unix time=%d trigWord=0x%0x bXing=%d spinBits=%d nPrim=%d\n", info.id(), info.runId(), info.time(), t.triggerWord(),t.bunchCrossingId(), t.spinBits(),n);
Double_t lengthMeasured() const
Returns length of track (cm) from first to last measured point.
StMuDstMaker(const char *name="MuDst")
Default constructor.
Double_t length() const
Returns length of track (cm) from primary vertex to last measured point.
static void setLevel(unsigned int level)
sets the debug level
StPhysicalHelixD helix() const
Returns inner helix (first measured point)
Short_t charge() const
Returns charge.
const StThreeVectorF & p() const
Returns 3-momentum at dca to primary vertex.
const StThreeVectorF & firstPoint() const
Returns positions of first measured point.
static TObjArray * primaryTracks()
returns pointer to a list of tracks belonging to the selected primary vertex
const StThreeVector< double > & origin() const
-sign(q*B);
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
const StThreeVectorF & lastPoint() const
Returns positions of last measured point.
const StMuTrack * globalTrack() const
Returns pointer to associated global track. Null pointer if no global track available.
StPhysicalHelixD outerHelix() const
Returns outer helix (last measured point)