Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
icaruscode
icaruscode
PMT
Trigger
Algorithms
details
EventIDTree.cxx
Go to the documentation of this file.
1
/**
2
* @file icaruscode/PMT/Trigger/Algorithms/details/EventIDTree.cxx
3
* @brief Class storing event information in a ROOT tree (implementation).
4
* @author Gianluca Petrillo (petrillo@slac.stanford.edu)
5
* @date May 15, 2020
6
* @see icaruscode/PMT/Trigger/Algorithms/details/EventIDTree.h
7
*/
8
9
// library header
10
#include "
icaruscode/PMT/Trigger/Algorithms/details/EventIDTree.h
"
11
12
// ROOT libraries
13
#include "TTree.h"
14
15
16
//------------------------------------------------------------------------------
17
icarus::trigger::details::EventIDTree::EventIDTree
(TTree& tree)
18
:
TreeHolder
(tree)
19
{
20
21
this->
tree
().Branch(
"RunNo"
, &
fRunNo
);
22
this->
tree
().Branch(
"SubRunNo"
, &
fSubRunNo
);
23
this->
tree
().Branch(
"EventNo"
, &
fEventNo
);
24
25
}
// icarus::trigger::details::EventIDTree::EventIDTree()
26
27
28
//------------------------------------------------------------------------------
29
void
icarus::trigger::details::EventIDTree::assignID
(art::EventID
const
&
id
) {
30
31
fRunNo =
id
.run();
32
fSubRunNo =
id
.subRun();
33
fEventNo =
id
.event();
34
35
}
// icarus::trigger::details::EventIDTree::assignID()
36
37
38
//------------------------------------------------------------------------------
icarus::trigger::details::EventIDTree::fRunNo
UInt_t fRunNo
Definition:
EventIDTree.h:45
icarus::trigger::details::TreeHolder
Simple class holding a tree.
Definition:
TreeHolder.h:24
icarus::trigger::details::EventIDTree::EventIDTree
EventIDTree(TTree &tree)
Creates the required branches and assigns addresses to them.
Definition:
EventIDTree.cxx:17
icarus::trigger::details::TreeHolder::tree
TTree & tree()
Definition:
TreeHolder.h:29
icarus::trigger::details::EventIDTree::assignID
void assignID(art::EventID const &id)
Fills the information of the specified event.
Definition:
EventIDTree.cxx:29
icarus::trigger::details::EventIDTree::fSubRunNo
UInt_t fSubRunNo
Definition:
EventIDTree.h:46
EventIDTree.h
Class hosting selected information about the event.
icarus::trigger::details::EventIDTree::fEventNo
UInt_t fEventNo
Definition:
EventIDTree.h:47
Generated by
1.8.5