StFms  0.0.0
FMS software in the STAR framework
StMuDstMaker Class Reference

#include <StMuDstMaker.h>

Inheritance diagram for StMuDstMaker:
Collaboration diagram for StMuDstMaker:

Public Member Functions

 StMuDstMaker (const char *name="MuDst")
 Default constructor. More...
 
 StMuDstMaker (int mode, int nameMode, const char *dirName="./", const char *fileName="", const char *filter=".", int maxfiles=10, const char *name="MuDst")
 Constructor. More...
 
 ~StMuDstMaker ()
 
virtual int Init ()
 
virtual void Clear (Option_t *option="")
 
virtual int Make ()
 
virtual Int_t MakeRead (const StUKey &RunEvent)
 
virtual Int_t MakeRead ()
 
virtual Int_t MakeWrite ()
 
virtual int Finish ()
 
void printArrays ()
 
void SetStatus (const char *arrType, int status)
 
void SetEventList (TEventList *e)
 Set event list for reading only preselected events (generate list using chain()->Draw() More...
 
void setTrackFilter (StMuCut *c)
 Set the track filter used for all tracks (except the L3 tracks) when creating muDsts from StEvent and writing to disk. More...
 
StMuFilter * trackFilter ()
 
void setL3TrackFilter (StMuCut *c)
 Set the track filter used for L3 tracks when creating muDsts from StEvent and writing to disk. More...
 
StMuL3Filter * l3TrackFilter ()
 
void setProbabilityPidFile (const char *file=NULL)
 Set the file from where the PID probability tables should be read. More...
 
StMuDstmuDst ()
 
TChain * chain ()
 In read mode, returns pointer to the chain of .MuDst.root files that where selected. More...
 
TTree * tree ()
 Returns pointer to the current TTree, the top level io structure that holds the event, track, v0, etc. information in branches of that tree. More...
 
virtual const char * GetFile () const
 Returns name of current input or output file, depending on mode (GetFileName does the same, see StIOInterface. More...
 
void setSplit (int=99)
 Sets the split level for the file and all branches. Please refer to the ROOT manual (http://root.cern.ch) for more information. More...
 
void setBufferSize (int=65536 *4)
 Sets the buffer size for all branches. More...
 
void setCompression (int comp=9)
 Sets the compression level for the file and all branches. 0 means no compression, 9 is the higher compression level. More...
 
void setStTriggerYear (int)
 
StMuEmcUtil * muEmcUtil ()
 return pointer to StMuEmcUtil; More...
 
StMuFmsUtilmuFmsUtil ()
 return pointer to StMuFmsUtil; More...
 
StMuPmdUtil * muPmdUtil ()
 return pointer to StMuPmdUtil; More...
 
virtual const char * GetCVS () const
 

Protected Types

enum  ioMode { ioRead, ioWrite }
 
enum  ioNameMode { ioFix =0, ioIOMaker, ioTreeMaker }
 

Protected Member Functions

void connectEmcCollection ()
 routine to set up connection between mEmcCollection and Emc arrays More...
 
void connectFmsCollection ()
 
void connectPmdCollection ()
 
virtual void openWrite (string fileName)
 protected: More...
 
virtual void write ()
 
virtual void closeWrite ()
 
void streamerOff ()
 
virtual int openRead ()
 
virtual void read ()
 
void setBranchAddresses ()
 
virtual void closeRead ()
 
void setBranchAddresses (TChain *)
 
void assignArrays ()
 
void clearArrays ()
 
void zeroArrays ()
 
void createArrays ()
 
TClonesArray * clonesArray (TClonesArray *&p, const char *type, int size, int &counter)
 
void fill ()
 
void fillTrees (StEvent *ev, StMuCut *cut=0)
 
void fillEvent (StEvent *ev, StMuCut *cut=0)
 
void fillVertices (StEvent *ev)
 
void fillpp2pp (StEvent *ev)
 
void fillsttrigger (StEvent *ev)
 
void fillPmd (StEvent *ev)
 
void fillEmc (StEvent *ev)
 
void fillFms (StEvent *ev)
 
void fillStrange (StStrangeMuDstMaker *)
 
void fillMC ()
 
void fillL3Tracks (StEvent *ev, StMuCut *cut=0)
 
void fillTracks (StEvent *ev, StMuCut *cut=0)
 
void fillDetectorStates (StEvent *ev)
 
void fillL3AlgorithmInfo (StEvent *ev)
 
void fillTof (StEvent *ev)
 
void fillBTof (StEvent *ev)
 dongx More...
 
void fillMtd (StEvent *ev)
 
void fillFgt (StEvent *ev)
 
void fillEzt (StEvent *ev)
 
void fillHddr ()
 
template<class T , class U >
int addType (TClonesArray *tcaTo, U &u, T *t)
 
template<class T >
int addType (TClonesArray *tcaFrom, TClonesArray *&tcaTo, T *t)
 
template<class T >
int addType (TClonesArray *tcaTo, T &t)
 
void addTrackNode (const StEvent *ev, const StTrackNode *node, StMuCut *cut, TClonesArray *gTCA=0, TClonesArray *pTCA=0, TClonesArray *oTCA=0, TClonesArray *covgTCA=0, TClonesArray *covpTCA=0, bool l3=false)
 
int addTrack (TClonesArray *tca, const StEvent *event, const StTrack *track, const StVertex *vtx, StMuCut *cut, int index2Global, bool l3=false, TClonesArray *covgTCA=0, TClonesArray *covpTCA=0)
 
StRichSpectra * richSpectra (const StTrack *track)
 
void setStEvent (StEvent *)
 
StEvent * stEvent ()
 
void setStStrangeMuDstMaker (StStrangeMuDstMaker *)
 
StStrangeMuDstMaker * stStrangeMuDstMaker ()
 
unsigned int trackType ()
 
bool readTracks ()
 
bool readV0s ()
 
bool readXis ()
 
bool readKinks ()
 
void setTrackType (unsigned int)
 
void setReadTracks (bool)
 
void setReadV0s (bool)
 
void setReadXis (bool)
 
void setReadKinks (bool)
 
string basename (string)
 
string dirname (string)
 
string buildFileName (string dir, string fileName, string extention)
 

Protected Attributes

StEvent * mStEvent
 
StMuDstmStMuDst
 
StStrangeMuDstMaker * mStStrangeMuDstMaker
 
StIOMaker * mIOMaker
 
StTreeMaker * mTreeMaker
 
StMuEmcUtil * mEmcUtil
 
StMuFmsUtilmFmsUtil
 
StMuPmdUtil * mPmdUtil
 
StMuTofUtil * mTofUtil
 
StMuBTofUtil * mBTofUtil
 dongx More...
 
StMuEzTree * mEzTree
 
int mIoMode
 
int mIoNameMode
 
string mDirName
 
string mFileName
 
string mFilter
 
int mMaxFiles
 
TEventList * mEventList
 
unsigned int mTrackType
 
bool mReadTracks
 
bool mReadV0s
 
bool mReadXis
 
bool mReadKinks
 
bool mFinish
 
StMuCut * mTrackFilter
 
StMuCut * mL3TrackFilter
 
TFile * mCurrentFile
 
string mCurrentFileName
 
TChain * mChain
 
TTree * mTTree
 
int mEventCounter
 
int mSplit
 
int mCompression
 
int mBufferSize
 
TObjArray mVtxList
 
StuProbabilityPidAlgorithm * mProbabilityPidAlgorithm
 
TClonesArray * mAArrays [__NALLARRAYS__]
 
TClonesArray ** mArrays
 
TClonesArray ** mStrangeArrays
 
TClonesArray ** mMCArrays
 
TClonesArray ** mEmcArrays
 
TClonesArray ** mFmsArrays
 
TClonesArray ** mPmdArrays
 
TClonesArray ** mTofArrays
 
TClonesArray ** mBTofArrays
 dongx More...
 
TClonesArray ** mMtdArrays
 
TClonesArray ** mFgtArrays
 
TClonesArray ** mEztArrays
 
char mStatusArrays [__NALLARRAYS__]
 
TClonesArray * mEmcCollectionArray
 
StMuEmcCollection * mEmcCollection
 
StMuFmsCollectionmFmsCollection
 
TClonesArray * mPmdCollectionArray
 
StMuPmdCollection * mPmdCollection
 

Friends

class StMuDst
 
class StMuDstFilterMaker
 

Detailed Description

Class to create and read STAR's common micro dst (StMuDst)

This class is a true maker in the STAR sense. It inherits from "StMaker" and implements the functions "int Init()", "void Clear()", int Make()", and "int Finish()" in order to run as part of an "StChain". Please refer to the STAR Computing Web pages in case you do not know what "StMaker" and "StChain" mean.

Definition at line 109 of file StMuDstMaker.h.

Member Enumeration Documentation

enum StMuDstMaker::ioMode
protected
Enumerator
ioRead 
ioWrite 

Definition at line 191 of file StMuDstMaker.h.

enum StMuDstMaker::ioNameMode
protected

Specifies the way the output file name is contructed when creating muDsts. ioFix = use filename specified in when calling the constructor, right in the same output file for all input files. ioIOMaker = create one output file per input file, derive output filename from current input file of the StIOMaker. ioTreeMaker = create one output file per input file, derive output filename from current input file of the StTreeMaker.

Enumerator
ioFix 
ioIOMaker 
ioTreeMaker 

Definition at line 200 of file StMuDstMaker.h.

Constructor & Destructor Documentation

StMuDstMaker::StMuDstMaker ( const char *  name = "MuDst")

Default constructor.

The default constructor as it is right now was written in order to run the StMuDstMaker during reconstruction in the bfc. Since the PID table that is needed for muDst production is not passed as an argument to the bfc, this default constructor sets a specific PID table. This table has to be updated when changing to a new production version. Also, the standard track and l3 track filters are set.

dongx

dongx

Definition at line 125 of file StMuDstMaker.cxx.

Here is the call graph for this function:

StMuDstMaker::StMuDstMaker ( int  mode,
int  nameMode,
const char *  dirName = "./",
const char *  fileName = "",
const char *  filter = ".",
int  maxfiles = 10,
const char *  name = "MuDst" 
)

Constructor.

dongx

Definition at line 330 of file StMuDstMaker.cxx.

Here is the call graph for this function:

StMuDstMaker::~StMuDstMaker ( )

dongx

Definition at line 402 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Member Function Documentation

int StMuDstMaker::addTrack ( TClonesArray *  tca,
const StEvent *  event,
const StTrack *  track,
const StVertex *  vtx,
StMuCut *  cut,
int  index2Global,
bool  l3 = false,
TClonesArray *  covgTCA = 0,
TClonesArray *  covpTCA = 0 
)
protected

if (!tca || !track) return index; /// I made sure that the array anf the track is there

return index to self if newly created, else return -1;

Definition at line 1526 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::addTrackNode ( const StEvent *  ev,
const StTrackNode *  node,
StMuCut *  cut,
TClonesArray *  gTCA = 0,
TClonesArray *  pTCA = 0,
TClonesArray *  oTCA = 0,
TClonesArray *  covgTCA = 0,
TClonesArray *  covpTCA = 0,
bool  l3 = false 
)
protected

do global track

do primary track track

all other tracks

loop over all tracks in tracknode

exclude global and primary tracks

Definition at line 1488 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T , class U >
int StMuDstMaker::addType ( TClonesArray *  tcaTo,
U &  u,
T *  t 
)
protected

Definition at line 1682 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

template<class T >
int StMuDstMaker::addType ( TClonesArray *  tcaFrom,
TClonesArray *&  tcaTo,
T *  t 
)
protected

Definition at line 1643 of file StMuDstMaker.cxx.

template<class T >
int StMuDstMaker::addType ( TClonesArray *  tcaTo,
T &  t 
)
protected

Definition at line 1670 of file StMuDstMaker.cxx.

void StMuDstMaker::assignArrays ( )
protected

This method assigns individual TCloneArrays location from one big global one. Dirty init MUST follow the order in StMuArrays. This allows for block initialization/zeroing without problems or side effects such as the one cause by array boundary overwrite if the first TClone in a list of declared variables is used.

dongx

dongx

Definition at line 182 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

string StMuDstMaker::basename ( string  s)
protected

Definition at line 1708 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

string StMuDstMaker::buildFileName ( string  dir,
string  fileName,
string  extention 
)
protected

Definition at line 1694 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

TChain * StMuDstMaker::chain ( )
inline

In read mode, returns pointer to the chain of .MuDst.root files that where selected.

Definition at line 371 of file StMuDstMaker.h.

void StMuDstMaker::Clear ( Option_t *  option = "")
virtual

Definition at line 512 of file StMuDstMaker.cxx.

Here is the call graph for this function:

void StMuDstMaker::clearArrays ( )
protected

dongx

Definition at line 201 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

TClonesArray * StMuDstMaker::clonesArray ( TClonesArray *&  p,
const char *  type,
int  size,
int &  counter 
)
protected

Definition at line 478 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::closeRead ( )
protectedvirtual

Definition at line 876 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::closeWrite ( )
protectedvirtual

Definition at line 919 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::connectEmcCollection ( )
protected

routine to set up connection between mEmcCollection and Emc arrays

Definition at line 1808 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::connectFmsCollection ( )
protected

Definition at line 1818 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::connectPmdCollection ( )
protected

Definition at line 1824 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::createArrays ( )
protected

all stuff

Definition at line 464 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

string StMuDstMaker::dirname ( string  s)
protected

Definition at line 1727 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::fill ( )
protected

once per event the pid algorithm has to be set up we make it static for the StMuTrack, because all tracks use the same instance

Definition at line 605 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillBTof ( StEvent *  ev)
protected

dongx

Definition at line 1143 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillDetectorStates ( StEvent *  ev)
protected

Definition at line 1472 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillEmc ( StEvent *  ev)
protected

Definition at line 1044 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillEvent ( StEvent *  ev,
StMuCut *  cut = 0 
)
protected

Definition at line 1028 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillEzt ( StEvent *  ev)
protected

dongx

Definition at line 1335 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillFgt ( StEvent *  ev)
protected

Definition at line 1175 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillFms ( StEvent *  ev)
protected

Definition at line 1065 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillHddr ( )
protected

Definition at line 1776 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::fillL3AlgorithmInfo ( StEvent *  ev)
protected

Definition at line 1382 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillL3Tracks ( StEvent *  ev,
StMuCut *  cut = 0 
)
protected

Definition at line 1455 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillMC ( )
protected

Definition at line 1624 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillMtd ( StEvent *  ev)
protected

Definition at line 1304 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillPmd ( StEvent *  ev)
protected

Definition at line 1085 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillpp2pp ( StEvent *  ev)
protected

Definition at line 1422 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillStrange ( StStrangeMuDstMaker *  maker)
protected

now fill the strangeness stuff

Definition at line 1589 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillsttrigger ( StEvent *  ev)
protected
void StMuDstMaker::fillTof ( StEvent *  ev)
protected

Definition at line 1106 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillTracks ( StEvent *  ev,
StMuCut *  cut = 0 
)
protected

Definition at line 1439 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillTrees ( StEvent *  ev,
StMuCut *  cut = 0 
)
protected

Definition at line 939 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::fillVertices ( StEvent *  ev)
protected

Definition at line 1403 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

int StMuDstMaker::Finish ( )
virtual

Definition at line 679 of file StMuDstMaker.cxx.

Here is the call graph for this function:

virtual const char* StMuDstMaker::GetCVS ( ) const
inlinevirtual

< Returns version tag.

Definition at line 178 of file StMuDstMaker.h.

const char * StMuDstMaker::GetFile ( ) const
virtual

Returns name of current input or output file, depending on mode (GetFileName does the same, see StIOInterface.

Definition at line 696 of file StMuDstMaker.cxx.

int StMuDstMaker::Init ( )
virtual

The Init() routine is used to establish contact to other makers. As it is STAR habit (but really really bad coding) we identify the other makers by names (instead of passing pointers). Here, the names are hard-wired because they have to be identical to the names the bfc is assining to the makers. Do not alter these names unless you know what you are doing.

< added for Valeri to be able to pick it up in other makers

< added for Valeri to be able to pick it up in other makers

Definition at line 497 of file StMuDstMaker.cxx.

StMuL3Filter * StMuDstMaker::l3TrackFilter ( )
inline

Definition at line 376 of file StMuDstMaker.h.

int StMuDstMaker::Make ( )
virtual

Depending on ioMode, calling Make() will initiate the StMuDstMaker to read or write the next event. After the Make() function has finished, a call to muDst() will return a pointer to an object od type StMuDst. This object will hold the current event if the io was successful, or return a null pointer.

Definition at line 540 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Int_t StMuDstMaker::MakeRead ( const StUKey &  RunEvent)
virtual

Definition at line 556 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Int_t StMuDstMaker::MakeRead ( )
virtual

Definition at line 563 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Int_t StMuDstMaker::MakeWrite ( )
virtual

Definition at line 585 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

StMuDst * StMuDstMaker::muDst ( )
inline

Returns pointer to the StMuDst object, the transient class that holds all the TClonesArrays and has access functions to the tracks, v0s, etc. Returns null pointer if no StMuDst available.

Definition at line 370 of file StMuDstMaker.h.

StMuEmcUtil* StMuDstMaker::muEmcUtil ( )
inline

return pointer to StMuEmcUtil;

Definition at line 174 of file StMuDstMaker.h.

StMuFmsUtil* StMuDstMaker::muFmsUtil ( )
inline

return pointer to StMuFmsUtil;

Definition at line 175 of file StMuDstMaker.h.

StMuPmdUtil* StMuDstMaker::muPmdUtil ( )
inline

return pointer to StMuPmdUtil;

Definition at line 176 of file StMuDstMaker.h.

int StMuDstMaker::openRead ( )
protectedvirtual

Definition at line 816 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::openWrite ( string  fileName)
protectedvirtual

protected:

Definition at line 884 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::printArrays ( )

Definition at line 1762 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::read ( )
protectedvirtual

Definition at line 836 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

bool StMuDstMaker::readKinks ( )
inlineprotected

Definition at line 388 of file StMuDstMaker.h.

bool StMuDstMaker::readTracks ( )
inlineprotected

Definition at line 384 of file StMuDstMaker.h.

bool StMuDstMaker::readV0s ( )
inlineprotected

Definition at line 386 of file StMuDstMaker.h.

bool StMuDstMaker::readXis ( )
inlineprotected

Definition at line 387 of file StMuDstMaker.h.

StRichSpectra * StMuDstMaker::richSpectra ( const StTrack *  track)
protected

Definition at line 1579 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::setBranchAddresses ( )
protected

Definition at line 704 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::setBranchAddresses ( TChain *  chain)
protected

Definition at line 708 of file StMuDstMaker.cxx.

Here is the call graph for this function:

void StMuDstMaker::setBufferSize ( int  buf = 65536*4)
inline

Sets the buffer size for all branches.

Definition at line 399 of file StMuDstMaker.h.

void StMuDstMaker::setCompression ( int  comp = 9)
inline

Sets the compression level for the file and all branches. 0 means no compression, 9 is the higher compression level.

Definition at line 398 of file StMuDstMaker.h.

void StMuDstMaker::SetEventList ( TEventList *  e)
inline

Set event list for reading only preselected events (generate list using chain()->Draw()

Definition at line 129 of file StMuDstMaker.h.

void StMuDstMaker::setL3TrackFilter ( StMuCut *  c)
inline

Set the track filter used for L3 tracks when creating muDsts from StEvent and writing to disk.

Definition at line 374 of file StMuDstMaker.h.

Here is the caller graph for this function:

void StMuDstMaker::setProbabilityPidFile ( const char *  file = NULL)

Set the file from where the PID probability tables should be read.

Set the file from where the PID probability tables should be read. These tables might change from production version to production version. It is the reposibility of who ever creates muDsts to make sure the right tables are used. So far, Aihong was providing these files. Thanks, Aihong. Note that this method hard code the file name if the argument is not give. The default is currently

getenv("STAR") << "/StarDb/dEdxModel/" << PIDtable

where PIDtable=PIDTableP01gl.root . This will later change with possibly a database approach.

Definition at line 1741 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

void StMuDstMaker::setReadKinks ( bool  b)
inlineprotected

Definition at line 394 of file StMuDstMaker.h.

void StMuDstMaker::setReadTracks ( bool  b)
inlineprotected

Definition at line 390 of file StMuDstMaker.h.

void StMuDstMaker::setReadV0s ( bool  b)
inlineprotected

Definition at line 392 of file StMuDstMaker.h.

void StMuDstMaker::setReadXis ( bool  b)
inlineprotected

Definition at line 393 of file StMuDstMaker.h.

void StMuDstMaker::setSplit ( int  split = 99)
inline

Sets the split level for the file and all branches. Please refer to the ROOT manual (http://root.cern.ch) for more information.

Definition at line 397 of file StMuDstMaker.h.

void StMuDstMaker::SetStatus ( const char *  arrType,
int  status 
)

Selecting SetBranchStatus for particular MuDst branches Special names: MuEventAll - all branches related to StMuEvent StrangeAll - all branches related to StrangeMuDst EmcAll - all branches related to Emc PmdAll - all branches related to Pmd TofAll - all branches related to Tof BTofAll - all branches related to BTof /// dongx MTDAll - all branches related to MTD FgtAll - all branches related to Fgt

By default all branches of MuDst are read. If user wants to read only some of them, then: SetStatus("*",0) // all branches off SetStatus("MuEventAll",1) // all standard MuEvent branches ON SetStatus("StrangeAll",1) // all standard Strange branches ON SetStatus("EmcAll" ,1) // all standard Emc branches ON SetStatus("PmdAll" ,1) // all standard Pmd branches ON SetStatus("TofAll" ,1) // all standard Tof branches ON SetStatus("BTofAll" ,1) // all standard BTof branches ON /// dongx SetStatus("MTDAll" ,1) // all standard Mtd branches ON SetStatus("FgtAll" ,1) // all standard Fgt branches ON

SetStatus("XiAssoc" ,1) // Strange branch "XiAssoc" is ON

Names of branches look StMuArrays::arrayTypes[]

dongx

dongx

dongx

Definition at line 269 of file StMuDstMaker.cxx.

Here is the call graph for this function:

void StMuDstMaker::setStEvent ( StEvent *  )
protected
void StMuDstMaker::setStStrangeMuDstMaker ( StStrangeMuDstMaker *  s)
inlineprotected

Definition at line 378 of file StMuDstMaker.h.

void StMuDstMaker::setStTriggerYear ( int  )
void StMuDstMaker::setTrackFilter ( StMuCut *  c)
inline

Set the track filter used for all tracks (except the L3 tracks) when creating muDsts from StEvent and writing to disk.

Definition at line 373 of file StMuDstMaker.h.

Here is the caller graph for this function:

void StMuDstMaker::setTrackType ( unsigned int  t)
inlineprotected

Definition at line 381 of file StMuDstMaker.h.

StEvent* StMuDstMaker::stEvent ( )
protected
void StMuDstMaker::streamerOff ( )
protected

Switch of the TObject part of some streamers, so that only the datTClonesamenbers of the derived classes are written to disk, but not the data members of the base class TObject

Definition at line 429 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

StStrangeMuDstMaker * StMuDstMaker::stStrangeMuDstMaker ( )
inlineprotected

Definition at line 379 of file StMuDstMaker.h.

StMuFilter * StMuDstMaker::trackFilter ( )
inline

Definition at line 375 of file StMuDstMaker.h.

unsigned int StMuDstMaker::trackType ( )
inlineprotected

Definition at line 382 of file StMuDstMaker.h.

TTree * StMuDstMaker::tree ( )
inline

Returns pointer to the current TTree, the top level io structure that holds the event, track, v0, etc. information in branches of that tree.

Definition at line 372 of file StMuDstMaker.h.

void StMuDstMaker::write ( )
protectedvirtual

Definition at line 629 of file StMuDstMaker.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuDstMaker::zeroArrays ( )
protected

dongx

Definition at line 223 of file StMuDstMaker.cxx.

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class StMuDst
friend

Definition at line 338 of file StMuDstMaker.h.

friend class StMuDstFilterMaker
friend

Definition at line 339 of file StMuDstMaker.h.

Member Data Documentation

TClonesArray* StMuDstMaker::mAArrays[__NALLARRAYS__]
protected

Definition at line 343 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mArrays
protected

Definition at line 344 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mBTofArrays
protected

dongx

Definition at line 354 of file StMuDstMaker.h.

StMuBTofUtil* StMuDstMaker::mBTofUtil
protected

dongx

Definition at line 214 of file StMuDstMaker.h.

int StMuDstMaker::mBufferSize
protected

Definition at line 245 of file StMuDstMaker.h.

TChain* StMuDstMaker::mChain
protected

Definition at line 239 of file StMuDstMaker.h.

int StMuDstMaker::mCompression
protected

Definition at line 244 of file StMuDstMaker.h.

TFile* StMuDstMaker::mCurrentFile
protected

Definition at line 236 of file StMuDstMaker.h.

string StMuDstMaker::mCurrentFileName
protected

Definition at line 237 of file StMuDstMaker.h.

string StMuDstMaker::mDirName
protected

Definition at line 219 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mEmcArrays
protected

Definition at line 349 of file StMuDstMaker.h.

StMuEmcCollection* StMuDstMaker::mEmcCollection
protected

Definition at line 361 of file StMuDstMaker.h.

TClonesArray* StMuDstMaker::mEmcCollectionArray
protected

Definition at line 360 of file StMuDstMaker.h.

StMuEmcUtil* StMuDstMaker::mEmcUtil
protected

Definition at line 209 of file StMuDstMaker.h.

int StMuDstMaker::mEventCounter
protected

Definition at line 242 of file StMuDstMaker.h.

TEventList* StMuDstMaker::mEventList
protected

Definition at line 224 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mEztArrays
protected

Definition at line 357 of file StMuDstMaker.h.

StMuEzTree* StMuDstMaker::mEzTree
protected

Definition at line 215 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mFgtArrays
protected

Definition at line 356 of file StMuDstMaker.h.

string StMuDstMaker::mFileName
protected

Definition at line 220 of file StMuDstMaker.h.

string StMuDstMaker::mFilter
protected

Definition at line 221 of file StMuDstMaker.h.

bool StMuDstMaker::mFinish
protected

Definition at line 231 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mFmsArrays
protected

Definition at line 350 of file StMuDstMaker.h.

StMuFmsCollection* StMuDstMaker::mFmsCollection
protected

Definition at line 362 of file StMuDstMaker.h.

StMuFmsUtil* StMuDstMaker::mFmsUtil
protected

Definition at line 210 of file StMuDstMaker.h.

StIOMaker* StMuDstMaker::mIOMaker
protected

Definition at line 207 of file StMuDstMaker.h.

int StMuDstMaker::mIoMode
protected

Definition at line 217 of file StMuDstMaker.h.

int StMuDstMaker::mIoNameMode
protected

Definition at line 218 of file StMuDstMaker.h.

StMuCut* StMuDstMaker::mL3TrackFilter
protected

Definition at line 234 of file StMuDstMaker.h.

int StMuDstMaker::mMaxFiles
protected

Definition at line 222 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mMCArrays
protected

Definition at line 348 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mMtdArrays
protected

Definition at line 355 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mPmdArrays
protected

Definition at line 351 of file StMuDstMaker.h.

StMuPmdCollection* StMuDstMaker::mPmdCollection
protected

Definition at line 364 of file StMuDstMaker.h.

TClonesArray* StMuDstMaker::mPmdCollectionArray
protected

Definition at line 363 of file StMuDstMaker.h.

StMuPmdUtil* StMuDstMaker::mPmdUtil
protected

Definition at line 211 of file StMuDstMaker.h.

StuProbabilityPidAlgorithm* StMuDstMaker::mProbabilityPidAlgorithm
protected

Definition at line 249 of file StMuDstMaker.h.

bool StMuDstMaker::mReadKinks
protected

Definition at line 230 of file StMuDstMaker.h.

bool StMuDstMaker::mReadTracks
protected

Definition at line 227 of file StMuDstMaker.h.

bool StMuDstMaker::mReadV0s
protected

Definition at line 228 of file StMuDstMaker.h.

bool StMuDstMaker::mReadXis
protected

Definition at line 229 of file StMuDstMaker.h.

int StMuDstMaker::mSplit
protected

Definition at line 243 of file StMuDstMaker.h.

char StMuDstMaker::mStatusArrays[__NALLARRAYS__]
protected

Definition at line 359 of file StMuDstMaker.h.

StEvent* StMuDstMaker::mStEvent
protected

Definition at line 202 of file StMuDstMaker.h.

StMuDst* StMuDstMaker::mStMuDst
protected

Definition at line 203 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mStrangeArrays
protected

Definition at line 346 of file StMuDstMaker.h.

StStrangeMuDstMaker* StMuDstMaker::mStStrangeMuDstMaker
protected

Definition at line 205 of file StMuDstMaker.h.

TClonesArray** StMuDstMaker::mTofArrays
protected

Definition at line 352 of file StMuDstMaker.h.

StMuTofUtil* StMuDstMaker::mTofUtil
protected

Definition at line 212 of file StMuDstMaker.h.

StMuCut* StMuDstMaker::mTrackFilter
protected

Definition at line 233 of file StMuDstMaker.h.

unsigned int StMuDstMaker::mTrackType
protected

Definition at line 226 of file StMuDstMaker.h.

StTreeMaker* StMuDstMaker::mTreeMaker
protected

Definition at line 208 of file StMuDstMaker.h.

TTree* StMuDstMaker::mTTree
protected

Definition at line 240 of file StMuDstMaker.h.

TObjArray StMuDstMaker::mVtxList
protected

Definition at line 247 of file StMuDstMaker.h.


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