StRoot
1
|
#include <StMuDst.h>
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) More... | |
StEvent * | createStEvent () |
creates a StEvent from the StMuDst (this) and returns a pointer to it. (This function is not yet finished) More... | |
void | fixTofTrackIndices () |
void | fixETofTrackIndices () |
void | fixMtdTrackIndices () |
void | setMtdArray (StMtdCollection *mtd_coll) |
void | setETofArray (const StETofCollection *etof_coll) |
void | addETofHit (const StMuETofHit *hit) |
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 **rhicf_ptca=0, TClonesArray **fcs_ptca=0, TClonesArray **ftt_ptca=0, TClonesArray **fst_ptca=0, TClonesArray **fwd_ptca=0, TClonesArray **pmd_ptca=0, TClonesArray **tof_ptca=0, TClonesArray **btof_ptca=0, TClonesArray **etof_col=0, TClonesArray **epd_col=0, TClonesArray **mtd_ptca=0, TClonesArray **fgt_ptca=0, TClonesArray **ezt_ptca=0, TClonesArray *emc_tca=0, StMuEmcCollection *emc_col=0, StMuFmsCollection *fms_col=0, StMuRHICfCollection *rhicf_col=0, StMuFcsCollection *fcs_col=0, StMuFttCollection *ftt_col=0, StMuFstCollection *fst_col=0, StMuFwdTrackCollection *fwd_track_col=0, TClonesArray *pmd_tca=0, StMuPmdCollection *pmd_col=0) |
static void | setEmcCollection (StEmcCollection *emc_coll) |
set pointer to current StEmcCollection | |
static void | setFmsCollection (StFmsCollection *fms_coll) |
static void | setRHICfCollection (StRHICfCollection *rhicf_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) More... | |
static void | fixTrackIndicesG (int mult=1) |
static StTrackGeometry * | trackGeometry (int q, StPhysicalHelixD *h) |
helper function to create a StTrackGeometry | |
static StTrack * | createStTrack (const StMuTrack *) |
creates a StTrack from an StMuTrack and return pointer to it | |
static void | fixTofTrackIndices (TClonesArray *btofHit, TClonesArray *primary, TClonesArray *global) |
dongx More... | |
static void | fixETofTrackIndices (TClonesArray *btofHit, TClonesArray *primary, TClonesArray *global) |
static void | fixMtdTrackIndices (TClonesArray *mtdHit, TClonesArray *primary, TClonesArray *global) |
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 * | rhicfArray (int type) |
returns pointer to the n-th TClonesArray from the rhicf arrays | |
static TClonesArray * | fcsArray (int type) |
returns pointer to the n-th TClonesArray from the fcs arrays | |
static TClonesArray * | fttArray (int type) |
returns pointer to the n-th TClonesArray from the ftt arrays | |
static TClonesArray * | fstArray (int type) |
returns pointer to the n-th TClonesArray from the fst arrays | |
static TClonesArray * | fwdTrackArray (int type) |
returns pointer to the n-th TClonesArray from the rhicf 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 * | etofArray (int type) |
returns pointer to the n-th TClonesArray from the etof arrays // FS | |
static TClonesArray * | mtdArray (int type) |
returns pointer to the n-th TClonesArray from the mtd arrays | |
static TClonesArray * | fgtArray (int type) |
returns pointer to the n-th TClonesArray from the fgt arrays | |
static TClonesArray * | eztArray (int type) |
returns pointer to the n-th TClonesArray from the ezt arrays | |
static TClonesArray * | epdHits () |
returns pointer to the EpdHitCollection | |
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 StMuEvent * | event () |
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 StMuTrack * | primaryTracks (int i) |
return pointer to i-th primary track | |
static StMuTrack * | globalTracks (int i) |
return pointer to i-th global track | |
static StMuTrack * | otherTracks (int i) |
return pointer to i-th other track (track that is not flagged as primary of global) | |
static StMuTrack * | l3Tracks (int i) |
return pointer to i-th l3 track | |
static StRichSpectra * | richSpectra (int i) |
returns pointer to i-th StRichSpectra | |
static StDetectorState * | detectorStates (int i) |
returns pointer to i-th StDetectorState | |
static StL3AlgorithmInfo * | l3AlgoAccept (int i) |
returns pointer to i-th accepted StL3AlgorithmInfo | |
static StL3AlgorithmInfo * | l3AlgoReject (int i) |
returns pointer to i-th rejected StL3AlgorithmInfo | |
static StMuRpsCollection * | RpsCollection () |
static StMuMtdCollection * | MtdCollection () |
static StDcaGeometry * | covGlobTracks (int i) |
static StMuPrimaryTrackCovariance * | covPrimTracks (int i) |
static StStrangeEvMuDst * | strangeEvent () |
returns pointer to current StStrangeEvMuDst (class holding the event wise information, e.g. event number, run number) | |
static StStrangeEvMuDst * | strangeEventMc () |
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 StV0MuDst * | v0s (int i) |
returns pointer to the i-th v0 | |
static StV0Mc * | v0sMc (int i) |
static StStrangeAssoc * | v0Assoc (int i) |
static StXiMuDst * | xis (int i) |
returns pointer to the i-th xi | |
static StXiMc * | xisMc (int i) |
static StStrangeAssoc * | xiAssoc (int i) |
static StKinkMuDst * | kinks (int i) |
returns pointer to the i-th kink | |
static StKinkMc * | kinksMc (int i) |
static StStrangeAssoc * | kinkAssoc (int i) |
static TCut * | strangeCuts (int i) |
returns pointer to the i-th stranneCut (of type TCut) | |
static StMuEmcCollection * | muEmcCollection () |
returns pointer to current StMuEmcCollection | |
static StMuFmsCollection * | muFmsCollection () |
returns pointer to current StMuFmsCollection | |
static StMuRHICfCollection * | muRHICfCollection () |
returns pointer to current StMuRHICfCollection | |
static StMuFcsCollection * | muFcsCollection () |
returns pointer to current StMuFcsCollection | |
static StMuFttCollection * | muFttCollection () |
returns pointer to current StMuFttCollection | |
static StMuFstCollection * | muFstCollection () |
returns pointer to current StMuFstCollection | |
static StMuFwdTrackCollection * | muFwdTrackCollection () |
returns pointer to current StMuFwdTrackCollection | |
static StMuPmdCollection * | pmdCollection () |
returns pointer to current StMuPmdCollection | |
static StEmcCollection * | emcCollection () |
returns pointer to current StEmcCollection | |
static StFmsCollection * | fmsCollection () |
returns pointer to current StFmsCollection | |
static StRHICfCollection * | rhicfCollection () |
returns pointer to current StRHICfCollection | |
static StMuTofHit * | tofHit (int i) |
returns pointer to the i-th muTofHit | |
static StTofData * | tofData (int i) |
returns pointer to the i-th tofData | |
static StTofRawData * | tofRawData (int i) |
returns pointer to the i-th tofRawData | |
static StMuBTofHit * | btofHit (int i) |
returns pointer to the i-th muBTofHit | |
static StBTofRawHit * | btofRawHit (int i) |
returns pointer to the i-th btofRawHit - dongx | |
static StBTofHeader * | btofHeader () |
returns pointer to the btofHeader - dongx | |
static StMuETofDigi * | etofDigi (int i) |
returns pointer to the i-th StMuEtofDigi | |
static StMuETofHit * | etofHit (int i) |
returns pointer to the i-th StMuETofHit | |
static StMuETofHeader * | etofHeader () |
returns pointer to the StMuETofHeader | |
static StMuEpdHit * | epdHit (int i) |
static StMuMtdHit * | mtdHit (int i) |
static StMuMtdRawHit * | mtdRawHit (int i) |
static StMuMtdHeader * | mtdHeader () |
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 | numberOfETofDigi () |
static unsigned int | numberOfETofHit () |
static unsigned int | numberOfEpdHit () |
static unsigned int | numberOfMTDHit () |
static unsigned int | numberOfBMTDRawHit () |
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 unsigned int | GetNETofDigi () |
static unsigned int | GetNETofHit () |
static unsigned int | GetNEpdHit () |
static unsigned int | GetNMTDHit () |
static unsigned int | GetNMTDRawHit () |
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 More... | |
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 ** | rhicfArrays = 0 |
array of TClonesArrays for the stuff inherited from the RHICf | |
static TClonesArray ** | fcsArrays = 0 |
array of TClonesArrays for the stuff inherited from the Fcs | |
static TClonesArray ** | fttArrays = 0 |
array of TClonesArrays for the stuff inherited from the Ftt | |
static TClonesArray ** | fstArrays = 0 |
array of TClonesArrays for the stuff inherited from the Fst | |
static TClonesArray ** | fwdTrackArrays = 0 |
array of TClonesArrays for the stuff inherited from the FWD Tracks | |
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 ** | etofArrays = 0 |
array of TClonesArrays for ETof More... | |
static TClonesArray ** | epdArrays = 0 |
array of TClonesArrays for Epd More... | |
static TClonesArray ** | mtdArrays = 0 |
array of TClonesArrays for the stuff inherited from the Mtd More... | |
static TClonesArray ** | fgtArrays = 0 |
array of TClonesArrays for the stuff inherited from the Fgt | |
static TClonesArray * | mMuEmcCollectionArray = 0 |
static StMuEmcCollection * | mMuEmcCollection = 0 |
pointer to EmcCollection (manages the EmcArrays) | |
static TClonesArray * | mMuPmdCollectionArray = 0 |
static StMuFmsCollection * | mMuFmsCollection = 0 |
pointer to FmsCollection (manages the FmsArrays) | |
static StMuRHICfCollection * | mMuRHICfCollection = 0 |
pointer to RHICfCollection (manages the RHICfArrays) | |
static StMuFcsCollection * | mMuFcsCollection = 0 |
pointer to FcsCollection (manages the FcsArrays) | |
static StMuFttCollection * | mMuFttCollection = 0 |
pointer to FttCollection (manages the FttArrays) | |
static StMuFstCollection * | mMuFstCollection = 0 |
pointer to FstCollection (manages the FstArrays) | |
static StMuFwdTrackCollection * | mMuFwdTrackCollection = 0 |
pointer to FwdTrackCollection (manages the FwdTrackArrays) | |
static StMuPmdCollection * | mMuPmdCollection = 0 |
pointer to PmdCollection (manages the PmdArrays) | |
static StEmcCollection * | mEmcCollection = 0 |
pointer to EmcCollecion (for Emc clusterfinding etc) | |
static StFmsCollection * | mFmsCollection = 0 |
pointer to FmsCollecion (for Fms clusterfinding etc) | |
static StRHICfCollection * | mRHICfCollection = 0 |
pointer to RHICfCollecion (for RHICf clusterfinding etc) | |
static TClonesArray ** | eztArrays = 0 |
array of TClonesArrays for the stuff inherited from the EZT (ezTree) | |
static Int_t | mCurrVertexId = -2 |
Index number of current primary vertex. | |
static TObjArray * | mCurrPrimaryTracks = 0 |
Temporary array to collect tracks from currect primary vertex. | |
Friends | |
class | StMuDstMaker |
class | StMuIOMaker |
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).
void StMuDst::addETofHit | ( | const StMuETofHit * | hit | ) |
add etof hit to the hit array in muDst
Definition at line 679 of file StMuDst.cxx.
References etofArrays.
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 702 of file StMuDst.cxx.
References arrays, btofArrays, btofHeader(), btofRawHit(), createStTrack(), detectorStates(), event(), globalTracks(), muEmcCollection(), muFcsCollection(), muFmsCollection(), muFstCollection(), muFttCollection(), muFwdTrackCollection(), muRHICfCollection(), pmdCollection(), primaryTracks(), tofArrays, tofData(), and tofRawData().
Referenced by StMuDst2StEventMaker::Make(), and StV0FinderMaker::Prepare().
|
static |
set the indices for ETofHits
Definition at line 485 of file StMuDst.cxx.
References StMuETofHit::associatedTrackId(), StMuTrack::id(), and StMuTrack::setIndex2ETofHit().
void StMuDst::fixETofTrackIndices | ( | ) |
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 476 of file StMuDst.cxx.
References arrays, and etofArrays.
|
static |
void StMuDst::fixMtdTrackIndices | ( | ) |
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 556 of file StMuDst.cxx.
|
static |
dongx
set the indices for BTofHits
Definition at line 409 of file StMuDst.cxx.
References StMuTrack::id().
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 400 of file StMuDst.cxx.
References arrays, and btofArrays.
|
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 291 of file StMuDst.cxx.
References globalTracks(), StMuTrack::id(), and StMuTrack::setIndex2Global().
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 282 of file StMuDst.cxx.
References arrays.
|
static |
Match global track index to primary track
Definition at line 338 of file StMuDst.cxx.
References currentVertexIndex(), event(), globalTracks(), primaryTracks(), primaryVertices(), and setVertexIndex().
Referenced by StMuTrack::primaryTrack().
|
static |
set the pointers to the TClonesArrays dongx
Definition at line 192 of file StMuDst.cxx.
References arrays, btofArrays, emcArrays, epdArrays, etofArrays, eztArrays, fcsArrays, fgtArrays, fmsArrays, fstArrays, fttArrays, fwdTrackArrays, mMuEmcCollection, mMuFcsCollection, mMuFmsCollection, mMuFstCollection, mMuFttCollection, mMuFwdTrackCollection, mMuPmdCollection, mMuRHICfCollection, mtdArrays, pmdArrays, rhicfArrays, strangeArrays, and tofArrays.
void StMuDst::setETofArray | ( | const StETofCollection * | etof_coll | ) |
reset ETOF digi/hit array and header when running eTOF related Makers on muDst in afterburner mode
Definition at line 653 of file StMuDst.cxx.
References etofArrays, etofDigi(), and etofHit().
void StMuDst::setMtdArray | ( | StMtdCollection * | mtd_coll | ) |
reset MTD hit array and header when running StMtdHitMaker on muDst in afterburner mode
Definition at line 632 of file StMuDst.cxx.
References mtdArrays.
Referenced by StMtdHitMaker::fillStEvent().
|
staticprotected |
array of TClonesArrays
dongx
Definition at line 185 of file StMuDst.h.
Referenced by array(), collectVertexTracks(), createStEvent(), detectorStates(), event(), fixETofTrackIndices(), fixMtdTrackIndices(), fixTofTrackIndices(), fixTrackIndices(), globalTracks(), l3AlgoAccept(), l3AlgoReject(), l3Tracks(), otherTracks(), primaryVertex(), primaryVertices(), richSpectra(), set(), and unset().
|
staticprotected |
|
staticprotected |
array of TClonesArrays for ETof
dongx
Definition at line 212 of file StMuDst.h.
Referenced by addETofHit(), etofArray(), etofDigi(), etofHeader(), etofHit(), fixETofTrackIndices(), set(), setETofArray(), and unset().
|
staticprotected |
array of TClonesArrays for the stuff inherited from the Mtd
MALisa.
Definition at line 216 of file StMuDst.h.
Referenced by fixMtdTrackIndices(), mtdArray(), set(), setMtdArray(), and unset().