GCNParticleFlow.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file GCNParticleFlow.h
3 /// \brief MC truth particle flow for graph connection ground truth
4 /// \author Jeremy Hewes - jhewes15@fnal.gov
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef CVN_GCNPARTICLEFLOW_H
8 #define CVN_GCNPARTICLEFLOW_H
9 
10 #include <map>
11 
12 namespace cvn
13 {
14 
15  /// GCNParticleFlow, a map of true particles to their parents
17  {
18  public:
19 
20  /// Default constructor
22  /// Construct from map
23  GCNParticleFlow(std::map<unsigned int, unsigned int> truthMap);
24  /// Default destructor
26 
27  /// Add a new true particle
28  void AddParticle(unsigned int particle, unsigned int parent);
29 
30  /// Retrieve truth information
31  std::map<unsigned int, unsigned int> GetMap() const { return fTruthMap; };
32  unsigned int GetParent(unsigned int particle);
33 
34  private:
35 
36  /// Map of true particle ID to parent particle ID
37  std::map<unsigned int, unsigned int> fTruthMap;
38 
39  };
40 
41 }
42 
43 #endif // CVN_GCNPARTICLEFLOW_H
GCNParticleFlow, a map of true particles to their parents.
~GCNParticleFlow()
Default destructor.
std::map< unsigned int, unsigned int > GetMap() const
Retrieve truth information.
Utility class for truth labels.
std::map< unsigned int, unsigned int > fTruthMap
Map of true particle ID to parent particle ID.
GCNParticleFlow()
Default constructor.
unsigned int GetParent(unsigned int particle)
void AddParticle(unsigned int particle, unsigned int parent)
Add a new true particle.
def parent(G, child, parent_type)
Definition: graph.py:67