Base class for the different kind of VarHandle specializations. More...
#include <VarHandle.h>
Public Member Functions | |
VarHandleBase (::TObject *parent=0, const char *name="", const ::Long64_t *master=0) | |
Constructor specifying all the needed parameters. | |
virtual | ~VarHandleBase () |
The destructor is actually only useful in the specialized class... | |
::TObject * | GetParent () const |
Get a pointer to the parent of the object. | |
void | SetParent (::TObject *parent) |
Set the pointer to the parent of the object. | |
const char * | GetName () const |
Get the name of the branch handled by this class. | |
void | SetName (const char *name) |
Set the name of the branch handled by this class. | |
const char * | GetType () const |
Get the type name of the branch handled by this object. | |
void | SetType (const char *type) |
Set the type name of the branch handled by this object. | |
const ::Long64_t * | GetMaster () const |
Get a pointer to the master entry variable. | |
void | SetMaster (const ::Long64_t *master) |
Set the pointer to the master entry variable. | |
virtual void | ReadFrom (::TTree *tree)=0 |
Connect the object to an input tree. | |
virtual ::TBranch * | WriteTo (::TTree *tree)=0 |
Connect the object to an output tree. | |
::Bool_t | IsActive () const |
Check if this variable is "active" at the moment. | |
void | SetActive (::Bool_t active=kTRUE) |
Set the "activity level" of the variable. | |
virtual ::Bool_t | IsAvailable () const |
Check if the variable is available in the input. | |
virtual void | ReadCurrentEntry () const =0 |
Read in the current entry from the branch. | |
virtual void | Clear ()=0 |
"Clear" the variable of its contents | |
virtual VariableStats | GetStatistics () const |
Get information about the read statistics. | |
Protected Types | |
enum | BranchAvailability { UNKNOWN = 0, AVAILABLE = 1, UNAVAILABLE = 2 } |
Custom enumeration describing the availability of the branch. More... | |
Protected Member Functions | |
::Bool_t | ConnectVariable (void *var,::TClass *realClass, EDataType dtype, Bool_t isptr) const |
Connect the variable to the branch. | |
void | UpdateBranch () const |
Update the variable to the current entry in the D3PD. | |
void | UpdateStat (::TBranch *br) const |
Switch to a new tree in the statistics gathering. | |
const char * | RootType (const char *typeid_type) const |
Translate the typeid() type name to something ROOT understands. | |
const char * | RootCppType (const char *typeid_type) const |
Translate the typeid() type name to a huma-readable ROOT type name. | |
Protected Attributes | |
const ::Long64_t * | fMaster |
Pointer to the current entry number. | |
::TObject * | fParent |
Pointer to the parent D3PDObject. | |
::Bool_t | fFromInput |
Flag showing if the variable is read from an input TTree. | |
::TTree * | fInTree |
The input TTree. | |
mutable::TBranch * | fInBranch |
BranchAvailability | fAvailable |
The input branch belonging to this variable. |
Base class for the different kind of VarHandle specializations.
This class is used to keep a list of all the VarHandle members of a D3PDObject class. It makes some operations much easier.
enum D3PDReader::VarHandleBase::BranchAvailability [protected] |
BranchAvailability D3PDReader::VarHandleBase::fAvailable [mutable, protected] |
The input branch belonging to this variable.
Availability of the branch