Store processed EventData objects for each trigger into a ROOT tree. More...
#include <RootWriter.hh>
Public Member Functions | |
TTree * | GetTree () |
Get the output tree. | |
int | Initialize () |
Initialize the module before starting a run. Return 0 if no error. | |
int | Finalize () |
Finalize state after a run has processed. Return 0 if no error. | |
int | Process (EventPtr evt) |
Process a single event. Must be overridden. Return 0 if no error. | |
const std::string | GetFilename () |
Get the output ROOT filename. | |
void | SetFilename (const std::string &name) |
Set the output ROOT filename. | |
void | EnableBranch (const char *classname, const char *branchname, bool enable=true) |
Enable a given branch in the stored tree. | |
void | DisableBranch (const char *classname, const char *branchname) |
Disable a given branch in the stored tree. | |
Static Public Member Functions | |
static const std::string | GetDefaultName () |
static const std::string | GetDefaultFilename () |
Get the default ROOT output filename. | |
Private Member Functions | |
void | SaveConfig () |
Private Attributes | |
std::string | _filename |
std::string | _directory |
std::string | _mode |
TFile * | _outfile |
TTree * | _tree |
bool | default_saveall |
BranchEnabler | enabler |
BranchDisabler | disabler |
Store processed EventData objects for each trigger into a ROOT tree.
Definition at line 42 of file RootWriter.hh.