SRTruthBranch.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \author Dominick Rocco
3 // \date Sept. 2012
4 ////////////////////////////////////////////////////////////////////////
5 #ifndef SRTRUTHBRANCH_H
6 #define SRTRUTHBRANCH_H
7 
10 #include "StandardRecord/SRTruth.h"
12 
13 #include <vector>
14 
15 namespace caf
16 {
17  /// \brief Contains truth information for the slice for the parent
18  /// neutrino/cosmic
20  {
21  public:
22  SRTruthBranch();
24 
25  std::vector<SRNeutrino> nu; ///< implemented as a vector to maintain mc.nu structure, i.e. not a pointer, but with 0 or 1 entries.
26  std::vector<SRCosmic> cosmic; ///< implemented as a vector to maintain mc.cosmic structure
27 
28  std::vector<SRNeutrino> allnus; ///< vector holding all Neutrinos
29  std::vector<SRCosmic> allcosmics; ///< vector holding all Cosmics
30 
31  short faveidxeff; ///< Index of favorite in allnus when sorted by slicer efficiency
32  short faveidxenergy; ///< Index of favorite in allnus when sorted by energy
33  short faveidxpur; ///< Index of favorite in allnus when sorted by purity
34  short faveidxeffpur; ///< Index of favorite in allnus when sorted by product of efficiency and purity
35  short faveidxeffthenpur; ///< Index of favorite in allnus when neutrinos are sorted by efficiency and slices break ties by purity
36 
37  short nnu; ///< Number of neutrinos in nu vector (0 or 1)
38  short ncosmic; ///< Number of cosmics in cosmic vector (0 or 1)
39  short nallnus; ///< Number of neutrinos in allnus vector
40  short nallcosmics; ///< Number of cosmics in allcosmics vector
41 
42  SRGlobalTruth global; ///< Information about the event from which the slice came.
43  ///< Variables in this branch should be used with caution since it can be
44  ///< duplicated across entries (slices) in the CAF tree.
45 
46  void setDefault();
47 
48  };
49 
50 } // end namespace
51 
52 #endif // SRTRUTHBRANCH_H
53 //////////////////////////////////////////////////////////////////////////////
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
Contains truth information for the slice for the parent neutrino/cosmic.
Definition: SRTruthBranch.h:19
This module creates Common Analysis Files.
Definition: FileReducer.h:10
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