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;
31  ProductRegistry& productRegistry,
32  ProcessHistoryMap& pHistMap,
33  ProcessHistoryVector& pHistVector,
34  ProcessConfigurationVector& procConfigVector,
35  ParameterSetIdConverter const& parameterSetIdConverter,
36  bool fullConversion);
38 
39  ProvenanceAdaptor(ProvenanceAdaptor const&) = delete; // Disallow copying and moving
40  ProvenanceAdaptor& operator=(ProvenanceAdaptor const&) = delete; // Disallow copying and moving
41 
42  std::shared_ptr<BranchIDLists const> branchIDLists() const;
43 
44  void branchListIndexes(BranchListIndexes & indexes) const;
45 
46  ParameterSetID const&
47  convertID(ParameterSetID const& oldID) const;
48 
49  ProcessHistoryID const&
50  convertID(ProcessHistoryID const& oldID) const;
51 
52  private:
53  void fixProcessHistory(ProcessHistoryMap& pHistMap,
54  ProcessHistoryVector& pHistVector);
55 
56  ParameterSetIdConverter parameterSetIdConverter_;
57  ProcessHistoryIdConverter processHistoryIdConverter_;
58  std::shared_ptr<BranchIDLists const> branchIDLists_;
59  std::vector<BranchListIndex> branchListIndexes_;
60  }; // class ProvenanceAdaptor
61 }
62 #endif
std::vector< ProcessHistory > ProcessHistoryVector
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_
std::shared_ptr< BranchIDLists const > branchIDLists() const
ProvenanceAdaptor & operator=(ProvenanceAdaptor const &)=delete
ParameterSetConverter::ParameterSetIdConverter ParameterSetIdConverter
void fixProcessHistory(ProcessHistoryMap &pHistMap, ProcessHistoryVector &pHistVector)
HLT enums.
ParameterSetID const & convertID(ParameterSetID const &oldID) const
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap
void branchListIndexes(BranchListIndexes &indexes) const