PFParticleMetadata.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 //
3 // \brief Definition of PFParticleMetadata object for LArSoft
4 //
5 // \author pandora@hep.phy.cam.ac.uk
6 //
7 ////////////////////////////////////////////////////////////////////////////
8 
9 #ifndef Recob_PFParticleMetadata_H
10 #define Recob_PFParticleMetadata_H
11 
12 #include <map>
13 #include <string>
14 
15 namespace larpandoraobj {
16 
17  /**
18  * @brief Metadata associated to PFParticles
19  *
20  * Originally defined in larpandora, moved to lardataobj for usage
21  * in other packages avoiding circular dependencies
22  *
23  * This metadata contains information provided by pandora
24  * (e.g. IsClearCosmic, TrackScore, NuScore, etc)
25  * which is stored and accessed via a std::map<std::string, float>
26  */
28 
29  public:
30 
31  PFParticleMetadata(); ///< Default constructor
32 
33  typedef std::map<std::string, float> PropertiesMap;
34 
35  PFParticleMetadata(const PropertiesMap &propertiesMap); ///< Constructor given a properties map (std::map<string,float>)
36 
37  /// @name Accessors
38  /// @{
39  // Returns the properties map
40  const PropertiesMap &GetPropertiesMap() const;
41  /// @}
42 
43  /// @name Set method
44  /// @{
45  // Sets the properties map
46  void SetPropertiesMap(const PropertiesMap &propertiesMap);
47  /// @}
48 
49  private:
50 
51  PropertiesMap m_propertiesMap; ///< The properties map
52 
53  }; // class PFParticle
54 } // namespace recob
55 
56 #endif //Recob_PFParticle_H
std::map< std::string, float > PropertiesMap
PFParticleMetadata()
Default constructor.
PropertiesMap m_propertiesMap
The properties map.
Metadata associated to PFParticles.
const PropertiesMap & GetPropertiesMap() const
void SetPropertiesMap(const PropertiesMap &propertiesMap)