34 desc.setIsProvenanceSetOnRead();
44 : constBranchDescription_(
46 dummyProvenance_(constBranchDescription_.branchID()),
47 processParameterSet_(),
51 oldProcessHistoryID_(nullptr),
58 typedef std::vector<std::string>
vstring;
92 :
DaqProvenanceHelper(rawDataType,
"FEDRawDataCollection",
"FEDRawDataCollection",
"FedRawDataInputSource") {}
106 return ph.setProcessHistoryID();
110 for (
auto const& pc :
ph) {
120 std::vector<ProcessConfiguration> newPCs;
121 for (
auto const& pc : pcv) {
128 pcv.reserve(pcv.size() + newPCs.size());
129 pcv.insert(pcv.end(), newPCs.begin(), newPCs.end());
131 for (
auto&
ph : phv) {
132 for (
auto const& newPC : newPCs) {
135 ph.push_front(newPC);
137 phidMap_.insert(std::make_pair(oldPHID, newPHID));
143 phv.reserve(phv.size() + newPCs.size());
144 for (
auto const& newPC : newPCs) {
146 phv.back().push_front(newPC);
159 for (
auto& list : lists) {
165 typedef std::map<BranchID, std::set<BranchID> > BCMap;
167 BCMap& childLookup =
const_cast<BCMap&
>(branchChildren.
childLookup());
171 if (
i != childLookup.end()) {
173 childLookup.erase(
i);
177 for (
auto&
child : childLookup) {
186 ProcessHistoryIDMap::const_iterator
it =
phidMap_.find(phid);
DaqProvenanceHelper(TypeID const &rawDataType)
std::vector< BranchIDList > BranchIDLists
ReleaseVersion const & releaseVersion() const
bool registerProcessHistory(ProcessHistory const &processHistory)
def replace(string, replacements)
std::string const & moduleName() const
std::string const & processName() const
ProcessHistoryID daqInit(ProductRegistry &productRegistry, ProcessHistoryRegistry &processHistoryRegistry) const
void fixMetaData(ProcessConfigurationVector &pcv, std::vector< ProcessHistory > &phv)
ParameterSetID id() const
PassID const & passID() const
ParameterSet const & registerIt()
BranchID const & mapBranchID(BranchID const &branchID) const
std::string friendlyName(std::string const &iFullName)
bool matchProcesses(ProcessConfiguration const &pc, ProcessHistory const &ph) const
void setOldParentageIDToNew(ParentageID const &iOld, ParentageID const &iNew)
ProcessHistoryIDMap phidMap_
void addParameter(std::string const &name, T const &value)
map_t const & childLookup() const
ParentageID const & mapParentageID(ParentageID const &phid) const
Hash< ProcessHistoryType > ProcessHistoryID
std::string getReleaseVersion()
ProcessHistoryID const & mapProcessHistoryID(ProcessHistoryID const &phid)
ParentageIDMap parentageIDMap_
std::string oldProcessName_
std::string moduleName(StableProvenance const &provenance, ProcessHistory const &history)
BranchDescription const constBranchDescription_
constexpr const std::type_info & typeInfo() const
static std::string const triggerPaths
ParameterSet processParameterSet_
std::string const & moduleLabel() const
std::vector< std::string > vstring
void copyProduct(BranchDescription const &productdesc)
ProcessHistoryID const * oldProcessHistoryID_