CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OccurrenceForOutput.cc
Go to the documentation of this file.
2 
11 
12 namespace edm {
13 
15  ModuleDescription const& md,
16  ModuleCallingContext const* moduleCallingContext,
17  bool isAtEnd)
18  : provRecorder_(p, md, isAtEnd), moduleCallingContext_(moduleCallingContext) {}
19 
21 
23 
25 
27 
30  }
31 
32  void OccurrenceForOutput::getAllProvenance(std::vector<Provenance const*>& provenances) const {
34  }
35 
36  void OccurrenceForOutput::getAllStableProvenance(std::vector<StableProvenance const*>& provenances) const {
38  }
39 
41 
42  size_t OccurrenceForOutput::size() const { return provRecorder_.principal().size(); }
43 
46  if (result.failedToGet()) {
47  return result;
48  }
49  if (!provRecorder_.isComplete() && result.wrapper()->isMergeable()) {
50  principal_get_adapter_detail::throwOnPrematureRead("RunOrLumi", typeID, token);
51  }
52  return result;
53  }
54 } // namespace edm
ProcessHistory const & processHistory() const
void setConsumer(EDConsumerBase const *iConsumer)
BasicHandle getByToken_(TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const
void setConsumer(EDConsumerBase const *iConsumer)
size_t size() const
Definition: Principal.cc:303
Principal const & principal() const
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
void getAllProvenance(std::vector< Provenance const * > &provenances) const
Definition: Principal.cc:862
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
Definition: Principal.cc:879
Provenance getProvenance(BranchID const &theID) const
tuple result
Definition: mps_fire.py:311
void getAllProvenance(std::vector< Provenance const * > &provenances) const
virtual ProcessHistory const & processHistory() const
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:142
ProcessHistoryID const & processHistoryID() const
ModuleCallingContext const * moduleCallingContext_
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
Principal const & principal() const
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
Provenance const & getProvenance(BranchID const &bid) const
Definition: Principal.cc:837
PrincipalGetAdapter provRecorder_