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>
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  boost::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 
58  boost::shared_ptr<BranchIDLists const> branchIDLists_;
59  std::vector<BranchListIndex> branchListIndexes_;
60  }; // class ProvenanceAdaptor
61 }
62 #endif
boost::shared_ptr< BranchIDLists const > branchIDLists_
ProcessHistoryIdConverter processHistoryIdConverter_
boost::shared_ptr< BranchIDLists const > branchIDLists() const
ProcessHistoryRegistry::collection_type ProcessHistoryMap
ProvenanceAdaptor(ProductRegistry &productRegistry, ProcessHistoryMap &pHistMap, ProcessHistoryVector &pHistVector, ProcessConfigurationVector &procConfigVector, ParameterSetIdConverter const &parameterSetIdConverter, bool fullConversion)
ProcessConfigurationRegistry::vector_type ProcessConfigurationVector
ParameterSetIdConverter parameterSetIdConverter_
std::vector< BranchListIndex > BranchListIndexes
std::map< ProcessHistoryID, ProcessHistoryID > ProcessHistoryIdConverter
std::map< ParameterSetID, ParameterSetID > ParameterSetIdConverter
ProcessHistoryRegistry::vector_type ProcessHistoryVector
std::vector< BranchListIndex > branchListIndexes_
ProvenanceAdaptor & operator=(ProvenanceAdaptor const &)=delete
ParameterSetConverter::ParameterSetIdConverter ParameterSetIdConverter
void fixProcessHistory(ProcessHistoryMap &pHistMap, ProcessHistoryVector &pHistVector)
author Stefano ARGIRO author Bill Tanenbaum
ParameterSetID const & convertID(ParameterSetID const &oldID) const
void branchListIndexes(BranchListIndexes &indexes) const