test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProvenanceAdaptor.h
Go to the documentation of this file.
1 #ifndef IOPool_Input_ProvenanceAdaptor_h
2 #define IOPool_Input_ProvenanceAdaptor_h
3 
4 /*----------------------------------------------------------------------
5 
6 ProvenanceAdaptor.h
7 
8 ----------------------------------------------------------------------*/
9 #include <map>
10 #include <memory>
11 #include <vector>
12 
13 #include "boost/shared_ptr.hpp"
14 
22 
23 namespace edm {
24 
25  //------------------------------------------------------------
26  // Class ProvenanceAdaptor:
27 
29  public:
31  typedef std::map<ProcessHistoryID, ProcessHistoryID> ProcessHistoryIdConverter;
33  ProductRegistry& productRegistry,
34  ProcessHistoryMap& pHistMap,
35  ProcessHistoryVector& pHistVector,
36  ProcessConfigurationVector& procConfigVector,
37  ParameterSetIdConverter const& parameterSetIdConverter,
38  bool fullConversion);
40 
41  ProvenanceAdaptor(ProvenanceAdaptor const&) = delete; // Disallow copying and moving
42  ProvenanceAdaptor& operator=(ProvenanceAdaptor const&) = delete; // Disallow copying and moving
43 
44  boost::shared_ptr<BranchIDLists const> branchIDLists() const;
45 
46  void branchListIndexes(BranchListIndexes & indexes) const;
47 
48  ParameterSetID const&
49  convertID(ParameterSetID const& oldID) const;
50 
51  ProcessHistoryID const&
52  convertID(ProcessHistoryID const& oldID) const;
53 
54  private:
55  void fixProcessHistory(ProcessHistoryMap& pHistMap,
56  ProcessHistoryVector& pHistVector);
57 
60  boost::shared_ptr<BranchIDLists const> branchIDLists_;
61  std::vector<BranchListIndex> branchListIndexes_;
62  }; // class ProvenanceAdaptor
63 }
64 #endif
std::vector< ProcessHistory > ProcessHistoryVector
boost::shared_ptr< BranchIDLists const > branchIDLists_
std::vector< ProcessConfiguration > ProcessConfigurationVector
ProcessHistoryIdConverter processHistoryIdConverter_
boost::shared_ptr< BranchIDLists const > branchIDLists() const
ProvenanceAdaptor(ProductRegistry &productRegistry, ProcessHistoryMap &pHistMap, ProcessHistoryVector &pHistVector, ProcessConfigurationVector &procConfigVector, ParameterSetIdConverter const &parameterSetIdConverter, bool fullConversion)
ParameterSetIdConverter parameterSetIdConverter_
std::vector< BranchListIndex > BranchListIndexes
std::map< ProcessHistoryID, ProcessHistoryID > ProcessHistoryIdConverter
std::map< ParameterSetID, ParameterSetID > ParameterSetIdConverter
std::vector< BranchListIndex > branchListIndexes_
ProvenanceAdaptor & operator=(ProvenanceAdaptor const &)=delete
ParameterSetConverter::ParameterSetIdConverter ParameterSetIdConverter
void fixProcessHistory(ProcessHistoryMap &pHistMap, ProcessHistoryVector &pHistVector)
ParameterSetID const & convertID(ParameterSetID const &oldID) const
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap
void branchListIndexes(BranchListIndexes &indexes) const