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;
18  class ProcessHistoryRegistry;
20  typedef std::map<ProcessHistoryID, ProcessHistoryID> ProcessHistoryIDMap;
21  typedef std::map<ParentageID, ParentageID> ParentageIDMap;
22  explicit DaqProvenanceHelper(TypeID const& rawDataType);
23  ProcessHistoryID daqInit(ProductRegistry& productRegistry, ProcessHistoryRegistry& processHistoryRegistry) const;
24  void saveInfo(BranchDescription const& oldBD, BranchDescription const& newBD) {
25  oldProcessName_ = oldBD.processName();
26  oldBranchID_ = oldBD.branchID();
27  newBranchID_ = newBD.branchID();
28  }
29  bool matchProcesses(ProcessConfiguration const& pc, ProcessHistory const& ph) const;
30  void fixMetaData(ProcessConfigurationVector& pcv, std::vector<ProcessHistory>& phv);
31  void fixMetaData(std::vector<BranchID>& branchIDs) const;
32  void fixMetaData(BranchIDLists const&) const;
33  void fixMetaData(BranchChildren& branchChildren) const;
35  ParentageID const& mapParentageID(ParentageID const& phid) const;
36  BranchID const& mapBranchID(BranchID const& branchID) const;
37 
41 
48  };
49 }
50 #endif
std::vector< ProcessConfiguration > ProcessConfigurationVector
DaqProvenanceHelper(TypeID const &rawDataType)
void saveInfo(BranchDescription const &oldBD, BranchDescription const &newBD)
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
ProductProvenance dummyProvenance_
std::map< ProcessHistoryID, ProcessHistoryID > ProcessHistoryIDMap
BranchID const & mapBranchID(BranchID const &branchID) const
std::string const & processName() const
std::map< ParentageID, ParentageID > ParentageIDMap
ProcessHistoryID const & mapProcessHistoryID(ProcessHistoryID const &phid)
void fixMetaData(ProcessConfigurationVector &pcv, std::vector< ProcessHistory > &phv)
ProcessHistoryIDMap phidMap_
BranchID const & branchID() const
ProcessHistoryID daqInit(ProductRegistry &productRegistry, ProcessHistoryRegistry &processHistoryRegistry) const
BranchDescription const constBranchDescription_
ParentageID const & mapParentageID(ParentageID const &phid) const
ProcessHistoryID const * oldProcessHistoryID_
bool matchProcesses(ProcessConfiguration const &pc, ProcessHistory const &ph) const