travex
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
tvx::RootFile Class Reference

A basic extention of the ROOT's TFile class to manage a set of user defined histogram containers (or any other ROOT objects if desired) by automatically arranging them in subdirectories. More...

#include <RootFile.h>

Inheritance diagram for tvx::RootFile:

Public Member Functions

 RootFile (ProgramOptions &prgOpts, Option_t *option="", const char *ftitle="", Int_t compress=1)
 
void FillDerivedHists ()
 For each histogram container calls the method of the same name in order to produce new histograms from already filled histograms. More...
 
const ProgramOptionsGetPrgOptions ()
 
virtual void Close (Option_t *option="")
 
void SaveAllAs (std::string prefix="./")
 

Protected Attributes

HistContainers fDirs
 A string-to-HistContainer map for convenient access to enclosed directories. More...
 
ProgramOptionsfPrgOptions
 Command line arguments and options requested by the user. More...
 

Detailed Description

A basic extention of the ROOT's TFile class to manage a set of user defined histogram containers (or any other ROOT objects if desired) by automatically arranging them in subdirectories.

This simple helper class can use options provided by the user in the command line and aggregated by tvx::ProgramOptions.

Definition at line 25 of file RootFile.h.

Constructor & Destructor Documentation

RootFile::RootFile ( ProgramOptions prgOpts,
Option_t *  option = "",
const char *  ftitle = "",
Int_t  compress = 1 
)

Definition at line 16 of file RootFile.cxx.

Member Function Documentation

void RootFile::Close ( Option_t *  option = "")
virtual

Definition at line 51 of file RootFile.cxx.

void RootFile::FillDerivedHists ( )

For each histogram container calls the method of the same name in order to produce new histograms from already filled histograms.

Definition at line 33 of file RootFile.cxx.

const ProgramOptions& tvx::RootFile::GetPrgOptions ( )
inline

Definition at line 32 of file RootFile.h.

void RootFile::SaveAllAs ( std::string  prefix = "./")

Definition at line 61 of file RootFile.cxx.

Member Data Documentation

HistContainers tvx::RootFile::fDirs
protected

A string-to-HistContainer map for convenient access to enclosed directories.

Definition at line 40 of file RootFile.h.

ProgramOptions& tvx::RootFile::fPrgOptions
protected

Command line arguments and options requested by the user.

Definition at line 43 of file RootFile.h.


The documentation for this class was generated from the following files: