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 getAllProvenance (std::vector< Provenance 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 &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::auto_ptr< PROD > product)
 Put a new product. More...
 
template<typename PROD >
void put (std::unique_ptr< PROD > product)
 
template<typename PROD >
void put (std::auto_ptr< PROD > product, std::string const &productInstanceName)
 Put a new product with a 'product instance name'. More...
 
template<typename PROD >
void put (std::unique_ptr< PROD > product, std::string const &productInstanceName)
 
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::set< BranchIDBranchIDSet
 
typedef std::vector< std::pair
< std::unique_ptr< WrapperBase >
, BranchDescription const * > > 
ProductPtrVec
 

Private Member Functions

void addToGotBranchIDs (Provenance const &prov) const
 
void commit_ ()
 
virtual BasicHandle getByLabelImpl (std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const
 
LuminosityBlockPrincipal const & luminosityBlockPrincipal () const
 
LuminosityBlockPrincipalluminosityBlockPrincipal ()
 
ProductPtrVecputProducts ()
 
ProductPtrVec const & putProducts () const
 

Private Attributes

LuminosityBlockAuxiliary const & aux_
 
BranchIDSet gotBranchIDs_
 
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

typedef std::set<BranchID> edm::LuminosityBlock::BranchIDSet
private

Definition at line 170 of file LuminosityBlock.h.

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<std::unique_ptr<WrapperBase>, BranchDescription const*> > edm::LuminosityBlock::ProductPtrVec
private

Definition at line 149 of file LuminosityBlock.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file LuminosityBlock.cc.

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

Definition at line 19 of file LuminosityBlock.cc.

19  {
20  }

Member Function Documentation

void LuminosityBlock::addToGotBranchIDs ( Provenance const &  prov) const
private

Definition at line 92 of file LuminosityBlock.cc.

References edm::Provenance::branchID(), and gotBranchIDs_.

Referenced by getByLabelImpl().

92  {
93  gotBranchIDs_.insert(prov.branchID());
94  }
LuminosityBlock::CacheIdentifier_t LuminosityBlock::cacheIdentifier ( ) const

Definition at line 28 of file LuminosityBlock.cc.

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

LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
CacheIdentifier_t cacheIdentifier() const
Definition: Principal.h:174
void LuminosityBlock::commit_ ( )
private

Definition at line 67 of file LuminosityBlock.cc.

References begin, end, luminosityBlockPrincipal(), edm::LuminosityBlockPrincipal::put(), and putProducts().

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

67  {
68  LuminosityBlockPrincipal& lbp = luminosityBlockPrincipal();
69  ProductPtrVec::iterator pit(putProducts().begin());
70  ProductPtrVec::iterator pie(putProducts().end());
71 
72  while(pit != pie) {
73  lbp.put(*pit->second, std::move(pit->first));
74  ++pit;
75  }
76 
77  // the cleanup is all or none
78  putProducts().clear();
79  }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
#define end
Definition: vmac.h:37
ProductPtrVec & putProducts()
#define begin
Definition: vmac.h:30
void LuminosityBlock::getAllProvenance ( std::vector< Provenance const * > &  provenances) const

Definition at line 62 of file LuminosityBlock.cc.

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

62  {
64  }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
void getAllProvenance(std::vector< Provenance const * > &provenances) const
Definition: Principal.cc:792
template<typename PROD >
bool LuminosityBlock::getByLabel ( std::string const &  label,
Handle< PROD > &  result 
) const

Definition at line 210 of file LuminosityBlock.h.

References emptyString_.

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

210  {
211  return getByLabel(label, emptyString_, result);
212  }
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 216 of file LuminosityBlock.h.

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

218  {
220  principal_get_adapter_detail::throwOnPrematureRead("Lumi", TypeID(typeid(PROD)), label, productInstanceName);
221  }
222  result.clear();
223  BasicHandle bh = provRecorder_.getByLabel_(TypeID(typeid(PROD)), label, productInstanceName, emptyString_, moduleCallingContext_);
224  convert_handle(std::move(bh), result); // throws on conversion error
225  if (result.failedToGet()) {
226  return false;
227  }
228  return true;
229  }
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
static const std::string emptyString_
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
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 234 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_, PROD, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().

234  {
236  principal_get_adapter_detail::throwOnPrematureRead("Lumi", TypeID(typeid(PROD)), tag.label(), tag.instance());
237  }
238  result.clear();
239  BasicHandle bh = provRecorder_.getByLabel_(TypeID(typeid(PROD)), tag, moduleCallingContext_);
240  convert_handle(std::move(bh), result); // throws on conversion error
241  if (result.failedToGet()) {
242  return false;
243  }
244  return true;
245  }
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
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 97 of file LuminosityBlock.cc.

References addToGotBranchIDs(), edm::PrincipalGetAdapter::getByLabel_(), h, edm::BasicHandle::isValid(), moduleCallingContext_, edm::BasicHandle::provenance(), and provRecorder_.

97  {
98  BasicHandle h = provRecorder_.getByLabel_(TypeID(iProductType), iTag, moduleCallingContext_);
99  if (h.isValid()) {
100  addToGotBranchIDs(*(h.provenance()));
101  }
102  return h;
103  }
BasicHandle getByLabel_(TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void addToGotBranchIDs(Provenance const &prov) const
ModuleCallingContext const * moduleCallingContext_
PrincipalGetAdapter provRecorder_
template<typename PROD >
bool LuminosityBlock::getByToken ( EDGetToken  token,
Handle< PROD > &  result 
) const

Definition at line 249 of file LuminosityBlock.h.

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

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

249  {
251  principal_get_adapter_detail::throwOnPrematureRead("Lumi", TypeID(typeid(PROD)), token);
252  }
253  result.clear();
254  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)),PRODUCT_TYPE, token, moduleCallingContext_);
255  convert_handle(std::move(bh), result); // throws on conversion error
256  if (result.failedToGet()) {
257  return false;
258  }
259  return true;
260  }
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
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 264 of file LuminosityBlock.h.

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

264  {
266  principal_get_adapter_detail::throwOnPrematureRead("Lumi", TypeID(typeid(PROD)), token);
267  }
268  result.clear();
269  BasicHandle bh = provRecorder_.getByToken_(TypeID(typeid(PROD)),PRODUCT_TYPE, token, moduleCallingContext_);
270  convert_handle(std::move(bh), result); // throws on conversion error
271  if (result.failedToGet()) {
272  return false;
273  }
274  return true;
275  }
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
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 280 of file LuminosityBlock.h.

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

280  {
283  }
285  }
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 57 of file LuminosityBlock.cc.

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

57  {
59  }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
Provenance getProvenance(BranchID const &bid, ModuleCallingContext const *mcc) const
Definition: Principal.cc:772
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 137 of file LuminosityBlock.h.

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

137 { 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 edm::PileUp::beginLuminosityBlock(), PixelLumiDQM::beginLuminosityBlock(), and PixelLumiDQM::endLuminosityBlock().

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

Definition at line 52 of file LuminosityBlock.cc.

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

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

52  {
53  return dynamic_cast<LuminosityBlockPrincipal const&>(provRecorder_.principal());
54  }
string const
Definition: compareJSON.py:14
PrincipalGetAdapter provRecorder_
LuminosityBlockPrincipal & LuminosityBlock::luminosityBlockPrincipal ( )
private

Definition at line 32 of file LuminosityBlock.cc.

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

32  {
33  return dynamic_cast<LuminosityBlockPrincipal&>(provRecorder_.principal());
34  }
PrincipalGetAdapter provRecorder_
ModuleCallingContext const* edm::LuminosityBlock::moduleCallingContext ( ) const
inline
ProcessHistory const & LuminosityBlock::processHistory ( ) const

Definition at line 87 of file LuminosityBlock.cc.

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

87  {
89  }
ProcessHistory const & processHistory() const
PrincipalGetAdapter provRecorder_
ProcessHistoryID const & LuminosityBlock::processHistoryID ( ) const

Definition at line 82 of file LuminosityBlock.cc.

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

82  {
84  }
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:146
template<typename PROD >
void edm::LuminosityBlock::put ( std::auto_ptr< PROD product)
inline
template<typename PROD >
void edm::LuminosityBlock::put ( std::unique_ptr< PROD product)
inline

Definition at line 113 of file LuminosityBlock.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

113 {put<PROD>(product, std::string());}
template<typename PROD >
void LuminosityBlock::put ( std::auto_ptr< PROD product,
std::string const &  productInstanceName 
)

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

Definition at line 179 of file LuminosityBlock.h.

References put().

179  {
180  put(std::unique_ptr<PROD>(product.release()),productInstanceName);
181  }
void put(std::auto_ptr< PROD > product)
Put a new product.
template<typename PROD >
void LuminosityBlock::put ( std::unique_ptr< PROD product,
std::string const &  productInstanceName 
)

Definition at line 185 of file LuminosityBlock.h.

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

185  {
186  if(product.get() == 0) { // null pointer is illegal
187  TypeID typeID(typeid(PROD));
188  principal_get_adapter_detail::throwOnPutOfNullProduct("LuminosityBlock", typeID, productInstanceName);
189  }
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> >::type maybe_inserter;
196  maybe_inserter(product.get());
197 
198  BranchDescription const& desc =
199  provRecorder_.getBranchDescription(TypeID(*product), productInstanceName);
200 
201  std::unique_ptr<Wrapper<PROD> > wp(new Wrapper<PROD>(std::move(product)));
202  putProducts().emplace_back(std::move(wp), &desc);
203 
204  // product.release(); // The object has been copied into the Wrapper.
205  // The old copy must be deleted, so we cannot release ownership.
206  }
type
Definition: HCALResponse.h:21
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 150 of file LuminosityBlock.h.

References putProducts_.

Referenced by commit_(), and put().

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

Definition at line 151 of file LuminosityBlock.h.

References putProducts_.

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

Definition at line 37 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().

37  {
38  provRecorder_.setConsumer(iConsumer);
39  if(run_) {
40  const_cast<Run*>(run_.get())->setConsumer(iConsumer);
41  }
42  }
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 45 of file LuminosityBlock.cc.

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

45  {
46  provRecorder_.setSharedResourcesAcquirer(iResourceAcquirer);
47  const_cast<Run*>(run_.get())->setSharedResourcesAcquirer(iResourceAcquirer);
48  }
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 157 of file LuminosityBlock.h.

friend class ProducerBase
friend

Definition at line 159 of file LuminosityBlock.h.

friend class RawInputSource
friend

Definition at line 158 of file LuminosityBlock.h.

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

Definition at line 160 of file LuminosityBlock.h.

Member Data Documentation

LuminosityBlockAuxiliary const& edm::LuminosityBlock::aux_
private

Definition at line 168 of file LuminosityBlock.h.

Referenced by luminosityBlockAuxiliary().

std::string const LuminosityBlock::emptyString_
staticprivate

Definition at line 174 of file LuminosityBlock.h.

Referenced by getByLabel().

BranchIDSet edm::LuminosityBlock::gotBranchIDs_
mutableprivate

Definition at line 171 of file LuminosityBlock.h.

Referenced by addToGotBranchIDs().

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

Definition at line 167 of file LuminosityBlock.h.

Referenced by putProducts().

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

Definition at line 169 of file LuminosityBlock.h.

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