Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunereco
dunereco
CVN
func
TrainingData.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// \file TrainingData.h
3
/// \brief The TrainingData objects contains a PixelMap and the
4
/// output class type, and any other bit that goes into the ANN
5
// \author radovic -- a.radovic@gmail.com
6
7
//#include "art/Framework/Services/Registry/ServiceHandle.h"
8
9
#include "
dunereco/CVN/func/TrainingData.h
"
10
//#include "MCCheater/BackTracker.h"
11
12
namespace
cvn
13
{
14
15
TrainingData::TrainingData
(
const
InteractionType
&
interaction
,
16
float
nuEnergy,
float
lepEnergy,
17
float
nueEnergy,
float
numuEnergy,
18
float
nutauEnergy,
float
weight
,
19
const
PixelMap
& pMap):
20
fInt
(interaction),
21
fNuEnergy
(nuEnergy),
22
fLepEnergy
(lepEnergy),
23
fRecoNueEnergy
(nueEnergy),
24
fRecoNumuEnergy
(numuEnergy),
25
fRecoNutauEnergy(nutauEnergy),
26
fEventWeight
(weight),
27
fUseTopology(false),
28
fNuPDG
(0),
29
fNProton
(-1),
30
fNPion
(-1),
31
fNPizero
(-1),
32
fNNeutron
(-1),
33
fTopologyType(-1),
34
fTopologyTypeAlt(-1),
35
fPMap(pMap)
36
{ }
37
38
39
void
TrainingData::FillOutputVector
(
float
*
output
)
const
40
{
41
for
(
unsigned
int
i = 0; i <
kNIntType
; ++i)
42
output[i] = 0;
43
44
output[
fInt
] = 1;
45
}
46
47
void
TrainingData::SetTopologyInformation
(
int
pdg
,
int
nproton,
48
int
npion,
int
npizero,
int
nneutron,
int
toptype,
49
int
toptypealt){
50
51
fUseTopology
=
true
;
52
53
fNuPDG
=
pdg
;
54
fNProton
= nproton;
55
fNPion
= npion;
56
fNPizero
= npizero;
57
fNNeutron
= nneutron;
58
59
fTopologyType
= toptype;
60
fTopologyTypeAlt
= toptypealt;
61
62
}
63
64
}
// end namespace cvn
65
////////////////////////////////////////////////////////////////////////
generate_datataset.fNuPDG
fNuPDG
Definition:
generate_datataset.py:153
cvn::TrainingData::fInt
InteractionType fInt
Class of the event.
Definition:
TrainingData.h:41
make_norm_csv.output
list output
Definition:
make_norm_csv.py:48
cvn::TrainingData::fNProton
int fNProton
Definition:
TrainingData.h:52
cvn::TrainingData::fNPion
int fNPion
Definition:
TrainingData.h:53
generate_datataset.fInt
fInt
Definition:
generate_datataset.py:143
generate_datataset.fLepEnergy
fLepEnergy
Definition:
generate_datataset.py:148
cvn::InteractionType
enum cvn::Interaction InteractionType
generate_datataset.fNPizero
fNPizero
Definition:
generate_datataset.py:156
cvn
Utility class for truth labels.
Definition:
CVNEvaluator_module.cc:31
generate_datataset.fNProton
fNProton
Definition:
generate_datataset.py:154
generate_datataset.fEventWeight
fEventWeight
Definition:
generate_datataset.py:151
cvn::TrainingData::FillOutputVector
void FillOutputVector(float *output) const
Definition:
TrainingData.cxx:39
test.weight
weight
Definition:
test.py:257
TrainingData.h
generate_datataset.fNNeutron
fNNeutron
Definition:
generate_datataset.py:157
cvn::TrainingData::fTopologyTypeAlt
int fTopologyTypeAlt
Definition:
TrainingData.h:57
cvn::TrainingData::fTopologyType
int fTopologyType
Definition:
TrainingData.h:56
cvn::interaction
Definition:
InteractionType.h:60
cvn::TrainingData::TrainingData
TrainingData()
Definition:
TrainingData.h:24
generate_datataset.fRecoNumuEnergy
fRecoNumuEnergy
Definition:
generate_datataset.py:150
generate_datataset.fRecoNueEnergy
fRecoNueEnergy
Definition:
generate_datataset.py:149
cvn::TrainingData::fNPizero
int fNPizero
Definition:
TrainingData.h:54
cvn::kNIntType
Number of interaction types, used like a vector size.
Definition:
InteractionType.h:34
cvn::TrainingData::fNNeutron
int fNNeutron
Definition:
TrainingData.h:55
cvn::TrainingData::fNuPDG
int fNuPDG
Definition:
TrainingData.h:51
cvn::PixelMap
PixelMap, basic input to CVN neural net.
Definition:
PixelMap.h:22
run_cnn_1class.pdg
pdg
Definition:
run_cnn_1class.py:54
cvn::TrainingData::fUseTopology
bool fUseTopology
Definition:
TrainingData.h:50
generate_datataset.fNPion
fNPion
Definition:
generate_datataset.py:155
generate_datataset.fNuEnergy
fNuEnergy
Definition:
generate_datataset.py:147
cvn::TrainingData::SetTopologyInformation
void SetTopologyInformation(int pdg, int nproton, int npion, int npizero, int nneutron, int toptype, int toptypealt)
Definition:
TrainingData.cxx:47
Generated by
1.8.11