Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

cafe::SelectBranches Class Reference

Helper class to temporarily disable branches. More...

#include <SelectBranches.hpp>

List of all members.

Public Member Functions

 SelectBranches (cafe::Event &event, const BranchNames &names)
 ~SelectBranches ()

Private Member Functions

 SelectBranches (const SelectBranches &)
SelectBranches operator= (const SelectBranches &)

Private Attributes

const BranchNames_names


Detailed Description

Helper class to temporarily disable branches.

An instance of this class should be instantiated around a code block where certain TMBTree branches should not be read. The destructor will automatically enable all disabled branches again.

Example:

BranchNames names("EMscone.fX", "EMscone.fY");

SelectBranches enable(event, names);

only the two branches above are enabled now

Definition at line 63 of file SelectBranches.hpp.


Constructor & Destructor Documentation

cafe::SelectBranches::SelectBranches cafe::Event event,
const BranchNames names
 

Definition at line 151 of file SelectBranches.cpp.

References cafe::EventBase::getCookie(), and cafe::EventBase::getTree().

cafe::SelectBranches::~SelectBranches  ) 
 

Definition at line 157 of file SelectBranches.cpp.

References _names, and cafe::BranchNames::enable().

cafe::SelectBranches::SelectBranches const SelectBranches  )  [private]
 


Member Function Documentation

SelectBranches cafe::SelectBranches::operator= const SelectBranches  )  [private]
 


Member Data Documentation

const BranchNames& cafe::SelectBranches::_names [private]
 

Definition at line 72 of file SelectBranches.hpp.

Referenced by ~SelectBranches().


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 10:13:10 2006 for CAF by doxygen 1.3.4