6 #include "StBFChain/StBFChain.h"
7 #include "StEvent/StEnumerations.h"
8 #include "StEvent/StEnumerations.h"
16 fTree(new TTree("t", "TTree with HFT hits and tracks")),
40 StBFChain *bfChain = (StBFChain *) StMaker::GetChain();
42 if (!bfChain)
return kStFatal;
45 TTree::SetMaxTreeSize(1000 * Long64_t(2000000000));
47 TString fileName( gSystem->BaseName(bfChain->GetFileOut().Data()) );
50 fileName +=
"." +
fSuffix +
".root";
52 fFile =
new TFile(fileName,
"RECREATE",
"TTree with HFT hits and tracks");
53 fFile->SetCompressionLevel(1);
virtual void Clear(Option_t *opt="")
virtual void SetEventTree()=0
virtual void Clear(Option_t *opt="")
Clear the container for the next event.
virtual Int_t Init()
Creates an output ROOT file and a ROOT tree with a user defined structure.
ClassImp(StiTreeMaker) StiTreeMaker
std::string fSuffix
A string to append to the output file name.