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::Run Class Reference

#include <Run.h>

Inheritance diagram for edm::Run:
edm::RunBase

Public Types

typedef PrincipalGetAdapter Base
 
typedef unsigned long CacheIdentifier_t
 

Public Member Functions

CacheIdentifier_t cacheIdentifier () const
 
void getAllStableProvenance (std::vector< StableProvenance const * > &provenances) const
 
template<typename PROD >
bool getByLabel (std::string const &label, Handle< PROD > &result) const
 
template<typename PROD >
bool getByLabel (std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 same as above, but using the InputTag class More...
 
template<typename PROD >
bool getByToken (EDGetToken token, Handle< PROD > &result) const
 
template<typename PROD >
bool getByToken (EDGetTokenT< PROD > token, Handle< PROD > &result) const
 
template<typename PROD >
void getManyByType (std::vector< Handle< PROD > > &results) const
 
Provenance getProvenance (BranchID const &theID) const
 
RunIndex index () const
 
void labelsForToken (EDGetToken const &iToken, ProductLabels &oLabels) const
 
ModuleCallingContext const * moduleCallingContext () const
 
ProcessHistory const & processHistory () const
 
ProcessHistoryID const & processHistoryID () const
 
template<typename PROD >
void put (std::unique_ptr< PROD > product)
 Put a new product. More...
 
template<typename PROD >
void put (std::unique_ptr< PROD > product, std::string const &productInstanceName)
 Put a new product with a 'product instance name'. More...
 
template<typename PROD >
void put (EDPutToken token, std::unique_ptr< PROD > product)
 
template<typename PROD >
void put (EDPutTokenT< PROD > token, std::unique_ptr< PROD > product)
 
 Run (RunPrincipal const &rp, ModuleDescription const &md, ModuleCallingContext const *)
 
RunAuxiliary const & runAuxiliary () const override
 
void setConsumer (EDConsumerBase const *iConsumer)
 
void setProducer (ProducerBase const *iProducer)
 
void setSharedResourcesAcquirer (SharedResourcesAcquirer *iResourceAcquirer)
 
 ~Run () override
 
- Public Member Functions inherited from edm::RunBase
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 same as above, but using the InputTag class More...
 
template<typename T >
bool getByLabel (InputTag const &tag, Handle< T > &result) const
 
RunID const & id () const
 
RunNumber_t run () const
 
 RunBase ()
 
virtual ~RunBase ()
 

Private Types

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

Private Member Functions

void commit_ (std::vector< edm::ProductResolverIndex > const &iShouldPut)
 
BasicHandle getByLabelImpl (std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const override
 
template<typename PROD >
void putImpl (EDPutToken::value_type token, std::unique_ptr< PROD > product)
 
ProductPtrVecputProducts ()
 
ProductPtrVec const & putProducts () const
 
RunPrincipal const & runPrincipal () const
 

Private Attributes

RunAuxiliary const & aux_
 
ModuleCallingContext const * moduleCallingContext_
 
PrincipalGetAdapter provRecorder_
 
ProductPtrVec putProducts_
 
SharedResourcesAcquirersharedResourcesAcquirer_
 

Static Private Attributes

static const std::string emptyString_
 

Friends

class ProducerBase
 
class RawInputSource
 
template<typename T >
class stream::ProducingModuleAdaptorBase
 

Detailed Description

Definition at line 43 of file Run.h.

Member Typedef Documentation

Definition at line 60 of file Run.h.

typedef unsigned long edm::Run::CacheIdentifier_t

If you are caching data from the Run, 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 79 of file Run.h.

typedef std::vector<edm::propagate_const<std::unique_ptr<WrapperBase> > > edm::Run::ProductPtrVec
private

Definition at line 165 of file Run.h.

Constructor & Destructor Documentation

Run::Run ( RunPrincipal const &  rp,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext 
)

Definition at line 11 of file Run.cc.

12  :
13  provRecorder_(rp, md),
14  aux_(rp.aux()),
16  }
RunAuxiliary const & aux_
Definition: Run.h:181
ModuleCallingContext const * moduleCallingContext() const
Definition: Run.h:150
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
Run::~Run ( )
override

Definition at line 18 of file Run.cc.

18  {
19  }

Member Function Documentation

Run::CacheIdentifier_t Run::cacheIdentifier ( ) const

Definition at line 22 of file Run.cc.

References edm::Principal::cacheIdentifier(), and runPrincipal().

22 {return runPrincipal().cacheIdentifier();}
CacheIdentifier_t cacheIdentifier() const
Definition: Principal.h:182
RunPrincipal const & runPrincipal() const
Definition: Run.cc:27
void Run::commit_ ( std::vector< edm::ProductResolverIndex > const &  iShouldPut)
private

Definition at line 87 of file Run.cc.

References edm::get_underlying_safe(), mps_fire::i, index(), eostools::move(), AlCaHLTBitMon_ParallelJobs::p, edm::PrincipalGetAdapter::principal(), provRecorder_, edm::RunPrincipal::put(), putProducts(), edm::PrincipalGetAdapter::putTokenIndexToProductResolverIndex(), and runPrincipal().

Referenced by edm::stream::ProducingModuleAdaptorBase< EDProducerBase >::commit().

87  {
88  RunPrincipal const& rp = runPrincipal();
89  size_t nPut = 0;
90  for(size_t i = 0; i < putProducts().size();++i) {
91  auto& p = get_underlying_safe(putProducts()[i]);
92  if(p) {
94  ++nPut;
95  }
96  }
97 
98  auto sz = iShouldPut.size();
99  if(sz !=0 and sz != nPut) {
100  //some were missed
101  auto& p = provRecorder_.principal();
102  for(auto index: iShouldPut){
103  auto resolver = p.getProductResolverByIndex(index);
104  if(not resolver->productResolved()) {
105  resolver->putProduct(std::unique_ptr<WrapperBase>());
106  }
107  }
108  }
109 
110  // the cleanup is all or none
111  putProducts().clear();
112  }
Principal const & principal() const
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex() const
RunIndex index() const
Definition: Run.cc:24
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
RunPrincipal const & runPrincipal() const
Definition: Run.cc:27
ProductPtrVec & putProducts()
Definition: Run.h:166
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
void Run::getAllStableProvenance ( std::vector< StableProvenance const * > &  provenances) const

Definition at line 37 of file Run.cc.

References edm::Principal::getAllStableProvenance(), and runPrincipal().

Referenced by GlobalHitsProdHistStripper::beginRun().

37  {
38  runPrincipal().getAllStableProvenance(provenances);
39  }
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
Definition: Principal.cc:810
RunPrincipal const & runPrincipal() const
Definition: Run.cc:27
template<typename PROD >
bool Run::getByLabel ( std::string const &  label,
Handle< PROD > &  result 
) const
template<typename PROD >
bool Run::getByLabel ( std::string const &  label,
std::string const &  productInstanceName,
Handle< PROD > &  result 
) const

Definition at line 254 of file Run.h.

References edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), eostools::move(), PROD, and edm::principal_get_adapter_detail::throwOnPrematureRead().

256  {
258  principal_get_adapter_detail::throwOnPrematureRead("Run", TypeID(typeid(PROD)), label, productInstanceName);
259  }
260  result.clear();
261  BasicHandle bh = provRecorder_.getByLabel_(TypeID(typeid(PROD)), label, productInstanceName, emptyString_, moduleCallingContext_);
262  convert_handle(std::move(bh), result); // throws on conversion error
263  if (result.failedToGet()) {
264  return false;
265  }
266  return true;
267  }
static const std::string emptyString_
Definition: Run.h:185
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
template<typename PROD >
bool Run::getByLabel ( InputTag const &  tag,
Handle< PROD > &  result 
) const

same as above, but using the InputTag class

Definition at line 272 of file Run.h.

References edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), edm::InputTag::instance(), edm::InputTag::label(), eostools::move(), PROD, and edm::principal_get_adapter_detail::throwOnPrematureRead().

272  {
274  principal_get_adapter_detail::throwOnPrematureRead("Run", TypeID(typeid(PROD)), tag.label(), tag.instance());
275  }
276  result.clear();
277  BasicHandle bh = provRecorder_.getByLabel_(TypeID(typeid(PROD)), tag, moduleCallingContext_);
278  convert_handle(std::move(bh), result); // throws on conversion error
279  if (result.failedToGet()) {
280  return false;
281  }
282  return true;
283  }
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
BasicHandle Run::getByLabelImpl ( std::type_info const &  iWrapperType,
std::type_info const &  iProductType,
InputTag const &  iTag 
) const
overrideprivatevirtual

Implements edm::RunBase.

Definition at line 125 of file Run.cc.

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

125  {
126  BasicHandle h = provRecorder_.getByLabel_(TypeID(iProductType), iTag, moduleCallingContext_);
127  return h;
128  }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
template<typename PROD >
bool Run::getByToken ( EDGetToken  token,
Handle< PROD > &  result 
) const

Definition at line 287 of file Run.h.

References edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), eostools::move(), PROD, edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().

Referenced by L1GtAnalyzer::analyzeConditionsInRunBlock(), L1GtAnalyzer::analyzeL1GtTriggerMenuLite(), HLTPrescaleRecorder::beginRun(), pat::PATTriggerEventProducer::beginRun(), RunHistogramManager::beginRun(), LHEWriter::endRun(), ExternalLHEAsciiDumper::endRun(), GenXSecAnalyzer::endRun(), edm::GetterOfProducts< trigger::HLTPrescaleTable >::fillHandles(), EDMtoMEConverter::Tokens< T >::getData(), AlignmentProducerAsAnalyzer::getTkFittedLasBeamCollection(), AlignmentProducerAsAnalyzer::getTsosVectorCollection(), PrescaleWeightProvider::initRun(), and L1GtUtils::retrieveL1GtTriggerMenuLite().

287  {
289  principal_get_adapter_detail::throwOnPrematureRead("Run", TypeID(typeid(PROD)), token);
290  }
291  result.clear();
292  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)),PRODUCT_TYPE, token, moduleCallingContext_);
293  convert_handle(std::move(bh), result); // throws on conversion error
294  if (result.failedToGet()) {
295  return false;
296  }
297  return true;
298  }
BasicHandle getByToken_(TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
template<typename PROD >
bool Run::getByToken ( EDGetTokenT< PROD token,
Handle< PROD > &  result 
) const

Definition at line 302 of file Run.h.

References edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), eostools::move(), PROD, edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().

302  {
304  principal_get_adapter_detail::throwOnPrematureRead("Run", TypeID(typeid(PROD)), token);
305  }
306  result.clear();
307  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)),PRODUCT_TYPE, token, moduleCallingContext_);
308  convert_handle(std::move(bh), result); // throws on conversion error
309  if (result.failedToGet()) {
310  return false;
311  }
312  return true;
313  }
BasicHandle getByToken_(TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
template<typename PROD >
void Run::getManyByType ( std::vector< Handle< PROD > > &  results) const

Definition at line 317 of file Run.h.

References PROD, mps_update::results, and edm::principal_get_adapter_detail::throwOnPrematureRead().

Referenced by GlobalHitsProdHistStripper::endRun().

317  {
320  }
322  }
void getManyByType(std::vector< Handle< PROD > > &results, ModuleCallingContext const *mcc) const
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
Provenance Run::getProvenance ( BranchID const &  theID) const

Definition at line 32 of file Run.cc.

References edm::Principal::getProvenance(), moduleCallingContext_, and runPrincipal().

32  {
34  }
Provenance getProvenance(BranchID const &bid, ModuleCallingContext const *mcc) const
Definition: Principal.cc:774
RunPrincipal const & runPrincipal() const
Definition: Run.cc:27
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
RunIndex Run::index ( ) const
void edm::Run::labelsForToken ( EDGetToken const &  iToken,
ProductLabels oLabels 
) const
inline

Definition at line 152 of file Run.h.

152 { provRecorder_.labelsForToken(iToken, oLabels); }
void labelsForToken(EDGetToken const &iToken, ProductLabels &oLabels) const
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
ModuleCallingContext const* edm::Run::moduleCallingContext ( ) const
inline

Definition at line 150 of file Run.h.

Referenced by DQMEDAnalyzer::beginRun(), edm::PileUp::beginRun(), edm::PileUp::endRun(), and DQMEDAnalyzer::endRunSummary().

150 { return moduleCallingContext_; }
ModuleCallingContext const * moduleCallingContext_
Definition: Run.h:182
ProcessHistory const & Run::processHistory ( ) const
ProcessHistoryID const & Run::processHistoryID ( ) const

Definition at line 115 of file Run.cc.

References edm::Principal::processHistoryID(), and runPrincipal().

115  {
116  return runPrincipal().processHistoryID();
117  }
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:145
RunPrincipal const & runPrincipal() const
Definition: Run.cc:27
template<typename PROD >
void edm::Run::put ( std::unique_ptr< PROD product)
inline
template<typename PROD >
void Run::put ( std::unique_ptr< PROD product,
std::string const &  productInstanceName 
)

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

Definition at line 206 of file Run.h.

References diffTreeTool::index, eostools::move(), PROD, edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and unlikely.

206  {
207  if(unlikely(product.get() == nullptr)) { // null pointer is illegal
208  TypeID typeID(typeid(PROD));
209  principal_get_adapter_detail::throwOnPutOfNullProduct("LuminosityBlock", typeID, productInstanceName);
210  }
211  auto index =
212  provRecorder_.getPutTokenIndex(TypeID(*product), productInstanceName);
213  putImpl(index, std::move(product));
214  }
#define unlikely(x)
RunIndex index() const
Definition: Run.cc:24
void putImpl(EDPutToken::value_type token, std::unique_ptr< PROD > product)
Definition: Run.h:190
EDPutToken::value_type getPutTokenIndex(TypeID const &type, std::string const &productInstanceName) const
#define PROD(A, B)
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
template<typename PROD >
void Run::put ( EDPutToken  token,
std::unique_ptr< PROD product 
)

Definition at line 231 of file Run.h.

References edm::EDPutToken::index(), edm::EDPutToken::isUninitialized(), eostools::move(), PROD, edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), edm::principal_get_adapter_detail::throwOnPutOfWrongType(), and unlikely.

231  {
232  if(unlikely(product.get() == 0)) { // null pointer is illegal
233  TypeID typeID(typeid(PROD));
235  }
236  if(unlikely(token.isUninitialized())) {
238  }
239  if(unlikely(provRecorder_.getTypeIDForPutTokenIndex(token.index()) != TypeID{typeid(PROD)})) {
241  }
242 
243  putImpl(token.index(),std::move(product));
244  }
void throwOnPutOfUninitializedToken(char const *principalType, std::type_info const &productType)
TypeID const & getTypeIDForPutTokenIndex(EDPutToken::value_type index) const
#define unlikely(x)
void throwOnPutOfWrongType(std::type_info const &wrongType, TypeID const &rightType)
void putImpl(EDPutToken::value_type token, std::unique_ptr< PROD > product)
Definition: Run.h:190
std::string const & productInstanceLabel(EDPutToken) const
#define PROD(A, B)
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
template<typename PROD >
void Run::put ( EDPutTokenT< PROD token,
std::unique_ptr< PROD product 
)

Definition at line 218 of file Run.h.

References edm::EDPutTokenT< T >::index(), edm::EDPutTokenT< T >::isUninitialized(), eostools::move(), PROD, edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), and unlikely.

218  {
219  if(unlikely(product.get() == 0)) { // null pointer is illegal
220  TypeID typeID(typeid(PROD));
222  }
223  if(unlikely(token.isUninitialized())) {
225  }
226  putImpl(token.index(),std::move(product));
227  }
void throwOnPutOfUninitializedToken(char const *principalType, std::type_info const &productType)
#define unlikely(x)
void putImpl(EDPutToken::value_type token, std::unique_ptr< PROD > product)
Definition: Run.h:190
std::string const & productInstanceLabel(EDPutToken) const
#define PROD(A, B)
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
def move(src, dest)
Definition: eostools.py:510
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
template<typename PROD >
void Run::putImpl ( EDPutToken::value_type  token,
std::unique_ptr< PROD product 
)
private

Definition at line 190 of file Run.h.

References diffTreeTool::index, eostools::move(), findQualityFiles::size, and relativeConstraints::value.

190  {
191  // The following will call post_insert if T has such a function,
192  // and do nothing if T has no such function.
194  DoPostInsert<PROD>,
195  DoNotPostInsert<PROD>> maybe_inserter;
196  maybe_inserter(product.get());
197 
198  assert(index < putProducts().size());
199 
200  std::unique_ptr<Wrapper<PROD> > wp(new Wrapper<PROD>(std::move(product)));
201  putProducts()[index]=std::move(wp);
202  }
size
Write out results.
RunIndex index() const
Definition: Run.cc:24
ProductPtrVec & putProducts()
Definition: Run.h:166
def move(src, dest)
Definition: eostools.py:510
ProductPtrVec& edm::Run::putProducts ( )
inlineprivate

Definition at line 166 of file Run.h.

Referenced by commit_().

166 {return putProducts_;}
ProductPtrVec putProducts_
Definition: Run.h:180
ProductPtrVec const& edm::Run::putProducts ( ) const
inlineprivate

Definition at line 167 of file Run.h.

167 {return putProducts_;}
ProductPtrVec putProducts_
Definition: Run.h:180
RunAuxiliary const& edm::Run::runAuxiliary ( ) const
inlineoverridevirtual
RunPrincipal const & Run::runPrincipal ( ) const
private

Definition at line 27 of file Run.cc.

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

Referenced by cacheIdentifier(), commit_(), getAllStableProvenance(), getProvenance(), index(), and processHistoryID().

27  {
28  return dynamic_cast<RunPrincipal const&>(provRecorder_.principal());
29  }
Principal const & principal() const
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
void edm::Run::setConsumer ( EDConsumerBase const *  iConsumer)
inline

Definition at line 50 of file Run.h.

Referenced by edm::EDAnalyzer::doBeginRun(), edm::EDProducer::doBeginRun(), edm::EDFilter::doBeginRun(), edm::one::EDProducerBase::doBeginRun(), edm::one::EDFilterBase::doBeginRun(), edm::one::EDAnalyzerBase::doBeginRun(), edm::global::EDAnalyzerBase::doBeginRun(), edm::global::EDFilterBase::doBeginRun(), edm::global::EDProducerBase::doBeginRun(), edm::limited::EDAnalyzerBase::doBeginRun(), edm::limited::EDProducerBase::doBeginRun(), edm::limited::EDFilterBase::doBeginRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginRun(), edm::stream::EDAnalyzerAdaptor< T >::doBeginRun(), edm::EDAnalyzer::doEndRun(), edm::EDProducer::doEndRun(), edm::EDFilter::doEndRun(), edm::one::EDProducerBase::doEndRun(), edm::one::EDFilterBase::doEndRun(), edm::one::EDAnalyzerBase::doEndRun(), edm::global::EDAnalyzerBase::doEndRun(), edm::global::EDProducerBase::doEndRun(), edm::global::EDFilterBase::doEndRun(), edm::limited::EDAnalyzerBase::doEndRun(), edm::limited::EDProducerBase::doEndRun(), edm::limited::EDFilterBase::doEndRun(), edm::stream::EDAnalyzerAdaptor< T >::doEndRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndRun(), edm::global::EDAnalyzerBase::doStreamBeginRun(), edm::global::EDProducerBase::doStreamBeginRun(), edm::global::EDFilterBase::doStreamBeginRun(), edm::limited::EDAnalyzerBase::doStreamBeginRun(), edm::limited::EDFilterBase::doStreamBeginRun(), edm::limited::EDProducerBase::doStreamBeginRun(), edm::global::EDAnalyzerBase::doStreamEndRun(), edm::global::EDFilterBase::doStreamEndRun(), edm::global::EDProducerBase::doStreamEndRun(), edm::limited::EDAnalyzerBase::doStreamEndRun(), edm::limited::EDProducerBase::doStreamEndRun(), edm::limited::EDFilterBase::doStreamEndRun(), edm::stream::EDAnalyzerAdaptorBase::doStreamEndRun(), and edm::stream::ProducingModuleAdaptorBase< T >::doStreamEndRun().

50  {
51  provRecorder_.setConsumer(iConsumer);
52  }
void setConsumer(EDConsumerBase const *iConsumer)
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
void Run::setProducer ( ProducerBase const *  iProducer)

Definition at line 79 of file Run.cc.

References provRecorder_, putProducts_, edm::PrincipalGetAdapter::putTokenIndexToProductResolverIndex(), and edm::PrincipalGetAdapter::setProducer().

Referenced by edm::PuttableSourceBase::doBeginRun(), edm::one::EDFilterBase::doBeginRun(), edm::one::EDProducerBase::doBeginRun(), edm::global::EDProducerBase::doBeginRun(), edm::global::EDFilterBase::doBeginRun(), edm::limited::EDFilterBase::doBeginRun(), edm::limited::EDProducerBase::doBeginRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginRun(), edm::PuttableSourceBase::doEndRun(), edm::one::EDFilterBase::doEndRun(), edm::one::EDProducerBase::doEndRun(), edm::global::EDFilterBase::doEndRun(), edm::global::EDProducerBase::doEndRun(), edm::limited::EDFilterBase::doEndRun(), edm::limited::EDProducerBase::doEndRun(), and edm::stream::ProducingModuleAdaptor< T, M, B >::doEndRun().

79  {
80  provRecorder_.setProducer(iProducer);
81  //set appropriate size
82  putProducts_.resize(
84  }
ProductPtrVec putProducts_
Definition: Run.h:180
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex() const
void setProducer(ProducerBase const *iProd)
PrincipalGetAdapter provRecorder_
Definition: Run.h:179
void edm::Run::setSharedResourcesAcquirer ( SharedResourcesAcquirer iResourceAcquirer)
inline

Definition at line 54 of file Run.h.

54  {
55  provRecorder_.setSharedResourcesAcquirer(iResourceAcquirer);
56  }
void setSharedResourcesAcquirer(SharedResourcesAcquirer *iSra)
PrincipalGetAdapter provRecorder_
Definition: Run.h:179

Friends And Related Function Documentation

friend class ProducerBase
friend

Definition at line 174 of file Run.h.

friend class RawInputSource
friend

Definition at line 173 of file Run.h.

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

Definition at line 175 of file Run.h.

Member Data Documentation

RunAuxiliary const& edm::Run::aux_
private

Definition at line 181 of file Run.h.

std::string const Run::emptyString_
staticprivate

Definition at line 185 of file Run.h.

ModuleCallingContext const* edm::Run::moduleCallingContext_
private

Definition at line 182 of file Run.h.

Referenced by getByLabelImpl(), and getProvenance().

PrincipalGetAdapter edm::Run::provRecorder_
private

Definition at line 179 of file Run.h.

Referenced by commit_(), getByLabelImpl(), processHistory(), runPrincipal(), and setProducer().

ProductPtrVec edm::Run::putProducts_
private

Definition at line 180 of file Run.h.

Referenced by setProducer().

SharedResourcesAcquirer* edm::Run::sharedResourcesAcquirer_
private

Definition at line 183 of file Run.h.