67 std::set<std::string>
const&
aliases) :
68 branchType_(branchType),
69 moduleLabel_(moduleLabel),
70 processName_(processName),
72 fullClassName_(className),
73 friendlyClassName_(friendlyClassName),
74 productInstanceName_(productInstanceName),
75 branchAliases_(aliases),
91 moduleLabel_(moduleLabelAlias),
92 processName_(aliasForBranch.processName()),
94 fullClassName_(aliasForBranch.
className()),
95 friendlyClassName_(aliasForBranch.friendlyClassName()),
96 productInstanceName_(productInstanceAlias),
97 branchAliases_(aliasForBranch.branchAliases()),
98 aliasForBranchID_(aliasForBranch.branchID()),
116 char const underscore(
'_');
117 char const period(
'.');
121 <<
"' contains an underscore ('_'), which is illegal in the name of a product.\n";
124 if(
moduleLabel_.find(underscore) != std::string::npos) {
126 <<
"' contains an underscore ('_'), which is illegal in a module label.\n";
131 <<
"' contains an underscore ('_'), which is illegal in a product instance name.\n";
134 if(
processName_.find(underscore) != std::string::npos) {
136 <<
"' contains an underscore ('_'), which is illegal in a process name.\n";
182 Reflex::PropertyList wp = Reflex::Type::ByTypeInfo(
wrappedType().typeInfo()).Properties();
183 transient() = (wp.HasProperty(
"persistent") ? wp.PropertyAsString(
"persistent") ==
std::string(
"false") :
false);
189 if(wp.HasProperty(
"splitLevel")) {
190 splitLevel() = strtol(wp.PropertyAsString(
"splitLevel").c_str(), 0, 0);
192 throw cms::Exception(
"IllegalSplitLevel") <<
"' An illegal ROOT split level of " <<
199 if(wp.HasProperty(
"basketSize")) {
200 basketSize() = strtol(wp.PropertyAsString(
"basketSize").c_str(), 0, 0);
202 throw cms::Exception(
"IllegalBasketSize") <<
"' An illegal ROOT basket size of " <<
215 <<
"Your application requires all events on Branch '" <<
branchName()
216 <<
"'\n to have the same provenance. This file has events with mixed provenance\n"
217 <<
"on this branch. Use a different input file.\n";
233 os <<
"Branch Type = " <<
branchType() << std::endl;
234 os <<
"Process Name = " <<
processName() << std::endl;
235 os <<
"ModuleLabel = " <<
moduleLabel() << std::endl;
236 os <<
"Branch ID = " <<
branchID() <<
'\n';
244 e <<
"Problem using an incomplete BranchDescription\n"
246 <<
"\nPlease report this error to the FWCore developers";
330 std::ostringstream differences;
332 differences <<
"Branch name '" << b.
branchName() <<
"' does not match '" << a.
branchName() <<
"'.\n";
341 differences <<
" in file '" << fileName <<
"', but a(n) '" << a.
branchType() <<
"' branch in previous files.\n";
344 differences <<
"Branch '" << b.
branchName() <<
"' has a branch ID of '" << b.
branchID() <<
"'\n";
345 differences <<
" in file '" << fileName <<
"', but '" << a.
branchID() <<
"' in previous files.\n";
349 differences <<
" in file '" << fileName <<
"', but '" << a.
fullClassName() <<
"' in previous files.\n";
352 differences <<
"Branch '" << a.
branchName() <<
"' was dropped in the first input file but is present in '" << fileName <<
"'.\n";
356 differences <<
"Branch '" << b.
branchName() <<
"' uses more than one parameter set in file '" << fileName <<
"'.\n";
358 differences <<
"Branch '" << a.
branchName() <<
"' uses more than one parameter set in previous files.\n";
360 differences <<
"Branch '" << b.
branchName() <<
"' uses different parameter sets in file '" << fileName <<
"'.\n";
361 differences <<
" than in previous files.\n";
364 return differences.str();
367 WrapperInterfaceBase
const*
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
BranchType const & branchType() const
static TypeWithDict byName(std::string const &className)
TypeWithDict & wrappedType() const
static int const invalidSplitLevel
std::string & branchName() const
TypeWithDict & unwrappedType() const
static int const invalidBasketSize
std::map< ProcessConfigurationID, std::string > & moduleNames() const
std::string const & processName() const
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName, BranchDescription::MatchMode m)
void invokeByName(T &obj, std::string const &name) const
ParameterSetID const & psetID() const
void write(std::ostream &os) const
void initFromDictionary() const
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_
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &)
WrapperInterfaceBase *& wrapperInterfaceBase() const
std::string productInstanceName_
std::string const & friendlyClassName() const
BranchID const & branchID() const
WrapperInterfaceBase const * getInterface() const
void updateFriendlyClassName()
std::string & wrappedName() const
std::string const & moduleName() const
void throwExceptionWithText(char const *txt)
std::string const & fullClassName() const
ParameterSetID const & parameterSetID() const
eventsetup::produce::Produce produced
void initBranchName() const
std::string wrappedClassName(std::string const &iFullName)
std::set< std::string > const & branchAliases() const
std::map< ProcessConfigurationID, ParameterSetID > & parameterSetIDs() const
std::set< std::string > branchAliases_
std::string friendlyClassName_
ParameterSetID parameterSetID_
tuple size
Write out results.
std::string className(const T &t)
void setID(std::string const &branchName)
void merge(BranchDescription const &other)