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 <vector>
11 #include "boost/shared_ptr.hpp"
12 #include "boost/utility.hpp"
21 
22 namespace edm {
23 
24  //------------------------------------------------------------
25  // Class ProvenanceAdaptor:
26 
27  class ProvenanceAdaptor : private boost::noncopyable {
28  public:
30  typedef std::map<ProcessHistoryID, ProcessHistoryID> ProcessHistoryIdConverter;
32  ProductRegistry& productRegistry,
33  ProcessHistoryMap& pHistMap,
34  ProcessHistoryVector& pHistVector,
35  ProcessConfigurationVector& procConfigVector,
36  ParameterSetIdConverter const& parameterSetIdConverter,
37  bool fullConversion);
39 
40  boost::shared_ptr<BranchIDLists const> branchIDLists() const;
41 
42  void branchListIndexes(BranchListIndexes & indexes) const;
43 
44  ParameterSetID const&
45  convertID(ParameterSetID const& oldID) const;
46 
47  ProcessHistoryID const&
48  convertID(ProcessHistoryID const& oldID) const;
49 
50  private:
51  void fixProcessHistory(ProcessHistoryMap& pHistMap,
52  ProcessHistoryVector& pHistVector);
53 
56  boost::shared_ptr<BranchIDLists const> branchIDLists_;
57  std::vector<BranchListIndex> branchListIndexes_;
58  }; // class ProvenanceAdaptor
59 }
60 #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_
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