StMuDst Class Reference

#include <StMuDst.h>

List of all members.

Public Member Functions

 StMuDst ()
 constructor
void fixTrackIndices ()
 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)
StEventcreateStEvent ()
 creates a StEvent from the StMuDst (this) and returns a pointer to it. (This function is not yet finished)
StTrackGeometrytrackGeometry (int q, StPhysicalHelixD *h)
 helper function to create a StTrackGeometry
StTrackcreateStTrack (StMuTrack *)
 creates a StTrack from an StMuTrack and return pointer to it
void fixTofTrackIndices ()
virtual void Print (Option_t *option="") const
 Print basic event info.

Static Public Member Functions

static void set (StMuDstMaker *maker)
 set the pointers to the TClonesArrays
static void set (TClonesArray **, TClonesArray **, TClonesArray **mc_ptca=0, TClonesArray **emc_ptca=0, TClonesArray **fms_ptca=0, TClonesArray **pmd_ptca=0, TClonesArray **tof_ptca=0, TClonesArray **btof_ptca=0, TClonesArray *emc_tca=0, StMuEmcCollection *emc_col=0, StMuFmsCollection *fms_col=0, TClonesArray *pmd_tca=0, StMuPmdCollection *pmd_col=0, TClonesArray **ezt_ptca=0)
static void setEmcCollection (StEmcCollection *emc_coll)
 set pointer to current StEmcCollection
static void setFmsCollection (StFmsCollection *fms_coll)
static void unset ()
 resets the pointers to the TClonesArrays to 0
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)
static void fixTrackIndicesG (int mult=1)
static void fixTofTrackIndices (TClonesArray *btofHit, TClonesArray *primary, TClonesArray *global)
 dongx
static void setVertexIndex (Int_t vtx_id)
 Set the index number of the current primary vertex (used by both primaryTracks() functions and for StMuEvent::refMult()).
static Int_t currentVertexIndex ()
 Get the index number of the current primary vertex.
static TClonesArray * array (int type)
 returns pointer to the n-th TClonesArray
static TClonesArray * strangeArray (int type)
 returns pointer to the n-th TClonesArray from the strangeness arrays
static TClonesArray * mcArray (int type)
static TClonesArray * emcArray (int type)
 returns pointer to the n-th TClonesArray from the emc arrays
static TClonesArray * fmsArray (int type)
 returns pointer to the n-th TClonesArray from the fms arrays
static TClonesArray * pmdArray (int type)
 returns pointer to the n-th TClonesArray from the pmd arrays
static TClonesArray * tofArray (int type)
 returns pointer to the n-th TClonesArray from the tof arrays
static TClonesArray * btofArray (int type)
 returns pointer to the n-th TClonesArray from the btof arrays // dongx
static TClonesArray * eztArray (int type)
 returns pointer to the n-th TClonesArray from the ezt arrays
static TClonesArray * primaryVertices ()
 returns pointer to the primary vertex list
static TObjArray * primaryTracks ()
 returns pointer to a list of tracks belonging to the selected primary vertex
static TObjArray * globalTracks ()
 returns pointer to the global tracks list
static TClonesArray * otherTracks ()
 returns pointer to the other tracks list (all tracks that are not flagged as primary of global)
static TClonesArray * l3Tracks ()
 returns pointer to the l3Tracks list
static TClonesArray * richSpectra ()
 returns pointer to the list of rich spectra
static TClonesArray * detectorStates ()
 returns pointer to the list of detector states
static TClonesArray * l3AlgoAccept ()
 returns pointer to list of accepted l3 algorithms
static TClonesArray * l3AlgoReject ()
 returns pointer to list rejected l3 algorithms
static TClonesArray * covGlobTrack ()
static TClonesArray * covPrimTrack ()
static StMuEventevent ()
 returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
static StMuPrimaryVertex * primaryVertex ()
 return pointer to current primary vertex
static StMuPrimaryVertex * primaryVertex (int i)
 return pointer to i-th primary vertex
static StMuTrackprimaryTracks (int i)
 return pointer to i-th primary track
static StMuTrackglobalTracks (int i)
 return pointer to i-th global track
static StMuTrackotherTracks (int i)
 return pointer to i-th other track (track that is not flagged as primary of global)
static StMuTrackl3Tracks (int i)
 return pointer to i-th l3 track
static StRichSpectrarichSpectra (int i)
 returns pointer to i-th StRichSpectra
static StDetectorStatedetectorStates (int i)
 returns pointer to i-th StDetectorState
static StL3AlgorithmInfol3AlgoAccept (int i)
 returns pointer to i-th accepted StL3AlgorithmInfo
static StL3AlgorithmInfol3AlgoReject (int i)
 returns pointer to i-th rejected StL3AlgorithmInfo
static StMuRpsCollection * RpsCollection ()
static StMuMtdCollection * MtdCollection ()
static StDcaGeometrycovGlobTracks (int i)
static StMuPrimaryTrackCovariance * covPrimTracks (int i)
static StStrangeEvMuDststrangeEvent ()
 returns pointer to current StStrangeEvMuDst (class holding the event wise information, e.g. event number, run number)
static StStrangeEvMuDststrangeEventMc ()
 returns pointer to MC version of current StStrangeEvMuDst
static TClonesArray * v0s ()
 returns pointer to the v0 list
static TClonesArray * v0sMc ()
 returns pointer to the mc v0 list
static TClonesArray * v0Assoc ()
 returns pointer to the v0 association list
static TClonesArray * xis ()
 returns pointer to the xi list
static TClonesArray * xisMc ()
 returns pointer to the mc xi list
static TClonesArray * xiAssoc ()
 returns pointer to the xi association list
static TClonesArray * kinks ()
 returns pointer to the kink list
static TClonesArray * kinksMc ()
 returns pointer to the mc kink list
static TClonesArray * kinkAssoc ()
 returns pointer to the kink association list
static TClonesArray * strangeCuts ()
 returns pointer to the list of strangeCuts
static StV0MuDstv0s (int i)
 returns pointer to the i-th v0
static StV0Mcv0sMc (int i)
static StStrangeAssocv0Assoc (int i)
static StXiMuDstxis (int i)
 returns pointer to the i-th xi
static StXiMcxisMc (int i)
static StStrangeAssocxiAssoc (int i)
static StKinkMuDstkinks (int i)
 returns pointer to the i-th kink
static StKinkMckinksMc (int i)
static StStrangeAssockinkAssoc (int i)
static TCut * strangeCuts (int i)
 returns pointer to the i-th stranneCut (of type TCut)
static StMuEmcCollectionmuEmcCollection ()
 returns pointer to current StMuEmcCollection
static StMuFmsCollection * muFmsCollection ()
 returns pointer to current StMuFmsCollection
static StMuPmdCollection * pmdCollection ()
 returns pointer to current StMuPmdCollection
static StEmcCollectionemcCollection ()
 returns pointer to current StEmcCollection
static StFmsCollection * fmsCollection ()
 returns pointer to current StFmsCollection
static StMuTofHit * tofHit (int i)
 returns pointer to the i-th muTofHit
static StTofDatatofData (int i)
 returns pointer to the i-th tofData
static StTofRawDatatofRawData (int i)
 returns pointer to the i-th tofRawData
static StMuBTofHit * btofHit (int i)
 returns pointer to the i-th muBTofHit
static StBTofRawHitbtofRawHit (int i)
 returns pointer to the i-th btofRawHit - dongx
static StBTofHeaderbtofHeader ()
 returns pointer to the btofHeader - dongx
static EztEventHeader * eztHeader ()
 returns pointer to eztHeader
static EztTrigBlob * eztTrig ()
 returns pointer to eztTrig
static EztFpdBlob * eztFpd ()
 returns pointer to eztFpd
static EztEmcRawData * eztETow ()
 returns pointer to ETOW
static EztEmcRawData * eztESmd ()
 returns pointer to eztESmd +pre/post
static unsigned int numberOfPrimaryVertices ()
static unsigned int numberOfPrimaryTracks ()
static unsigned int numberOfGlobalTracks ()
static unsigned int numberOfOtherTracks ()
static unsigned int numberOfL3Tracks ()
static unsigned int numberOfRichSpectras ()
static unsigned int numberOfDetectorStates ()
static unsigned int numberOfL3AlgoAccepts ()
static unsigned int numberOfL3AlgoRejects ()
static unsigned int numberOfCovGlobTracks ()
static unsigned int numberOfCovPrimTracks ()
static unsigned int numberOfV0s ()
static unsigned int numberOfV0sMc ()
static unsigned int numberOfV0Assoc ()
static unsigned int numberOfXis ()
static unsigned int numberOfXisMc ()
static unsigned int numberOfXiAssoc ()
static unsigned int numberOfKinks ()
static unsigned int numberOfKinksMc ()
static unsigned int numberOfKinkAssoc ()
static unsigned int numberOfStrangeCuts ()
static unsigned int numberOfTofHit ()
static unsigned int numberOfTofData ()
static unsigned int numberOfTofRawData ()
static unsigned int numberOfBTofHit ()
static unsigned int numberOfBTofRawHit ()
static unsigned int GetNPrimaryVertex ()
static unsigned int GetNPrimaryTrack ()
static unsigned int GetNGlobalTrack ()
static unsigned int GetNOtherTrack ()
static unsigned int GetNL3Track ()
static unsigned int GetNRichSpectra ()
static unsigned int GetNDetectorState ()
static unsigned int GetNL3AlgoAccept ()
static unsigned int GetNL3AlgoReject ()
static unsigned int GetNV0 ()
static unsigned int GetNV0Mc ()
static unsigned int GetNV0Assoc ()
static unsigned int GetNXi ()
static unsigned int GetNXiMc ()
static unsigned int GetNXiAssoc ()
static unsigned int GetNKink ()
static unsigned int GetNKinkMc ()
static unsigned int GetNKinkAssoc ()
static unsigned int GetNStrangeCut ()
static unsigned int GetNTofHit ()
static unsigned int GetNTofData ()
static unsigned int GetNTofRawData ()
static unsigned int GetNBTofHit ()
static unsigned int GetNBTofRawHit ()
static void printPrimaryTracks ()
static void printGlobalTracks ()
static void printVertices ()

Static Protected Member Functions

static void collectVertexTracks ()
 Helper function to collect tracks for the current prim vertex.

Static Protected Attributes

static TClonesArray ** arrays = 0
 array of TClonesArrays
static TClonesArray ** strangeArrays = 0
 array of TClonesArrays for the stuff inherited from the StStrangeMuDst
static TClonesArray ** mcArrays = 0
static TClonesArray ** emcArrays = 0
 array of TClonesArrays for the stuff inherited from the Emc
static TClonesArray ** fmsArrays = 0
 array of TClonesArrays for the stuff inherited from the Fms
static TClonesArray ** pmdArrays = 0
 array of TClonesArrays for the stuff inherited from the Pmd
static TClonesArray ** tofArrays = 0
 array of TClonesArrays for the stuff inherited from the TOF
static TClonesArray ** btofArrays = 0
 array of TClonesArrays for the stuff inherited from the BTOF // dongx
static TClonesArray * mMuEmcCollectionArray = 0
 dongx
static StMuEmcCollectionmMuEmcCollection = 0
 pointer to EmcCollection (manages the EmcArrays)
static TClonesArray * mMuPmdCollectionArray = 0
static StMuFmsCollection * mMuFmsCollection = 0
 pointer to FmsCollection (manages the FmsArrays)
static StMuPmdCollection * mMuPmdCollection = 0
 pointer to PmdCollection (manages the PmdArrays)
static StEmcCollectionmEmcCollection = 0
 pointer to EmcCollecion (for Emc clusterfinding etc)
static StFmsCollection * mFmsCollection = 0
 pointer to FmsCollecion (for Fms clusterfinding etc)
static TClonesArray ** eztArrays = 0
 array of TClonesArrays for the stuff inherited from the EZT (ezTree)
static Int_t mCurrVertexId = 0
 Index number of current primary vertex.
static TObjArray * mCurrPrimaryTracks = 0
 Temporary array to collect tracks from currect primary vertex.

Friends

class StMuDstMaker
class StMuIOMaker


Detailed Description

Top class of the 'dataformat'. This class exists only in memory and is not written/read to/from disk. However, this class is used to hold the pointers to all the TClonesArrays that have been read from disk. The class is used to navigate within a 'physics' event (to access tracks, detector info, etc).

Definition at line 89 of file StMuDst.h.


Member Function Documentation

StEvent * StMuDst::createStEvent (  ) 

creates a StEvent from the StMuDst (this) and returns a pointer to it. (This function is not yet finished)

add primary tracks and primary vertex

This only uses the deafult vertex and tracks in case of multiple primary vertixes.

do the same excercise for the l3 tracks we do this later we do this later we do this later

Definition at line 399 of file StMuDst.cxx.

References arrays, btofArrays, btofHeader(), btofRawHit(), createStTrack(), detectorStates(), event(), globalTracks(), muEmcCollection(), muFmsCollection(), pmdCollection(), primaryTracks(), tofArrays, tofData(), and tofRawData().

Referenced by StMuDst2StEventMaker::Make(), and StV0FinderMaker::Prepare().

void StMuDst::fixTofTrackIndices (  ) 

global and primary tracks share the same id, so we can fix the index2Global up in case they got out of order (e.g. by removing a track from the TClonesArrays

Definition at line 311 of file StMuDst.cxx.

References arrays, and btofArrays.

void StMuDst::fixTofTrackIndices ( TClonesArray *  btofHit,
TClonesArray *  primary,
TClonesArray *  global 
) [static]

dongx

set the indices for BTofHits

Definition at line 320 of file StMuDst.cxx.

References StMuTrack::id().

Referenced by StMuDstMaker::fillTrees().

void StMuDst::fixTrackIndices (  ) 

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)

global and primary tracks share the same id, so we can fix the index2Global up in case they got out of order (e.g. by removing a track from the TClonesArrays

Definition at line 193 of file StMuDst.cxx.

References arrays.

void StMuDst::fixTrackIndices ( TClonesArray *  primary,
TClonesArray *  global 
) [static]

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)

NOTE: this method does not work for productions with FTPC from SL04d up to SL05g, because StFtpcTrackToStEvent generates duplicate track keys

global and primary tracks share the same id, so we can fix the index2Global up in case they got out of order (e.g. by removing a track from the TClonesArrays)

Definition at line 202 of file StMuDst.cxx.

References globalTracks(), StMuTrack::id(), and StMuTrack::setIndex2Global().

void StMuDst::fixTrackIndicesG ( int  mult = 1  )  [static]

Match global track index to primary track

Definition at line 249 of file StMuDst.cxx.

References currentVertexIndex(), event(), globalTracks(), primaryTracks(), primaryVertices(), and setVertexIndex().

Referenced by StMuDstMaker::fillTrees(), and StMuTrack::primaryTrack().

void StMuDst::set ( TClonesArray **  theArrays,
TClonesArray **  theStrangeArrays,
TClonesArray **  mc_ptca = 0,
TClonesArray **  emc_ptca = 0,
TClonesArray **  fms_ptca = 0,
TClonesArray **  pmd_ptca = 0,
TClonesArray **  tof_ptca = 0,
TClonesArray **  btof_ptca = 0,
TClonesArray *  emc_tca = 0,
StMuEmcCollection emc_col = 0,
StMuFmsCollection *  fms_col = 0,
TClonesArray *  pmd_tca = 0,
StMuPmdCollection *  pmd_col = 0,
TClonesArray **  ezt_ptca = 0 
) [static]

set the pointers to the TClonesArrays dongx

Definition at line 131 of file StMuDst.cxx.

References arrays, btofArrays, emcArrays, eztArrays, fmsArrays, mMuEmcCollection, mMuEmcCollectionArray, mMuFmsCollection, mMuPmdCollection, pmdArrays, strangeArrays, and tofArrays.


Member Data Documentation

TClonesArray ** StMuDst::arrays = 0 [static, protected]


The documentation for this class was generated from the following files:

Generated on Sun May 27 04:28:40 2012 for StRoot by  doxygen 1.5.9