CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DaqProvenanceHelper.h
Go to the documentation of this file.
1 #ifndef FWCore_Sources_DaqProvenanceHelper_h
2 #define FWCore_Sources_DaqProvenanceHelper_h
3 
4 #include <map>
5 #include <string>
6 #include <vector>
7 
15 
16 namespace edm {
17  class BranchChildren;
19  typedef std::map<ProcessHistoryID, ProcessHistoryID> ProcessHistoryIDMap;
20  typedef std::map<ParentageID, ParentageID> ParentageIDMap;
21  explicit DaqProvenanceHelper(TypeID const& rawDataType);
22  ProcessHistoryID daqInit(ProductRegistry& productRegistry) const;
23  void saveInfo(BranchDescription const& oldBD, BranchDescription const& newBD) {
24  oldProcessName_ = oldBD.processName();
25  oldBranchID_ = oldBD.branchID();
26  newBranchID_ = newBD.branchID();
27  }
28  void fixMetaData(std::vector<ProcessConfiguration>& pcv);
29  void fixMetaData(std::vector<ProcessHistory>& phv);
30  void fixMetaData(std::vector<BranchID>& branchIDs) const;
31  void fixMetaData(BranchIDLists const&) const;
32  void fixMetaData(BranchChildren& branchChildren) const;
34  ParentageID const& mapParentageID(ParentageID const& phid) const;
35  BranchID const& mapBranchID(BranchID const& branchID) const;
36 
40 
41  std::string oldProcessName_;
48  };
49 }
50 #endif
DaqProvenanceHelper(TypeID const &rawDataType)
void saveInfo(BranchDescription const &oldBD, BranchDescription const &newBD)
ProductProvenance dummyProvenance_
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
std::map< ProcessHistoryID, ProcessHistoryID > ProcessHistoryIDMap
BranchID const & mapBranchID(BranchID const &branchID) const
std::string const & processName() const
std::map< ParentageID, ParentageID > ParentageIDMap
ProcessHistoryID daqInit(ProductRegistry &productRegistry) const
ProcessHistoryID const & mapProcessHistoryID(ProcessHistoryID const &phid)
ConstBranchDescription constBranchDescription_
ProcessHistoryIDMap phidMap_
ProcessConfiguration processConfiguration_
BranchID const & branchID() const
author Stefano ARGIRO author Bill Tanenbaum
ParentageID const & mapParentageID(ParentageID const &phid) const
ProcessHistoryID const * oldProcessHistoryID_
void fixMetaData(std::vector< ProcessConfiguration > &pcv)