test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProcessHistoryRegistry.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_ProcessHistoryRegistry_h
2 #define DataFormats_Provenance_ProcessHistoryRegistry_h
3 
8 #include <map>
9 #include <vector>
10 
13 
14 namespace edm {
15  typedef std::map<ProcessHistoryID, ProcessHistory> ProcessHistoryMap;
16  typedef std::vector<ProcessHistory> ProcessHistoryVector;
17 
19  public:
23 
25  ProcessHistoryRegistry(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving
26  ProcessHistoryRegistry& operator=(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving
27  bool registerProcessHistory(ProcessHistory const& processHistory);
28  bool getMapped(ProcessHistoryID const& key, ProcessHistory& value) const;
29  ProcessHistory const* getMapped(ProcessHistoryID const& key) const;
30  ProcessHistoryID const& reducedProcessHistoryID(ProcessHistoryID const& fullID) const;
31  ProcessHistoryMap::const_iterator begin() const {
32  return data_.begin();
33  }
34  ProcessHistoryMap::const_iterator end() const {
35  return data_.end();
36  }
37  private:
39  std::map<ProcessHistoryID, ProcessHistoryID> extra_;
40  };
41 }
42 #endif
std::vector< ProcessHistory > ProcessHistoryVector
bool getMapped(ProcessHistoryID const &key, ProcessHistory &value) const
bool registerProcessHistory(ProcessHistory const &processHistory)
ProcessHistoryMap::const_iterator begin() const
ProcessHistoryRegistry & operator=(ProcessHistoryRegistry const &)=delete
ProcessHistoryID const & reducedProcessHistoryID(ProcessHistoryID const &fullID) const
std::map< ProcessHistoryID, ProcessHistoryID > extra_
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
ProcessHistoryMap::const_iterator end() const
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap