12 #ifndef STAR_StGammaTreeMaker
13 #define STAR_StGammaTreeMaker
28 StGammaTreeVersion(
const char *name =
"version",
const char *title =
"Versioning Info");
36 std::vector<TString> mMakerTags;
37 std::vector<TString> mStorageTags;
53 virtual const char* GetCVS()
const
54 {
static const char cvs[] =
"Tag $Name: $ $Id: StGammaTreeMaker.h,v 1.6 2014/08/06 11:43:18 jeromel Exp $ built " __DATE__
" " __TIME__;
return cvs; }
59 void Clear(Option_t *opts=
"");
63 TFile *file() {
return mGammaFile; }
64 TTree *tree() {
return mGammaTree; }
70 void SetFile( TFile *file ) { mGammaFile = file; }
72 void SetTree( TTree *tree ) { mGammaTree = tree; }
74 void SetFilename(
const Char_t *fname ) { mFilename = fname; }
76 void skipEmptyEvents() { mSkipEmpty =
true; }
77 void storeEmptyEvents() { mSkipEmpty =
false; }
void SetFile(TFile *file)
Sets the output file for the TTree. Defaults into .hist branch.
void SetFilename(const Char_t *fname)
Sets the filename (unless a file has been passed above)
void Clear(Option_t *opts="")
User defined functions.
void SetTree(TTree *tree)
Sets a pointer to an existing TTree. Default creates at Init().