CMS 3D CMS Logo

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 
20 
21 namespace edm {
22 
23  //------------------------------------------------------------
24  // Class ProvenanceAdaptor:
25 
27  public:
29  typedef std::map<ProcessHistoryID, ProcessHistoryID> ProcessHistoryIdConverter;
30  ProvenanceAdaptor(ProductRegistry& productRegistry,
31  ProcessHistoryMap& pHistMap,
32  ProcessHistoryVector& pHistVector,
33  ProcessConfigurationVector& procConfigVector,
34  ParameterSetIdConverter const& parameterSetIdConverter,
35  bool fullConversion);
37 
38  ProvenanceAdaptor(ProvenanceAdaptor const&) = delete; // Disallow copying and moving
39  ProvenanceAdaptor& operator=(ProvenanceAdaptor const&) = delete; // Disallow copying and moving
40 
41  std::shared_ptr<BranchIDLists const> branchIDLists() const;
42 
43  void branchListIndexes(BranchListIndexes& indexes) const;
44 
45  ParameterSetID const& convertID(ParameterSetID const& oldID) const;
46 
47  ProcessHistoryID const& convertID(ProcessHistoryID const& oldID) const;
48 
49  private:
50  void fixProcessHistory(ProcessHistoryMap& pHistMap, ProcessHistoryVector& pHistVector);
51 
54  std::shared_ptr<BranchIDLists const> branchIDLists_;
55  std::vector<BranchListIndex> branchListIndexes_;
56  }; // class ProvenanceAdaptor
57 } // namespace edm
58 #endif
std::vector< ProcessHistory > ProcessHistoryVector
void branchListIndexes(BranchListIndexes &indexes) const
std::vector< ProcessConfiguration > ProcessConfigurationVector
ProcessHistoryIdConverter processHistoryIdConverter_
std::shared_ptr< BranchIDLists const > branchIDLists_
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)
std::shared_ptr< BranchIDLists const > branchIDLists() const
HLT enums.
ParameterSetID const & convertID(ParameterSetID const &oldID) const
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap