CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends
edm::Event Class Reference

#include <Event.h>

Inheritance diagram for edm::Event:
edm::EventBase

Public Types

typedef unsigned long CacheIdentifier_t
 
typedef std::vector< edm::propagate_const< std::unique_ptr< WrapperBase > > > ProductPtrVec
 

Public Member Functions

CacheIdentifier_t cacheIdentifier () const
 
template<typename PROD , typename... Args>
OrphanHandle< PRODemplace (EDPutToken token, Args &&... args)
 
template<typename PROD , typename... Args>
OrphanHandle< PRODemplace (EDPutTokenT< PROD > token, Args &&... args)
 puts a new product More...
 
 Event (EventPrincipal const &, ModuleDescription const &, ModuleCallingContext const *)
 
 Event (EventTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *)
 
EventAuxiliary const & eventAuxiliary () const override
 
EventSelectionIDVector const & eventSelectionIDs () const
 
template<typename ELEMENT >
Handle< View< ELEMENT > > fillView_ (BasicHandle &bh) const
 
template<typename PROD >
PROD const & get (EDGetTokenT< PROD > token) const noexcept(false)
 
template<typename ELEMENT >
View< ELEMENT > const & get (EDGetTokenT< View< ELEMENT >> token) const noexcept(false)
 
template<typename PROD >
bool get (ProductID const &oid, Handle< PROD > &result) const
 
template<typename ELEMENT >
bool get (ProductID const &oid, Handle< View< ELEMENT >> &result) const
 
void getAllProvenance (std::vector< Provenance const * > &provenances) const
 
void getAllStableProvenance (std::vector< StableProvenance const * > &provenances) const
 
template<>
bool getByLabel (edm::InputTag const &tag, Handle< GenericObject > &result) const
 
template<>
bool getByLabel (edm::InputTag const &tag, Handle< GenericObject > &result) const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 
template<typename ELEMENT >
bool getByLabel (InputTag const &tag, Handle< View< ELEMENT >> &result) const
 
template<typename PROD >
bool getByLabel (std::string const &label, Handle< PROD > &result) const
 
template<typename ELEMENT >
bool getByLabel (std::string const &label, Handle< View< ELEMENT >> &result) const
 
template<>
bool getByLabel (std::string const &label, std::string const &productInstanceName, Handle< GenericObject > &result) const
 Specialize the getByLabel method to work with a Handle<GenericObject> More...
 
template<>
bool getByLabel (std::string const &label, std::string const &productInstanceName, Handle< GenericObject > &result) const
 Specialize the Event's getByLabel method to work with a Handle<GenericObject> More...
 
template<typename PROD >
bool getByLabel (std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
 
template<typename ELEMENT >
bool getByLabel (std::string const &label, std::string const &productInstanceName, Handle< View< ELEMENT >> &result) const
 
template<typename PROD >
bool getByToken (EDGetToken token, Handle< PROD > &result) const
 
template<typename ELEMENT >
bool getByToken (EDGetToken token, Handle< View< ELEMENT >> &result) const
 
template<typename PROD >
bool getByToken (EDGetTokenT< PROD > token, Handle< PROD > &result) const
 
template<typename ELEMENT >
bool getByToken (EDGetTokenT< View< ELEMENT >> token, Handle< View< ELEMENT >> &result) const
 
template<typename PROD >
Handle< PRODgetHandle (EDGetTokenT< PROD > token) const
 
template<typename ELEMENT >
Handle< View< ELEMENT > > getHandle (EDGetTokenT< View< ELEMENT >> token) const
 
LuminosityBlock const & getLuminosityBlock () const
 
template<typename PROD >
void getManyByType (std::vector< Handle< PROD >> &results) const
 
bool getProcessParameterSet (std::string const &processName, ParameterSet &ps) const
 
Provenance getProvenance (BranchID const &theID) const
 
Provenance getProvenance (ProductID const &theID) const
 
template<typename PROD >
RefProd< PRODgetRefBeforePut ()
 
template<typename PROD >
RefProd< PRODgetRefBeforePut (EDPutToken)
 
template<typename PROD >
RefProd< PRODgetRefBeforePut (EDPutTokenT< PROD >)
 
template<typename PROD >
RefProd< PRODgetRefBeforePut (std::string const &productInstanceName)
 
Run const & getRun () const
 
void labelsForToken (EDGetToken const &iToken, ProductLabels &oLabels) const
 
ModuleCallingContext const * moduleCallingContext () const
 
edm::ParameterSet const * parameterSet (edm::ParameterSetID const &psID) const override
 
ProcessHistory const & processHistory () const override
 
ProcessHistoryID const & processHistoryID () const
 
EDProductGetter const & productGetter () const
 
template<typename PROD >
OrphanHandle< PRODput (EDPutToken token, std::unique_ptr< PROD > product)
 
template<typename PROD >
OrphanHandle< PRODput (EDPutTokenT< PROD > token, std::unique_ptr< PROD > product)
 
template<typename PROD >
OrphanHandle< PRODput (std::unique_ptr< PROD > product)
 Put a new product. More...
 
template<typename PROD >
OrphanHandle< PRODput (std::unique_ptr< PROD > product, std::string const &productInstanceName)
 Put a new product with a 'product instance name'. More...
 
RunNumber_t run () const
 
void setConsumer (EDConsumerBase const *iConsumer)
 
void setProducer (ProducerBase const *iProd, std::vector< BranchID > *previousParentage, std::vector< BranchID > *gotBranchIDsFromAcquire=nullptr)
 
void setProducerCommon (ProducerBase const *iProd, std::vector< BranchID > *previousParentage)
 
void setProducerForAcquire (ProducerBase const *iProd, std::vector< BranchID > *previousParentage, std::vector< BranchID > &gotBranchIDsFromAcquire)
 
void setSharedResourcesAcquirer (SharedResourcesAcquirer *iResourceAcquirer)
 
size_t size () const
 
StreamID streamID () const
 
edm::TriggerNames const & triggerNames (edm::TriggerResults const &triggerResults) const override
 
TriggerResultsByName triggerResultsByName (edm::TriggerResults const &triggerResults) const override
 
 ~Event () override
 
- Public Member Functions inherited from edm::EventBase
int bunchCrossing () const
 
 EventBase ()
 
edm::EventAuxiliary::ExperimentType experimentType () const
 
template<typename T >
bool get (ProductID const &, Handle< T > &) const
 
template<>
bool getByLabel (edm::InputTag const &tag, Handle< FWGenericObject > &result) const
 Specialize the getByLabel method to work with a Handle<FWGenericObject> More...
 
template<typename T >
bool getByLabel (InputTag const &, Handle< T > &) const
 
edm::EventID id () const
 
bool isRealData () const
 
edm::LuminosityBlockNumber_t luminosityBlock () const
 
int orbitNumber () const
 
edm::Timestamp time () const
 
virtual ~EventBase ()
 

Private Types

typedef std::unordered_set< BranchID::value_typeBranchIDSet
 

Private Member Functions

void addToGotBranchIDs (BranchID const &branchID) const
 
void addToGotBranchIDs (Provenance const &prov) const
 
void commit_ (std::vector< edm::ProductResolverIndex > const &iShouldPut, ParentageID *previousParentageId=nullptr)
 
void commit_aux (ProductPtrVec &products, ParentageID *previousParentageId=nullptr)
 
template<typename PROD , typename... Args>
OrphanHandle< PRODemplaceImpl (EDPutToken::value_type token, Args &&... args)
 
EventPrincipal const & eventPrincipal () const
 
void fillLuminosityBlock () const
 
BasicHandle getByLabelImpl (std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const override
 
BasicHandle getByProductID_ (ProductID const &oid) const
 
BasicHandle getImpl (std::type_info const &iProductType, ProductID const &pid) const override
 
ProductID makeProductID (BranchDescription const &desc) const
 
template<typename PROD >
OrphanHandle< PRODputImpl (EDPutToken::value_type token, std::unique_ptr< PROD > product)
 
ProductPtrVecputProducts ()
 
ProductPtrVec const & putProducts () const
 

Private Attributes

EventAuxiliary const & aux_
 
BranchIDSet gotBranchIDs_
 
std::vector< BranchID > * gotBranchIDsFromAcquire_ = nullptr
 
std::vector< bool > gotBranchIDsFromPrevious_
 
std::vector< std::shared_ptr< ViewBase > > gotViews_
 
std::optional< LuminosityBlockluminosityBlock_
 
ModuleCallingContext const * moduleCallingContext_
 
std::vector< BranchID > * previousBranchIDs_ = nullptr
 
PrincipalGetAdapter provRecorder_
 
ProductPtrVec putProducts_
 
StreamID streamID_
 

Static Private Attributes

static const std::string emptyString_
 

Friends

class ::testEvent
 
class ::testEventGetRefBeforePut
 
class InputSource
 
class ProducerBase
 
class ProducerSourceBase
 
class RawInputSource
 
template<typename T >
class stream::ProducingModuleAdaptorBase
 

Additional Inherited Members

- Static Protected Member Functions inherited from edm::EventBase
static edm::ParameterSet const * parameterSetForID_ (edm::ParameterSetID const &psID)
 
static TriggerNames const * triggerNames_ (edm::TriggerResults const &triggerResults)
 

Detailed Description

Definition at line 73 of file Event.h.

Member Typedef Documentation

◆ BranchIDSet

typedef std::unordered_set<BranchID::value_type> edm::Event::BranchIDSet
private

Definition at line 319 of file Event.h.

◆ CacheIdentifier_t

typedef unsigned long edm::Event::CacheIdentifier_t

If you are caching data from the Event, you should also keep this number. If this number changes then you know that the data you have cached is invalid. The value of '0' will never be returned so you can use that to denote that you have not yet checked the value.

Definition at line 117 of file Event.h.

◆ ProductPtrVec

typedef std::vector<edm::propagate_const<std::unique_ptr<WrapperBase> > > edm::Event::ProductPtrVec

Definition at line 255 of file Event.h.

Constructor & Destructor Documentation

◆ Event() [1/2]

Event::Event ( EventTransitionInfo const &  info,
ModuleDescription const &  md,
ModuleCallingContext const *  mcc 
)

Definition at line 22 of file Event.cc.

23  : Event(info.principal(), md, mcc) {}

◆ Event() [2/2]

Event::Event ( EventPrincipal const &  ep,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext 
)

Definition at line 25 of file Event.cc.

26  : provRecorder_(ep, md, true /*always at end*/),
27  aux_(ep.aux()),
29  gotBranchIDs_(),
30  gotViews_(),
31  streamID_(ep.streamID()),

◆ ~Event()

Event::~Event ( )
override

Definition at line 34 of file Event.cc.

34 {}

Member Function Documentation

◆ addToGotBranchIDs() [1/2]

void Event::addToGotBranchIDs ( BranchID const &  branchID) const
private

Definition at line 230 of file Event.cc.

230  {
231  if (previousBranchIDs_) {
232  auto range = std::equal_range(previousBranchIDs_->begin(), previousBranchIDs_->end(), branchID);
233  if (range.first == range.second) {
234  gotBranchIDs_.insert(branchID.id());
235  } else {
236  gotBranchIDsFromPrevious_[range.first - previousBranchIDs_->begin()] = true;
237  }
238  } else if (gotBranchIDsFromAcquire_) {
239  gotBranchIDsFromAcquire_->push_back(branchID);
240  }
241  }

References gotBranchIDs_, gotBranchIDsFromAcquire_, gotBranchIDsFromPrevious_, edm::BranchID::id(), previousBranchIDs_, and FastTimerService_cff::range.

◆ addToGotBranchIDs() [2/2]

void Event::addToGotBranchIDs ( Provenance const &  prov) const
private

Definition at line 228 of file Event.cc.

228 { addToGotBranchIDs(prov.originalBranchID()); }

References edm::Provenance::originalBranchID().

Referenced by fillView_(), get(), getByLabel(), getByLabelImpl(), getByToken(), getHandle(), getImpl(), getManyByType(), and setProducer().

◆ cacheIdentifier()

Event::CacheIdentifier_t Event::cacheIdentifier ( ) const

◆ commit_()

void Event::commit_ ( std::vector< edm::ProductResolverIndex > const &  iShouldPut,
ParentageID previousParentageId = nullptr 
)
private

Definition at line 149 of file Event.cc.

149  {
150  size_t nPut = 0;
151  for (auto const& p : putProducts()) {
152  if (p) {
153  ++nPut;
154  }
155  }
156  if (nPut > 0) {
157  commit_aux(putProducts(), previousParentageId);
158  }
159  auto sz = iShouldPut.size();
160  if (sz != 0 and sz != nPut) {
161  //some were missed
162  auto& p = provRecorder_.principal();
163  for (auto index : iShouldPut) {
164  auto resolver = p.getProductResolverByIndex(index);
165  if (not resolver->productResolved()) {
166  resolver->putProduct(std::unique_ptr<WrapperBase>());
167  }
168  }
169  }
170  }

References commit_aux(), AlCaHLTBitMon_ParallelJobs::p, edm::PrincipalGetAdapter::principal(), provRecorder_, and putProducts().

◆ commit_aux()

void Event::commit_aux ( Event::ProductPtrVec products,
ParentageID previousParentageId = nullptr 
)
private

Definition at line 172 of file Event.cc.

172  {
173  // fill in guts of provenance here
174  auto& ep = eventPrincipal();
175 
176  //If we don't have a valid previousParentage then we want to use a temp value in order to
177  // avoid constantly recalculating the ParentageID which is a time consuming operation
178  ParentageID const* presentParentageId;
179 
180  if (previousBranchIDs_) {
181  bool sameAsPrevious = gotBranchIDs_.empty();
182  if (sameAsPrevious) {
183  for (auto i : gotBranchIDsFromPrevious_) {
184  if (not i) {
185  sameAsPrevious = false;
186  break;
187  }
188  }
189  }
190  if (not sameAsPrevious) {
191  std::vector<BranchID> gotBranchIDVector{gotBranchIDs_.begin(), gotBranchIDs_.end()};
192  //add items in common from previous
193  auto n = gotBranchIDsFromPrevious_.size();
194  for (size_t i = 0; i < n; ++i) {
196  gotBranchIDVector.push_back((*previousBranchIDs_)[i]);
197  }
198  }
199  std::sort(gotBranchIDVector.begin(), gotBranchIDVector.end());
200  previousBranchIDs_->assign(gotBranchIDVector.begin(), gotBranchIDVector.end());
201 
202  Parentage p;
203  p.setParents(std::move(gotBranchIDVector));
204  *previousParentageId = p.id();
206  }
207  presentParentageId = previousParentageId;
208  } else {
209  presentParentageId = &s_emptyParentage;
210  }
211 
212  auto const& recordProv = provRecorder_.recordProvenanceList();
213  for (unsigned int i = 0; i < products.size(); ++i) {
214  auto& p = get_underlying_safe(products[i]);
215  if (p) {
216  if (recordProv[i]) {
217  ep.put(provRecorder_.putTokenIndexToProductResolverIndex()[i], std::move(p), *presentParentageId);
218  } else {
219  ep.put(provRecorder_.putTokenIndexToProductResolverIndex()[i], std::move(p), s_emptyParentage);
220  }
221  }
222  }
223 
224  // the cleanup is all or none
225  products.clear();
226  }

References SiStripBadComponentsDQMServiceTemplate_cfg::ep, eventPrincipal(), edm::get_underlying_safe(), gotBranchIDs_, gotBranchIDsFromPrevious_, mps_fire::i, edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), eostools::move(), dqmiodumpmetadata::n, AlCaHLTBitMon_ParallelJobs::p, previousBranchIDs_, edm::es::products(), provRecorder_, edm::PrincipalGetAdapter::putTokenIndexToProductResolverIndex(), and edm::PrincipalGetAdapter::recordProvenanceList().

Referenced by commit_().

◆ emplace() [1/2]

template<typename PROD , typename... Args>
OrphanHandle< PROD > Event::emplace ( EDPutToken  token,
Args &&...  args 
)

◆ emplace() [2/2]

template<typename PROD , typename... Args>
OrphanHandle< PROD > Event::emplace ( EDPutTokenT< PROD token,
Args &&...  args 
)

puts a new product

Definition at line 425 of file Event.h.

425  {
426  if (UNLIKELY(token.isUninitialized())) {
428  }
429  return emplaceImpl<PROD>(token.index(), std::forward<Args>(args)...);
430  }

References writedatasetfile::args, PROD, edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), unpackBuffers-CaloStage2::token, and UNLIKELY.

Referenced by MCPdgIndexFilter::filter(), GenHFHadronMatcher::produce(), and Multi5x5SuperClusterProducer::produceSuperclustersForECALPart().

◆ emplaceImpl()

template<typename PROD , typename... Args>
OrphanHandle< PROD > Event::emplaceImpl ( EDPutToken::value_type  token,
Args &&...  args 
)
private

Definition at line 446 of file Event.h.

446  {
447  assert(index < putProducts().size());
448 
449  std::unique_ptr<Wrapper<PROD>> wp(new Wrapper<PROD>(WrapperBase::Emplace{}, std::forward<Args>(args)...));
450 
451  // The following will call post_insert if T has such a function,
452  // and do nothing if T has no such function.
453  std::conditional_t<detail::has_postinsert<PROD>::value, DoPostInsert<PROD>, DoNotPostInsert<PROD>> maybe_inserter;
454  maybe_inserter(&(wp->bareProduct()));
455 
456  PROD const* prod = wp->product();
457 
459  auto const& prodID = provRecorder_.getProductID(index);
460  return (OrphanHandle<PROD>(prod, prodID));
461  }

References writedatasetfile::args, cms::cuda::assert(), edm::PrincipalGetAdapter::getProductID(), eostools::move(), dumpMFGeometry_cfg::prod, PROD, provRecorder_, putProducts(), size(), relativeConstraints::value, and pfClustersFromHGC3DClusters_cfi::wp.

Referenced by emplace().

◆ eventAuxiliary()

EventAuxiliary const& edm::Event::eventAuxiliary ( ) const
inlineoverridevirtual

Implements edm::EventBase.

Definition at line 95 of file Event.h.

95 { return aux_; }

References aux_.

Referenced by DetStatus::filter().

◆ eventPrincipal()

EventPrincipal const & Event::eventPrincipal ( ) const
private

Definition at line 101 of file Event.cc.

101  {
102  return dynamic_cast<EventPrincipal const&>(provRecorder_.principal());
103  }

References edm::PrincipalGetAdapter::principal(), and provRecorder_.

Referenced by cacheIdentifier(), commit_aux(), eventSelectionIDs(), fillLuminosityBlock(), getByProductID_(), getProvenance(), makeProductID(), and processHistoryID().

◆ eventSelectionIDs()

EventSelectionIDVector const & Event::eventSelectionIDs ( ) const

Definition at line 113 of file Event.cc.

113 { return eventPrincipal().eventSelectionIDs(); }

References eventPrincipal(), and edm::EventPrincipal::eventSelectionIDs().

◆ fillLuminosityBlock()

void Event::fillLuminosityBlock ( ) const
private

◆ fillView_()

template<typename ELEMENT >
Handle< View< ELEMENT > > Event::fillView_ ( BasicHandle bh) const

Definition at line 653 of file Event.h.

653  {
654  std::vector<void const*> pointersToElements;
656  // the following must initialize the
657  // fill the helper vector
658  bh.wrapper()->fillView(bh.id(), pointersToElements, helpers);
659 
660  auto newview = std::make_shared<View<ELEMENT>>(pointersToElements, helpers, &(productGetter()));
661 
662  addToGotBranchIDs(*bh.provenance());
663  gotViews_.push_back(newview);
664  return Handle<View<ELEMENT>>(newview.get(), bh.provenance());
665  }

References addToGotBranchIDs(), edm::WrapperBase::fillView(), gotViews_, edm::BasicHandle::id(), productGetter(), edm::BasicHandle::provenance(), and edm::BasicHandle::wrapper().

◆ get() [1/4]

template<typename PROD >
PROD const & Event::get ( EDGetTokenT< PROD token) const
noexcept

◆ get() [2/4]

template<typename ELEMENT >
View< ELEMENT > const & Event::get ( EDGetTokenT< View< ELEMENT >>  token) const
noexcept

◆ get() [3/4]

template<typename PROD >
bool Event::get ( ProductID const &  oid,
Handle< PROD > &  result 
) const

Definition at line 338 of file Event.h.

338  {
339  result.clear();
340  BasicHandle bh = this->getByProductID_(oid);
341  result = convert_handle_check_type<PROD>(std::move(bh)); // throws on conversion error
342  if (result.failedToGet()) {
343  return false;
344  }
345  addToGotBranchIDs(*bh.provenance());
346  return true;
347  }

References addToGotBranchIDs(), getByProductID_(), eostools::move(), edm::BasicHandle::provenance(), and mps_fire::result.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), ElectronHcalHelper::beginEvent(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), GlobalVariablesTableProducer::VariableT< ValType, ColType, Converter >::fill(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), PATTauIDEmbedder::produce(), HGCalRecHitMapProducer::produce(), TrackFromPackedCandidateProducer::produce(), TrackstersProducer::produce(), PhotonProducer::produce(), UniqueMerger< InputCollection, OutputCollection, P >::produce(), RecoTauGenericJetRegionProducer< JetType, CandType >::produce(), ReducedEGProducer::produce(), HLTRechitInRegionsProducer< T1 >::produce(), rrapi.RRApi::report(), rrapi.RRApi::reports(), AnalyticalTrackSelector::run(), EGRegressionModifierV2::setEvent(), EGRegressionModifierV1::setEvent(), EGRegressionModifierV3::setEvent(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

◆ get() [4/4]

template<typename ELEMENT >
bool Event::get ( ProductID const &  oid,
Handle< View< ELEMENT >> &  result 
) const

Definition at line 350 of file Event.h.

350  {
351  result.clear();
352  BasicHandle bh = this->getByProductID_(oid);
353 
354  if (bh.failedToGet()) {
355  result = Handle<View<ELEMENT>>(makeHandleExceptionFactory([oid]() -> std::shared_ptr<cms::Exception> {
356  std::shared_ptr<cms::Exception> whyFailed = std::make_shared<edm::Exception>(edm::errors::ProductNotFound);
357  *whyFailed << "get View by ID failed: no product with ID = " << oid << "\n";
358  return whyFailed;
359  }));
360  return false;
361  }
362 
363  result = fillView_<ELEMENT>(bh);
364  return true;
365  }

References edm::BasicHandle::failedToGet(), getByProductID_(), edm::makeHandleExceptionFactory(), edm::errors::ProductNotFound, and mps_fire::result.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

◆ getAllProvenance()

void Event::getAllProvenance ( std::vector< Provenance const * > &  provenances) const

Definition at line 125 of file Event.cc.

125  {
127  }

References edm::Principal::getAllProvenance(), edm::PrincipalGetAdapter::principal(), and provRecorder_.

◆ getAllStableProvenance()

void Event::getAllStableProvenance ( std::vector< StableProvenance const * > &  provenances) const

◆ getByLabel() [1/10]

template<>
bool edm::Event::getByLabel ( edm::InputTag const &  tag,
Handle< GenericObject > &  result 
) const

Definition at line 61 of file GenericHandle.cc.

61  {
62  if (tag.process().empty()) {
63  return this->getByLabel(tag.label(), tag.instance(), result);
64  } else {
65  BasicHandle bh = provRecorder_.getByLabel_(
66  TypeID(result.type().typeInfo()), tag.label(), tag.instance(), tag.process(), moduleCallingContext_);
67  convert_handle(std::move(bh), result); // throws on conversion error
68  if (!result.failedToGet()) {
69  addToGotBranchIDs(*bh.provenance());
70  return true;
71  }
72  }
73  return false;
74  }

References edm::convert_handle(), eostools::move(), edm::BasicHandle::provenance(), mps_fire::result, and GlobalPosition_Frontier_DevDB_cff::tag.

◆ getByLabel() [2/10]

template<>
bool edm::Event::getByLabel ( edm::InputTag const &  tag,
Handle< GenericObject > &  result 
) const

◆ getByLabel() [3/10]

template<typename PROD >
bool Event::getByLabel ( InputTag const &  tag,
Handle< PROD > &  result 
) const

◆ getByLabel() [4/10]

template<typename ELEMENT >
bool Event::getByLabel ( InputTag const &  tag,
Handle< View< ELEMENT >> &  result 
) const

Definition at line 575 of file Event.h.

575  {
576  result.clear();
577  BasicHandle bh = provRecorder_.getMatchingSequenceByLabel_(TypeID(typeid(ELEMENT)), tag, moduleCallingContext_);
578  if UNLIKELY (bh.failedToGet()) {
579  Handle<View<ELEMENT>> h(std::move(bh.whyFailedFactory()));
580  h.swap(result);
581  return false;
582  }
583  result = fillView_<ELEMENT>(bh);
584  return true;
585  }

References edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getMatchingSequenceByLabel_(), h, moduleCallingContext_, eostools::move(), provRecorder_, mps_fire::result, GlobalPosition_Frontier_DevDB_cff::tag, UNLIKELY, and edm::BasicHandle::whyFailedFactory().

◆ getByLabel() [5/10]

template<typename PROD >
bool Event::getByLabel ( std::string const &  label,
Handle< PROD > &  result 
) const

Definition at line 517 of file Event.h.

517  {
519  }

References emptyString_, getByLabel(), label, and mps_fire::result.

◆ getByLabel() [6/10]

template<typename ELEMENT >
bool Event::getByLabel ( std::string const &  label,
Handle< View< ELEMENT >> &  result 
) const

Definition at line 604 of file Event.h.

604  {
606  }

References emptyString_, getByLabel(), HerwigMaxPtPartonFilter_cfi::moduleLabel, and mps_fire::result.

◆ getByLabel() [7/10]

template<>
bool edm::Event::getByLabel ( std::string const &  label,
std::string const &  productInstanceName,
Handle< GenericObject > &  result 
) const

Specialize the getByLabel method to work with a Handle<GenericObject>

Definition at line 47 of file GenericHandle.cc.

49  {
50  BasicHandle bh = provRecorder_.getByLabel_(
51  TypeID(result.type().typeInfo()), label, productInstanceName, std::string(), moduleCallingContext_);
52  convert_handle(std::move(bh), result); // throws on conversion error
53  if (!result.failedToGet()) {
54  addToGotBranchIDs(*bh.provenance());
55  return true;
56  }
57  return false;
58  }

References edm::convert_handle(), label, eostools::move(), edm::BasicHandle::provenance(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ getByLabel() [8/10]

template<>
bool edm::Event::getByLabel ( std::string const &  label,
std::string const &  productInstanceName,
Handle< GenericObject > &  result 
) const

Specialize the Event's getByLabel method to work with a Handle<GenericObject>

◆ getByLabel() [9/10]

template<typename PROD >
bool Event::getByLabel ( std::string const &  label,
std::string const &  productInstanceName,
Handle< PROD > &  result 
) const

Definition at line 504 of file Event.h.

504  {
505  result.clear();
506  BasicHandle bh = provRecorder_.getByLabel_(
507  TypeID(typeid(PROD)), label, productInstanceName, emptyString_, moduleCallingContext_);
508  result = convert_handle<PROD>(std::move(bh)); // throws on conversion error
509  if UNLIKELY (result.failedToGet()) {
510  return false;
511  }
512  addToGotBranchIDs(*result.provenance());
513  return true;
514  }

References addToGotBranchIDs(), emptyString_, edm::PrincipalGetAdapter::getByLabel_(), label, moduleCallingContext_, eostools::move(), PROD, provRecorder_, mps_fire::result, and UNLIKELY.

◆ getByLabel() [10/10]

template<typename ELEMENT >
bool Event::getByLabel ( std::string const &  label,
std::string const &  productInstanceName,
Handle< View< ELEMENT >> &  result 
) const

Definition at line 588 of file Event.h.

590  {
591  result.clear();
593  TypeID(typeid(ELEMENT)), moduleLabel, productInstanceName, emptyString_, moduleCallingContext_);
594  if UNLIKELY (bh.failedToGet()) {
595  Handle<View<ELEMENT>> h(std::move(bh.whyFailedFactory()));
596  h.swap(result);
597  return false;
598  }
599  result = fillView_<ELEMENT>(bh);
600  return true;
601  }

References emptyString_, edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getMatchingSequenceByLabel_(), h, moduleCallingContext_, HerwigMaxPtPartonFilter_cfi::moduleLabel, eostools::move(), provRecorder_, mps_fire::result, UNLIKELY, and edm::BasicHandle::whyFailedFactory().

◆ getByLabelImpl()

BasicHandle Event::getByLabelImpl ( std::type_info const &  iWrapperType,
std::type_info const &  iProductType,
InputTag const &  iTag 
) const
overrideprivatevirtual

Implements edm::EventBase.

Definition at line 250 of file Event.cc.

252  {
253  BasicHandle h = provRecorder_.getByLabel_(TypeID(iProductType), iTag, moduleCallingContext_);
254  if (h.isValid()) {
255  addToGotBranchIDs(*(h.provenance()));
256  }
257  return h;
258  }

References addToGotBranchIDs(), edm::PrincipalGetAdapter::getByLabel_(), h, moduleCallingContext_, and provRecorder_.

◆ getByProductID_()

BasicHandle Event::getByProductID_ ( ProductID const &  oid) const
private

Definition at line 147 of file Event.cc.

147 { return eventPrincipal().getByProductID(oid); }

References eventPrincipal(), and edm::EventPrincipal::getByProductID().

Referenced by get(), and getImpl().

◆ getByToken() [1/4]

template<typename PROD >
bool Event::getByToken ( EDGetToken  token,
Handle< PROD > &  result 
) const

Definition at line 531 of file Event.h.

531  {
532  result.clear();
533  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)), PRODUCT_TYPE, token, moduleCallingContext_);
534  result = convert_handle<PROD>(std::move(bh)); // throws on conversion error
535  if UNLIKELY (result.failedToGet()) {
536  return false;
537  }
538  addToGotBranchIDs(*result.provenance());
539  return true;
540  }

References addToGotBranchIDs(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, mps_fire::result, unpackBuffers-CaloStage2::token, and UNLIKELY.

Referenced by BjetAnalysis::analyze(), DimuonStatistics::analyze(), GlbMuQualityCutsAnalysis::analyze(), TopElecAnalyzer::analyze(), TopGenEventAnalyzer::analyze(), TopJetAnalyzer::analyze(), TopMuonAnalyzer::analyze(), TopTauAnalyzer::analyze(), PatElectronAnalyzer::analyze(), PatTauAnalyzer::analyze(), EgammaBasicClusters::analyze(), EgammaSuperClusters::analyze(), EcalFEDMonitorTemp< SUBDET >::analyze(), EcalDQMonitorTask::analyze(), sistrip::SpyExtractRunModule::analyze(), L1TStage2OMTF::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), L1TStage2uGTTiming::analyze(), JetTester::analyze(), TopDiLeptonDQM::analyze(), L1TStage2uGT::analyze(), ContainmentCorrectionAnalyzer::analyze(), EnergyScaleAnalyzer::analyze(), PDFWeightsTest::analyze(), SusyDQM< Mu, Ele, Jet, Met >::analyze(), L1TStage2BMTF::analyze(), HcalTB06Analysis::analyze(), GenPurposeSkimmerData::analyze(), JetTester_HeavyIons::analyze(), JetAnalyzer_HeavyIons::analyze(), JetAnalyzer_HeavyIons_matching::analyze(), MCAcceptanceAnalyzer::analyze(), ErsatzMEt::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), reco::tau::RecoTauDiscriminantCleanerPlugin::beginEvent(), reco::tau::RecoTauTagInfoWorkaroundModifer::beginEvent(), ecaldqm::TrigPrimTask::beginEvent(), ecaldqm::ClusterTask::beginEvent(), TauDiscriminationAgainstElectronMVA6< TauType, TauDiscriminator, ElectronType >::beginEvent(), TauDiscriminantCutMultiplexerT< TauType, TauTypeRef, ParentClass >::beginEvent(), reco::tau::RecoTauBuilderPlugin::beginEvent(), PFRecoTauDiscriminationByIsolationMVA2::beginEvent(), reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::beginEvent(), reco::tau::PATTauDiscriminationByMVAIsolationRun2::beginEvent(), TtFullLepHypKinSolution::buildHypo(), TtSemiLepHypGenMatch::buildHypo(), TtFullHadHypGenMatch::buildHypo(), TtFullLepHypGenMatch::buildHypo(), TtFullHadHypKinFit::buildHypo(), TtSemiLepHypHitFit::buildHypo(), TtSemiLepHypKinFit::buildHypo(), TtFullLepHypGenMatch::buildMatchingNeutrinos(), MuonDetLayerMeasurements::checkCSCRecHits(), MuonDetLayerMeasurements::checkDTRecHits(), MuonDetLayerMeasurements::checkGEMRecHits(), MuonDetLayerMeasurements::checkME0RecHits(), MTDDetLayerMeasurements::checkMTDRecHits(), AlignmentTrackSelector::checkPrescaledHits(), MuonDetLayerMeasurements::checkRPCRecHits(), CosmicClusterProducer::clusterizeECALPart(), METCorrectionAlgorithm::compMETCorrection(), reco::PFMETProducerMVA::computeLeptonInfo(), SiStripGainFromCalibTree::connect(), PFClusterEMEnergyCorrector::correctEnergies(), PFTauExtractor::depositFromObject(), SiStripFineDelayHit::detId(), HcalSignalGenerator< HBHEDigitizerTraits >::fill(), TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >::TauDiscInfo::fill(), deep_tau::DeepTauBase::TauDiscInfo< ConsumeType >::fill(), EcalSignalGenerator< EEDigitizerTraits >::fill(), TtEvtBuilder< C >::fillSpecific(), DetectorStateFilter::filter(), EcalMonitorPrescaler::filter(), CandCollectionExistFilter::filter(), DetStatus::filter(), EvtPlaneFilter::filter(), RecoTauPileUpVertexSelector::filter(), LHEJetFilter::filter(), StringCutObjectEvtFilter< T >::filter(), JetMETDQMDCSFilter::filter(), ObjectPairFilter< C, S >::filter(), GenHTFilter::filter(), ModelpMSSMFilter::filter(), ObjectSelector< SingleElementCollectionSelector< InputCollection, Selector, reco::CandidateCollection, StoreContainer, RefAdder >, reco::CandidateCollection, NonNullNumberSelector >::filter(), RunManagerMTWorker::generateEvent(), RunManager::generateEvent(), Multi5x5SuperClusterProducer::getClusterPtrVector(), HiSuperClusterProducer::getClusterPtrVector(), Multi5x5ClusterProducer::getCollection(), IslandClusterProducer::getCollection(), AddCorrectionsToGenericMET::getCorrection(), JetMatchingTools::getEBRecHitCollection(), JetMatchingTools::getEBSimHitCollection(), JetMatchingTools::getEERecHitCollection(), JetMatchingTools::getEESimHitCollection(), DAFTrackProducer::getFromEvt(), JetMatchingTools::getGenParticlesCollection(), JetMatchingTools::getHBHERecHitCollection(), JetMatchingTools::getHcalSimHitCollection(), JetMatchingTools::getHFRecHitCollection(), JetMatchingTools::getHORecHitCollection(), MixEvtVtxGenerator::getRecVertex(), MixBoostEvtVtxGenerator::getRecVertex(), JetMatchingTools::getSimTrackCollection(), JetMatchingTools::getSimVertexCollection(), MixEvtVtxGenerator::getVertex(), MixBoostEvtVtxGenerator::getVertex(), TrackCollectionTokens::indicesInput(), AlignmentTrackSelector::isIsolated(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::loopOnTracks(), TrackerHitAssociator::makeMaps(), OverlapExclusionSelector< C, T, O >::newEvent(), reco::modules::MCMatchCandRefSelector::newEvent(), ObjectCountEventSelector< C, S, N, CS >::operator()(), reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::operator()(), MCPdgIndexFilter::pass(), MultiTrackSelector::processMVA(), HIMultiTrackSelector::processMVA(), DimuonMCMatcher::produce(), TtGenEventReco::produce(), StGenEventReco::produce(), TtSemiLepJetCombMaxSumPtWMass::produce(), PATTauIDEmbedder::produce(), TtSemiLepJetCombGeom::produce(), TtSemiLepJetCombWMassMaxSumPt::produce(), HGCalUncalibRecHitProducer::produce(), MTDUncalibratedRecHitProducer::produce(), PileupSummaryInfoSlimmer::produce(), TopInitSubset::produce(), reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce(), UncleanSCRecoveryProducer::produce(), TtSemiLepJetCombWMassDeltaTopMass::produce(), TtSemiLepKinFitProducer< LeptonCollection >::produce(), GsfTrackRefitter::produce(), GenParticleDecaySelector::produce(), TrackRefitter::produce(), EventVtxInfoNtupleDumper::produce(), MassKinFitterCandProducer::produce(), EcalUncalibRecHitProducer::produce(), TICLLayerTileProducer::produce(), UnifiedSCCollectionProducer::produce(), CleanAndMergeProducer::produce(), TrackProducerWithSCAssociation::produce(), AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector >::produce(), PFTICLProducer::produce(), ParticleBasedIsoProducer::produce(), MultiClustersFromTrackstersProducer::produce(), AssociationMapOneToOne2Association< CKey, CVal >::produce(), CandOneToOneDeltaRMatcher::produce(), DAFTrackProducer::produce(), TtFullHadSignalSelMVAComputer::produce(), TtFullLepKinSolutionProducer::produce(), GEDPhotonCoreProducer::produce(), AssociationVector2ValueMap< KeyRefProd, CVal >::produce(), CandOneToManyDeltaRMatcher::produce(), EcalDigiSelector::produce(), IPTCorrector::produce(), ScaleCorrMETData::produce(), MTDRecHitProducer::produce(), TtSemiLepHitFitProducer< LeptonCollection >::produce(), TrackstersMergeProducer::produce(), GenParticlePruner::produce(), RecHitFilter::produce(), CandViewRefMerger::produce(), PATPuppiJetSpecificProducer::produce(), MCTrackMatcher::produce(), GenTrackMatcher::produce(), TtSemiLepSignalSelMVAComputer::produce(), CollectionAdder< C >::produce(), EcalRecalibRecHitProducer::produce(), TtSemiLepJetCombMVAComputer::produce(), FilteredLayerClustersProducer::produce(), photonIsolationHIProducer::produce(), CaloTowerCandidateCreator::produce(), HybridClusterProducer::produce(), BaseEvtVtxGenerator::produce(), TICLCandidateFromTrackstersProducer::produce(), EcalTPSkimmer::produce(), HGCalRecHitProducer::produce(), GenVisTauProducer::produce(), reco::modulesNew::MCTruthCompositeMatcher::produce(), PassThroughEvtVtxGenerator::produce(), ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >::produce(), JVFJetIdProducer::produce(), ShiftedMETcorrInputProducer::produce(), CloneProducer< C >::produce(), ShallowCloneProducer< C >::produce(), EcalRecHitProducer::produce(), reco::modules::MatcherBase< Collection, Collection, reco::helper::CandMapTrait< Collection >::type >::produce(), reco::modulesNew::Matcher< C1, C2, S, D >::produce(), TrackInfoProducer::produce(), CandReducer::produce(), ZMuMuTrackUserData::produce(), PreshowerClusterShapeProducer::produce(), EcalDetailedTimeRecHitProducer::produce(), RecoTauPiZeroUnembedder::produce(), MuonMETcorrInputProducer::produce(), ZMuMuMuonUserData::produce(), SysShiftMETcorrInputProducer::produce(), ShiftedJetProducerByMatchedObjectT< T >::produce(), ZMuMuUserData::produce(), Type0PFMETcorrInputProducer::produce(), ZMuMuUserDataOneTrack::produce(), PhotonCoreProducer::produce(), EgammaHLTCaloTowerProducer::produce(), NoPileUpPFMEtProducer::produce(), ShiftedParticleMETcorrInputProducer::produce(), HGCalMultiClusterProducer::produce(), PFCandMETcorrInputProducer::produce(), InputGenJetsParticleSelector::produce(), CaloTowerFromL1TSeededCreatorForTauHLT::produce(), ShiftedPFCandidateProducerByMatchedObject::produce(), PreshowerPhiClusterProducer::produce(), TtFullHadHypothesis::produce(), EgammaHLTRecoEcalCandidateProducers::produce(), MultShiftMETcorrInputProducer::produce(), PFchsMETcorrInputProducer::produce(), MTDTrackingRecHitProducer::produce(), CorrMETDataExtractor::produce(), MixEvtVtxGenerator::produce(), PhotonProducer::produce(), PreshowerClusterProducer::produce(), TtSemiLepHypothesis::produce(), Merger< InputCollection, OutputCollection, P >::produce(), EcalBarrelClusterFastTimer::produce(), ShiftedParticleProducer::produce(), ShiftedPFCandidateProducerForPFMVAMEt::produce(), HiEgammaSCCorrectionMaker::produce(), HGCalLayerClusterProducer::produce(), EgammaSCCorrectionMaker::produce(), CaloTowerFromL1TCreatorForTauHLT::produce(), MultShiftMETcorrDBInputProducer::produce(), TtEvtBuilder< C >::produce(), TrackMVAClassifierBase::produce(), TtFullLepHypothesis::produce(), CaloTowerCreatorForTauHLT::produce(), CosmicTrackSelector::produce(), ZToLLEdmNtupleDumper::produce(), IsolationProducer< C1, C2, Alg, OutputCollection, Setup >::produce(), ConversionTrackCandidateProducer::produce(), ConvertedPhotonProducer::produce(), MinMETProducerT< T >::produce(), RecoTauGenericJetRegionProducer< JetType, CandType >::produce(), TrackTimeValueMapProducer::produce(), CorrectedCaloMETProducer::produce(), GEDPhotonProducer::produce(), ObjectSelectorProducer< Selector, OutputCollection, PostProcessor, StoreManager, Base, Init >::produce(), NoPileUpPFMEtDataProducer::produce(), BoostedTauSeedsProducer::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), ReducedEGProducer::produce(), reco::modulesNew::IsolationProducer< C1, C2, Alg, OutputCollection, Setup >::produce(), ShiftedPFCandidateProducerForPFNoPUMEt::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), CorrectedPATMETProducer::produce(), pat::TauJetCorrFactorsProducer::produce(), reco::PFMETProducerMVA::produce(), EventShapeVarsProducer::produce(), IsolatedPixelTrackCandidateProducer::produce(), RecoTauPiZeroProducer::produce(), HGCalTrackCollectionProducer::produce(), TtJetPartonMatch< C >::produce(), EgammaHLTNxNClusterProducer::produce(), IsolatedPixelTrackCandidateL1TProducer::produce(), RecoTauProducer::produce(), MixBoostEvtVtxGenerator::produce(), CorrectedPFMETProducer::produce(), CorrectedPatMETProducer::produce(), BetaBoostEvtVtxGenerator::produce(), GenHFHadronMatcher::produce(), reco::modules::HICaloCompatibleTrackSelector::produce(), ShiftedParticleProducerT< T >::produce(), reco::modules::TrackFullCloneSelectorBase< Selector >::produce(), RecoTauCleanerImpl< Prod >::produce(), SimPFProducer::produce(), FlavorHistoryProducer::produce(), PFRecoTauChargedHadronProducer::produce(), reco::PhysObjectMatcher< C1, C2, S, D, Q >::produce(), HLTRechitInRegionsProducer< T1 >::produce(), CorrectedMETProducerT< T >::produce(), ShiftedJetProducerT< T, Textractor >::produce(), GenParticleProducer::produce(), CaloJetMETcorrInputProducerT< T, Textractor >::produce(), CandidateProducer< TColl, CColl, Selector, Conv, Creator, Init >::produce(), Type2CorrectionProducer::produce(), JetCleanerForType1METT< T, Textractor >::produce(), GenPUProtonProducer::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), reco::modules::CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup, Init >::produce(), KfTrackProducerBase::putInEvt(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), RunManagerMTWorker::resetGenParticleId(), RunManager::resetGenParticleId(), EcalRecHitWorkerRecover::run(), AnalyticalTrackSelector::run(), MultiTrackSelector::run(), HIMultiTrackSelector::run(), EcalDQMonitorTask::runOnCollection(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select(), DualByL2TSG::selectTSG(), EcalUncalibRecHitWorkerMultiFit::set(), reco::tau::RecoTauVertexAssociator::setEvent(), ConversionSeedFinder::setEvent(), IsoTrig::studyTiming(), FastTSGFromIOHit::trackerSeeds(), TrackCollectionTokens::tracks(), and TrackCollectionTokens::trajectories().

◆ getByToken() [2/4]

template<typename ELEMENT >
bool Event::getByToken ( EDGetToken  token,
Handle< View< ELEMENT >> &  result 
) const

Definition at line 609 of file Event.h.

609  {
610  result.clear();
611  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(ELEMENT)), ELEMENT_TYPE, token, moduleCallingContext_);
612  if UNLIKELY (bh.failedToGet()) {
613  Handle<View<ELEMENT>> h(std::move(bh.whyFailedFactory()));
614  h.swap(result);
615  return false;
616  }
617  result = fillView_<ELEMENT>(bh);
618  return true;
619  }

References edm::ELEMENT_TYPE, edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), h, moduleCallingContext_, eostools::move(), provRecorder_, mps_fire::result, unpackBuffers-CaloStage2::token, UNLIKELY, and edm::BasicHandle::whyFailedFactory().

◆ getByToken() [3/4]

template<typename PROD >
bool Event::getByToken ( EDGetTokenT< PROD token,
Handle< PROD > &  result 
) const

Definition at line 543 of file Event.h.

543  {
544  result.clear();
545  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)), PRODUCT_TYPE, token, moduleCallingContext_);
546  result = convert_handle<PROD>(std::move(bh));
547  if UNLIKELY (result.failedToGet()) {
548  return false;
549  }
550  addToGotBranchIDs(*result.provenance());
551  return true;
552  }

References addToGotBranchIDs(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, mps_fire::result, unpackBuffers-CaloStage2::token, and UNLIKELY.

◆ getByToken() [4/4]

template<typename ELEMENT >
bool Event::getByToken ( EDGetTokenT< View< ELEMENT >>  token,
Handle< View< ELEMENT >> &  result 
) const

Definition at line 622 of file Event.h.

622  {
623  result.clear();
624  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(ELEMENT)), ELEMENT_TYPE, token, moduleCallingContext_);
625  if UNLIKELY (bh.failedToGet()) {
626  Handle<View<ELEMENT>> h(std::move(bh.whyFailedFactory()));
627  h.swap(result);
628  return false;
629  }
630  result = fillView_<ELEMENT>(bh);
631  return true;
632  }

References edm::ELEMENT_TYPE, edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), h, moduleCallingContext_, eostools::move(), provRecorder_, mps_fire::result, unpackBuffers-CaloStage2::token, UNLIKELY, and edm::BasicHandle::whyFailedFactory().

◆ getHandle() [1/2]

template<typename PROD >
Handle< PROD > Event::getHandle ( EDGetTokenT< PROD token) const

◆ getHandle() [2/2]

template<typename ELEMENT >
Handle< View< ELEMENT > > Event::getHandle ( EDGetTokenT< View< ELEMENT >>  token) const

Definition at line 635 of file Event.h.

635  {
636  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(ELEMENT)), ELEMENT_TYPE, token, moduleCallingContext_);
637  if UNLIKELY (bh.failedToGet()) {
638  return Handle<View<ELEMENT>>(std::move(bh.whyFailedFactory()));
639  }
640  return fillView_<ELEMENT>(bh);
641  }

References edm::ELEMENT_TYPE, edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), provRecorder_, unpackBuffers-CaloStage2::token, UNLIKELY, and edm::BasicHandle::whyFailedFactory().

◆ getImpl()

BasicHandle Event::getImpl ( std::type_info const &  iProductType,
ProductID const &  pid 
) const
overrideprivatevirtual

Implements edm::EventBase.

Definition at line 260 of file Event.cc.

260  {
261  BasicHandle h = this->getByProductID_(pid);
262  if (h.isValid()) {
263  addToGotBranchIDs(*(h.provenance()));
264  }
265  return h;
266  }

References addToGotBranchIDs(), getByProductID_(), and h.

◆ getLuminosityBlock()

LuminosityBlock const& edm::Event::getLuminosityBlock ( ) const
inline

Definition at line 100 of file Event.h.

100  {
101  if (not luminosityBlock_) {
103  }
104  return *luminosityBlock_;
105  }

References fillLuminosityBlock(), and luminosityBlock_.

Referenced by EcalDQMonitorTask::analyze(), and getRun().

◆ getManyByType()

template<typename PROD >
void Event::getManyByType ( std::vector< Handle< PROD >> &  results) const

Definition at line 522 of file Event.h.

522  {
524  for (typename std::vector<Handle<PROD>>::const_iterator it = results.begin(), itEnd = results.end(); it != itEnd;
525  ++it) {
526  addToGotBranchIDs(*it->provenance());
527  }
528  }

References addToGotBranchIDs(), edm::PrincipalGetAdapter::getManyByType(), moduleCallingContext_, provRecorder_, bookConverter::results, and trackerHitRTTI::vector.

Referenced by EnergyScaleAnalyzer::analyze().

◆ getProcessParameterSet()

bool Event::getProcessParameterSet ( std::string const &  processName,
ParameterSet ps 
) const

Definition at line 133 of file Event.cc.

133  {
134  ProcessConfiguration config;
136  if (process_found) {
137  pset::Registry::instance()->getMapped(config.parameterSetID(), ps);
138  assert(!ps.empty());
139  }
140  return process_found;
141  }

References cms::cuda::assert(), submitPVResolutionJobs::config, edm::ParameterSet::empty(), edm::ProcessHistory::getConfigurationForProcess(), edm::pset::Registry::getMapped(), edm::pset::Registry::instance(), processHistory(), and SimL1EmulatorRepack_CalouGT_cff::processName.

◆ getProvenance() [1/2]

Provenance Event::getProvenance ( BranchID const &  theID) const

◆ getProvenance() [2/2]

Provenance Event::getProvenance ( ProductID const &  theID) const

Definition at line 121 of file Event.cc.

121  {
123  }

References eventPrincipal(), edm::EventPrincipal::getProvenance(), and moduleCallingContext_.

◆ getRefBeforePut() [1/4]

template<typename PROD >
RefProd<PROD> edm::Event::getRefBeforePut ( )
inline

◆ getRefBeforePut() [2/4]

template<typename PROD >
RefProd< PROD > Event::getRefBeforePut ( EDPutToken  token)

◆ getRefBeforePut() [3/4]

template<typename PROD >
RefProd< PROD > Event::getRefBeforePut ( EDPutTokenT< PROD token)

◆ getRefBeforePut() [4/4]

template<typename PROD >
RefProd< PROD > Event::getRefBeforePut ( std::string const &  productInstanceName)

Definition at line 464 of file Event.h.

464  {
465  auto index = provRecorder_.getPutTokenIndex(TypeID{typeid(PROD)}, productInstanceName);
466 
467  //should keep track of what Ref's have been requested and make sure they are 'put'
468  return RefProd<PROD>(provRecorder_.getProductID(index), provRecorder_.prodGetter());
469  }

References edm::PrincipalGetAdapter::getProductID(), edm::PrincipalGetAdapter::getPutTokenIndex(), PROD, edm::PrincipalGetAdapter::prodGetter(), and provRecorder_.

◆ getRun()

Run const & Event::getRun ( ) const

◆ labelsForToken()

void edm::Event::labelsForToken ( EDGetToken const &  iToken,
ProductLabels oLabels 
) const
inline

Definition at line 251 of file Event.h.

251  {
252  provRecorder_.labelsForToken(iToken, oLabels);
253  }

References edm::PrincipalGetAdapter::labelsForToken(), and provRecorder_.

Referenced by TrackerHitAssociator::makeMaps().

◆ makeProductID()

ProductID Event::makeProductID ( BranchDescription const &  desc) const
private

Definition at line 107 of file Event.cc.

107  {
108  return eventPrincipal().branchIDToProductID(desc.originalBranchID());
109  }

References edm::EventPrincipal::branchIDToProductID(), submitPVResolutionJobs::desc, and eventPrincipal().

◆ moduleCallingContext()

ModuleCallingContext const* edm::Event::moduleCallingContext ( ) const
inline

Definition at line 249 of file Event.h.

249 { return moduleCallingContext_; }

References moduleCallingContext_.

◆ parameterSet()

edm::ParameterSet const * Event::parameterSet ( edm::ParameterSetID const &  psID) const
overridevirtual

Implements edm::EventBase.

Definition at line 143 of file Event.cc.

143  {
144  return parameterSetForID_(psID);
145  }

References edm::EventBase::parameterSetForID_().

◆ processHistory()

ProcessHistory const & Event::processHistory ( ) const
overridevirtual

◆ processHistoryID()

ProcessHistoryID const & Event::processHistoryID ( ) const

◆ productGetter()

EDProductGetter const & Event::productGetter ( ) const

◆ put() [1/4]

template<typename PROD >
OrphanHandle< PROD > Event::put ( EDPutToken  token,
std::unique_ptr< PROD product 
)

◆ put() [2/4]

template<typename PROD >
OrphanHandle< PROD > Event::put ( EDPutTokenT< PROD token,
std::unique_ptr< PROD product 
)

Definition at line 396 of file Event.h.

396  {
397  if (UNLIKELY(product.get() == nullptr)) { // null pointer is illegal
398  TypeID typeID(typeid(PROD));
400  }
401  if (UNLIKELY(token.isUninitialized())) {
403  }
404  return putImpl(token.index(), std::move(product));
405  }

References eostools::move(), PROD, edm::PrincipalGetAdapter::productInstanceLabel(), provRecorder_, putImpl(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), unpackBuffers-CaloStage2::token, and UNLIKELY.

◆ put() [3/4]

template<typename PROD >
OrphanHandle<PROD> edm::Event::put ( std::unique_ptr< PROD product)
inline

Put a new product.

Definition at line 133 of file Event.h.

133  {
134  return put<PROD>(std::move(product), std::string());
135  }

References eostools::move(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by Multi5x5ClusterProducer::clusterizeECALPart(), IslandClusterProducer::clusterizeECALPart(), CosmicClusterProducer::clusterizeECALPart(), EDMNeutronWriter::endEvent(), RecoTauPileUpVertexSelector::filter(), gen::Pythia6Gun::loadEvent(), EgammaHLTNxNClusterProducer::makeNxNClusters(), MultiTrackSelector::processMVA(), HIMultiTrackSelector::processMVA(), DimuonMCMatcher::produce(), TtGenEventReco::produce(), StGenEventReco::produce(), DoubleProducer::produce(), PATTauIDEmbedder::produce(), TtSemiLepJetCombMaxSumPtWMass::produce(), HGCalUncalibRecHitProducer::produce(), TtSemiLepJetCombGeom::produce(), TtSemiLepJetCombWMassMaxSumPt::produce(), MTDUncalibratedRecHitProducer::produce(), PileupSummaryInfoSlimmer::produce(), TopInitSubset::produce(), NativeArrayTableProducer< TIn, TCol >::produce(), reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce(), UncleanSCRecoveryProducer::produce(), EventVtxInfoNtupleDumper::produce(), GenParticleDecaySelector::produce(), TtSemiLepJetCombWMassDeltaTopMass::produce(), TtSemiLepKinFitProducer< LeptonCollection >::produce(), HGCalRecHitMapProducer::produce(), EcalUncalibRecHitProducer::produce(), MassKinFitterCandProducer::produce(), TICLLayerTileProducer::produce(), UnifiedSCCollectionProducer::produce(), PFTICLProducer::produce(), AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector >::produce(), CleanAndMergeProducer::produce(), TrackProducerWithSCAssociation::produce(), CandOneToOneDeltaRMatcher::produce(), AssociationMapOneToOne2Association< CKey, CVal >::produce(), EcalTBWeightUncalibRecHitProducer::produce(), ParticleBasedIsoProducer::produce(), MultiClustersFromTrackstersProducer::produce(), CandOneToManyDeltaRMatcher::produce(), AssociationVector2ValueMap< KeyRefProd, CVal >::produce(), TtFullHadSignalSelMVAComputer::produce(), TtFullLepKinSolutionProducer::produce(), GEDPhotonCoreProducer::produce(), ScaleCorrMETData::produce(), MTDRecHitProducer::produce(), EcalDigiSelector::produce(), IPTCorrector::produce(), CandViewRefMerger::produce(), TrackstersMergeProducer::produce(), GenParticlePruner::produce(), TtSemiLepHitFitProducer< LeptonCollection >::produce(), RecHitFilter::produce(), EcalRecalibRecHitProducer::produce(), TtSemiLepSignalSelMVAComputer::produce(), PATPuppiJetSpecificProducer::produce(), CollectionAdder< C >::produce(), GenTrackMatcher::produce(), MCTrackMatcher::produce(), TtSemiLepJetCombMVAComputer::produce(), photonIsolationHIProducer::produce(), CaloTowerCandidateCreator::produce(), ChargedHadronPFTrackIsolationProducer::produce(), BaseEvtVtxGenerator::produce(), HybridClusterProducer::produce(), LmfSource::produce(), FilteredLayerClustersProducer::produce(), TICLCandidateFromTrackstersProducer::produce(), TICLSeedingRegionProducer::produce(), EcalTPSkimmer::produce(), GenVisTauProducer::produce(), reco::modulesNew::MCTruthCompositeMatcher::produce(), HGCalRecHitProducer::produce(), PassThroughEvtVtxGenerator::produce(), JVFJetIdProducer::produce(), ShiftedMETcorrInputProducer::produce(), ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >::produce(), ZMuMuTrackUserData::produce(), CloneProducer< C >::produce(), EcalRecHitProducer::produce(), ShallowCloneProducer< C >::produce(), TrackInfoProducer::produce(), CandReducer::produce(), reco::modules::MatcherBase< Collection, Collection, reco::helper::CandMapTrait< Collection >::type >::produce(), PreshowerClusterShapeProducer::produce(), reco::modulesNew::Matcher< C1, C2, S, D >::produce(), EcalDetailedTimeRecHitProducer::produce(), RecoTauPiZeroUnembedder::produce(), MuonMETcorrInputProducer::produce(), ZMuMuMuonUserData::produce(), SysShiftMETcorrInputProducer::produce(), ShiftedJetProducerByMatchedObjectT< T >::produce(), TrackFromPackedCandidateProducer::produce(), ZMuMuUserDataOneTrack::produce(), Type0PFMETcorrInputProducer::produce(), ZMuMuUserData::produce(), PhotonCoreProducer::produce(), HGCalMultiClusterProducer::produce(), NoPileUpPFMEtProducer::produce(), ShiftedParticleMETcorrInputProducer::produce(), EgammaHLTCaloTowerProducer::produce(), InputGenJetsParticleSelector::produce(), CaloTowerFromL1TSeededCreatorForTauHLT::produce(), ShiftedPFCandidateProducerByMatchedObject::produce(), PFCandMETcorrInputProducer::produce(), CorrMETDataExtractor::produce(), TrackstersProducer::produce(), TtFullHadHypothesis::produce(), MTDTrackingRecHitProducer::produce(), PreshowerPhiClusterProducer::produce(), EgammaHLTRecoEcalCandidateProducers::produce(), MultShiftMETcorrInputProducer::produce(), PFchsMETcorrInputProducer::produce(), PhotonProducer::produce(), MixEvtVtxGenerator::produce(), TtSemiLepHypothesis::produce(), Merger< InputCollection, OutputCollection, P >::produce(), PreshowerClusterProducer::produce(), ShiftedParticleProducer::produce(), HiEgammaSCCorrectionMaker::produce(), ShiftedPFCandidateProducerForPFMVAMEt::produce(), HGCalLayerClusterProducer::produce(), EgammaSCCorrectionMaker::produce(), CaloTowerFromL1TCreatorForTauHLT::produce(), MultShiftMETcorrDBInputProducer::produce(), TtFullLepHypothesis::produce(), CaloTowerCreatorForTauHLT::produce(), CosmicTrackSelector::produce(), TrackMVAClassifierBase::produce(), TtEvtBuilder< C >::produce(), IsolationProducer< C1, C2, Alg, OutputCollection, Setup >::produce(), MinMETProducerT< T >::produce(), ZToLLEdmNtupleDumper::produce(), ConversionTrackCandidateProducer::produce(), ConvertedPhotonProducer::produce(), UniqueMerger< InputCollection, OutputCollection, P >::produce(), RecoTauGenericJetRegionProducer< JetType, CandType >::produce(), CorrectedCaloMETProducer::produce(), GEDPhotonProducer::produce(), NoPileUpPFMEtDataProducer::produce(), BoostedTauSeedsProducer::produce(), ShiftedPFCandidateProducerForPFNoPUMEt::produce(), pat::TauJetCorrFactorsProducer::produce(), ReducedEGProducer::produce(), CorrectedPATMETProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), reco::modulesNew::IsolationProducer< C1, C2, Alg, OutputCollection, Setup >::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), reco::PFMETProducerMVA::produce(), RecoTauPiZeroProducer::produce(), EventShapeVarsProducer::produce(), HGCalTrackCollectionProducer::produce(), IsolatedPixelTrackCandidateProducer::produce(), TtJetPartonMatch< C >::produce(), IsolatedPixelTrackCandidateL1TProducer::produce(), RecoTauProducer::produce(), MixBoostEvtVtxGenerator::produce(), EcalSimpleProducer::produce(), CorrectedPFMETProducer::produce(), CorrectedPatMETProducer::produce(), BetaBoostEvtVtxGenerator::produce(), reco::modules::HICaloCompatibleTrackSelector::produce(), ShiftedParticleProducerT< T >::produce(), reco::modules::TrackFullCloneSelectorBase< Selector >::produce(), SimPFProducer::produce(), RecoTauCleanerImpl< Prod >::produce(), FlavorHistoryProducer::produce(), PFRecoTauChargedHadronProducer::produce(), reco::PhysObjectMatcher< C1, C2, S, D, Q >::produce(), HLTRechitInRegionsProducer< T1 >::produce(), CorrectedMETProducerT< T >::produce(), ShiftedJetProducerT< T, Textractor >::produce(), GenParticleProducer::produce(), CaloJetMETcorrInputProducerT< T, Textractor >::produce(), CandidateProducer< TColl, CColl, Selector, Conv, Creator, Init >::produce(), Type2CorrectionProducer::produce(), JetCleanerForType1METT< T, Textractor >::produce(), GenPUProtonProducer::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), reco::modules::CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup, Init >::produce(), HiSuperClusterProducer::produceSuperclustersForECALPart(), helper::CandDecayStoreManager::put(), put(), helper::MuonCollectionStoreManager::put(), helper::TrackCollectionStoreManager::put(), helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put(), helper::GsfElectronCollectionStoreManager::put(), KfTrackProducerBase::putInEvt(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), DAFTrackProducer::putInEvtTrajAnn(), SiStripZeroSuppression::putOutputs(), AnalyticalTrackSelector::run(), MultiTrackSelector::run(), HIMultiTrackSelector::run(), l1t::stage2::BMTFCollections::~BMTFCollections(), l1t::stage2::CaloCollections::~CaloCollections(), l1t::stage1::CaloCollections::~CaloCollections(), l1t::stage2::CaloLayer1Collections::~CaloLayer1Collections(), l1t::stage2::EMTFCollections::~EMTFCollections(), GctUnpackCollections::~GctUnpackCollections(), l1t::stage2::GMTCollections::~GMTCollections(), l1t::stage2::GTCollections::~GTCollections(), and RctUnpackCollections::~RctUnpackCollections().

◆ put() [4/4]

template<typename PROD >
OrphanHandle< PROD > Event::put ( std::unique_ptr< PROD product,
std::string const &  productInstanceName 
)

Put a new product with a 'product instance name'.

Definition at line 385 of file Event.h.

385  {
386  if (UNLIKELY(product.get() == nullptr)) { // null pointer is illegal
387  TypeID typeID(typeid(PROD));
388  principal_get_adapter_detail::throwOnPutOfNullProduct("Event", typeID, productInstanceName);
389  }
390 
391  auto index = provRecorder_.getPutTokenIndex(TypeID(*product), productInstanceName);
392  return putImpl(index, std::move(product));
393  }

References edm::PrincipalGetAdapter::getPutTokenIndex(), eostools::move(), PROD, provRecorder_, putImpl(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and UNLIKELY.

◆ putImpl()

template<typename PROD >
OrphanHandle< PROD > Event::putImpl ( EDPutToken::value_type  token,
std::unique_ptr< PROD product 
)
private

Definition at line 368 of file Event.h.

368  {
369  // The following will call post_insert if T has such a function,
370  // and do nothing if T has no such function.
371  std::conditional_t<detail::has_postinsert<PROD>::value, DoPostInsert<PROD>, DoNotPostInsert<PROD>> maybe_inserter;
372  maybe_inserter(product.get());
373 
374  assert(index < putProducts().size());
375 
376  std::unique_ptr<Wrapper<PROD>> wp(new Wrapper<PROD>(std::move(product)));
377  PROD const* prod = wp->product();
378 
380  auto const& prodID = provRecorder_.getProductID(index);
381  return (OrphanHandle<PROD>(prod, prodID));
382  }

References cms::cuda::assert(), edm::PrincipalGetAdapter::getProductID(), eostools::move(), dumpMFGeometry_cfg::prod, PROD, provRecorder_, putProducts(), size(), relativeConstraints::value, and pfClustersFromHGC3DClusters_cfi::wp.

Referenced by put().

◆ putProducts() [1/2]

ProductPtrVec& edm::Event::putProducts ( )
inlineprivate

Definition at line 300 of file Event.h.

300 { return putProducts_; }

References putProducts_.

Referenced by commit_(), emplaceImpl(), putImpl(), and size().

◆ putProducts() [2/2]

ProductPtrVec const& edm::Event::putProducts ( ) const
inlineprivate

Definition at line 301 of file Event.h.

301 { return putProducts_; }

References putProducts_.

◆ run()

RunNumber_t edm::Event::run ( ) const
inline

Definition at line 109 of file Event.h.

109 { return id().run(); }

References edm::EventBase::id(), and edm::EventID::run().

Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and LaserSorter::writeEventHeader().

◆ setConsumer()

void Event::setConsumer ( EDConsumerBase const *  iConsumer)

◆ setProducer()

void Event::setProducer ( ProducerBase const *  iProd,
std::vector< BranchID > *  previousParentage,
std::vector< BranchID > *  gotBranchIDsFromAcquire = nullptr 
)

Definition at line 67 of file Event.cc.

69  {
70  setProducerCommon(iProd, previousParentage);
71  if (previousParentage) {
72  //are we supposed to record parentage for at least one item?
73  bool record_parents = false;
74  for (auto v : provRecorder_.recordProvenanceList()) {
75  if (v) {
76  record_parents = true;
77  break;
78  }
79  }
80  if (not record_parents) {
81  previousBranchIDs_ = nullptr;
82  return;
83  }
84  gotBranchIDsFromPrevious_.resize(previousParentage->size(), false);
85  if (gotBranchIDsFromAcquire) {
86  for (auto const& branchID : *gotBranchIDsFromAcquire) {
87  addToGotBranchIDs(branchID);
88  }
89  }
90  }
91  }

References addToGotBranchIDs(), gotBranchIDsFromPrevious_, previousBranchIDs_, provRecorder_, edm::PrincipalGetAdapter::recordProvenanceList(), setProducerCommon(), and findQualityFiles::v.

◆ setProducerCommon()

void Event::setProducerCommon ( ProducerBase const *  iProd,
std::vector< BranchID > *  previousParentage 
)

◆ setProducerForAcquire()

void Event::setProducerForAcquire ( ProducerBase const *  iProd,
std::vector< BranchID > *  previousParentage,
std::vector< BranchID > &  gotBranchIDsFromAcquire 
)

Definition at line 93 of file Event.cc.

95  {
96  setProducerCommon(iProd, previousParentage);
97  gotBranchIDsFromAcquire_ = &gotBranchIDsFromAcquire;
98  gotBranchIDsFromAcquire_->clear();
99  }

References gotBranchIDsFromAcquire_, and setProducerCommon().

◆ setSharedResourcesAcquirer()

void Event::setSharedResourcesAcquirer ( SharedResourcesAcquirer iResourceAcquirer)

Definition at line 46 of file Event.cc.

46  {
47  provRecorder_.setSharedResourcesAcquirer(iResourceAcquirer);
48  if (luminosityBlock_) {
49  luminosityBlock_->setSharedResourcesAcquirer(iResourceAcquirer);
50  }
51  }

References luminosityBlock_, provRecorder_, and edm::PrincipalGetAdapter::setSharedResourcesAcquirer().

◆ size()

size_t Event::size ( void  ) const

◆ streamID()

StreamID edm::Event::streamID ( ) const
inline

◆ triggerNames()

TriggerNames const & Event::triggerNames ( edm::TriggerResults const &  triggerResults) const
overridevirtual

Implements edm::EventBase.

Definition at line 268 of file Event.cc.

268  {
270  if (names != nullptr)
271  return *names;
272 
273  throw cms::Exception("TriggerNamesNotFound") << "TriggerNames not found in ParameterSet registry";
274  return *names;
275  }

References Exception, names, edm::EventBase::triggerNames_(), and edm::triggerResults().

Referenced by TopDiLeptonDQM::analyze(), ErsatzMEt::analyze(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), and egHLT::OffHelper::setTrigInfo().

◆ triggerResultsByName()

TriggerResultsByName Event::triggerResultsByName ( edm::TriggerResults const &  triggerResults) const
overridevirtual

Implements edm::EventBase.

Definition at line 277 of file Event.cc.

References names, edm::EventBase::triggerNames_(), and edm::triggerResults().

Friends And Related Function Documentation

◆ ::testEvent

friend class ::testEvent
friend

Definition at line 262 of file Event.h.

◆ ::testEventGetRefBeforePut

friend class ::testEventGetRefBeforePut
friend

Definition at line 261 of file Event.h.

◆ InputSource

friend class InputSource
friend

Definition at line 289 of file Event.h.

◆ ProducerBase

friend class ProducerBase
friend

Definition at line 291 of file Event.h.

◆ ProducerSourceBase

friend class ProducerSourceBase
friend

Definition at line 288 of file Event.h.

◆ RawInputSource

friend class RawInputSource
friend

Definition at line 290 of file Event.h.

◆ stream::ProducingModuleAdaptorBase

template<typename T >
friend class stream::ProducingModuleAdaptorBase
friend

Definition at line 293 of file Event.h.

Member Data Documentation

◆ aux_

EventAuxiliary const& edm::Event::aux_
private

Definition at line 310 of file Event.h.

Referenced by eventAuxiliary().

◆ emptyString_

const std::string Event::emptyString_
staticprivate

Definition at line 334 of file Event.h.

Referenced by getByLabel().

◆ gotBranchIDs_

BranchIDSet edm::Event::gotBranchIDs_
mutableprivate

Definition at line 320 of file Event.h.

Referenced by addToGotBranchIDs(), commit_aux(), and setConsumer().

◆ gotBranchIDsFromAcquire_

std::vector<BranchID>* edm::Event::gotBranchIDsFromAcquire_ = nullptr
private

Definition at line 323 of file Event.h.

Referenced by addToGotBranchIDs(), and setProducerForAcquire().

◆ gotBranchIDsFromPrevious_

std::vector<bool> edm::Event::gotBranchIDsFromPrevious_
mutableprivate

Definition at line 321 of file Event.h.

Referenced by addToGotBranchIDs(), commit_aux(), and setProducer().

◆ gotViews_

std::vector<std::shared_ptr<ViewBase> > edm::Event::gotViews_
mutableprivate

Definition at line 329 of file Event.h.

Referenced by fillView_().

◆ luminosityBlock_

std::optional<LuminosityBlock> edm::Event::luminosityBlock_
mutableprivate

◆ moduleCallingContext_

ModuleCallingContext const* edm::Event::moduleCallingContext_
private

◆ previousBranchIDs_

std::vector<BranchID>* edm::Event::previousBranchIDs_ = nullptr
private

Definition at line 322 of file Event.h.

Referenced by addToGotBranchIDs(), commit_aux(), setProducer(), and setProducerCommon().

◆ provRecorder_

PrincipalGetAdapter edm::Event::provRecorder_
private

◆ putProducts_

ProductPtrVec edm::Event::putProducts_
private

Definition at line 308 of file Event.h.

Referenced by putProducts(), and setProducerCommon().

◆ streamID_

StreamID edm::Event::streamID_
private

Definition at line 331 of file Event.h.

Referenced by streamID().

edm::pset::Registry::instance
static Registry * instance()
Definition: Registry.cc:12
writedatasetfile.args
args
Definition: writedatasetfile.py:18
edm::FillViewHelperVector
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector
Definition: FillViewHelperVector.h:30
edm::PrincipalGetAdapter::setConsumer
void setConsumer(EDConsumerBase const *iConsumer)
Definition: PrincipalGetAdapter.h:143
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
edm::PrincipalGetAdapter::principal
Principal const & principal() const
Definition: PrincipalGetAdapter.h:165
edm::Event::putProducts_
ProductPtrVec putProducts_
Definition: Event.h:308
edm::principal_get_adapter_detail::throwOnPutOfWrongType
void throwOnPutOfWrongType(std::type_info const &wrongType, TypeID const &rightType)
Definition: PrincipalGetAdapter.cc:48
electrons_cff.bool
bool
Definition: electrons_cff.py:393
mps_fire.i
i
Definition: mps_fire.py:428
edm::Event::getLuminosityBlock
LuminosityBlock const & getLuminosityBlock() const
Definition: Event.h:100
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::PrincipalGetAdapter::setProducer
void setProducer(ProducerBase const *iProd)
Definition: PrincipalGetAdapter.h:149
TriggerResultsByName
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::Event::addToGotBranchIDs
void addToGotBranchIDs(Provenance const &prov) const
Definition: Event.cc:228
edm::Event::previousBranchIDs_
std::vector< BranchID > * previousBranchIDs_
Definition: Event.h:322
Handle
pfClustersFromHGC3DClusters_cfi.wp
wp
Definition: pfClustersFromHGC3DClusters_cfi.py:20
edm::PrincipalGetAdapter::recordProvenanceList
std::vector< bool > const & recordProvenanceList() const
Definition: PrincipalGetAdapter.cc:293
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
edm::PrincipalGetAdapter::getSharedResourcesAcquirer
SharedResourcesAcquirer * getSharedResourcesAcquirer() const
Definition: PrincipalGetAdapter.h:147
edm::Event::moduleCallingContext_
ModuleCallingContext const * moduleCallingContext_
Definition: Event.h:332
edm::Event::productGetter
EDProductGetter const & productGetter() const
Definition: Event.cc:105
edm::ParentageRegistry::instance
static ParentageRegistry * instance()
Definition: ParentageRegistry.cc:4
edm::Event::gotViews_
std::vector< std::shared_ptr< ViewBase > > gotViews_
Definition: Event.h:329
cms::cuda::assert
assert(be >=bs)
edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken
void throwOnPutOfUninitializedToken(char const *principalType, std::type_info const &productType)
Definition: PrincipalGetAdapter.cc:41
bookConverter.results
results
Definition: bookConverter.py:144
edm::ProcessHistory::getConfigurationForProcess
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
Definition: ProcessHistory.cc:34
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::get_underlying_safe
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Definition: get_underlying_safe.h:41
edm::Event::getByProductID_
BasicHandle getByProductID_(ProductID const &oid) const
Definition: Event.cc:147
findQualityFiles.v
v
Definition: findQualityFiles.py:179
edm::PrincipalGetAdapter::putTokenIndexToProductResolverIndex
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex() const
Definition: PrincipalGetAdapter.cc:289
edm::convert_handle
Handle< T > convert_handle(BasicHandle &&bh) noexcept(true)
Definition: ConvertHandle.h:22
edm::EventPrincipal::getProvenance
Provenance getProvenance(ProductID const &pid, ModuleCallingContext const *mcc) const
Definition: EventPrincipal.cc:354
edm::PrincipalGetAdapter::moduleDescription
ModuleDescription const & moduleDescription() const
Definition: PrincipalGetAdapter.h:177
edm::PrincipalGetAdapter::labelsForToken
void labelsForToken(EDGetToken const &iToken, ProductLabels &oLabels) const
Definition: PrincipalGetAdapter.cc:84
edm::es::products
ESProducts< std::remove_reference_t< TArgs >... > products(TArgs &&... args)
Definition: ESProducts.h:128
edm::PrincipalGetAdapter::setSharedResourcesAcquirer
void setSharedResourcesAcquirer(SharedResourcesAcquirer *iSra)
Definition: PrincipalGetAdapter.h:146
edm::makeHandleExceptionFactory
std::shared_ptr< HandleExceptionFactory > makeHandleExceptionFactory(T &&iFunctor)
Definition: FunctorHandleExceptionFactory.h:45
config
Definition: config.py:1
edm::Principal::getProvenance
Provenance getProvenance(BranchID const &bid, ModuleCallingContext const *mcc) const
Definition: Principal.cc:824
edm::errors::ProductNotFound
Definition: EDMException.h:33
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
edm::Event::emplaceImpl
OrphanHandle< PROD > emplaceImpl(EDPutToken::value_type token, Args &&... args)
Definition: Event.h:446
edm::Event::eventPrincipal
EventPrincipal const & eventPrincipal() const
Definition: Event.cc:101
edm::Principal::getAllProvenance
void getAllProvenance(std::vector< Provenance const * > &provenances) const
Definition: Principal.cc:841
edm::PrincipalGetAdapter::getByToken_
BasicHandle getByToken_(TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const
Definition: PrincipalGetAdapter.cc:147
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
edm::Principal::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:143
submitPVResolutionJobs.config
config
parse the configuration file
Definition: submitPVResolutionJobs.py:281
mps_fire.end
end
Definition: mps_fire.py:242
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
edm::Principal::getAllStableProvenance
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
Definition: Principal.cc:858
edm::PrincipalGetAdapter::getByLabel_
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
Definition: PrincipalGetAdapter.cc:133
edm::Event::aux_
EventAuxiliary const & aux_
Definition: Event.h:310
h
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:492
edm::PrincipalGetAdapter::numberOfProductsConsumed
size_t numberOfProductsConsumed() const
Definition: PrincipalGetAdapter.cc:82
edm::EventID::run
RunNumber_t run() const
Definition: EventID.h:38
edm::PrincipalGetAdapter::prodGetter
EDProductGetter const * prodGetter() const
Definition: PrincipalGetAdapter.cc:297
edm::Event::streamID_
StreamID streamID_
Definition: Event.h:331
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::Event::processHistory
ProcessHistory const & processHistory() const override
Definition: Event.cc:243
edm::Event::putImpl
OrphanHandle< PROD > putImpl(EDPutToken::value_type token, std::unique_ptr< PROD > product)
Definition: Event.h:368
edm::Event::putProducts
ProductPtrVec & putProducts()
Definition: Event.h:300
edm::Event::gotBranchIDsFromAcquire_
std::vector< BranchID > * gotBranchIDsFromAcquire_
Definition: Event.h:323
edm::Event::Event
Event(EventTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *)
Definition: Event.cc:22
edm::Event::moduleCallingContext
ModuleCallingContext const * moduleCallingContext() const
Definition: Event.h:249
helpers
Definition: makeCompositeCandidate.h:8
edm::Event::provRecorder_
PrincipalGetAdapter provRecorder_
Definition: Event.h:303
edm::Event::size
size_t size() const
Definition: Event.cc:245
edm::EventPrincipal::eventSelectionIDs
EventSelectionIDVector const & eventSelectionIDs() const
Definition: EventPrincipal.cc:359
edm::PrincipalGetAdapter::getTypeIDForPutTokenIndex
TypeID const & getTypeIDForPutTokenIndex(EDPutToken::value_type index) const
Definition: PrincipalGetAdapter.cc:285
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::PrincipalGetAdapter::productInstanceLabel
std::string const & productInstanceLabel(EDPutToken) const
Definition: PrincipalGetAdapter.cc:281
edm::LuminosityBlock::getRun
Run const & getRun() const
Definition: LuminosityBlock.h:107
edm::Event::gotBranchIDs_
BranchIDSet gotBranchIDs_
Definition: Event.h:320
edm::PrincipalGetAdapter::getProductID
ProductID const & getProductID(unsigned int iPutTokenIndex) const
Definition: PrincipalGetAdapter.cc:240
edm::PrincipalGetAdapter::getConsumer
EDConsumerBase const * getConsumer() const
Definition: PrincipalGetAdapter.h:144
SimL1EmulatorRepack_CalouGT_cff.processName
processName
Definition: SimL1EmulatorRepack_CalouGT_cff.py:17
edm::EventPrincipal::getByProductID
BasicHandle getByProductID(ProductID const &oid) const
Definition: EventPrincipal.cc:268
edm::principal_get_adapter_detail::throwOnPutOfNullProduct
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
Definition: PrincipalGetAdapter.cc:32
edm::Event::luminosityBlock_
std::optional< LuminosityBlock > luminosityBlock_
Definition: Event.h:313
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::ParentageRegistry::insertMapped
bool insertMapped(value_type const &v)
Definition: ParentageRegistry.cc:24
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::PrincipalGetAdapter::getPutTokenIndex
EDPutToken::value_type getPutTokenIndex(TypeID const &type, std::string const &productInstanceName) const
Definition: PrincipalGetAdapter.cc:267
edm::ELEMENT_TYPE
Definition: ProductKindOfType.h:5
edm::Event::commit_aux
void commit_aux(ProductPtrVec &products, ParentageID *previousParentageId=nullptr)
Definition: Event.cc:172
edm::ParentageID
Hash< ParentageType > ParentageID
Definition: ParentageID.h:8
LIKELY
#define LIKELY(x)
Definition: Likely.h:20
edm::EventPrincipal::branchIDToProductID
ProductID branchIDToProductID(BranchID const &bid) const
Definition: EventPrincipal.cc:230
relativeConstraints.value
value
Definition: relativeConstraints.py:53
edm::Principal::size
size_t size() const
Definition: Principal.cc:298
Exception
Definition: hltDiff.cc:246
edm::EventBase::parameterSetForID_
static edm::ParameterSet const * parameterSetForID_(edm::ParameterSetID const &psID)
Definition: EventBase.cc:41
edm::EventBase::id
edm::EventID id() const
Definition: EventBase.h:59
edm::TriggerNames
Definition: TriggerNames.h:55
edm::triggerResults
static const std::string triggerResults("TriggerResults")
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::EventBase::triggerNames_
static TriggerNames const * triggerNames_(edm::TriggerResults const &triggerResults)
Definition: EventBase.cc:45
edm::Event::setProducerCommon
void setProducerCommon(ProducerBase const *iProd, std::vector< BranchID > *previousParentage)
Definition: Event.cc:60
mps_fire.result
result
Definition: mps_fire.py:311
PROD
#define PROD(A, B)
Definition: Simplify_begin.h:55
edm::PrincipalGetAdapter::getMatchingSequenceByLabel_
BasicHandle getMatchingSequenceByLabel_(TypeID const &typeID, InputTag const &tag, ModuleCallingContext const *mcc) const
Definition: PrincipalGetAdapter.cc:172
edm::Event::emptyString_
static const std::string emptyString_
Definition: Event.h:334
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
edm::Event::gotBranchIDsFromPrevious_
std::vector< bool > gotBranchIDsFromPrevious_
Definition: Event.h:321
edm::Principal::cacheIdentifier
CacheIdentifier_t cacheIdentifier() const
Definition: Principal.h:185
edm::pset::Registry::getMapped
bool getMapped(key_type const &k, value_type &result) const
Definition: Registry.cc:17
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::PrincipalGetAdapter::getManyByType
void getManyByType(std::vector< Handle< PROD > > &results, ModuleCallingContext const *mcc) const
Definition: PrincipalGetAdapter.h:317
label
const char * label
Definition: PFTauDecayModeTools.cc:11
edm::PrincipalGetAdapter::processHistory
ProcessHistory const & processHistory() const
Definition: PrincipalGetAdapter.cc:193
edm::Event::fillLuminosityBlock
void fillLuminosityBlock() const
Definition: Event.cc:53
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318