star-travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StiTreeMaker Class Referenceabstract

#include <StiTreeMaker.h>

Inheritance diagram for StiTreeMaker:
StiHifyTreeMaker StiScanTreeMaker

Public Member Functions

 StiTreeMaker (const std::string &name="StiTreeMaker", const std::string &suffix="stitree")
 
virtual ~StiTreeMaker ()
 
virtual Int_t Init ()
 Creates an output ROOT file and a ROOT tree with a user defined structure. More...
 
virtual Int_t Make ()=0
 
virtual void Clear (Option_t *opt="")
 Clear the container for the next event. More...
 
virtual Int_t Finish ()
 

Protected Member Functions

virtual void SetEventTree ()=0
 

Protected Attributes

TFile * fFile
 
std::string fSuffix
 A string to append to the output file name. More...
 
TTree * fTree
 
TStiEventfEvent
 

Detailed Description

Definition at line 13 of file StiTreeMaker.h.

Constructor & Destructor Documentation

StiTreeMaker::StiTreeMaker ( const std::string &  name = "StiTreeMaker",
const std::string &  suffix = "stitree" 
)
StiTreeMaker::~StiTreeMaker ( )
virtual

Definition at line 22 of file StiTreeMaker.cxx.

Member Function Documentation

void StiTreeMaker::Clear ( Option_t *  opt = "")
virtual

Clear the container for the next event.

Definition at line 76 of file StiTreeMaker.cxx.

Int_t StiTreeMaker::Finish ( )
virtual

Definition at line 63 of file StiTreeMaker.cxx.

Int_t StiTreeMaker::Init ( )
virtual

Creates an output ROOT file and a ROOT tree with a user defined structure.

It is the user's responsibility to attach a branch to the tree by overriding SetEventTree(). The name of the output file is formed from the input file name by adding a suffix string.

Definition at line 38 of file StiTreeMaker.cxx.

virtual Int_t StiTreeMaker::Make ( )
pure virtual

Implemented in StiHifyTreeMaker, and StiScanTreeMaker.

virtual void StiTreeMaker::SetEventTree ( )
protectedpure virtual

Implemented in StiHifyTreeMaker, and StiScanTreeMaker.

Member Data Documentation

TStiEvent* StiTreeMaker::fEvent
protected

Definition at line 31 of file StiTreeMaker.h.

TFile* StiTreeMaker::fFile
protected

Definition at line 28 of file StiTreeMaker.h.

std::string StiTreeMaker::fSuffix
protected

A string to append to the output file name.

Definition at line 29 of file StiTreeMaker.h.

TTree* StiTreeMaker::fTree
protected

Definition at line 30 of file StiTreeMaker.h.


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