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
ParameterSetConverter.h
ProvenanceFwd.h
ProcessHistoryID.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProvenanceAdaptor::branchListIndexes
void branchListIndexes(BranchListIndexes &indexes) const
Definition: ProvenanceAdaptor.cc:187
edm::BranchListIndexes
std::vector< BranchListIndex > BranchListIndexes
Definition: BranchListIndex.h:18
edm::ProvenanceAdaptor::operator=
ProvenanceAdaptor & operator=(ProvenanceAdaptor const &)=delete
edm::ProvenanceAdaptor::branchIDLists_
std::shared_ptr< BranchIDLists const > branchIDLists_
Definition: ProvenanceAdaptor.h:54
ProcessHistoryRegistry.h
edm::ProvenanceAdaptor::branchIDLists
std::shared_ptr< BranchIDLists const > branchIDLists() const
Definition: ProvenanceAdaptor.cc:185
edm::ProvenanceAdaptor::parameterSetIdConverter_
ParameterSetIdConverter parameterSetIdConverter_
Definition: ProvenanceAdaptor.h:52
edm::ProductRegistry
Definition: ProductRegistry.h:37
edm::ProcessHistoryMap
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap
Definition: ProcessHistoryRegistry.h:15
edm::ProvenanceAdaptor::~ProvenanceAdaptor
~ProvenanceAdaptor()
Definition: ProvenanceAdaptor.cc:167
BranchListIndex.h
edm::ProvenanceAdaptor::convertID
ParameterSetID const & convertID(ParameterSetID const &oldID) const
Definition: ProvenanceAdaptor.cc:169
edm::Hash< ParameterSetType >
edm::ProvenanceAdaptor::branchListIndexes_
std::vector< BranchListIndex > branchListIndexes_
Definition: ProvenanceAdaptor.h:55
edm::ProvenanceAdaptor
Definition: ProvenanceAdaptor.h:26
edm::ProvenanceAdaptor::ProcessHistoryIdConverter
std::map< ProcessHistoryID, ProcessHistoryID > ProcessHistoryIdConverter
Definition: ProvenanceAdaptor.h:29
edm::ProcessConfigurationVector
std::vector< ProcessConfiguration > ProcessConfigurationVector
Definition: ProcessConfiguration.h:62
edm::ProcessHistoryVector
std::vector< ProcessHistory > ProcessHistoryVector
Definition: ProcessHistoryRegistry.h:16
edm::ProvenanceAdaptor::fixProcessHistory
void fixProcessHistory(ProcessHistoryMap &pHistMap, ProcessHistoryVector &pHistVector)
Definition: ProvenanceAdaptor.cc:25
BranchIDList.h
edm::ProvenanceAdaptor::ProvenanceAdaptor
ProvenanceAdaptor(ProductRegistry &productRegistry, ProcessHistoryMap &pHistMap, ProcessHistoryVector &pHistVector, ProcessConfigurationVector &procConfigVector, ParameterSetIdConverter const &parameterSetIdConverter, bool fullConversion)
Definition: ProvenanceAdaptor.cc:150
edm::ProvenanceAdaptor::ParameterSetIdConverter
ParameterSetConverter::ParameterSetIdConverter ParameterSetIdConverter
Definition: ProvenanceAdaptor.h:28
ParameterSetID.h
edm::ParameterSetConverter::ParameterSetIdConverter
std::map< ParameterSetID, ParameterSetID > ParameterSetIdConverter
Definition: ParameterSetConverter.h:45
edm::ProvenanceAdaptor::processHistoryIdConverter_
ProcessHistoryIdConverter processHistoryIdConverter_
Definition: ProvenanceAdaptor.h:53