64 std::set<std::string>
const&
aliases) :
65 branchType_(branchType),
67 processName_(processName),
69 fullClassName_(className),
70 friendlyClassName_(friendlyClassName),
71 productInstanceName_(productInstanceName),
72 branchAliases_(aliases),
89 processName_(aliasForBranch.processName()),
91 fullClassName_(aliasForBranch.
className()),
92 friendlyClassName_(aliasForBranch.friendlyClassName()),
93 productInstanceName_(productInstanceAlias),
94 branchAliases_(aliasForBranch.branchAliases()),
95 aliasForBranchID_(aliasForBranch.branchID()),
113 char const underscore(
'_');
114 char const period(
'.');
118 <<
"' contains an underscore ('_'), which is illegal in the name of a product.\n";
121 if(
moduleLabel_.find(underscore) != std::string::npos) {
123 <<
"' contains an underscore ('_'), which is illegal in a module label.\n";
128 <<
"' contains an underscore ('_'), which is illegal in a product instance name.\n";
131 if(
processName_.find(underscore) != std::string::npos) {
133 <<
"' contains an underscore ('_'), which is illegal in a process name.\n";
142 brName += underscore;
144 brName += underscore;
146 brName += underscore;
186 Reflex::PropertyList wp = Reflex::Type::ByTypeInfo(
wrappedType().typeInfo()).Properties();
187 setTransient((wp.HasProperty(
"persistent") ? wp.PropertyAsString(
"persistent") ==
std::string(
"false") :
false));
193 if(wp.HasProperty(
"splitLevel")) {
194 setSplitLevel(strtol(wp.PropertyAsString(
"splitLevel").c_str(), 0, 0));
196 throw cms::Exception(
"IllegalSplitLevel") <<
"' An illegal ROOT split level of " <<
203 if(wp.HasProperty(
"basketSize")) {
204 setBasketSize(strtol(wp.PropertyAsString(
"basketSize").c_str(), 0, 0));
206 throw cms::Exception(
"IllegalBasketSize") <<
"' An illegal ROOT basket size of " <<
223 os <<
"Branch Type = " <<
branchType() << std::endl;
224 os <<
"Process Name = " <<
processName() << std::endl;
225 os <<
"ModuleLabel = " <<
moduleLabel() << std::endl;
226 os <<
"Branch ID = " <<
branchID() <<
'\n';
234 e <<
"Problem using an incomplete BranchDescription\n"
236 <<
"\nPlease report this error to the FWCore developers";
313 std::ostringstream differences;
315 differences <<
"Branch name '" << b.
branchName() <<
"' does not match '" << a.
branchName() <<
"'.\n";
324 differences <<
" in file '" << fileName <<
"', but a(n) '" << a.
branchType() <<
"' branch in previous files.\n";
327 differences <<
"Branch '" << b.
branchName() <<
"' has a branch ID of '" << b.
branchID() <<
"'\n";
328 differences <<
" in file '" << fileName <<
"', but '" << a.
branchID() <<
"' in previous files.\n";
332 differences <<
" in file '" << fileName <<
"', but '" << a.
fullClassName() <<
"' in previous files.\n";
335 differences <<
"Branch '" << a.
branchName() <<
"' was dropped in the first input file but is present in '" << fileName <<
"'.\n";
337 return differences.str();
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
std::string const & branchName() const
BranchType const & branchType() const
static TypeWithDict byName(std::string const &className)
static int const invalidSplitLevel
static int const invalidBasketSize
void setOnDemand(bool isOnDemand)
std::string const & processName() const
void write(std::ostream &os) const
void setWrappedType(TypeWithDict const &type)
void setTransient(bool isTransient)
std::string moduleName(Provenance const &provenance)
BranchID aliasForBranchID_
void throwIfInvalid_() const
std::string friendlyName(std::string const &iFullName)
std::string const & moduleLabel() const
std::string const & productInstanceName() const
bool combinable(BranchDescription const &a, BranchDescription const &b)
std::string fullClassName_
void initFromDictionary()
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
void setWrappedName(std::string const &name)
void setSplitLevel(int level)
std::string productInstanceName_
std::string const & friendlyClassName() const
BranchID const & branchID() const
TypeWithDict const & unwrappedType() const
void setDropped(bool isDropped)
void updateFriendlyClassName()
std::string const & moduleName() const
void throwExceptionWithText(char const *txt)
std::string const & fullClassName() const
ParameterSetID const & parameterSetID() const
eventsetup::produce::Produce produced
std::string wrappedClassName(std::string const &iFullName)
void addContext(std::string const &context)
std::set< std::string > const & branchAliases() const
std::set< std::string > branchAliases_
std::string friendlyClassName_
ParameterSetID parameterSetID_
void setUnwrappedType(TypeWithDict const &type)
volatile std::atomic< bool > shutdown_flag false
void setBasketSize(int size)
void setProduced(bool isProduced)
std::string const & wrappedName() const
tuple size
Write out results.
std::string className(const T &t)
TypeWithDict const & wrappedType() const
void setID(std::string const &branchName)
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName)
void merge(BranchDescription const &other)