CMS 3D CMS Logo

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

#include <LuminosityBlock.h>

Public Member Functions

template<typename T >
TestHandle< Tget () const
 
template<typename T >
TestHandle< Tget (std::string const &iInstanceLabel) const
 
 LuminosityBlock (std::shared_ptr< LuminosityBlockPrincipal const > iPrincipal, std::string iModuleLabel, std::string iProcessName)
 

Private Attributes

std::string label_
 
std::shared_ptr
< LuminosityBlockPrincipal
const > 
principal_
 
std::string processName_
 

Detailed Description

Definition at line 35 of file LuminosityBlock.h.

Constructor & Destructor Documentation

LuminosityBlock::LuminosityBlock ( std::shared_ptr< LuminosityBlockPrincipal const >  iPrincipal,
std::string  iModuleLabel,
std::string  iProcessName 
)

Definition at line 32 of file LuminosityBlock.cc.

References eostools::move().

35  : principal_{std::move(iPrincipal)}, label_{std::move(iModuleLabel)}, processName_{std::move(iProcessName)} {}
def move
Definition: eostools.py:511
std::shared_ptr< LuminosityBlockPrincipal const > principal_

Member Function Documentation

template<typename T >
TestHandle<T> edm::test::LuminosityBlock::get ( ) const
inline
template<typename T >
TestHandle<T> edm::test::LuminosityBlock::get ( std::string const &  iInstanceLabel) const
inline

Definition at line 49 of file LuminosityBlock.h.

References cms::cuda::assert(), runTheMatrix::const, h, label_, eostools::move(), principal_, processName_, edm::Wrapper< T >::product(), edm::PRODUCT_TYPE, and wrapper.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

49  {
50  auto h = principal_->getByLabel(
51  edm::PRODUCT_TYPE, edm::TypeID(typeid(T)), label_, iInstanceLabel, processName_, nullptr, nullptr, nullptr);
52  if (h.failedToGet()) {
53  return TestHandle<T>(std::move(h.whyFailedFactory()));
54  }
55  void const* basicWrapper = h.wrapper();
56  assert(basicWrapper);
57  Wrapper<T> const* wrapper = static_cast<Wrapper<T> const*>(basicWrapper);
58  return TestHandle<T>(wrapper->product());
59  }
assert(be >=bs)
def move
Definition: eostools.py:511
std::shared_ptr< LuminosityBlockPrincipal const > principal_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
long double T
static HepMC::HEPEVT_Wrapper wrapper

Member Data Documentation

std::string edm::test::LuminosityBlock::label_
private
std::shared_ptr<LuminosityBlockPrincipal const> edm::test::LuminosityBlock::principal_
private

Definition at line 66 of file LuminosityBlock.h.

Referenced by get().

std::string edm::test::LuminosityBlock::processName_
private

Definition at line 68 of file LuminosityBlock.h.

Referenced by get().