9 #ifndef StTrigTreeMaker_H_
10 #define StTrigTreeMaker_H_
18 #include "StRoot/StTriggerUtilities/StTriggerSimuMaker.h"
25 StTrigTreeMaker_t(
const Char_t *myName =
"TrigTreeMaker",
const Char_t* filenameOut =
"trigTree.root", Bool_t isMC = 0, Bool_t useSimu = 1 );
37 void Clear(Option_t *opts=
"");
42 void addTrigger( UInt_t trig );
43 void removeTrigger( UInt_t trig );
64 std::set< UInt_t > mTriggerSet;
74 inline void StTrigTreeMaker_t::addTrigger( UInt_t trig ){ mTriggerSet.insert( trig ); };
75 inline void StTrigTreeMaker_t::removeTrigger( UInt_t trig ){ mTriggerSet.erase( trig ); };
Bool_t mIsMC
whether is Monte Carlo or data
void Clear(Option_t *opts="")
Clear for next event.
virtual ~StTrigTreeMaker_t()
deconstructor
Int_t Finish()
Write everything to file.
Int_t Make()
Build an event.
TFile * mFile
TFiles/TTrees for writing.
std::string mFilename
filenames
StTrigTreeMaker_t(const Char_t *myName="TrigTreeMaker", const Char_t *filenameOut="trigTree.root", Bool_t isMC=0, Bool_t useSimu=1)
constructor
Bool_t mUseSimuTrg
whether to use MuDst (hardware) triggers or simulated (software) triggers