2 #include "StjTPCRandomMuDst.h"
4 #include <StMuDSTMaker/COMMON/StMuTrack.h>
5 #include <StMuDSTMaker/COMMON/StMuDst.h>
6 #include <StMuDSTMaker/COMMON/StMuDstMaker.h>
7 #include <StMuDSTMaker/COMMON/StMuEvent.h>
9 #include <mudst/StMuEmcPosition.h>
10 #include <StEmcUtil/geometry/StEmcGeom.h>
15 StjTPCRandomMuDst::StjTPCRandomMuDst(
StMuDstMaker* uDstMaker, Double_t randomSelectorProb,
bool randomSelectorAt, UInt_t randomSelectorSeed)
17 _randomSelector( randomSelectorProb, randomSelectorAt, randomSelectorSeed )
21 StjTrackList StjTPCRandomMuDst::getTrackList()
32 int nTracks = StMuDst::numberOfPrimaryTracks();
40 for (
int ii = 0; ii < nTracks; ++ii )
44 if ( mutrack->
flag() < 0 )
52 tracks.AddLast( mutrack );
56 _randomSelector.SetContainer( &tracks );
59 (mutrack = dynamic_cast<StMuTrack *>(_randomSelector.GetNextRandom()))
63 _randomSelector.GetNumberReturned()
64 + _randomSelector.GetNumberSkipped()
67 StjTrack track = createTrack(mutrack, trackIndex, magneticField);
short flag() const
Returns flag, (see StEvent manual for type information)
static TObjArray * primaryTracks()
returns pointer to a list of tracks belonging to the selected primary vertex
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
StTrackTopologyMap topologyMap() const
Returns topology map.