35 desc.setIsProvenanceSetOnRead();
45 : constBranchDescription_(
47 dummyProvenance_(constBranchDescription_.branchID()),
48 processParameterSet_(),
52 oldProcessHistoryID_(nullptr),
59 typedef std::vector<std::string>
vstring;
93 :
DaqProvenanceHelper(rawDataType,
"FEDRawDataCollection",
"FEDRawDataCollection",
"FedRawDataInputSource") {}
107 return ph.setProcessHistoryID();
111 for (
auto const& pc :
ph) {
121 std::vector<ProcessConfiguration> newPCs;
122 for (
auto const& pc : pcv) {
128 if (newPCs.empty()) {
130 <<
"the input file contains a FEDRawDataCollection with module label\n" 131 <<
"\"source\". This is against CMS naming conventions.\n" 132 <<
"See GitHub Issue 45137 for related details.\n";
134 pcv.reserve(pcv.size() + newPCs.size());
135 pcv.insert(pcv.end(), newPCs.begin(), newPCs.end());
137 for (
auto&
ph : phv) {
138 for (
auto const& newPC : newPCs) {
141 ph.push_front(newPC);
143 phidMap_.insert(std::make_pair(oldPHID, newPHID));
149 phv.reserve(phv.size() + newPCs.size());
150 for (
auto const& newPC : newPCs) {
152 phv.back().push_front(newPC);
165 for (
auto& list : lists) {
171 typedef std::map<BranchID, std::set<BranchID> > BCMap;
173 BCMap& childLookup =
const_cast<BCMap&
>(branchChildren.
childLookup());
177 if (
i != childLookup.end()) {
179 childLookup.erase(
i);
183 for (
auto&
child : childLookup) {
192 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_