Class managing the serialization of event information in a simple ROOT tree. More...
Public Member Functions | |
EventInfoTree (TTree &tree) | |
Creates the required branches and assigns addresses to them. More... | |
void | assignEvent (EventInfo_t const &info) |
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 | |
UInt_t | fCC |
UInt_t | fNC |
Int_t | fIntType |
Double_t | fNuE |
Double_t | fOutLeptE |
Double_t | fTotE |
Double_t | fSpillE |
Double_t | fActiveE |
Double_t | fSpillActiveE |
Bool_t | fInActive |
Class managing the serialization of event 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 assignEvent()
, the branch addresses are assigned the values from the event information. The tree is not Fill()
-ed.
The tree structure is: CC/i:NC/i:IntType:I/NuE:D/OutLeptE:D/TotE/D:SpillE/D:InActive/O
, with a single branch per element.
Branches:
CC
(unsigned integer): number of neutrino CC interactions in the eventNC
(unsigned integer): number of neutrino NC interactions in the eventIntType
(integer): code of interaction type (see simb::int_type_
)NuE
(double): energy of the generated initial state neutrino [GeV]OutLeptE
(double): energy of the generated final state lepton [GeV]TotE
(double): total deposited energy in the event [GeV]SpillE
(double): total deposited energy during the beam gate [GeV]InActive
(bool): whether an interaction happened in active volume' this requires an interaction vertex (e.g. cosmic rays are out) Definition at line 518 of file TriggerEfficiencyPlots_module.cc.
EventInfoTree::EventInfoTree | ( | TTree & | tree | ) |
Creates the required branches and assigns addresses to them.
Definition at line 2510 of file TriggerEfficiencyPlots_module.cc.
void EventInfoTree::assignEvent | ( | EventInfo_t const & | info | ) |
Fills the information of the specified event.
info | event information to fill the tree with |
inPlots | whether this event is plotted (as opposed to filtered out) |
Definition at line 2528 of file TriggerEfficiencyPlots_module.cc.
Double_t EventInfoTree::fActiveE |
Definition at line 537 of file TriggerEfficiencyPlots_module.cc.
UInt_t EventInfoTree::fCC |
Definition at line 530 of file TriggerEfficiencyPlots_module.cc.
Bool_t EventInfoTree::fInActive |
Definition at line 540 of file TriggerEfficiencyPlots_module.cc.
Int_t EventInfoTree::fIntType |
Definition at line 532 of file TriggerEfficiencyPlots_module.cc.
UInt_t EventInfoTree::fNC |
Definition at line 531 of file TriggerEfficiencyPlots_module.cc.
Double_t EventInfoTree::fNuE |
Definition at line 533 of file TriggerEfficiencyPlots_module.cc.
Double_t EventInfoTree::fOutLeptE |
Definition at line 534 of file TriggerEfficiencyPlots_module.cc.
Double_t EventInfoTree::fSpillActiveE |
Definition at line 538 of file TriggerEfficiencyPlots_module.cc.
Double_t EventInfoTree::fSpillE |
Definition at line 536 of file TriggerEfficiencyPlots_module.cc.
Double_t EventInfoTree::fTotE |
Definition at line 535 of file TriggerEfficiencyPlots_module.cc.