CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends
edm::LuminosityBlock Class Reference

#include <LuminosityBlock.h>

Inheritance diagram for edm::LuminosityBlock:
edm::LuminosityBlockBase

Public Types

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
 
Run const & getRun () const
 
LuminosityBlockIndex index () const
 
void labelsForToken (EDGetToken const &iToken, ProductLabels &oLabels) const
 
 LuminosityBlock (LuminosityBlockPrincipal const &lbp, ModuleDescription const &md, ModuleCallingContext const *)
 
LuminosityBlockAuxiliary const & luminosityBlockAuxiliary () 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...
 
void setConsumer (EDConsumerBase const *iConsumer)
 
void setSharedResourcesAcquirer (SharedResourcesAcquirer *iResourceAcquirer)
 
 ~LuminosityBlock ()
 
- Public Member Functions inherited from edm::LuminosityBlockBase
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<class T >
bool getByLabel (const InputTag &tag, Handle< T > &result) const
 
LuminosityBlockID id () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
 LuminosityBlockBase ()
 
RunNumber_t run () const
 
virtual ~LuminosityBlockBase ()
 

Private Types

typedef std::vector< std::pair
< edm::propagate_const
< std::unique_ptr< WrapperBase >
>, BranchDescription const * > > 
ProductPtrVec
 

Private Member Functions

void commit_ (std::vector< edm::ProductResolverIndex > const &iShouldPut)
 
virtual BasicHandle getByLabelImpl (std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const
 
LuminosityBlockPrincipal const & luminosityBlockPrincipal () const
 
ProductPtrVecputProducts ()
 
ProductPtrVec const & putProducts () const
 

Private Attributes

LuminosityBlockAuxiliary const & aux_
 
ModuleCallingContext const * moduleCallingContext_
 
PrincipalGetAdapter provRecorder_
 
ProductPtrVec putProducts_
 
std::shared_ptr< Run const > const run_
 

Static Private Attributes

static const std::string emptyString_
 

Friends

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

Detailed Description

Definition at line 45 of file LuminosityBlock.h.

Member Typedef Documentation

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

typedef std::vector<std::pair<edm::propagate_const<std::unique_ptr<WrapperBase> >, BranchDescription const*> > edm::LuminosityBlock::ProductPtrVec
private

Definition at line 138 of file LuminosityBlock.h.

Constructor & Destructor Documentation

LuminosityBlock::LuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
ModuleDescription const &  md,
ModuleCallingContext const *  moduleCallingContext 
)

Definition at line 12 of file LuminosityBlock.cc.

13  :
14  provRecorder_(lbp, md),
15  aux_(lbp.aux()),
16  run_(new Run(lbp.runPrincipal(), md, moduleCallingContext)),
18  }
std::shared_ptr< Run const > const run_
ModuleCallingContext const * moduleCallingContext() const
LuminosityBlockAuxiliary const & aux_
ModuleCallingContext const * moduleCallingContext_
PrincipalGetAdapter provRecorder_
LuminosityBlock::~LuminosityBlock ( )

Definition at line 20 of file LuminosityBlock.cc.

20  {
21  }

Member Function Documentation

LuminosityBlock::CacheIdentifier_t LuminosityBlock::cacheIdentifier ( ) const

Definition at line 29 of file LuminosityBlock.cc.

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

LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
CacheIdentifier_t cacheIdentifier() const
Definition: Principal.h:176
void LuminosityBlock::commit_ ( std::vector< edm::ProductResolverIndex > const &  iShouldPut)
private

Definition at line 63 of file LuminosityBlock.cc.

References begin, end, edm::get_underlying_safe(), index(), luminosityBlockPrincipal(), eostools::move(), AlCaHLTBitMon_ParallelJobs::p, edm::PrincipalGetAdapter::principal(), provRecorder_, edm::LuminosityBlockPrincipal::put(), putProducts(), and findQualityFiles::size.

Referenced by edm::stream::ProducingModuleAdaptorBase< EDProducerBase >::commit(), edm::InputSource::doBeginLumi(), and edm::InputSource::doEndLumi().

63  {
64  LuminosityBlockPrincipal const& lbp = luminosityBlockPrincipal();
65  ProductPtrVec::iterator pit(putProducts().begin());
66  ProductPtrVec::iterator pie(putProducts().end());
67 
68  while(pit != pie) {
69  lbp.put(*pit->second, std::move(get_underlying_safe(pit->first)));
70  ++pit;
71  }
72 
73  auto sz = iShouldPut.size();
74  if(sz !=0 and sz != putProducts().size()) {
75  //some were missed
76  auto& p = provRecorder_.principal();
77  for(auto index: iShouldPut){
78  auto resolver = p.getProductResolverByIndex(index);
79  if(not resolver->productResolved()) {
80  resolver->putProduct(std::unique_ptr<WrapperBase>());
81  }
82  }
83  }
84 
85  // the cleanup is all or none
86  putProducts().clear();
87  }
Principal const & principal() const
LuminosityBlockIndex index() const
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
def move
Definition: eostools.py:510
#define end
Definition: vmac.h:37
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
ProductPtrVec & putProducts()
PrincipalGetAdapter provRecorder_
#define begin
Definition: vmac.h:30
tuple size
Write out results.
void LuminosityBlock::getAllStableProvenance ( std::vector< StableProvenance const * > &  provenances) const

Definition at line 58 of file LuminosityBlock.cc.

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

58  {
60  }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
void getAllStableProvenance(std::vector< StableProvenance const * > &provenances) const
Definition: Principal.cc:748
template<typename PROD >
bool LuminosityBlock::getByLabel ( std::string const &  label,
Handle< PROD > &  result 
) const

Definition at line 190 of file LuminosityBlock.h.

References emptyString_.

Referenced by LogErrorEventFilter::beginLuminosityBlock(), pat::PATTriggerProducer::beginLuminosityBlock(), LumiCalculator::endLuminosityBlock(), and edm::service::RandomNumberGeneratorService::readFromLuminosityBlock().

190  {
191  return getByLabel(label, emptyString_, result);
192  }
static const std::string emptyString_
bool getByLabel(std::string const &label, Handle< PROD > &result) const
template<typename PROD >
bool LuminosityBlock::getByLabel ( std::string const &  label,
std::string const &  productInstanceName,
Handle< PROD > &  result 
) const

Definition at line 196 of file LuminosityBlock.h.

References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), emptyString_, edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByLabel_(), moduleCallingContext_, eostools::move(), PROD, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().

198  {
200  principal_get_adapter_detail::throwOnPrematureRead("Lumi", TypeID(typeid(PROD)), label, productInstanceName);
201  }
202  result.clear();
203  BasicHandle bh = provRecorder_.getByLabel_(TypeID(typeid(PROD)), label, productInstanceName, emptyString_, moduleCallingContext_);
204  convert_handle(std::move(bh), result); // throws on conversion error
205  if (result.failedToGet()) {
206  return false;
207  }
208  return true;
209  }
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
static const std::string emptyString_
def move
Definition: eostools.py:510
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:19
ModuleCallingContext const * moduleCallingContext_
PrincipalGetAdapter provRecorder_
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
template<typename PROD >
bool LuminosityBlock::getByLabel ( InputTag const &  tag,
Handle< PROD > &  result 
) const

same as above, but using the InputTag class

Definition at line 214 of file LuminosityBlock.h.

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

214  {
216  principal_get_adapter_detail::throwOnPrematureRead("Lumi", TypeID(typeid(PROD)), tag.label(), tag.instance());
217  }
218  result.clear();
219  BasicHandle bh = provRecorder_.getByLabel_(TypeID(typeid(PROD)), tag, moduleCallingContext_);
220  convert_handle(std::move(bh), result); // throws on conversion error
221  if (result.failedToGet()) {
222  return false;
223  }
224  return true;
225  }
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
def move
Definition: eostools.py:510
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:19
ModuleCallingContext const * moduleCallingContext_
PrincipalGetAdapter provRecorder_
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
BasicHandle LuminosityBlock::getByLabelImpl ( std::type_info const &  iWrapperType,
std::type_info const &  iProductType,
InputTag const &  iTag 
) const
privatevirtual

Implements edm::LuminosityBlockBase.

Definition at line 100 of file LuminosityBlock.cc.

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

100  {
101  BasicHandle h = provRecorder_.getByLabel_(TypeID(iProductType), iTag, moduleCallingContext_);
102  return h;
103  }
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_
PrincipalGetAdapter provRecorder_
template<typename PROD >
bool LuminosityBlock::getByToken ( EDGetToken  token,
Handle< PROD > &  result 
) const

Definition at line 229 of file LuminosityBlock.h.

References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().

Referenced by EventHeader::analyze(), TrackCount::analyze(), IsoTrig::analyze(), L1GtAnalyzer::analyzeConditionsInLumiBlock(), HLTPrescaleRecorder::beginLuminosityBlock(), pat::PATTriggerEventProducer::beginLuminosityBlock(), FTSLuminosityFromLumiSummary::doStreamBeginLuminosityBlock_(), BrilClient::dqmEndLuminosityBlock(), GenFilterEfficiencyAnalyzer::endLuminosityBlock(), DQMLumiMonitor::endLuminosityBlock(), MillePedeFileExtractor::endLuminosityBlock(), GenXSecAnalyzer::endLuminosityBlock(), VertexHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), edm::GetterOfProducts< trigger::HLTPrescaleTable >::fillHandles(), EDMtoMEConverter::Tokens< T >::getData(), GetLumi::getRawValue(), and AlcaBeamSpotManager::readLumi().

229  {
231  principal_get_adapter_detail::throwOnPrematureRead("Lumi", TypeID(typeid(PROD)), token);
232  }
233  result.clear();
234  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)),PRODUCT_TYPE, token, moduleCallingContext_);
235  convert_handle(std::move(bh), result); // throws on conversion error
236  if (result.failedToGet()) {
237  return false;
238  }
239  return true;
240  }
BasicHandle getByToken_(TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const
def move
Definition: eostools.py:510
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:19
ModuleCallingContext const * moduleCallingContext_
PrincipalGetAdapter provRecorder_
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
template<typename PROD >
bool LuminosityBlock::getByToken ( EDGetTokenT< PROD token,
Handle< PROD > &  result 
) const

Definition at line 244 of file LuminosityBlock.h.

References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().

244  {
247  }
248  result.clear();
249  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)),PRODUCT_TYPE, token, moduleCallingContext_);
250  convert_handle(std::move(bh), result); // throws on conversion error
251  if (result.failedToGet()) {
252  return false;
253  }
254  return true;
255  }
BasicHandle getByToken_(TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const
def move
Definition: eostools.py:510
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:19
ModuleCallingContext const * moduleCallingContext_
PrincipalGetAdapter provRecorder_
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
template<typename PROD >
void LuminosityBlock::getManyByType ( std::vector< Handle< PROD > > &  results) const

Definition at line 260 of file LuminosityBlock.h.

References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getManyByType(), moduleCallingContext_, PROD, provRecorder_, mps_update::results, and edm::principal_get_adapter_detail::throwOnPrematureRead().

260  {
263  }
265  }
tuple results
Definition: mps_update.py:44
void getManyByType(std::vector< Handle< PROD > > &results, ModuleCallingContext const *mcc) const
ModuleCallingContext const * moduleCallingContext_
PrincipalGetAdapter provRecorder_
#define PROD(A, B)
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
Provenance LuminosityBlock::getProvenance ( BranchID const &  theID) const

Definition at line 53 of file LuminosityBlock.cc.

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

53  {
55  }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
Provenance getProvenance(BranchID const &bid, ModuleCallingContext const *mcc) const
Definition: Principal.cc:712
ModuleCallingContext const * moduleCallingContext_
Run const& edm::LuminosityBlock::getRun ( ) const
inline

Definition at line 102 of file LuminosityBlock.h.

References run_.

Referenced by LumiCalculator::endLuminosityBlock(), and edm::Event::getRun().

102  {
103  return *run_;
104  }
std::shared_ptr< Run const > const run_
LuminosityBlockIndex LuminosityBlock::index ( ) const
void edm::LuminosityBlock::labelsForToken ( EDGetToken const &  iToken,
ProductLabels oLabels 
) const
inline

Definition at line 129 of file LuminosityBlock.h.

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

129 { provRecorder_.labelsForToken(iToken, oLabels); }
PrincipalGetAdapter provRecorder_
void labelsForToken(EDGetToken const &iToken, ProductLabels &oLabels) const
LuminosityBlockAuxiliary const& edm::LuminosityBlock::luminosityBlockAuxiliary ( ) const
inlinevirtual

Implements edm::LuminosityBlockBase.

Definition at line 52 of file LuminosityBlock.h.

References aux_.

Referenced by PixelLumiDQM::beginLuminosityBlock(), edm::PileUp::beginLuminosityBlock(), and PixelLumiDQM::endLuminosityBlock().

52 {return aux_;}
LuminosityBlockAuxiliary const & aux_
LuminosityBlockPrincipal const & LuminosityBlock::luminosityBlockPrincipal ( ) const
private

Definition at line 48 of file LuminosityBlock.cc.

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

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

48  {
49  return dynamic_cast<LuminosityBlockPrincipal const&>(provRecorder_.principal());
50  }
Principal const & principal() const
PrincipalGetAdapter provRecorder_
ModuleCallingContext const* edm::LuminosityBlock::moduleCallingContext ( ) const
inline
ProcessHistory const & LuminosityBlock::processHistory ( ) const

Definition at line 95 of file LuminosityBlock.cc.

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

Referenced by gen::BaseHadronizer::generateLHE().

95  {
97  }
ProcessHistory const & processHistory() const
PrincipalGetAdapter provRecorder_
ProcessHistoryID const & LuminosityBlock::processHistoryID ( ) const

Definition at line 90 of file LuminosityBlock.cc.

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

90  {
92  }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:139
template<typename PROD >
void edm::LuminosityBlock::put ( std::unique_ptr< PROD product)
inline
template<typename PROD >
void LuminosityBlock::put ( std::unique_ptr< PROD product,
std::string const &  productInstanceName 
)

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

Definition at line 165 of file LuminosityBlock.h.

References edm::PrincipalGetAdapter::getBranchDescription(), eostools::move(), PROD, provRecorder_, putProducts(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and relativeConstraints::value.

165  {
166  if(product.get() == nullptr) { // null pointer is illegal
167  TypeID typeID(typeid(PROD));
168  principal_get_adapter_detail::throwOnPutOfNullProduct("LuminosityBlock", typeID, productInstanceName);
169  }
170 
171  // The following will call post_insert if T has such a function,
172  // and do nothing if T has no such function.
174  DoPostInsert<PROD>,
175  DoNotPostInsert<PROD>> maybe_inserter;
176  maybe_inserter(product.get());
177 
178  BranchDescription const& desc =
179  provRecorder_.getBranchDescription(TypeID(*product), productInstanceName);
180 
181  std::unique_ptr<Wrapper<PROD> > wp(new Wrapper<PROD>(std::move(product)));
182  putProducts().emplace_back(std::move(wp), &desc);
183 
184  // product.release(); // The object has been copied into the Wrapper.
185  // The old copy must be deleted, so we cannot release ownership.
186  }
def move
Definition: eostools.py:510
ProductPtrVec & putProducts()
BranchDescription const & getBranchDescription(TypeID const &type, std::string const &productInstanceName) const
PrincipalGetAdapter provRecorder_
#define PROD(A, B)
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
ProductPtrVec& edm::LuminosityBlock::putProducts ( )
inlineprivate

Definition at line 139 of file LuminosityBlock.h.

References putProducts_.

Referenced by commit_(), and put().

139 {return putProducts_;}
ProductPtrVec putProducts_
ProductPtrVec const& edm::LuminosityBlock::putProducts ( ) const
inlineprivate

Definition at line 140 of file LuminosityBlock.h.

References putProducts_.

140 {return putProducts_;}
ProductPtrVec putProducts_
void LuminosityBlock::setConsumer ( EDConsumerBase const *  iConsumer)

Definition at line 33 of file LuminosityBlock.cc.

References provRecorder_, run_, and edm::PrincipalGetAdapter::setConsumer().

Referenced by edm::EDAnalyzer::doBeginLuminosityBlock(), edm::EDProducer::doBeginLuminosityBlock(), edm::EDFilter::doBeginLuminosityBlock(), edm::one::EDFilterBase::doBeginLuminosityBlock(), edm::one::EDProducerBase::doBeginLuminosityBlock(), edm::one::EDAnalyzerBase::doBeginLuminosityBlock(), edm::global::EDAnalyzerBase::doBeginLuminosityBlock(), edm::global::EDFilterBase::doBeginLuminosityBlock(), edm::global::EDProducerBase::doBeginLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doBeginLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginLuminosityBlock(), edm::EDAnalyzer::doEndLuminosityBlock(), edm::EDProducer::doEndLuminosityBlock(), edm::EDFilter::doEndLuminosityBlock(), edm::one::EDFilterBase::doEndLuminosityBlock(), edm::one::EDProducerBase::doEndLuminosityBlock(), edm::one::EDAnalyzerBase::doEndLuminosityBlock(), edm::global::EDAnalyzerBase::doEndLuminosityBlock(), edm::global::EDFilterBase::doEndLuminosityBlock(), edm::global::EDProducerBase::doEndLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doEndLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndLuminosityBlock(), edm::global::EDAnalyzerBase::doStreamBeginLuminosityBlock(), edm::global::EDFilterBase::doStreamBeginLuminosityBlock(), edm::global::EDProducerBase::doStreamBeginLuminosityBlock(), edm::global::EDAnalyzerBase::doStreamEndLuminosityBlock(), edm::global::EDFilterBase::doStreamEndLuminosityBlock(), edm::global::EDProducerBase::doStreamEndLuminosityBlock(), edm::stream::EDAnalyzerAdaptorBase::doStreamEndLuminosityBlock(), and edm::stream::ProducingModuleAdaptorBase< T >::doStreamEndLuminosityBlock().

33  {
34  provRecorder_.setConsumer(iConsumer);
35  if(run_) {
36  const_cast<Run*>(run_.get())->setConsumer(iConsumer);
37  }
38  }
void setConsumer(EDConsumerBase const *iConsumer)
void setConsumer(EDConsumerBase const *iConsumer)
std::shared_ptr< Run const > const run_
PrincipalGetAdapter provRecorder_
void LuminosityBlock::setSharedResourcesAcquirer ( SharedResourcesAcquirer iResourceAcquirer)

Definition at line 41 of file LuminosityBlock.cc.

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

41  {
42  provRecorder_.setSharedResourcesAcquirer(iResourceAcquirer);
43  const_cast<Run*>(run_.get())->setSharedResourcesAcquirer(iResourceAcquirer);
44  }
void setSharedResourcesAcquirer(SharedResourcesAcquirer *iResourceAcquirer)
std::shared_ptr< Run const > const run_
void setSharedResourcesAcquirer(SharedResourcesAcquirer *iSra)
PrincipalGetAdapter provRecorder_

Friends And Related Function Documentation

friend class InputSource
friend

Definition at line 146 of file LuminosityBlock.h.

friend class ProducerBase
friend

Definition at line 148 of file LuminosityBlock.h.

friend class RawInputSource
friend

Definition at line 147 of file LuminosityBlock.h.

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

Definition at line 149 of file LuminosityBlock.h.

Member Data Documentation

LuminosityBlockAuxiliary const& edm::LuminosityBlock::aux_
private

Definition at line 156 of file LuminosityBlock.h.

Referenced by luminosityBlockAuxiliary().

std::string const LuminosityBlock::emptyString_
staticprivate

Definition at line 160 of file LuminosityBlock.h.

Referenced by getByLabel().

ModuleCallingContext const* edm::LuminosityBlock::moduleCallingContext_
private
PrincipalGetAdapter edm::LuminosityBlock::provRecorder_
private
ProductPtrVec edm::LuminosityBlock::putProducts_
private

Definition at line 155 of file LuminosityBlock.h.

Referenced by putProducts().

std::shared_ptr<Run const> const edm::LuminosityBlock::run_
private

Definition at line 157 of file LuminosityBlock.h.

Referenced by getRun(), setConsumer(), and setSharedResourcesAcquirer().