49 std::string
const& mdLabel,
50 std::string
const& procName,
51 std::string
const&
name,
52 std::string
const& fName,
53 std::string
const& pin,
56 std::set<std::string>
const& aliases) :
57 branchType_(branchType),
58 moduleLabel_(mdLabel),
59 processName_(procName),
63 friendlyClassName_(fName),
64 productInstanceName_(pin),
65 branchAliases_(aliases),
83 char const underscore(
'_');
88 <<
"' contains an underscore ('_'), which is illegal in the name of a product.\n";
91 if (
moduleLabel_.find(underscore) != std::string::npos) {
93 <<
"' contains an underscore ('_'), which is illegal in a module label.\n";
98 <<
"' contains an underscore ('_'), which is illegal in a product instance name.\n";
101 if (
processName_.find(underscore) != std::string::npos) {
103 <<
"' contains an underscore ('_'), which is illegal in a process name.\n";
128 if (
type() != null) {
143 Reflex::PropertyList
p = t.Properties();
144 transient() = (p.HasProperty(
"persistent") ? p.PropertyAsString(
"persistent") == std::string(
"false") :
false);
152 if (
type() == null) {
157 Reflex::PropertyList wp =
type().Properties();
158 if (wp.HasProperty(
"splitLevel")) {
159 splitLevel() = strtol(wp.PropertyAsString(
"splitLevel").c_str(), 0, 0);
161 throw cms::Exception(
"IllegalSplitLevel") <<
"' An illegal ROOT split level of " <<
168 if (wp.HasProperty(
"basketSize")) {
169 basketSize() = strtol(wp.PropertyAsString(
"basketSize").c_str(), 0, 0);
171 throw cms::Exception(
"IllegalBasketSize") <<
"' An illegal ROOT basket size of " <<
184 <<
"Your application requires all events on Branch '" <<
branchName()
185 <<
"'\n to have the same provenance. This file has events with mixed provenance\n"
186 <<
"on this branch. Use a different input file.\n";
202 os <<
"Branch Type = " <<
branchType() << std::endl;
203 os <<
"Process Name = " <<
processName() << std::endl;
204 os <<
"ModuleLabel = " <<
moduleLabel() << std::endl;
205 os <<
"Branch ID = " <<
branchID() <<
'\n';
213 e <<
"Problem using an incomplete BranchDescription\n"
215 <<
"\nPlease report this error to the FWCore developers";
299 std::ostringstream differences;
301 differences <<
"Branch name '" << b.
branchName() <<
"' does not match '" << a.
branchName() <<
"'.\n";
310 differences <<
" in file '" << fileName <<
"', but a(n) '" << a.
branchType() <<
"' branch in previous files.\n";
313 differences <<
"Branch '" << b.
branchName() <<
"' has a branch ID of '" << b.
branchID() <<
"'\n";
314 differences <<
" in file '" << fileName <<
"', but '" << a.
branchID() <<
"' in previous files.\n";
318 differences <<
" in file '" << fileName <<
"', but '" << a.
fullClassName() <<
"' in previous files.\n";
321 differences <<
"Branch '" << a.
branchName() <<
"' was dropped in the first input file but is present in '" << fileName <<
"'.\n";
325 differences <<
"Branch '" << b.
branchName() <<
"' uses more than one parameter set in file '" << fileName <<
"'.\n";
327 differences <<
"Branch '" << a.
branchName() <<
"' uses more than one parameter set in previous files.\n";
329 differences <<
"Branch '" << b.
branchName() <<
"' uses different parameter sets in file '" << fileName <<
"'.\n";
330 differences <<
" than in previous files.\n";
333 return differences.str();
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
BranchType const & branchType() const
Reflex::Type & type() const
static int const invalidSplitLevel
std::string & branchName() const
static int const invalidBasketSize
std::map< ProcessConfigurationID, std::string > & moduleNames() const
std::string const & moduleName() const
std::string const & processName() const
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName, BranchDescription::MatchMode m)
ParameterSetID const & psetID() const
void write(std::ostream &os) const
void initFromDictionary() const
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 &)
std::string productInstanceName_
std::string const & friendlyClassName() const
BranchID const & branchID() const
void updateFriendlyClassName()
std::string & wrappedName() const
void throwExceptionWithText(char const *txt)
std::string const & fullClassName() const
ParameterSetID const & parameterSetID() const
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 const & parameterSetID() const
tuple size
Write out results.
void setID(std::string const &branchName)
void merge(BranchDescription const &other)
Transient< Transients > transients_