RootWriter Class Reference
[modules - functions to process raw data in series]

Store processed EventData objects for each trigger into a ROOT tree. More...

#include <RootWriter.hh>

Inheritance diagram for RootWriter:
BaseModule ParameterList VParameterNode

List of all members.

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

Detailed Description

Store processed EventData objects for each trigger into a ROOT tree.

Definition at line 42 of file RootWriter.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 20 Jun 2014 for daqman by  doxygen 1.6.1