CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::test::ProcessBlock Class Reference

#include <ProcessBlock.h>

Public Member Functions

template<typename T >
TestHandle< Tget () const
 
template<typename T >
TestHandle< Tget (std::string const &iInstanceLabel) const
 
 ProcessBlock (ProcessBlockPrincipal const *iPrincipal, std::string iModuleLabel, std::string iProcessName)
 

Private Attributes

std::string label_
 
ProcessBlockPrincipal const * principal_
 
std::string processName_
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 31 of file ProcessBlock.h.

Constructor & Destructor Documentation

◆ ProcessBlock()

edm::test::ProcessBlock::ProcessBlock ( ProcessBlockPrincipal const *  iPrincipal,
std::string  iModuleLabel,
std::string  iProcessName 
)

Definition at line 18 of file ProcessBlock.cc.

21  : principal_{iPrincipal}, label_{std::move(iModuleLabel)}, processName_{std::move(iProcessName)} {}
ProcessBlockPrincipal const * principal_
Definition: ProcessBlock.h:55
std::string processName_
Definition: ProcessBlock.h:57
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ get() [1/2]

template<typename T >
TestHandle<T> edm::test::ProcessBlock::get ( ) const
inline

◆ get() [2/2]

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

Definition at line 42 of file ProcessBlock.h.

References cms::cuda::assert(), runTheMatrix::const, edm::Principal::getByLabel(), h, label_, eostools::move(), principal_, processName_, 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().

42  {
43  auto h = principal_->getByLabel(
44  edm::PRODUCT_TYPE, edm::TypeID(typeid(T)), label_, iInstanceLabel, processName_, nullptr, nullptr, nullptr);
45  if (h.failedToGet()) {
46  return TestHandle<T>(std::move(h.whyFailedFactory()));
47  }
48  void const* basicWrapper = h.wrapper();
49  assert(basicWrapper);
50  Wrapper<T> const* wrapper = static_cast<Wrapper<T> const*>(basicWrapper);
51  return TestHandle<T>(wrapper->product());
52  }
assert(be >=bs)
ProcessBlockPrincipal const * principal_
Definition: ProcessBlock.h:55
std::string processName_
Definition: ProcessBlock.h:57
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
Definition: Principal.cc:576
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
def move(src, dest)
Definition: eostools.py:511
static HepMC::HEPEVT_Wrapper wrapper

Member Data Documentation

◆ label_

std::string edm::test::ProcessBlock::label_
private

◆ principal_

ProcessBlockPrincipal const* edm::test::ProcessBlock::principal_
private

Definition at line 55 of file ProcessBlock.h.

Referenced by get().

◆ processName_

std::string edm::test::ProcessBlock::processName_
private

Definition at line 57 of file ProcessBlock.h.

Referenced by get().