CMS 3D CMS Logo

OccurrenceForOutput.cc
Go to the documentation of this file.
2 
12 
13 namespace edm {
14 
16  ModuleDescription const& md,
17  ModuleCallingContext const* moduleCallingContext,
18  bool isAtEnd)
19  : provRecorder_(p, md, isAtEnd), moduleCallingContext_(moduleCallingContext) {}
20 
22 
24 
26 
28 
31  }
32 
33  void OccurrenceForOutput::getAllProvenance(std::vector<Provenance const*>& provenances) const {
35  }
36 
37  void OccurrenceForOutput::getAllStableProvenance(std::vector<StableProvenance const*>& provenances) const {
39  }
40 
42 
43  size_t OccurrenceForOutput::size() const { return provRecorder_.principal().size(); }
44 
47  if (result.failedToGet()) {
48  return result;
49  }
50  if (!provRecorder_.isComplete() && result.wrapper()->isMergeable()) {
51  principal_get_adapter_detail::throwOnPrematureRead("RunOrLumi", typeID, token);
52  }
53  return result;
54  }
55 } // namespace edm
ProcessHistory const & processHistory() const
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:299
virtual ProcessHistory const & processHistory() const
Principal const & principal() const
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
void getAllProvenance(std::vector< Provenance const * > &provenances) const
Definition: Principal.cc:815
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
Definition: Principal.cc:832
Provenance getProvenance(BranchID const &bid, ModuleCallingContext const *mcc) const
Definition: Principal.cc:798
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:142
Provenance getProvenance(BranchID const &theID) const
ModuleCallingContext const * moduleCallingContext_
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
HLT enums.
ProcessHistoryID const & processHistoryID() const
void setConsumer(EDConsumerBase const *iConsumer)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
void getAllProvenance(std::vector< Provenance const * > &provenances) const
OccurrenceForOutput(Principal const &ep, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd)
Principal const & principal() const
PrincipalGetAdapter provRecorder_