Classes | Typedefs | Enumerations | Functions
cnn Namespace Reference

Defines an enumeration for cellhit classification. More...

Classes

class  RegCNNBoundary
 
class  RegCNNBoundary3D
 
class  RegCNNEvaluator
 
class  RegCNNEventDump
 
class  RegCNNImageUtils
 Class containing some utility functions for all things RegCNN. More...
 
class  RegCNNMapper
 
class  RegCNNNumuHandler
 Wrapper for caffe::Net which handles construction and prediction. More...
 
class  RegCNNPyTorch
 
class  RegCNNResult
 RegCNNResult, basic output of CNN neural net. More...
 
class  RegCNNVtxHandler
 RegCNNVtxHandler, basic output of CNN neural net. More...
 
class  RegPixelMap
 RegPixelMap, basic input to CNN neural net. More...
 
class  RegPixelMap3D
 RegPixelMap3D, input to 3D CNN neural net. More...
 
class  RegPixelMap3DProducer
 Producer algorithm for RegPixelMap3D, input to CVN neural net. More...
 
class  RegPixelMapProducer
 Producer algorithm for RegPixelMap, input to CVN neural net. More...
 
class  TFRegNetHandler
 Wrapper for caffe::Net which handles construction and prediction. More...
 

Typedefs

typedef enum cnn::HType HitType
 
typedef std::vector< std::vector< float > > ViewVectorF
 Useful typedefs. More...
 
typedef std::vector< ViewVectorFImageVectorF
 

Enumerations

enum  HType {
  kElectronHit, kMuonHit, kProtonHit, kNeutronHit,
  kPionHit, kPiZeroHit, kGammaHit, kOtherPDGhit,
  kUnknownHit, kEmptyHit
}
 

Functions

std::ostream & operator<< (std::ostream &os, const RegPixelMap3DProducer &p)
 
std::ostream & operator<< (std::ostream &os, const RegPixelMapProducer &p)
 
std::vector< unsigned int > getUniques (std::vector< unsigned int > coll)
 
std::ostream & operator<< (std::ostream &os, const RegCNNBoundary &b)
 
std::ostream & operator<< (std::ostream &os, const RegCNNBoundary3D &b)
 
std::ostream & operator<< (std::ostream &os, const RegPixelMap &m)
 
std::ostream & operator<< (std::ostream &os, const RegPixelMap3D &m)
 

Detailed Description

Defines an enumeration for cellhit classification.

Typedef Documentation

typedef enum cnn::HType cnn::HitType

Definition at line 19 of file RegCNNImageUtils.h.

Useful typedefs.

Definition at line 18 of file RegCNNImageUtils.h.

Enumeration Type Documentation

enum cnn::HType
Enumerator
kElectronHit 
kMuonHit 
kProtonHit 
kNeutronHit 
kPionHit 
kPiZeroHit 
kGammaHit 
kOtherPDGhit 
kUnknownHit 
kEmptyHit 

Definition at line 14 of file HitType.h.

Function Documentation

std::vector<unsigned int> cnn::getUniques ( std::vector< unsigned int >  coll)

Definition at line 545 of file RegPixelMapProducer.cxx.

546  {
547  std::vector<unsigned int> uniques;
548  for (unsigned int tpc : coll)
549  {
550  if (std::find(uniques.begin(), uniques.end(), tpc) == uniques.end())
551  uniques.push_back(tpc);
552  }
553  return uniques;
554  }
std::ostream & cnn::operator<< ( std::ostream &  os,
const RegCNNBoundary3D b 
)

Definition at line 44 of file RegCNNBoundary3D.cxx.

45  {
46  os<<"RegCNNBoundary3D actual pixel map coverage (in cm)\n"
47  <<b.Length(0)<<", "<<b.Length(1)<<b.Length(2)<<"\n"
48  <<"Actual pixel size\n"
49  <<b.NBins(0)<<", "<<b.NBins(1)<<", "<<b.NBins(2)<<"\n";
50 
51  return os;
52  }
static bool * b
Definition: config.cpp:1043
std::ostream & cnn::operator<< ( std::ostream &  os,
const RegCNNBoundary b 
)

Definition at line 60 of file RegCNNBoundary.cxx.

61  {
62  os<<"RegCNNBoundary with "
63  <<"(first,last) wire X: (" <<b.FirstWire(0)<<", "<<b.LastWire(0)
64  <<"), (first,last) wire Y: (" <<b.FirstWire(1)<<", "<<b.LastWire(1)
65  <<"), (first,last) wire Z: (" <<b.FirstWire(2)<<", "<<b.LastWire(2)
66  <<"), (first,last) tdc X: (" <<b.FirstTDC(0) <<", "<<b.LastTDC(0)
67  <<"), (first,last) tdc Y: (" <<b.FirstTDC(1) <<", "<<b.LastTDC(1)
68  <<"), (first,last) tdc Z: (" <<b.FirstTDC(2) <<", "<<b.LastTDC(2)
69  <<")";
70 
71  return os;
72  }
static bool * b
Definition: config.cpp:1043
std::ostream & cnn::operator<< ( std::ostream &  os,
const RegPixelMap3D m 
)

Definition at line 122 of file RegPixelMap3D.cxx.

123  {
124  os << "RegPixelMap3D...... ";
125  return os;
126  }
std::ostream& cnn::operator<< ( std::ostream &  os,
const RegPixelMap3DProducer p 
)

Definition at line 181 of file RegPixelMap3DProducer.cxx.

182  {
183  os << "RegPixelMapProducer...... ";
184  return os;
185  }
std::ostream& cnn::operator<< ( std::ostream &  os,
const RegPixelMapProducer p 
)

Definition at line 310 of file RegPixelMapProducer.cxx.

311  {
312  os << "RegPixelMapProducer: "
313  << p.NTdc() <<" tdcs X " << p.NWire() << " wires";
314  return os;
315  }
p
Definition: test.py:223
std::ostream & cnn::operator<< ( std::ostream &  os,
const RegPixelMap m 
)

Definition at line 316 of file RegPixelMap.cxx.

317  {
318  os << "RegPixelMap with " << m.NPixel() << " pixels, "
319  << m.NWire() << " wires"
320  << " by " << m.NTdc() << " tdcs" ;
321  return os;
322  }