8 #include "SchedulerExample.h"
19 #include "StMuDSTMaker/COMMON/StMuDebug.h"
20 #include "StMuDSTMaker/COMMON/StMuDst.h"
21 #include "StMuDSTMaker/COMMON/StMuTrack.h"
22 #include "StMuDSTMaker/COMMON/StMuEvent.h"
23 #include "StMuDSTMaker/COMMON/StMuDbReader.h"
24 #include "StMuDSTMaker/COMMON/StMuTimer.h"
25 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
27 #include "StarClassLibrary/SystemOfUnits.h"
28 #include "StarClassLibrary/StHelixD.hh"
29 #include "StarClassLibrary/StPhysicalHelixD.hh"
30 #include "StarClassLibrary/StThreeVectorF.hh"
31 #include "StarClassLibrary/StThreeVectorD.hh"
39 mOutputFile = string(outputFile);
40 mPt =
new TH1D(
"mPt",
"pt-distribution",100,0.,2.);
41 mEta =
new TH1D(
"mEta",
"eta-distribution",100,-2.,2.);
42 mRefMultPos =
new TH1D(
"mRefMultPos",
"ref mult pos", 400,0.,400.);
43 mRefMultNeg =
new TH1D(
"mRefMultNeg",
"ref mult neg", 400,0.,400.);
44 mRefMult =
new TH1D(
"mRefMult",
"ref mult", 400,0.,400.);
45 mVertex =
new TH3D(
"mVertex",
"vertex", 100,-5.,+5., 100,-5.,+5., 100,-50.,+50.);
49 SchedulerExample::~SchedulerExample(){
67 cout <<
" SchedulerExample::Finish() " << endl;
68 TFile f(mOutputFile.c_str(),
"recreate");
76 cout <<
" SchedulerExample::Finish() file written" << endl;
89 mVertex->Fill( pos.x(),pos.y(),pos.z() );
91 if ( fabs(pos.z())<__ZPOS__ ) {
94 mRefMult->Fill( ev->
refMult() );
98 for (
int l=0; l<numberOfPrimaries; l++) {
100 mPt->Fill( t->
pt() );
101 mEta->Fill( t->
eta() );
StThreeVectorF primaryVertexPosition(int vtx_id=-1) const
The StMuDst is supposed to be structured in 'physical events'. Therefore there is only 1 primary vert...
unsigned short refMultNeg(int vtx_id=-1)
Reference multiplicity of negative particles as defined in StEventUtilities/StuRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)
Double_t pt() const
Returns pT at point of dca to primary vertex.
StMuDst * mMuDst
Pointer to the StMuDst class, which holds all the events information. Will be updated in the event lo...
Double_t eta() const
Returns pseudo rapidity at point of dca to primary vertex.
static TObjArray * primaryTracks()
returns pointer to a list of tracks belonging to the selected primary vertex
unsigned short refMult(int vtx_id=-1)
Reference multiplicity of charged particles as defined in StEventUtilities/StuRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
StMuDstMaker * mMuDstMaker
Pointer to the StMuDstMaker which provides the events to analyse.
unsigned short refMultPos(int vtx_id=-1)
Reference multiplicity of positive particles as defined in StEventUtilities/StuRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)