10 #include "TDictAttributeMap.h" 32 availableOnlyAtEndTransition_(
false),
67 std::set<std::string>
const& aliases) :
118 char const underscore(
'_');
119 char const period(
'.');
123 <<
"' contains an underscore ('_'), which is illegal in the name of a product.\n";
133 <<
"' contains an underscore ('_'), which is illegal in a product instance name.\n";
136 if(
processName_.find(underscore) != std::string::npos) {
138 <<
"' contains an underscore ('_'), which is illegal in a process name.\n";
147 brName += underscore;
149 brName += underscore;
151 brName += underscore;
200 if (wp && wp->HasKey(
"persistent") && !strcmp(wp->GetPropertyAsString(
"persistent"),
"false")) {
209 char const underscore(
'_');
210 if(
moduleLabel_.find(underscore) != std::string::npos) {
212 <<
"' contains an underscore ('_'), which is illegal in a module label.\n";
216 if (wp && wp->HasKey(
"splitLevel")) {
217 setSplitLevel(strtol(wp->GetPropertyAsString(
"splitLevel"),
nullptr, 0));
219 throw cms::Exception(
"IllegalSplitLevel") <<
"' An illegal ROOT split level of " <<
224 if (wp && wp->HasKey(
"basketSize")) {
225 setBasketSize(strtol(wp->GetPropertyAsString(
"basketSize"),
nullptr, 0));
227 throw cms::Exception(
"IllegalBasketSize") <<
"' An illegal ROOT basket size of " <<
244 <<
branchType_ <<
") differs from aliasForBranch (" 245 << aliasForBranch.
branchType() <<
").\nPlease report this error to the FWCore developers";
248 throw Exception(
errors::LogicError) <<
"BranchDescription::setSwitchAliasForBranch: produced differs from aliasForBranch.\nPlease report this error to the FWCore developers";
253 << aliasForBranch.
unwrappedType().
typeInfo().name() <<
").\nPlease report this error to the FWCore developers";
263 os <<
"Branch Type = " <<
branchType() << std::endl;
264 os <<
"Process Name = " <<
processName() << std::endl;
265 os <<
"ModuleLabel = " <<
moduleLabel() << std::endl;
266 os <<
"Branch ID = " <<
branchID() <<
'\n';
274 e <<
"Problem using an incomplete BranchDescription\n" 276 <<
"\nPlease report this error to the FWCore developers";
353 std::ostringstream differences;
355 differences <<
"Branch name '" << b.
branchName() <<
"' does not match '" << a.
branchName() <<
"'.\n";
364 differences <<
" in file '" << fileName <<
"', but a(n) '" << a.
branchType() <<
"' branch in previous files.\n";
367 differences <<
"Branch '" << b.
branchName() <<
"' has a branch ID of '" << b.
branchID() <<
"'\n";
368 differences <<
" in file '" << fileName <<
"', but '" << a.
branchID() <<
"' in previous files.\n";
372 differences <<
" in file '" << fileName <<
"', but '" << a.
fullClassName() <<
"' in previous files.\n";
375 differences <<
"Branch '" << a.
branchName() <<
"' was dropped in the first input file but is present in '" << fileName <<
"'.\n";
377 return differences.str();
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
std::string const & branchName() const
BranchType const & branchType() const
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)
static TypeWithDict byName(std::string const &name)
BranchID switchAliasForBranchID_
void setTransient(bool isTransient)
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
TClass * getClass() const
BranchID aliasForBranchID_
void throwIfInvalid_() const
std::string const & className() 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()
TypeID unwrappedTypeID() 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::type_info const & typeInfo() const
std::string const & moduleName() const
void throwExceptionWithText(char const *txt)
std::string const & fullClassName() const
bool availableOnlyAtEndTransition_
ParameterSetID const & parameterSetID() const
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_
BranchID const & originalBranchID() const
ParameterSetID parameterSetID_
bool availableOnlyAtEndTransition() const
void setUnwrappedType(TypeWithDict const &type)
void setBasketSize(int size)
void setProduced(bool isProduced)
void setSwitchAliasForBranch(BranchDescription const &aliasForBranch)
const char * name() const
std::string const & wrappedName() const
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)