Class managing the serialization of event ID in a simple ROOT tree. More...
#include <EventIDTree.h>
Public Member Functions | |
EventIDTree (TTree &tree) | |
Creates the required branches and assigns addresses to them. More... | |
void | assignID (art::EventID const &id) |
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 | |
UInt_t | fRunNo |
UInt_t | fSubRunNo |
UInt_t | fEventNo |
Class managing the serialization of event ID 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 assignEvent()
, the branch addresses are assigned the values from the event ID. The tree is not Fill()
-ed.
The tree structure is: Run/i:SubRun/i:Event/i
, with a single branch per element.
Definition at line 37 of file EventIDTree.h.
EventIDTree::EventIDTree | ( | TTree & | tree | ) |
Creates the required branches and assigns addresses to them.
Definition at line 17 of file EventIDTree.cxx.
void EventIDTree::assignID | ( | art::EventID const & | id | ) |
UInt_t icarus::trigger::details::EventIDTree::fEventNo |
Definition at line 47 of file EventIDTree.h.
UInt_t icarus::trigger::details::EventIDTree::fRunNo |
Definition at line 45 of file EventIDTree.h.
UInt_t icarus::trigger::details::EventIDTree::fSubRunNo |
Definition at line 46 of file EventIDTree.h.