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

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

#include <TriggerEfficiencyPlotsBase.h>

Inheritance diagram for icarus::trigger::details::PlotInfoTree:
icarus::trigger::details::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 icarus::trigger::details::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 249 of file TriggerEfficiencyPlotsBase.h.

Constructor & Destructor Documentation

PlotInfoTree::PlotInfoTree ( TTree &  tree)

Creates the required branches and assigns addresses to them.

Definition at line 391 of file TriggerEfficiencyPlotsBase.cxx.

392  : TreeHolder(tree)
393 {
394 
395  this->tree().Branch("InPlots", &fInPlots);
396 
397 } // icarus::trigger::details::PlotInfoTree::PlotInfoTree()

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 401 of file TriggerEfficiencyPlotsBase.cxx.

401  {
402 
403  fInPlots = static_cast<Bool_t>(inPlots);
404 
405 } // icarus::trigger::details::PlotInfoTree::assignEvent()

Member Data Documentation

Bool_t icarus::trigger::details::PlotInfoTree::fInPlots

Definition at line 260 of file TriggerEfficiencyPlotsBase.h.


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