All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
PlotInfoTree Struct Reference

Class managing the serialization of plot information in a simple ROOT tree. More...

Inheritance diagram for PlotInfoTree:
TreeHolder

Public Member Functions

 PlotInfoTree (TTree &tree)
 Creates the required branches and assigns addresses to them. More...
 
void assign (bool inPlots)
 Fills the information of the specified event. More...
 
- Public Member Functions inherited from TreeHolder
 TreeHolder ()=default
 
 TreeHolder (TTree &tree)
 
TTree & tree ()
 
TTree const & tree () const
 

Public Attributes

Bool_t fInPlots
 

Detailed Description

Class managing the serialization of plot information in a simple ROOT tree.

The tree is supplied by the caller. This object will create the proper branches into the tree and assign addresses to them. Then it will assume they will stay assigned.

On assign(), the branch addresses are assigned the values from the arguments. The tree is not Fill()-ed.

The tree structure is: InPlots/O, with a single branch per element.

Branches:

Definition at line 475 of file TriggerEfficiencyPlots_module.cc.

Constructor & Destructor Documentation

PlotInfoTree::PlotInfoTree ( TTree &  tree)

Creates the required branches and assigns addresses to them.

Definition at line 2492 of file TriggerEfficiencyPlots_module.cc.

2492  : TreeHolder(tree) {
2493 
2494  this->tree().Branch("InPlots", &fInPlots);
2495 
2496 } // PlotInfoTree::PlotInfoTree()
TreeHolder()=default

Member Function Documentation

void PlotInfoTree::assign ( bool  inPlots)

Fills the information of the specified event.

Parameters
inPlotswhether this event is plotted (as opposed to filtered out)

Definition at line 2500 of file TriggerEfficiencyPlots_module.cc.

2500  {
2501 
2502  fInPlots = static_cast<Bool_t>(inPlots);
2503 
2504 } // PlotInfoTree::assignEvent()

Member Data Documentation

Bool_t PlotInfoTree::fInPlots

Definition at line 486 of file TriggerEfficiencyPlots_module.cc.


The documentation for this struct was generated from the following file: