Public Member Functions | Public Attributes | List of all members
caf::SRTruthBranch Class Reference

Contains truth information for the slice for the parent neutrino/cosmic. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/StandardRecord/SRTruthBranch.h"

Public Member Functions

 SRTruthBranch ()
 
 ~SRTruthBranch ()
 
void setDefault ()
 

Public Attributes

std::vector< SRNeutrinonu
 implemented as a vector to maintain mc.nu structure, i.e. not a pointer, but with 0 or 1 entries. More...
 
std::vector< SRCosmiccosmic
 implemented as a vector to maintain mc.cosmic structure More...
 
std::vector< SRNeutrinoallnus
 vector holding all Neutrinos More...
 
std::vector< SRCosmicallcosmics
 vector holding all Cosmics More...
 
short faveidxeff
 Index of favorite in allnus when sorted by slicer efficiency. More...
 
short faveidxenergy
 Index of favorite in allnus when sorted by energy. More...
 
short faveidxpur
 Index of favorite in allnus when sorted by purity. More...
 
short faveidxeffpur
 Index of favorite in allnus when sorted by product of efficiency and purity. More...
 
short faveidxeffthenpur
 Index of favorite in allnus when neutrinos are sorted by efficiency and slices break ties by purity. More...
 
short nnu
 Number of neutrinos in nu vector (0 or 1) More...
 
short ncosmic
 Number of cosmics in cosmic vector (0 or 1) More...
 
short nallnus
 Number of neutrinos in allnus vector. More...
 
short nallcosmics
 Number of cosmics in allcosmics vector. More...
 
SRGlobalTruth global
 

Detailed Description

Contains truth information for the slice for the parent neutrino/cosmic.

Definition at line 19 of file SRTruthBranch.h.

Constructor & Destructor Documentation

caf::SRTruthBranch::SRTruthBranch ( )

Definition at line 15 of file SRTruthBranch.cxx.

15  :
16  nu(),
17  cosmic(),
18  allnus(),
19  allcosmics(),
20  faveidxeff(std::numeric_limits<short>::signaling_NaN()),
21  faveidxenergy(std::numeric_limits<short>::signaling_NaN()),
22  faveidxpur(std::numeric_limits<short>::signaling_NaN()),
23  faveidxeffpur(std::numeric_limits<short>::signaling_NaN()),
24  faveidxeffthenpur(std::numeric_limits<short>::signaling_NaN()),
25  nnu(std::numeric_limits<short>::signaling_NaN()),
26  ncosmic(std::numeric_limits<short>::signaling_NaN()),
27  nallnus(std::numeric_limits<short>::signaling_NaN()),
28  nallcosmics(std::numeric_limits<short>::signaling_NaN()),
29  global()
30  { }
short ncosmic
Number of cosmics in cosmic vector (0 or 1)
Definition: SRTruthBranch.h:38
short faveidxeffthenpur
Index of favorite in allnus when neutrinos are sorted by efficiency and slices break ties by purity...
Definition: SRTruthBranch.h:35
std::vector< SRCosmic > allcosmics
vector holding all Cosmics
Definition: SRTruthBranch.h:29
short faveidxpur
Index of favorite in allnus when sorted by purity.
Definition: SRTruthBranch.h:33
short faveidxeff
Index of favorite in allnus when sorted by slicer efficiency.
Definition: SRTruthBranch.h:31
short nallcosmics
Number of cosmics in allcosmics vector.
Definition: SRTruthBranch.h:40
short faveidxeffpur
Index of favorite in allnus when sorted by product of efficiency and purity.
Definition: SRTruthBranch.h:34
SRGlobalTruth global
Definition: SRTruthBranch.h:42
short nnu
Number of neutrinos in nu vector (0 or 1)
Definition: SRTruthBranch.h:37
std::vector< SRNeutrino > allnus
vector holding all Neutrinos
Definition: SRTruthBranch.h:28
short faveidxenergy
Index of favorite in allnus when sorted by energy.
Definition: SRTruthBranch.h:32
short nallnus
Number of neutrinos in allnus vector.
Definition: SRTruthBranch.h:39
std::vector< SRNeutrino > nu
implemented as a vector to maintain mc.nu structure, i.e. not a pointer, but with 0 or 1 entries...
Definition: SRTruthBranch.h:25
std::vector< SRCosmic > cosmic
implemented as a vector to maintain mc.cosmic structure
Definition: SRTruthBranch.h:26
caf::SRTruthBranch::~SRTruthBranch ( )

Definition at line 32 of file SRTruthBranch.cxx.

32 {}

Member Function Documentation

void caf::SRTruthBranch::setDefault ( )

Definition at line 35 of file SRTruthBranch.cxx.

References faveidxeff, faveidxeffpur, faveidxeffthenpur, faveidxenergy, and faveidxpur.

Referenced by caf::CAFMaker::produce().

36  {
37  faveidxeff = -5;
38  faveidxenergy = -5;
39  faveidxpur = -5;
40  faveidxeffpur = -5;
41  faveidxeffthenpur = -5;
42 
43  }
short faveidxeffthenpur
Index of favorite in allnus when neutrinos are sorted by efficiency and slices break ties by purity...
Definition: SRTruthBranch.h:35
short faveidxpur
Index of favorite in allnus when sorted by purity.
Definition: SRTruthBranch.h:33
short faveidxeff
Index of favorite in allnus when sorted by slicer efficiency.
Definition: SRTruthBranch.h:31
short faveidxeffpur
Index of favorite in allnus when sorted by product of efficiency and purity.
Definition: SRTruthBranch.h:34
short faveidxenergy
Index of favorite in allnus when sorted by energy.
Definition: SRTruthBranch.h:32

Member Data Documentation

std::vector<SRCosmic> caf::SRTruthBranch::allcosmics
std::vector<SRNeutrino> caf::SRTruthBranch::allnus
std::vector<SRCosmic> caf::SRTruthBranch::cosmic
short caf::SRTruthBranch::faveidxeff
short caf::SRTruthBranch::faveidxeffpur
short caf::SRTruthBranch::faveidxeffthenpur

Index of favorite in allnus when neutrinos are sorted by efficiency and slices break ties by purity.

Definition at line 35 of file SRTruthBranch.h.

Referenced by caf::Proxy< caf::SRTruthBranch >::CheckEquals(), flat::FlatTruthBranch::Fill(), hdf5::HDF5TruthBranch< Tidx >::Fill(), caf::Proxy< caf::SRTruthBranch >::operator=(), caf::CAFMaker::produce(), and setDefault().

short caf::SRTruthBranch::faveidxenergy
short caf::SRTruthBranch::faveidxpur
SRGlobalTruth caf::SRTruthBranch::global

Information about the event from which the slice came. Variables in this branch should be used with caution since it can be duplicated across entries (slices) in the CAF tree.

Definition at line 42 of file SRTruthBranch.h.

Referenced by caf::Proxy< caf::SRTruthBranch >::CheckEquals(), flat::FlatTruthBranch::Fill(), hdf5::HDF5TruthBranch< Tidx >::Fill(), caf::Proxy< caf::SRTruthBranch >::operator=(), and caf::CAFMaker::produce().

short caf::SRTruthBranch::nallcosmics
short caf::SRTruthBranch::nallnus
short caf::SRTruthBranch::ncosmic
short caf::SRTruthBranch::nnu
std::vector<SRNeutrino> caf::SRTruthBranch::nu

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