|
Berkeley Nuclear Data Software
|
#include <PostProcBase.h>

Public Member Functions | |
| PostProcBase () | |
| defualt constructor puts class into a working state More... | |
| virtual int | addFile (string a_filename) |
| virtual int | addFilesFromDirectory (string a_dir, string a_ext) |
| virtual int | loadEvent (int a_eventNumber) |
| loads a specified event into memory More... | |
| virtual int | fileNotLoaded () |
| tests if a file is loaded and prinst a message if not More... | |
| virtual int | clearFileState () |
| virtual std::ostream & | printState (std::ostream &a_stream=std::cout) |
| virtual | ~PostProcBase () |
| TChain * | getTrees () |
| danger danger, use this if you know what you are doing. More... | |
Protected Member Functions | |
| virtual void | setTreeName ()=0 |
| enforces that a tree name function can be set in a child class More... | |
| virtual void | setBranchName ()=0 |
| enforces that a branch name function can be set in a child class More... | |
Protected Attributes | |
| TChain * | m_trees |
| for associating the trees from files More... | |
| string | m_treeName |
| for storing the name of the tree More... | |
| string | m_branchName |
| for storing the name of the branch More... | |
| T * | m_currentEvent |
| for storing the current event More... | |
| vector< string > | m_loadedFiles |
| for storing a list of loaded files More... | |
| bool | m_hasFile |
| flag for wheter a file has been loaded More... | |
this class is intended as a base class for handling file io for files storing c++ classes in root TTrees
| PostProcBase< T >::PostProcBase |
defualt constructor puts class into a working state
|
virtual |
|
virtual |
loads a file and associates the tree branch with internal memory for the event if a file has been loaded this checks to see if the call is a duplicitrous effort and if not adds the file to the TChain returns 0 when successful
Reimplemented in CompassPostProcBase, NSDAna::OrgScintGainDriftAna, CLYCTOFAna, and NSDAna::CloverGainDriftAna.

|
virtual |
this calls addFile on all files in a given directory with a match to the given extension

|
virtual |
resets the internal state of the class to be as if it was intially constructed with no files added to the file

|
virtual |
tests if a file is loaded and prinst a message if not
| TChain * PostProcBase< T >::getTrees |
danger danger, use this if you know what you are doing.
|
virtual |
loads a specified event into memory
|
virtual |
|
protectedpure virtual |
enforces that a branch name function can be set in a child class
Implemented in GenesisPhysEventAna, and CompassPostProcBase.
|
protectedpure virtual |
enforces that a tree name function can be set in a child class
Implemented in GenesisPhysEventAna, and CompassPostProcBase.
|
protected |
for storing the name of the branch
|
protected |
for storing the current event
|
protected |
flag for wheter a file has been loaded
|
protected |
for storing a list of loaded files
|
protected |
for storing the name of the tree
|
protected |
for associating the trees from files