CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
edm::BranchDescription Class Reference

#include <BranchDescription.h>

Classes

struct  Transients
 

Public Types

enum  MatchMode { Strict = 0, Permissive }
 

Public Member Functions

BranchID const & aliasForBranchID () const
 
bool availableOnlyAtEndTransition () const
 
int basketSize () const
 
std::set< std::string > const & branchAliases () const
 
 BranchDescription ()
 
 BranchDescription (BranchType const &branchType, std::string const &moduleLabel, std::string const &processName, std::string const &className, std::string const &friendlyClassName, std::string const &productInstanceName, std::string const &moduleName, ParameterSetID const &parameterSetID, TypeWithDict const &theTypeWithDict, bool produced=true, bool availableOnlyAtEndTransition=false, std::set< std::string > const &aliases=std::set< std::string >())
 
 BranchDescription (BranchDescription const &aliasForBranch, std::string const &moduleLabelAlias, std::string const &productInstanceAlias)
 
BranchID const & branchID () const
 
std::string const & branchName () const
 
BranchType const & branchType () const
 
std::string const & className () const
 
void clearBranchName ()
 
bool dropped () const
 
std::string const & friendlyClassName () const
 
std::string const & fullClassName () const
 
void init ()
 
void initBranchName ()
 
void initFromDictionary ()
 
void initializeTransients ()
 
void insertBranchAlias (std::string const &alias)
 
bool isAlias () const
 
bool isAnyAlias () const
 
bool isMergeable () const
 
bool isProvenanceSetOnRead () const noexcept
 
bool isSwitchAlias () const
 
void merge (BranchDescription const &other)
 
std::string const & moduleLabel () const
 
std::string const & moduleName () const
 
bool onDemand () const
 
BranchID const & originalBranchID () const
 
ParameterSetID const & parameterSetID () const
 
bool present () const
 
std::string const & processName () const
 
bool produced () const
 
std::string const & productInstanceName () const
 
void setBasketSize (int size)
 
void setDropped (bool isDropped)
 
void setIsMergeable (bool v)
 
void setIsProvenanceSetOnRead (bool value=true) noexcept
 
void setOnDemand (bool isOnDemand)
 
void setProduced (bool isProduced)
 
void setSplitLevel (int level)
 
void setSwitchAliasForBranch (BranchDescription const &aliasForBranch)
 
void setSwitchAliasModuleLabel (std::string label)
 
void setTransient (bool isTransient)
 
void setUnwrappedType (TypeWithDict const &type)
 
void setWrappedName (std::string const &name)
 
void setWrappedType (TypeWithDict const &type)
 
int splitLevel () const
 
BranchID const & switchAliasForBranchID () const
 
std::string const & switchAliasModuleLabel () const
 
bool transient () const
 
TypeWithDict const & unwrappedType () const
 
TypeID unwrappedTypeID () const
 
void updateFriendlyClassName ()
 
std::string const & wrappedName () const
 
TypeWithDict const & wrappedType () const
 
TypeID wrappedTypeID () const
 
void write (std::ostream &os) const
 
 ~BranchDescription ()
 

Static Public Attributes

static int const invalidBasketSize = 0
 
static int const invalidSplitLevel = -1
 

Private Member Functions

void throwIfInvalid_ () const
 

Private Attributes

BranchID aliasForBranchID_
 
std::set< std::string > branchAliases_
 
BranchID branchID_
 
BranchType branchType_
 
std::string friendlyClassName_
 
std::string fullClassName_
 
std::string moduleLabel_
 
std::string processName_
 
std::string productInstanceName_
 
Transients transient_
 

Detailed Description

Definition at line 32 of file BranchDescription.h.

Member Enumeration Documentation

Enumerator
Strict 
Permissive 

Definition at line 36 of file BranchDescription.h.

Constructor & Destructor Documentation

edm::BranchDescription::BranchDescription ( )

Definition at line 37 of file BranchDescription.cc.

39  moduleLabel_(),
40  processName_(),
41  branchID_(),
47  transient_() {
48  // do not call init here! It will result in an exception throw.
49  }
std::set< std::string > branchAliases_
edm::BranchDescription::BranchDescription ( BranchType const &  branchType,
std::string const &  moduleLabel,
std::string const &  processName,
std::string const &  className,
std::string const &  friendlyClassName,
std::string const &  productInstanceName,
std::string const &  moduleName,
ParameterSetID const &  parameterSetID,
TypeWithDict const &  theTypeWithDict,
bool  produced = true,
bool  availableOnlyAtEndTransition = false,
std::set< std::string > const &  aliases = std::set<std::string>() 
)

Definition at line 51 of file BranchDescription.cc.

References availableOnlyAtEndTransition(), edm::BranchDescription::Transients::availableOnlyAtEndTransition_, init(), moduleName(), edm::BranchDescription::Transients::moduleName_, parameterSetID(), edm::BranchDescription::Transients::parameterSetID_, setDropped(), setOnDemand(), setProduced(), setUnwrappedType(), and transient_.

66  branchID_(),
71  transient_() {
72  setDropped(false);
74  setOnDemand(false);
78  setUnwrappedType(theTypeWithDict);
79  init();
80  }
dictionary aliases
Definition: autoCond.py:82
BranchType const & branchType() const
void setOnDemand(bool isOnDemand)
std::string const & processName() const
std::string const & className() const
std::string const & moduleLabel() const
std::string const & productInstanceName() const
std::string const & friendlyClassName() const
void setDropped(bool isDropped)
std::string const & moduleName() const
ParameterSetID const & parameterSetID() const
std::set< std::string > branchAliases_
bool availableOnlyAtEndTransition() const
void setUnwrappedType(TypeWithDict const &type)
void setProduced(bool isProduced)
edm::BranchDescription::BranchDescription ( BranchDescription const &  aliasForBranch,
std::string const &  moduleLabelAlias,
std::string const &  productInstanceAlias 
)

Definition at line 82 of file BranchDescription.cc.

References availableOnlyAtEndTransition(), edm::BranchDescription::Transients::availableOnlyAtEndTransition_, init(), moduleName(), edm::BranchDescription::Transients::moduleName_, parameterSetID(), edm::BranchDescription::Transients::parameterSetID_, produced(), setDropped(), setOnDemand(), setProduced(), setUnwrappedType(), transient_, and unwrappedType().

85  : branchType_(aliasForBranch.branchType()),
86  moduleLabel_(moduleLabelAlias),
87  processName_(aliasForBranch.processName()),
88  branchID_(),
89  fullClassName_(aliasForBranch.className()),
90  friendlyClassName_(aliasForBranch.friendlyClassName()),
91  productInstanceName_(productInstanceAlias),
92  branchAliases_(aliasForBranch.branchAliases()),
93  aliasForBranchID_(aliasForBranch.branchID()),
94  transient_() {
95  setDropped(false);
96  setProduced(aliasForBranch.produced());
97  setOnDemand(false); // will be re-set externally to the aliasForBranch.onDemand() after that one has been set
98  transient_.availableOnlyAtEndTransition_ = aliasForBranch.availableOnlyAtEndTransition();
99  transient_.moduleName_ = aliasForBranch.moduleName();
100  transient_.parameterSetID_ = aliasForBranch.parameterSetID();
101  setUnwrappedType(aliasForBranch.unwrappedType());
102  init();
103  }
void setOnDemand(bool isOnDemand)
void setDropped(bool isDropped)
std::set< std::string > branchAliases_
void setUnwrappedType(TypeWithDict const &type)
void setProduced(bool isProduced)
edm::BranchDescription::~BranchDescription ( )
inline

Definition at line 57 of file BranchDescription.h.

57 {}

Member Function Documentation

BranchID const& edm::BranchDescription::aliasForBranchID ( ) const
inline

Definition at line 75 of file BranchDescription.h.

References aliasForBranchID_.

75 { return aliasForBranchID_; }
bool edm::BranchDescription::availableOnlyAtEndTransition ( ) const
inline
int edm::BranchDescription::basketSize ( ) const
inline
std::set<std::string> const& edm::BranchDescription::branchAliases ( ) const
inline
BranchID const& edm::BranchDescription::branchID ( ) const
inline

Definition at line 74 of file BranchDescription.h.

References branchID_.

Referenced by edm::RootTree::addBranch(), edm::ProductRegistry::addLabelAlias(), edm::Principal::addProduct_(), edm::Principal::adjustIndexesAfterProductRegistryAddition(), edm::BranchChildren::appendToDescendants(), edm::PoolOutputModule::beginJob(), edm::StableProvenance::branchID(), edm::StreamedProduct::branchID(), edm::PoolOutputModule::OutputItem::branchID(), edm::check(), edm::combinable(), edm::RootFile::dropOnInputAndReorder(), edm::ProductSelector::fillDroppedToKept(), fwlite::DataGetterHelper::getByBranchDescription(), edm::Principal::getExistingProduct(), edm::core::OutputModuleCore::keepThisBranch(), edm::SubProcess::keepThisBranch(), edm::RootFile::markBranchToBeDropped(), edm::match(), edm::operator<(), edm::SubProcess::parentProducedProductIsKept(), edm::SubProcess::propagateProducts(), edm::EventPrincipal::put(), edm::Principal::put_(), edm::EventPrincipal::putOnRead(), edm::RunPrincipal::putOrMerge(), edm::StreamerInputSource::read(), edm::ThinningProducer< Collection, Selector >::registerThinnedAssociations(), edm::DaqProvenanceHelper::saveInfo(), edm::ScheduleItems::ScheduleItems(), edm::SubProcessParentageHelper::update(), fwlite::internal::BranchMapReaderStrategyV8::updateFile(), fwlite::internal::BranchMapReaderStrategyV11::updateFile(), fwlite::internal::BranchMapReaderStrategyV17::updateFile(), fwlite::internal::BranchMapReaderStrategyV1::updateMap(), edm::ProvenanceCheckerOutputModule::write(), and write().

74 { return branchID_; }
std::string const& edm::BranchDescription::branchName ( ) const
inline
BranchType const& edm::BranchDescription::branchType ( ) const
inline

Definition at line 122 of file BranchDescription.h.

References branchType_.

Referenced by edm::ProductRegistry::addProduct(), edm::Principal::adjustIndexesAfterProductRegistryAddition(), edm::Principal::adjustToNewProductRegistry(), edm::PoolOutputModule::beginJob(), edm::combinable(), edm::ConcurrentHadronizerFilter< HAD, DEC >::ConcurrentHadronizerFilter(), edm::RootFile::dropOnInputAndReorder(), edm::GenericConsumer::GenericConsumer(), edm::HadronizerFilter< HAD, DEC >::HadronizerFilter(), edm::insertSelectedProcesses(), edm::core::OutputModuleCore::keepThisBranch(), edm::SubProcess::keepThisBranch(), edm::match(), edm::MergeableInputProductResolver::mergeProduct(), edm::WillGetIfMatch< T >::operator()(), l1t::L1TGlobalUtilHelper::operator()(), L1GtUtilsHelper::operator()(), edm::GetterOfProducts< trigger::HLTPrescaleTable >::operator()(), edm::operator<(), edm::SubProcess::parentProducedProductIsKept(), edm::Principal::Principal(), edm::DelayedReaderInputProductResolver::retrieveAndMerge_(), edm::RootFile::RootFile(), edm::ProcessBlockHelperBase::selectProcess(), edm::core::OutputModuleCore::selectProducts(), edm::RootOutputFile::setBranchAliases(), edm::setIsMergeable(), edm::RootFile::setPresenceInProductRegistry(), edm::MergeableRunProductProcesses::setProcessesWithMergeableRunProducts(), setSwitchAliasForBranch(), TFWLiteSelectorBasic::setupNewFile(), edm::SwitchProducer::SwitchProducer(), TriggerResultsFilter::TriggerResultsFilter(), edm::SubProcessParentageHelper::update(), fwlite::internal::BranchMapReaderStrategyV8::updateFile(), fwlite::internal::BranchMapReaderStrategyV11::updateFile(), fwlite::internal::BranchMapReaderStrategyV17::updateFile(), edm::SubProcessBlockHelper::updateFromParentProcess(), fwlite::internal::BranchMapReaderStrategyV1::updateMap(), and write().

122 { return branchType_; }
std::string const& edm::BranchDescription::className ( ) const
inline
void edm::BranchDescription::clearBranchName ( )
inline
bool edm::BranchDescription::dropped ( ) const
inline
std::string const& edm::BranchDescription::friendlyClassName ( ) const
inline
std::string const& edm::BranchDescription::fullClassName ( ) const
inline
void edm::BranchDescription::init ( void  )
inline
void edm::BranchDescription::initBranchName ( )

Definition at line 105 of file BranchDescription.cc.

References branchID_, branchName(), edm::BranchDescription::Transients::branchName_, relativeConstraints::empty, Exception, friendlyClassName(), friendlyClassName_, edm::BranchID::isValid(), moduleLabel(), l1tstage2_dqm_sourceclient-live_cfg::period, processName(), processName_, productInstanceName(), productInstanceName_, edm::BranchID::setID(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, throwIfInvalid_(), and transient_.

Referenced by init(), edm::StreamedProduct::StreamedProduct(), and updateFriendlyClassName().

105  {
106  if (!branchName().empty()) {
107  return; // already called
108  }
109  throwIfInvalid_();
110 
111  char const underscore('_');
112  char const period('.');
113 
114  if (friendlyClassName_.find(underscore) != std::string::npos) {
115  throw cms::Exception("IllegalCharacter")
116  << "Class name '" << friendlyClassName()
117  << "' contains an underscore ('_'), which is illegal in the name of a product.\n";
118  }
119 
120  // Module labels of non-persistent products are allowed to contain
121  // underscores. For module labels of persistent products, the module
122  // label is checked for underscores in the function initFromDictionary
123  // after we determine whether the product is persistent or not.
124 
125  if (productInstanceName_.find(underscore) != std::string::npos) {
126  throw cms::Exception("IllegalCharacter")
127  << "Product instance name '" << productInstanceName()
128  << "' contains an underscore ('_'), which is illegal in a product instance name.\n";
129  }
130 
131  if (processName_.find(underscore) != std::string::npos) {
132  throw cms::Exception("IllegalCharacter")
133  << "Process name '" << processName()
134  << "' contains an underscore ('_'), which is illegal in a process name.\n";
135  }
136 
138  brName.reserve(friendlyClassName().size() + moduleLabel().size() + productInstanceName().size() +
139  processName().size() + 4);
140  brName += friendlyClassName();
141  brName += underscore;
142  brName += moduleLabel();
143  brName += underscore;
144  brName += productInstanceName();
145  brName += underscore;
146  brName += processName();
147  brName += period;
148 
149  if (!branchID_.isValid()) {
150  branchID_.setID(brName);
151  }
152  }
std::string const & branchName() const
std::string const & processName() const
bool isValid() const
Definition: BranchID.h:22
std::string const & moduleLabel() const
std::string const & productInstanceName() const
std::string const & friendlyClassName() const
tuple size
Write out results.
void setID(std::string const &branchName)
Definition: BranchID.h:20
void edm::BranchDescription::initFromDictionary ( )

Definition at line 154 of file BranchDescription.cc.

References cms::Exception::addContext(), basketSize(), branchName(), edm::TypeWithDict::byName(), Exception, fullClassName(), edm::TypeWithDict::getClass(), invalidBasketSize, invalidSplitLevel, moduleLabel(), moduleLabel_, setBasketSize(), setSplitLevel(), setTransient(), setUnwrappedType(), setWrappedName(), setWrappedType(), splitLevel(), AlCaHLTBitMon_QueryRunRegistry::string, throwIfInvalid_(), unwrappedType(), edm::wrappedClassName(), wrappedName(), and wrappedType().

Referenced by init().

154  {
155  if (bool(wrappedType())) {
156  return; // already initialized;
157  }
158 
159  throwIfInvalid_();
160 
161  try {
163  // unwrapped type.
165  if (!bool(unwrappedType())) {
168  setTransient(false);
169  return;
170  }
171  } catch (edm::Exception& caughtException) {
172  caughtException.addContext(std::string{"While initializing meta data for branch: "} + branchName());
173  throw;
174  }
175 
177  try {
178  setWrappedType(wrType);
179  if (!bool(wrappedType())) {
182  return;
183  }
184  } catch (edm::Exception& caughtException) {
185  caughtException.addContext(std::string{"While initializing meta data for branch: "} + branchName());
186  throw;
187  }
188 
189  setTransient(false);
192  TDictAttributeMap* wp = wrappedType().getClass()->GetAttributeMap();
193  if (wp && wp->HasKey("persistent") && !strcmp(wp->GetPropertyAsString("persistent"), "false")) {
194  // Set transient if persistent == "false".
195  setTransient(true);
196  return;
197  } else {
198  // Module labels of persistent products cannot contain underscores,
199  // but for non-persistent products it is allowed because path names
200  // are used as module labels for path status products and there
201  // are many path names that include underscores.
202  char const underscore('_');
203  if (moduleLabel_.find(underscore) != std::string::npos) {
204  throw cms::Exception("IllegalCharacter")
205  << "Module label '" << moduleLabel()
206  << "' contains an underscore ('_'), which is illegal in a module label.\n";
207  }
208  }
209 
210  if (wp && wp->HasKey("splitLevel")) {
211  setSplitLevel(strtol(wp->GetPropertyAsString("splitLevel"), nullptr, 0));
212  if (splitLevel() < 0) {
213  throw cms::Exception("IllegalSplitLevel") << "' An illegal ROOT split level of " << splitLevel()
214  << " is specified for class " << wrappedName() << ".'\n";
215  }
216  setSplitLevel(splitLevel() + 1); //Compensate for wrapper
217  }
218  if (wp && wp->HasKey("basketSize")) {
219  setBasketSize(strtol(wp->GetPropertyAsString("basketSize"), nullptr, 0));
220  if (basketSize() <= 0) {
221  throw cms::Exception("IllegalBasketSize") << "' An illegal ROOT basket size of " << basketSize()
222  << " is specified for class " << wrappedName() << "'.\n";
223  }
224  }
225  }
std::string const & branchName() const
static int const invalidSplitLevel
static int const invalidBasketSize
void setWrappedType(TypeWithDict const &type)
static TypeWithDict byName(std::string const &name)
Definition: TypeWithDict.cc:74
void setTransient(bool isTransient)
TClass * getClass() const
std::string const & moduleLabel() const
void setWrappedName(std::string const &name)
void setSplitLevel(int level)
TypeWithDict const & unwrappedType() const
std::string const & fullClassName() const
std::string wrappedClassName(std::string const &iFullName)
void addContext(std::string const &context)
Definition: Exception.cc:165
void setUnwrappedType(TypeWithDict const &type)
void setBasketSize(int size)
std::string const & wrappedName() const
TypeWithDict const & wrappedType() const
void edm::BranchDescription::initializeTransients ( )
inline
void edm::BranchDescription::insertBranchAlias ( std::string const &  alias)
inline

Definition at line 119 of file BranchDescription.h.

References branchAliases_.

119 { branchAliases_.insert(alias); }
std::set< std::string > branchAliases_
bool edm::BranchDescription::isAlias ( ) const
inline
bool edm::BranchDescription::isAnyAlias ( ) const
inline

Definition at line 110 of file BranchDescription.h.

References isAlias(), isSwitchAlias(), and or.

Referenced by edm::Principal::findProducts().

110 { return isAlias() or isSwitchAlias(); }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
bool edm::BranchDescription::isMergeable ( ) const
inline
bool edm::BranchDescription::isProvenanceSetOnRead ( ) const
inlinenoexcept
bool edm::BranchDescription::isSwitchAlias ( ) const
inline
void edm::BranchDescription::merge ( BranchDescription const &  other)

Definition at line 227 of file BranchDescription.cc.

References basketSize(), branchAliases(), branchAliases_, invalidBasketSize, invalidSplitLevel, setBasketSize(), setSplitLevel(), and splitLevel().

227  {
228  branchAliases_.insert(other.branchAliases().begin(), other.branchAliases().end());
229  if (splitLevel() == invalidSplitLevel)
230  setSplitLevel(other.splitLevel());
231  if (basketSize() == invalidBasketSize)
232  setBasketSize(other.basketSize());
233  }
static int const invalidSplitLevel
static int const invalidBasketSize
void setSplitLevel(int level)
std::set< std::string > branchAliases_
void setBasketSize(int size)
std::string const& edm::BranchDescription::moduleLabel ( ) const
inline

Definition at line 72 of file BranchDescription.h.

References moduleLabel_.

Referenced by edm::SignallingProductRegistry::addCalled(), edm::ProductRegistry::addLabelAlias(), edm::Principal::addProduct_(), edm::Principal::addProductOrThrow(), edm::ProductSelectorRules::Rule::appliesTo(), edm::check(), edm::combinable(), edm::ConcurrentHadronizerFilter< HAD, DEC >::ConcurrentHadronizerFilter(), edm::DaqProvenanceHelper::DaqProvenanceHelper(), FWLiteJobMetadataManager::doUpdate(), FWFFMetadataManager::doUpdate(), ShallowTree::eat(), EcalDeadCellTriggerPrimitiveFilter::EcalDeadCellTriggerPrimitiveFilter(), edm::EventContentAnalyzer::EventContentAnalyzer(), edm::LHEProvenanceHelper::fillCommonProcessParameterSet(), edm::GenericConsumer::GenericConsumer(), fwlite::DataGetterHelper::getByBranchDescription(), edm::HadronizerFilter< HAD, DEC >::HadronizerFilter(), FWFFMetadataManager::hasModuleLabel(), initBranchName(), initFromDictionary(), edm::core::OutputModuleCore::keepThisBranch(), edm::SubProcess::keepThisBranch(), L3TkMuonProducer::L3TkMuonProducer(), edm::StableProvenance::moduleLabel(), edm::ProductResolverBase::moduleLabel(), edm::ModuleLabelMatch::operator()(), edm::InputTagMatch::operator()(), edm::WillGetIfMatch< T >::operator()(), l1t::L1TGlobalUtilHelper::operator()(), L1GtUtilsHelper::operator()(), edm::operator<(), edm::Principal::Principal(), edm::ThinningProducer< Collection, Selector >::registerThinnedAssociations(), edm::RootOutputFile::RootOutputFile(), edm::ProcessBlockHelperBase::selectProcess(), edm::RootOutputFile::setBranchAliases(), triggerExpression::Data::setPathStatusToken(), edm::SwitchProducer::SwitchProducer(), TriggerResultsFilter::TriggerResultsFilter(), edm::HiMixingModule::verifyRegistry(), edm::AsciiOutputModule::write(), and write().

72 { return moduleLabel_; }
std::string const& edm::BranchDescription::moduleName ( ) const
inline
bool edm::BranchDescription::onDemand ( ) const
inline
BranchID const& edm::BranchDescription::originalBranchID ( ) const
inline
ParameterSetID const& edm::BranchDescription::parameterSetID ( ) const
inline
bool edm::BranchDescription::present ( ) const
inline
std::string const& edm::BranchDescription::processName ( ) const
inline

Definition at line 73 of file BranchDescription.h.

References processName_.

Referenced by edm::ProductRegistry::addProduct(), edm::Principal::addProduct_(), edm::Principal::addProductOrThrow(), edm::ProductSelectorRules::Rule::appliesTo(), edm::check(), edm::ProductRegistry::checkForDuplicateProcessName(), edm::combinable(), edm::ConcurrentHadronizerFilter< HAD, DEC >::ConcurrentHadronizerFilter(), edm::DaqProvenanceHelper::daqInit(), edm::DaqProvenanceHelper::DaqProvenanceHelper(), FWLiteJobMetadataManager::doUpdate(), FWFFMetadataManager::doUpdate(), edm::RootFile::dropOnInputAndReorder(), edm::EventContentAnalyzer::EventContentAnalyzer(), edm::LHEProvenanceHelper::fillCommonProcessParameterSet(), edm::PoolOutputModule::fillSelectedItemList(), edm::Principal::findProducts(), edm::GenericConsumer::GenericConsumer(), fwlite::DataGetterHelper::getByBranchDescription(), edm::HadronizerFilter< HAD, DEC >::HadronizerFilter(), initBranchName(), edm::insertSelectedProcesses(), edm::core::OutputModuleCore::keepThisBranch(), edm::SubProcess::keepThisBranch(), L3TkMuonProducer::L3TkMuonProducer(), edm::LHEProvenanceHelper::lheInit(), edm::MergeableInputProductResolver::mergeProduct(), edm::ProcessMatch::operator()(), edm::InputTagMatch::operator()(), edm::WillGetIfMatch< T >::operator()(), l1t::L1TGlobalUtilHelper::operator()(), L1GtUtilsHelper::operator()(), edm::operator<(), edm::Principal::Principal(), edm::StableProvenance::processName(), edm::ProductResolverBase::processName(), edm::ThinningProducer< Collection, Selector >::registerThinnedAssociations(), edm::RootFile::RootFile(), edm::RootOutputFile::RootOutputFile(), edm::DaqProvenanceHelper::saveInfo(), edm::ProcessBlockHelperBase::selectProcess(), edm::RootOutputFile::setBranchAliases(), triggerExpression::Data::setPathStatusToken(), edm::RootFile::setPresenceInProductRegistry(), edm::MergeableRunProductProcesses::setProcessesWithMergeableRunProducts(), edm::SwitchProducer::SwitchProducer(), edm::SubProcessBlockHelper::updateFromParentProcess(), edm::AsciiOutputModule::write(), and write().

73 { return processName_; }
bool edm::BranchDescription::produced ( ) const
inline
std::string const& edm::BranchDescription::productInstanceName ( ) const
inline

Definition at line 81 of file BranchDescription.h.

References productInstanceName_.

Referenced by edm::SignallingProductRegistry::addCalled(), edm::Principal::addProductOrThrow(), edm::ProductSelectorRules::Rule::appliesTo(), edm::check(), edm::combinable(), edm::ConcurrentHadronizerFilter< HAD, DEC >::ConcurrentHadronizerFilter(), FWLiteJobMetadataManager::doUpdate(), FWFFMetadataManager::doUpdate(), ShallowTree::eat(), edm::EventContentAnalyzer::EventContentAnalyzer(), edm::GenericConsumer::GenericConsumer(), fwlite::DataGetterHelper::getByBranchDescription(), edm::HadronizerFilter< HAD, DEC >::HadronizerFilter(), initBranchName(), edm::core::OutputModuleCore::keepThisBranch(), edm::SubProcess::keepThisBranch(), L3TkMuonProducer::L3TkMuonProducer(), edm::InputTagMatch::operator()(), edm::WillGetIfMatch< T >::operator()(), l1t::L1TGlobalUtilHelper::operator()(), L1GtUtilsHelper::operator()(), edm::operator<(), edm::StableProvenance::productInstanceName(), edm::ProductResolverBase::productInstanceName(), edm::ThinningProducer< Collection, Selector >::registerThinnedAssociations(), edm::RootOutputFile::RootOutputFile(), edm::ProcessBlockHelperBase::selectProcess(), edm::RootOutputFile::setBranchAliases(), triggerExpression::Data::setPathStatusToken(), edm::SwitchProducer::SwitchProducer(), edm::HiMixingModule::verifyRegistry(), and write().

81 { return productInstanceName_; }
void edm::BranchDescription::setBasketSize ( int  size)
inline
void edm::BranchDescription::setDropped ( bool  isDropped)
inline
void edm::BranchDescription::setIsMergeable ( bool  v)
inline
void edm::BranchDescription::setIsProvenanceSetOnRead ( bool  value = true)
inlinenoexcept
void edm::BranchDescription::setOnDemand ( bool  isOnDemand)
inline
void edm::BranchDescription::setProduced ( bool  isProduced)
inline
void edm::BranchDescription::setSplitLevel ( int  level)
inline
void edm::BranchDescription::setSwitchAliasForBranch ( BranchDescription const &  aliasForBranch)

Definition at line 235 of file BranchDescription.cc.

References availableOnlyAtEndTransition(), edm::BranchDescription::Transients::availableOnlyAtEndTransition_, branchAliases(), branchAliases_, branchType(), branchType_, Exception, edm::errors::LogicError, edm::TypeIDBase::name(), originalBranchID(), produced(), edm::BranchDescription::Transients::switchAliasForBranchID_, transient_, edm::TypeWithDict::typeInfo(), unwrappedType(), and unwrappedTypeID().

235  {
236  if (branchType_ != aliasForBranch.branchType()) {
237  throw Exception(errors::LogicError) << "BranchDescription::setSwitchAliasForBranch: branchType (" << branchType_
238  << ") differs from aliasForBranch (" << aliasForBranch.branchType()
239  << ").\nPlease report this error to the FWCore developers";
240  }
241  if (produced() != aliasForBranch.produced()) {
242  throw Exception(errors::LogicError) << "BranchDescription::setSwitchAliasForBranch: produced differs from "
243  "aliasForBranch.\nPlease report this error to the FWCore developers";
244  }
245  if (unwrappedTypeID().typeInfo() != aliasForBranch.unwrappedType().typeInfo()) {
247  << "BranchDescription::setSwitchAliasForBranch: unwrapped type info (" << unwrappedTypeID().name()
248  << ") differs from aliasForBranch (" << aliasForBranch.unwrappedType().typeInfo().name()
249  << ").\nPlease report this error to the FWCore developers";
250  }
251 
252  branchAliases_ = aliasForBranch.branchAliases();
253  transient_.switchAliasForBranchID_ = aliasForBranch.originalBranchID();
254  transient_.availableOnlyAtEndTransition_ = aliasForBranch.availableOnlyAtEndTransition();
255  }
constexpr const std::type_info & typeInfo() const
Definition: TypeIDBase.h:50
TypeID unwrappedTypeID() const
std::set< std::string > branchAliases_
const char * name() const
Definition: TypeIDBase.h:44
void edm::BranchDescription::setSwitchAliasModuleLabel ( std::string  label)
inline
void edm::BranchDescription::setTransient ( bool  isTransient)
inline
void edm::BranchDescription::setUnwrappedType ( TypeWithDict const &  type)
inline
void edm::BranchDescription::setWrappedName ( std::string const &  name)
inline
void edm::BranchDescription::setWrappedType ( TypeWithDict const &  type)
inline
int edm::BranchDescription::splitLevel ( ) const
inline
BranchID const& edm::BranchDescription::switchAliasForBranchID ( ) const
inline
std::string const& edm::BranchDescription::switchAliasModuleLabel ( ) const
inline
void edm::BranchDescription::throwIfInvalid_ ( ) const
private

Definition at line 274 of file BranchDescription.cc.

References branchType_, friendlyClassName_, fullClassName_, edm::Hash< I >::isValid(), moduleLabel_, edm::NumBranchTypes, parameterSetID(), processName_, produced(), and edm::throwExceptionWithText().

Referenced by initBranchName(), and initFromDictionary().

274  {
276  throwExceptionWithText("Illegal BranchType detected");
277 
278  if (moduleLabel_.empty())
279  throwExceptionWithText("Module label is not allowed to be empty");
280 
281  if (processName_.empty())
282  throwExceptionWithText("Process name is not allowed to be empty");
283 
284  if (fullClassName_.empty())
285  throwExceptionWithText("Full class name is not allowed to be empty");
286 
287  if (friendlyClassName_.empty())
288  throwExceptionWithText("Friendly class name is not allowed to be empty");
289 
290  if (produced() && !parameterSetID().isValid())
291  throwExceptionWithText("Invalid ParameterSetID detected");
292  }
void throwExceptionWithText(char const *txt)
ParameterSetID const & parameterSetID() const
bool isValid() const
Definition: Hash.h:141
bool edm::BranchDescription::transient ( ) const
inline
TypeWithDict const& edm::BranchDescription::unwrappedType ( ) const
inline
TypeID edm::BranchDescription::unwrappedTypeID ( ) const
inline
void edm::BranchDescription::updateFriendlyClassName ( )
std::string const& edm::BranchDescription::wrappedName ( ) const
inline
TypeWithDict const& edm::BranchDescription::wrappedType ( ) const
inline
TypeID edm::BranchDescription::wrappedTypeID ( ) const
inline
void edm::BranchDescription::write ( std::ostream &  os) const

Definition at line 257 of file BranchDescription.cc.

References branchID(), branchType(), friendlyClassName(), fullClassName(), moduleLabel(), processName(), and productInstanceName().

Referenced by pkg.AbstractPkg::generate(), edm::operator<<(), and edm::StableProvenance::write().

257  {
258  os << "Branch Type = " << branchType() << std::endl;
259  os << "Process Name = " << processName() << std::endl;
260  os << "ModuleLabel = " << moduleLabel() << std::endl;
261  os << "Branch ID = " << branchID() << '\n';
262  os << "Class Name = " << fullClassName() << '\n';
263  os << "Friendly Class Name = " << friendlyClassName() << '\n';
264  os << "Product Instance Name = " << productInstanceName() << std::endl;
265  }
BranchType const & branchType() const
std::string const & processName() const
std::string const & moduleLabel() const
std::string const & productInstanceName() const
std::string const & friendlyClassName() const
BranchID const & branchID() const
std::string const & fullClassName() const

Member Data Documentation

BranchID edm::BranchDescription::aliasForBranchID_
private

Definition at line 233 of file BranchDescription.h.

Referenced by aliasForBranchID(), isAlias(), and originalBranchID().

std::set<std::string> edm::BranchDescription::branchAliases_
private
BranchID edm::BranchDescription::branchID_
private

Definition at line 215 of file BranchDescription.h.

Referenced by branchID(), initBranchName(), and originalBranchID().

BranchType edm::BranchDescription::branchType_
private

Definition at line 205 of file BranchDescription.h.

Referenced by branchType(), setSwitchAliasForBranch(), and throwIfInvalid_().

std::string edm::BranchDescription::friendlyClassName_
private
std::string edm::BranchDescription::fullClassName_
private

Definition at line 218 of file BranchDescription.h.

Referenced by fullClassName(), and throwIfInvalid_().

int const edm::BranchDescription::invalidBasketSize = 0
static
int const edm::BranchDescription::invalidSplitLevel = -1
static
std::string edm::BranchDescription::moduleLabel_
private
std::string edm::BranchDescription::processName_
private

Definition at line 212 of file BranchDescription.h.

Referenced by initBranchName(), processName(), and throwIfInvalid_().

std::string edm::BranchDescription::productInstanceName_
private

Definition at line 225 of file BranchDescription.h.

Referenced by initBranchName(), and productInstanceName().

Transients edm::BranchDescription::transient_
private