LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lcvn::TDNuInfo Class Reference

#include "LArTrainingData.h"

Public Member Functions

 TDNuInfo ()
 
void SetTruthInfo (float nuEnergy, float lepEnergy, float lepAngle, float weight)
 
void SetRecoInfo (float nueEnergy, float numuEnergy, float nutauEnergy)
 
void SetTopologyInformation (int pdg, int nproton, int npion, int npizero, int nneutron, int toptype, int toptypealt)
 

Private Attributes

float fNuEnergy
 True energy of neutrino event. More...
 
float fLepEnergy
 True energy of outgoing lepton. More...
 
float fLepAngle
 True angle of outgoing lepton wrt neutrino. More...
 
float fEventWeight
 The event weight (norm * oscProb) More...
 
float fRecoNueEnergy
 Reconstructed energy under nue hypothesis. More...
 
float fRecoNumuEnergy
 Reconstructed energy under numu hypothesis. More...
 
float fRecoNutauEnergy
 Reconstructed energy under nutau hypothesis. More...
 
bool fUseTopology
 
int fNuPDG
 
int fNProton
 
int fNPion
 
int fNPizero
 
int fNNeutron
 
int fTopologyType
 
int fTopologyTypeAlt
 

Friends

std::ostream & operator<< (std::ostream &os, const TDNuInfo &td)
 

Detailed Description

Definition at line 19 of file LArTrainingData.h.

Constructor & Destructor Documentation

lcvn::TDNuInfo::TDNuInfo ( )

Definition at line 13 of file LArTrainingData.cxx.

14  : fNuEnergy(0.)
15  , fLepEnergy(0.)
16  , fLepAngle(0.)
17  , fEventWeight(1)
18  , fRecoNueEnergy(0.)
19  , fRecoNumuEnergy(0.)
20  , fRecoNutauEnergy(0.)
21  , fUseTopology(false)
22  , fNuPDG(0)
23  , fNProton(-1)
24  , fNPion(-1)
25  , fNPizero(-1)
26  , fNNeutron(-1)
27  , fTopologyType(-1)
28  , fTopologyTypeAlt(-1)
29  {}
float fNuEnergy
True energy of neutrino event.
float fEventWeight
The event weight (norm * oscProb)
float fRecoNumuEnergy
Reconstructed energy under numu hypothesis.
float fRecoNueEnergy
Reconstructed energy under nue hypothesis.
float fLepAngle
True angle of outgoing lepton wrt neutrino.
float fRecoNutauEnergy
Reconstructed energy under nutau hypothesis.
float fLepEnergy
True energy of outgoing lepton.

Member Function Documentation

void lcvn::TDNuInfo::SetRecoInfo ( float  nueEnergy,
float  numuEnergy,
float  nutauEnergy 
)

Definition at line 40 of file LArTrainingData.cxx.

References fRecoNueEnergy, fRecoNumuEnergy, and fRecoNutauEnergy.

41  {
42 
43  fRecoNueEnergy = nueEnergy;
44  fRecoNumuEnergy = numuEnergy;
45  fRecoNutauEnergy = nutauEnergy;
46  }
float fRecoNumuEnergy
Reconstructed energy under numu hypothesis.
float fRecoNueEnergy
Reconstructed energy under nue hypothesis.
float fRecoNutauEnergy
Reconstructed energy under nutau hypothesis.
void lcvn::TDNuInfo::SetTopologyInformation ( int  pdg,
int  nproton,
int  npion,
int  npizero,
int  nneutron,
int  toptype,
int  toptypealt 
)

Definition at line 48 of file LArTrainingData.cxx.

References fNNeutron, fNPion, fNPizero, fNProton, fNuPDG, fTopologyType, fTopologyTypeAlt, and fUseTopology.

Referenced by lcvn::LArNuCVNZlibMaker::analyze().

55  {
56 
57  fUseTopology = true;
58 
59  fNuPDG = pdg;
60  fNProton = nproton;
61  fNPion = npion;
62  fNPizero = npizero;
63  fNNeutron = nneutron;
64 
65  fTopologyType = toptype;
66  fTopologyTypeAlt = toptypealt;
67  }
void lcvn::TDNuInfo::SetTruthInfo ( float  nuEnergy,
float  lepEnergy,
float  lepAngle,
float  weight 
)

Definition at line 31 of file LArTrainingData.cxx.

References fEventWeight, fLepAngle, fLepEnergy, fNuEnergy, and weight.

Referenced by lcvn::LArNuCVNZlibMaker::analyze().

32  {
33 
34  fNuEnergy = nuEnergy;
35  fLepEnergy = lepEnergy;
36  fLepAngle = lepAngle;
38  }
float fNuEnergy
True energy of neutrino event.
float fEventWeight
The event weight (norm * oscProb)
float fLepAngle
True angle of outgoing lepton wrt neutrino.
double weight
Definition: plottest35.C:25
float fLepEnergy
True energy of outgoing lepton.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const TDNuInfo td 
)
friend

Definition at line 69 of file LArTrainingData.cxx.

70  {
71  // keep this order because the keras python scripts depend on this
72  os << td.fNuEnergy << std::endl;
73  os << td.fLepEnergy << std::endl;
74  os << td.fRecoNueEnergy << std::endl;
75  os << td.fRecoNumuEnergy << std::endl;
76  os << td.fRecoNutauEnergy << std::endl;
77  os << td.fEventWeight << std::endl;
78 
79  os << td.fNuPDG << std::endl;
80  os << td.fNProton << std::endl;
81  os << td.fNPion << std::endl;
82  os << td.fNPizero << std::endl;
83  os << td.fNNeutron << std::endl;
84 
85  os << td.fTopologyType << std::endl;
86  os << td.fTopologyTypeAlt << std::endl;
87  os << td.fLepAngle << std::endl;
88 
89  return os;
90  }

Member Data Documentation

float lcvn::TDNuInfo::fEventWeight
private

The event weight (norm * oscProb)

Definition at line 42 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTruthInfo().

float lcvn::TDNuInfo::fLepAngle
private

True angle of outgoing lepton wrt neutrino.

Definition at line 41 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTruthInfo().

float lcvn::TDNuInfo::fLepEnergy
private

True energy of outgoing lepton.

Definition at line 40 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTruthInfo().

int lcvn::TDNuInfo::fNNeutron
private

Definition at line 54 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTopologyInformation().

int lcvn::TDNuInfo::fNPion
private

Definition at line 52 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTopologyInformation().

int lcvn::TDNuInfo::fNPizero
private

Definition at line 53 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTopologyInformation().

int lcvn::TDNuInfo::fNProton
private

Definition at line 51 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTopologyInformation().

float lcvn::TDNuInfo::fNuEnergy
private

True energy of neutrino event.

Definition at line 39 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTruthInfo().

int lcvn::TDNuInfo::fNuPDG
private

Definition at line 50 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTopologyInformation().

float lcvn::TDNuInfo::fRecoNueEnergy
private

Reconstructed energy under nue hypothesis.

Definition at line 44 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetRecoInfo().

float lcvn::TDNuInfo::fRecoNumuEnergy
private

Reconstructed energy under numu hypothesis.

Definition at line 45 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetRecoInfo().

float lcvn::TDNuInfo::fRecoNutauEnergy
private

Reconstructed energy under nutau hypothesis.

Definition at line 46 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetRecoInfo().

int lcvn::TDNuInfo::fTopologyType
private

Definition at line 55 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTopologyInformation().

int lcvn::TDNuInfo::fTopologyTypeAlt
private

Definition at line 56 of file LArTrainingData.h.

Referenced by lcvn::operator<<(), and SetTopologyInformation().

bool lcvn::TDNuInfo::fUseTopology
private

Definition at line 49 of file LArTrainingData.h.

Referenced by SetTopologyInformation().


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