SRNumuEnergy.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRNumuEnergy.h
3 // \brief This is a class for the Numu energy estimator output in the standard record.
4 // \file SREnergy.h
5 // \brief This is a simple class for energy estimators in the standard record.
6 // \version $Id: SRNumuEnergy.cxx,v 1.1 2012-11-19 19:45:16 rocco Exp $
7 // \author $Author: rocco $
8 // \date $Date: 2012-11-19 19:45:16 $
9 ////////////////////////////////////////////////////////////////////////
10 #include<limits>
11 
13 
14 namespace caf
15 {
16 
18  E(std::numeric_limits<float>::signaling_NaN()),
19  calccE(std::numeric_limits<float>::signaling_NaN()),
20  trkqeE(std::numeric_limits<float>::signaling_NaN()),
21  trknonqeE(std::numeric_limits<float>::signaling_NaN()),
22  trkccE(std::numeric_limits<float>::signaling_NaN()),
23  shiftedtrkccE(std::numeric_limits<float>::signaling_NaN()),
24  angleE(std::numeric_limits<float>::signaling_NaN()),
25  angleerror(std::numeric_limits<float>::signaling_NaN()),
26  recomuonE(std::numeric_limits<float>::signaling_NaN()),
27  ucrecomuonE1trk(std::numeric_limits<float>::signaling_NaN()),
28  ucrecomuonE(std::numeric_limits<float>::signaling_NaN()),
29  recotrkcchadE(std::numeric_limits<float>::signaling_NaN()),
30  hadcalE(std::numeric_limits<float>::signaling_NaN()),
31  hadtrkE(std::numeric_limits<float>::signaling_NaN()),
32  ndtrklenact(std::numeric_limits<float>::signaling_NaN()),
33  ndtrklencat(std::numeric_limits<float>::signaling_NaN()),
34  ndtrkcalactE(std::numeric_limits<float>::signaling_NaN()),
35  ndtrkcaltranE(std::numeric_limits<float>::signaling_NaN()),
36  ndtrkcalcatE(std::numeric_limits<float>::signaling_NaN()),
37  ndhadcalactE(std::numeric_limits<float>::signaling_NaN()),
38  ndhadcaltranE(std::numeric_limits<float>::signaling_NaN()),
39  ndhadcalcatE(std::numeric_limits<float>::signaling_NaN()),
40  ndhadtrkactE(std::numeric_limits<float>::signaling_NaN()),
41  ndhadtrktranE(std::numeric_limits<float>::signaling_NaN()),
42  ndhadtrkcatE(std::numeric_limits<float>::signaling_NaN()),
43  ndtrktranx(std::numeric_limits<float>::signaling_NaN()),
44  ndtrktrany(std::numeric_limits<float>::signaling_NaN()),
45  hadclust(),
46  mc(),
47  bpfenergy(),
48  lstmmuon(std::numeric_limits<float>::signaling_NaN()),
49  lstmnu (std::numeric_limits<float>::signaling_NaN()),
50  lstmmuon_opphorn(std::numeric_limits<float>::signaling_NaN()),
51  lstmnu_opphorn (std::numeric_limits<float>::signaling_NaN()),
52  regcvnhadE (std::numeric_limits<float>::signaling_NaN()),
53  regcvnhadE_opphorn (std::numeric_limits<float>::signaling_NaN())
54  {
55  }
56 
58  {
59  }
60 
62  {
63  E = -5;
64  calccE = -5;
65  trkqeE = -5;
66  trknonqeE = -5;
67  trkccE = -5;
68  shiftedtrkccE = -5;
69  angleE = -5;
70  angleerror = -5;
71  recomuonE = -5;
72  ucrecomuonE1trk = -5;
73  ucrecomuonE = -5;
74  recotrkcchadE = -5;
75  hadcalE = -5;
76  hadtrkE = -5;
77  ndtrklenact = -5;
78  ndtrklencat = -5;
79  ndtrkcalactE = -5;
80  ndtrkcaltranE = -5;
81  ndtrkcalcatE = -5;
82  ndhadcalactE = -5;
83  ndhadcaltranE = -5;
84  ndhadcalcatE = -5;
85  ndhadtrkactE = -5;
86  ndhadtrktranE = -5;
87  ndhadtrkcatE = -5;
88  ndtrktranx = 999;
89  ndtrktrany = 999;
91  mc.setDefault();
93  regcvnhadE = -5;
94  }
95 
96  void SRNumuEnergy::setLSTMDefault(bool opphorn)
97  {
98  if(opphorn){
99  lstmmuon_opphorn = -5;
100  lstmnu_opphorn = -5;
101  }
102  else{
103  lstmmuon = -5;
104  lstmnu = -5;
105  }
106  }
107 
108 } // end namespace caf
109 ////////////////////////////////////////////////////////////////////////
float lstmmuon_opphorn
lstmmuon trained with opposite horn current
Definition: SRNumuEnergy.h:58
float angleerror
1-sigma error from using quasielastic angle formula for neutrino energy
Definition: SRNumuEnergy.h:30
virtual void setDefault()
Definition: SRBPFEnergy.cxx:33
float ndhadcalactE
Near detector – hadronic calorimetric energy NOT on the muon track in active region [GeV]...
Definition: SRNumuEnergy.h:42
float ndtrklenact
Near detector – muon track length in active region [cm].
Definition: SRNumuEnergy.h:37
float ndtrkcaltranE
Near detector – muon calorimetric energy in transition plane [GeV].
Definition: SRNumuEnergy.h:40
SRHadClust hadclust
Cluster information for hits in slice but not on muon track (track with higest ReMId value) ...
Definition: SRNumuEnergy.h:50
float shiftedtrkccE
Track length cc neutrino energy GeV
Definition: SRNumuEnergy.h:28
float trknonqeE
Track length non-quasielastic neutrino energy [GeV].
Definition: SRNumuEnergy.h:26
float regcvnhadE
Hadronic Energy predicted by Regression CNN [GeV].
Definition: SRNumuEnergy.h:61
float ndtrkcalcatE
Near detector – muon calorimetric energy in muon catcher [GeV].
Definition: SRNumuEnergy.h:41
float calccE
Calorimetric charged current neutrino energy [GeV].
Definition: SRNumuEnergy.h:24
void setLSTMDefault(bool opphorn=false)
virtual ~SRNumuEnergy()
float ucrecomuonE1trk
Reconstructed muon energy for uncontained single track events at the FarDet from TMVA [GeV]...
Definition: SRNumuEnergy.h:32
float ndhadtrkactE
Near detector – hadronic calorimetric energy on the muon track in active region [GeV].
Definition: SRNumuEnergy.h:45
virtual void setDefault()
float trkccE
Track length cc neutrino energy [GeV].
Definition: SRNumuEnergy.h:27
float ndhadcalcatE
Near detector – hadronic calorimetric energy NOT on the muon track in muon catcher [GeV]...
Definition: SRNumuEnergy.h:44
float trkqeE
Track length quasielastic neutrino energy [GeV].
Definition: SRNumuEnergy.h:25
float hadtrkE
Hadronic calorimetric energy on the muon track[GeV].
Definition: SRNumuEnergy.h:36
Float_t E
Definition: plot.C:20
float lstmmuon
Muon Energy predicted by LSTM EE [GeV].
Definition: SRNumuEnergy.h:55
float ndtrktranx
Near detector – if muon track crosses transition plane, the x location [cm].
Definition: SRNumuEnergy.h:48
float ucrecomuonE
Reconstructed muon energy for uncontained non-single track events at the FarDet from TMVA [GeV]...
Definition: SRNumuEnergy.h:33
float angleE
Quasielastic angle formula neutrino energy [GeV].
Definition: SRNumuEnergy.h:29
SRTrueNumuEnergy mc
True information used for retuning numu energy fits.
Definition: SRNumuEnergy.h:51
SRBPFEnergy bpfenergy
BreakPointFitter energy estimator.
Definition: SRNumuEnergy.h:52
float lstmnu_opphorn
lstmnu trained with opposite horn current
Definition: SRNumuEnergy.h:59
float E
Neutrino energy, set to match trkccE [GeV].
Definition: SRNumuEnergy.h:23
float ndhadcaltranE
Near detector – hadronic calorimetric energy NOT on the muon track in transition plane [GeV]...
Definition: SRNumuEnergy.h:43
float ndtrkcalactE
Near detector – muon calorimetric energy in active region [GeV].
Definition: SRNumuEnergy.h:39
float ndtrklencat
Near detector – muon track length in muon catcher [cm].
Definition: SRNumuEnergy.h:38
float ndtrktrany
Near detector – if muon track crosses transition plane, the y location [cm].
Definition: SRNumuEnergy.h:49
float ndhadtrktranE
Near detector – hadronic calorimetric energy on the muon track in transition plane [GeV]...
Definition: SRNumuEnergy.h:46
float recotrkcchadE
Reconstructed hadronic energy for track cc neutrino energy estimator [GeV].
Definition: SRNumuEnergy.h:34
float lstmnu
NuMu Energy predicted by LSTM EE [GeV].
Definition: SRNumuEnergy.h:56
This module creates Common Analysis Files.
Definition: FileReducer.h:10
float ndhadtrkcatE
Near detector – hadronic calorimetric energy on the muon track in muon catcher [GeV].
Definition: SRNumuEnergy.h:47
float hadcalE
Hadronic calorimetric energy NOT on the muon track[GeV].
Definition: SRNumuEnergy.h:35
float recomuonE
Reconstructed muon energy for all neutrino energy estimators [GeV].
Definition: SRNumuEnergy.h:31