CMS 3D CMS Logo

OccurrenceForOutput.cc
Go to the documentation of this file.
2 
12 
13 namespace edm {
14 
15  OccurrenceForOutput::OccurrenceForOutput(Principal const& p, ModuleDescription const& md, ModuleCallingContext const* moduleCallingContext, bool isAtEnd) :
16  provRecorder_(p, md, isAtEnd),
17  moduleCallingContext_(moduleCallingContext)
18  {
19  }
20 
22  }
23 
24  void
26  provRecorder_.setConsumer(iConsumer);
27  }
28 
29  Principal const&
31  return provRecorder_.principal();
32  }
33 
34  ProcessHistoryID const&
36  return principal().processHistoryID();
37  }
38 
42  }
43 
44  void
45  OccurrenceForOutput::getAllProvenance(std::vector<Provenance const*>& provenances) const {
47  }
48 
49  void
50  OccurrenceForOutput::getAllStableProvenance(std::vector<StableProvenance const*>& provenances) const {
52  }
53 
54  ProcessHistory const&
57  }
58 
59  size_t
61  return provRecorder_.principal().size();
62  }
63 
64  bool
66  result.clear();
68  if (result.failedToGet()) {
69  return false;
70  }
71  if(!provRecorder_.isComplete() && result.wrapper()->isMergeable()) {
72  principal_get_adapter_detail::throwOnPrematureRead("RunOrLumi", typeID, token);
73  }
74  return true;
75  }
76 }
77 
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:272
virtual ProcessHistory const & processHistory() const
Principal const & principal() const
void getAllProvenance(std::vector< Provenance const * > &provenances) const
Definition: Principal.cc:816
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
Definition: Principal.cc:833
Provenance getProvenance(BranchID const &bid, ModuleCallingContext const *mcc) const
Definition: Principal.cc:797
bool getByToken(EDGetToken token, TypeID const &typeID, BasicHandle &result) const
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:144
WrapperBase const * wrapper() const
Definition: BasicHandle.h:90
Provenance getProvenance(BranchID const &theID) const
ModuleCallingContext const * moduleCallingContext_
bool failedToGet() const
Definition: BasicHandle.h:86
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)
bool isMergeable() const
Definition: WrapperBase.h:54
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_