/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Streamer/src/StreamedProducts.cc
31 строка
1 KB
Christopher Jones
Renamed BranchDescription to ProductDescription
25 янв 2025, 01:05
25 янв 2025, 01:05
73afa2d
Код
Авторство
О чём код?
#include "DataFormats/Streamer/interface/StreamedProducts.h" #include "FWCore/Utilities/interface/EDMException.h" #include "DataFormats/Common/interface/WrapperBase.h" namespace edm { StreamedProduct::StreamedProduct(WrapperBase const* prod, ProductDescription const& desc, bool present, std::vector<BranchID> const* parents) : prod_(prod), desc_(&desc), present_(present), parents_(parents) { if (present_ && prod == nullptr) { std::string branchName = desc.branchName(); if (branchName.empty()) { ProductDescription localCopy(desc); localCopy.initBranchName(); branchName = localCopy.branchName(); } throw edm::Exception(edm::errors::LogicError, "StreamedProduct::StreamedProduct\n") << "A product with a status of 'present' is not actually present.\n" << "The branch name is " << branchName << "\n" << "Contact a framework developer.\n"; } } void SendJobHeader::initializeTransients() { for (ProductDescription& desc : descs_) { desc.init(); desc.setIsProvenanceSetOnRead(); } } } // namespace edm