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

Utility class for truth labels. More...

Classes

class  AssignLabels
 
class  Boundary
 
class  CVNImageUtils
 Class containing some utility functions for all things CVN. More...
 
class  HitHelper
 
class  ICVNMapper
 
class  ICVNZlibMaker
 
class  ITFNetHandler
 Wrapper for caffe::Net which handles construction and prediction. More...
 
class  LArCVNEvaluator
 
class  LArNuCVNZlibMaker
 
class  LArTrainingData
 The TrainingData objects contains a PixelMap and the output class type, and any other bit that goes into the ANN. More...
 
class  PixelMap
 PixelMap, basic input to CVN neural net. More...
 
class  PixelMapProducer
 Producer algorithm for PixelMap, input to CVN neural net. More...
 
class  Result
 Result, basic output of CVN neural net. More...
 
class  SimChannelHelper
 
class  TDNuInfo
 
class  WireHelper
 

Typedefs

typedef std::vector< std::vector< unsigned char > > ViewVector
 Useful typedefs. More...
 
typedef std::vector< ViewVectorImageVector
 
typedef std::vector< std::vector< float > > ViewVectorF
 
typedef std::vector< ViewVectorFImageVectorF
 
typedef LArTrainingData< lcvn::TDNuInfoLArTrainingNuData
 
typedef std::vector< std::map< double, double > > Waveform
 
typedef PixelMapProducer< recob::Hit, lcvn::HitHelperPixelMapHitProducer
 
typedef PixelMapProducer< recob::Wire, lcvn::WireHelperPixelMapWireProducer
 
typedef PixelMapProducer< sim::SimChannel, lcvn::SimChannelHelperPixelMapSimProducer
 
typedef ICVNMapper< lcvn::PixelMapHitProducer, recob::HitLArCVNHitMapper
 
typedef ICVNMapper< lcvn::PixelMapSimProducer, sim::SimChannelLArCVNSimMapper
 
typedef ICVNMapper< lcvn::PixelMapWireProducer, recob::WireLArCVNWireMapper
 

Enumerations

enum  HitType {
  kElectronHit, kMuonHit, kProtonHit, kNeutronHit,
  kPionHit, kPiZeroHit, kGammaHit, kOtherPDGhit,
  kUnknownHit, kEmptyHit
}
 
enum  InteractionType {
  kNumuQE, kNumuRes, kNumuDIS, kNumuOther,
  kNueQE, kNueRes, kNueDIS, kNueOther,
  kNutauQE, kNutauRes, kNutauDIS, kNutauOther,
  kNuElectronElastic, kNC, kCosmic, kOther,
  kNIntType
}
 
enum  TFResultType {
  kTFNumuQE, kTFNumuRes, kTFNumuDIS, kTFNumuOther,
  kTFNueQE, kTFNueRes, kTFNueDIS, kTFNueOther,
  kTFNutauQE, kTFNutauRes, kTFNutauDIS, kTFNutauOther,
  kTFNC
}
 Enumeration to describe the order of the TF network output. More...
 
enum  TFMultioutputs {
  is_antineutrino, flavour, interaction, protons,
  pions, pizeros, neutrons
}
 
enum  TFIsAntineutrino { kNeutrino, kAntineutrino }
 
enum  TFFlavour { kFlavNumuCC, kFlavNueCC, kFlavNutauCC, kFlavNC }
 
enum  TFInteraction { kInteQECC, kInteResCC, kInteDISCC, kInteOtherCC }
 
enum  TFTopologyProtons { kTop0proton, kTop1proton, kTop2proton, kTopNproton }
 
enum  TFTopologyPions { kTop0pion, kTop1pion, kTop2pion, kTopNpion }
 
enum  TFTopologyPizeros { kTop0pizero, kTop1pizero, kTop2pizero, kTopNpizero }
 
enum  TFTopologyNeutrons { kTop0neutron, kTop1neutron, kTop2neutron, kTopNneutron }
 
enum  TauType { kNotNutau, kNutauE, kNutauMu, kNutauHad }
 
enum  TopologyType {
  kTopNue, kTopNumu, kTopNutauE, kTopNutauMu,
  kTopNutauHad, kTopNC
}
 
enum  TopologyTypeAlt { kTopNueLike, kTopNumuLike, kTopNutauLike, kTopNCLike }
 

Functions

std::ostream & operator<< (std::ostream &os, const Boundary &b)
 
std::ostream & operator<< (std::ostream &os, const TDNuInfo &td)
 
std::ostream & operator<< (std::ostream &os, const PixelMap &m)
 
template<class T , class U >
std::ostream & operator<< (std::ostream &os, const PixelMapProducer< T, U > &p)
 

Detailed Description

Utility class for truth labels.

The TrainingData objects contains a PixelMap and the output class type, and any other bit that goes into the ANN.

The LArTrainingData objects contains a PixelMap and the output class type, and any other bit that goes into the ANN.

Defines an enumeration for interaction type.

Defines an enumeration for cellhit classification.

Typedef Documentation

typedef std::vector<ViewVector> lcvn::ImageVector

Definition at line 18 of file CVNImageUtils.h.

typedef std::vector<ViewVectorF> lcvn::ImageVectorF

Definition at line 20 of file CVNImageUtils.h.

typedef std::vector<std::vector<unsigned char> > lcvn::ViewVector

Useful typedefs.

Definition at line 17 of file CVNImageUtils.h.

typedef std::vector<std::vector<float> > lcvn::ViewVectorF

Definition at line 19 of file CVNImageUtils.h.

typedef std::vector<std::map<double, double> > lcvn::Waveform

Definition at line 33 of file PixelMapProducer.h.

Enumeration Type Documentation

Enumerator
kElectronHit 
kMuonHit 
kProtonHit 
kNeutronHit 
kPionHit 
kPiZeroHit 
kGammaHit 
kOtherPDGhit 
kUnknownHit 
kEmptyHit 

Definition at line 12 of file HitType.h.

Enumerator
kNumuQE 

Numu CC QE interaction.

kNumuRes 

Numu CC Resonant interaction.

kNumuDIS 

Numu CC DIS interaction.

kNumuOther 

Numu CC, other than above.

kNueQE 

Nue CC QE interaction.

kNueRes 

Nue CC Resonant interaction.

kNueDIS 

Nue CC DIS interaction.

kNueOther 

Nue CC, other than above.

kNutauQE 

Nutau CC QE interaction.

kNutauRes 

Nutau CC Resonant interaction.

kNutauDIS 

Nutau CC DIS interaction.

kNutauOther 

Nutau CC, other than above.

kNuElectronElastic 

NC Nu On E Scattering.

kNC 

NC interaction.

kCosmic 

Cosmic ray background.

kOther 

Something else. Tau? Hopefully we don't use this.

kNIntType 

Number of interaction types, used like a vector size.

Definition at line 15 of file InteractionType.h.

15  {
16  kNumuQE,
17  kNumuRes,
18  kNumuDIS,
19  kNumuOther,
20  kNueQE,
21  kNueRes,
22  kNueDIS,
23  kNueOther,
24  kNutauQE,
25  kNutauRes,
26  kNutauDIS,
27  kNutauOther,
29  kNC,
30  kCosmic,
31  kOther,
32  kNIntType
33  };
NC interaction.
Nutau CC QE interaction.
Nue CC Resonant interaction.
Cosmic ray background.
Nue CC QE interaction.
Nutau CC Resonant interaction.
Nutau CC DIS interaction.
Numu CC, other than above.
Numu CC QE interaction.
Something else. Tau? Hopefully we don&#39;t use this.
NC Nu On E Scattering.
Nue CC, other than above.
Numu CC Resonant interaction.
Nutau CC, other than above.
Number of interaction types, used like a vector size.
Nue CC DIS interaction.
Numu CC DIS interaction.
Enumerator
kNotNutau 
kNutauE 
kNutauMu 
kNutauHad 

Definition at line 117 of file InteractionType.h.

Enumerator
kFlavNumuCC 
kFlavNueCC 
kFlavNutauCC 
kFlavNC 

Definition at line 59 of file InteractionType.h.

Enumerator
kInteQECC 
kInteResCC 
kInteDISCC 
kInteOtherCC 

Definition at line 62 of file InteractionType.h.

Enumerator
kNeutrino 
kAntineutrino 

Definition at line 56 of file InteractionType.h.

Enumerator
is_antineutrino 
flavour 
interaction 
protons 
pions 
pizeros 
neutrons 

Definition at line 53 of file InteractionType.h.

Enumeration to describe the order of the TF network output.

Enumerator
kTFNumuQE 

Numu CC QE interaction.

kTFNumuRes 

Numu CC Resonant interaction.

kTFNumuDIS 

Numu CC DIS interaction.

kTFNumuOther 

Numu CC, other than above.

kTFNueQE 

Nue CC QE interaction.

kTFNueRes 

Nue CC Resonant interaction.

kTFNueDIS 

Nue CC DIS interaction.

kTFNueOther 

Nue CC, other than above.

kTFNutauQE 

Nutau CC QE interaction.

kTFNutauRes 

Nutau CC Resonant interaction.

kTFNutauDIS 

Nutau CC DIS interaction.

kTFNutauOther 

Nutau CC, other than above.

kTFNC 

NC interaction.

Definition at line 36 of file InteractionType.h.

36  {
37  kTFNumuQE,
38  kTFNumuRes,
39  kTFNumuDIS,
40  kTFNumuOther,
41  kTFNueQE,
42  kTFNueRes,
43  kTFNueDIS,
44  kTFNueOther,
45  kTFNutauQE,
46  kTFNutauRes,
47  kTFNutauDIS,
49  kTFNC
50  };
Nue CC Resonant interaction.
Numu CC Resonant interaction.
Numu CC, other than above.
Nue CC DIS interaction.
Nutau CC QE interaction.
Numu CC QE interaction.
NC interaction.
Nutau CC Resonant interaction.
Nue CC QE interaction.
Nutau CC DIS interaction.
Nutau CC, other than above.
Numu CC DIS interaction.
Nue CC, other than above.
Enumerator
kTop0neutron 
kTop1neutron 
kTop2neutron 
kTopNneutron 

Definition at line 74 of file InteractionType.h.

Enumerator
kTop0pion 
kTop1pion 
kTop2pion 
kTopNpion 

Definition at line 68 of file InteractionType.h.

Enumerator
kTop0pizero 
kTop1pizero 
kTop2pizero 
kTopNpizero 

Definition at line 71 of file InteractionType.h.

Enumerator
kTop0proton 
kTop1proton 
kTop2proton 
kTopNproton 

Definition at line 65 of file InteractionType.h.

Enumerator
kTopNue 
kTopNumu 
kTopNutauE 
kTopNutauMu 
kTopNutauHad 
kTopNC 

Definition at line 119 of file InteractionType.h.

Enumerator
kTopNueLike 
kTopNumuLike 
kTopNutauLike 
kTopNCLike 

Definition at line 121 of file InteractionType.h.

Function Documentation

std::ostream & lcvn::operator<< ( std::ostream &  os,
const Boundary b 
)

Definition at line 47 of file Boundary.cxx.

References lcvn::Boundary::FirstTDC(), lcvn::Boundary::FirstWire(), lcvn::Boundary::LastTDC(), and lcvn::Boundary::LastWire().

48  {
49  os << "Boundary with "
50  << "(first,last) wire X: (" << b.FirstWire(0) << ", " << b.LastWire(0)
51  << "(first,last) wire Y: (" << b.FirstWire(1) << ", " << b.LastWire(1)
52  << "(first,last) wire Z: (" << b.FirstWire(2) << ", " << b.LastWire(2)
53  << "), (first,last) tdc X: (" << b.FirstTDC(0) << ", " << b.LastTDC(0) << ")"
54  << "), (first,last) tdc Y: (" << b.FirstTDC(1) << ", " << b.LastTDC(1) << ")"
55  << "), (first,last) tdc Z: (" << b.FirstTDC(2) << ", " << b.LastTDC(2) << ")";
56 
57  return os;
58  }
std::ostream& lcvn::operator<< ( std::ostream &  os,
const TDNuInfo td 
)

Definition at line 69 of file LArTrainingData.cxx.

References lcvn::TDNuInfo::fEventWeight, lcvn::TDNuInfo::fLepAngle, lcvn::TDNuInfo::fLepEnergy, lcvn::TDNuInfo::fNNeutron, lcvn::TDNuInfo::fNPion, lcvn::TDNuInfo::fNPizero, lcvn::TDNuInfo::fNProton, lcvn::TDNuInfo::fNuEnergy, lcvn::TDNuInfo::fNuPDG, lcvn::TDNuInfo::fRecoNueEnergy, lcvn::TDNuInfo::fRecoNumuEnergy, lcvn::TDNuInfo::fRecoNutauEnergy, lcvn::TDNuInfo::fTopologyType, and lcvn::TDNuInfo::fTopologyTypeAlt.

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  }
template<class T , class U >
std::ostream& lcvn::operator<< ( std::ostream &  os,
const PixelMapProducer< T, U > &  p 
)

Definition at line 194 of file PixelMapProducer.cxx.

References lcvn::PixelMap::NTdc().

195  {
196  os << "PixelMapProducer: " << p.NTdc() << " tdcs X " << p.NWire() << " wires";
197  return os;
198  }
std::ostream & lcvn::operator<< ( std::ostream &  os,
const PixelMap m 
)

Definition at line 206 of file PixelMap.cxx.

References lcvn::PixelMap::NPixel(), lcvn::PixelMap::NTdc(), and lcvn::PixelMap::NWire().

207  {
208  os << "PixelMap with " << m.NPixel() << " pixels, " << m.NWire() << " wires"
209  << " by " << m.NTdc() << " tdcs";
210  return os;
211  }