21 throwExceptionWithText(
char const* txt)
24 <<
"Problem using an incomplete BranchDescription\n" 25 << txt <<
"\nPlease report this error to the ART developers\n";
35 ,
moduleLabel_{tl.hasEmulatedModule() ? tl.emulatedModule() :
45 psetIDs_.insert(md.parameterSetID());
80 <<
"Your application requires all events on Branch '" 82 <<
"'\n to have the same provenance. This file has events with " 84 <<
"on this branch. Use a different input file.\n";
111 os <<
"Branch Type = " <<
branchType_ << std::endl;
112 os <<
"Process Name = " <<
processName() << std::endl;
113 os <<
"ModuleLabel = " <<
moduleLabel() << std::endl;
114 os <<
"Product ID = " <<
productID() <<
'\n';
140 constexpr
char underscore{
'_'};
145 throwExceptionWithText(
"Illegal BranchType detected");
148 throwExceptionWithText(
"Module label is not allowed to be empty");
151 throwExceptionWithText(
"Process name is not allowed to be empty");
154 throwExceptionWithText(
"Full class name is not allowed to be empty");
157 throwExceptionWithText(
"Friendly class name is not allowed to be empty");
162 <<
"' contains an underscore ('_'), which is illegal in the " 163 <<
"name of a product.\n";
165 if (
moduleLabel_.find(underscore) != std::string::npos) {
168 <<
"' contains an underscore ('_'), which is illegal in a " 169 <<
"module label.\n";
174 <<
"' contains an underscore ('_'), which is illegal in a " 175 <<
"product instance name.\n";
177 if (
processName_.find(underscore) != std::string::npos) {
180 <<
"' contains an underscore ('_'), which is illegal in a " 181 <<
"process name.\n";
std::ostream & operator<<(std::ostream &os, EDAnalyzer::Table< T > const &t)
fhicl::ParameterSetID const & psetID() const
bool transientsFluffed_() const
std::set< fhicl::ParameterSetID > const & psetIDs() const
void merge(BranchDescription const &other)
void fluffTransients_() const
std::string wrappedClassName(std::string const &className)
static int constexpr invalidCompression
friend bool operator<(BranchDescription const &, BranchDescription const &)
std::set< ProcessConfigurationID > processConfigurationIDs_
std::string const & producedClassName() const
std::string producedClassName_
std::string const & moduleLabel() const
BranchType branchType() const
std::string friendlyClassName_
static int constexpr invalidSplitLevel
void swap(BranchDescription &other)
std::string canonicalProductName(std::string const &friendlyClassName, std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName)
ProductID productID() const
void setID(std::string const &canonicalProductName)
void write(std::ostream &os) const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::set< fhicl::ParameterSetID > psetIDs_
void throwIfInvalid_() const
std::string const & productInstanceName() const
std::set< ProcessConfigurationID > const & processConfigurationIDs() const
std::string productInstanceName_
std::string const & processName() const
BranchDescription()=default
friend bool combinable(BranchDescription const &, BranchDescription const &)
static int constexpr invalidBasketSize
friend bool operator==(BranchDescription const &, BranchDescription const &)
Transient< Transients > transients_
std::string const & friendlyClassName() const