CMS 3D CMS Logo

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

#include <RunFromSource.h>

Public Member Functions

RunAuxiliary const & aux () const
 
template<typename T >
TestHandle< Tget (std::string const &iModule, std::string const &iInstanceLabel, std::string const &iProcess) const
 
RunNumber_t run () const
 
 RunFromSource (std::shared_ptr< RunPrincipal const > iPrincipal, edm::ServiceToken iToken)
 

Private Attributes

std::shared_ptr< RunPrincipal const > principal_
 
edm::ServiceToken token_
 

Detailed Description

Definition at line 37 of file RunFromSource.h.

Constructor & Destructor Documentation

◆ RunFromSource()

edm::test::RunFromSource::RunFromSource ( std::shared_ptr< RunPrincipal const >  iPrincipal,
edm::ServiceToken  iToken 
)
inline

Definition at line 39 of file RunFromSource.h.

40  : principal_(iPrincipal), token_(iToken) {}
std::shared_ptr< RunPrincipal const > principal_
Definition: RunFromSource.h:65
edm::ServiceToken token_
Definition: RunFromSource.h:66

Member Function Documentation

◆ aux()

RunAuxiliary const& edm::test::RunFromSource::aux ( ) const
inline

Definition at line 61 of file RunFromSource.h.

References principal_.

61 { return principal_->aux(); }
std::shared_ptr< RunPrincipal const > principal_
Definition: RunFromSource.h:65

◆ get()

template<typename T >
TestHandle<T> edm::test::RunFromSource::get ( std::string const &  iModule,
std::string const &  iInstanceLabel,
std::string const &  iProcess 
) const
inline

Definition at line 44 of file RunFromSource.h.

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

46  {
48 
49  auto h = principal_->getByLabel(
50  edm::PRODUCT_TYPE, edm::TypeID(typeid(T)), iModule, iInstanceLabel, iProcess, nullptr, nullptr, nullptr);
51  if (h.failedToGet()) {
52  return TestHandle<T>(std::move(h.whyFailedFactory()));
53  }
54  void const* basicWrapper = h.wrapper();
55  assert(basicWrapper);
56  Wrapper<T> const* wrapper = static_cast<Wrapper<T> const*>(basicWrapper);
57  return TestHandle<T>(wrapper->product());
58  }
std::shared_ptr< RunPrincipal const > principal_
Definition: RunFromSource.h:65
assert(be >=bs)
edm::ServiceToken token_
Definition: RunFromSource.h:66
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

◆ run()

RunNumber_t edm::test::RunFromSource::run ( ) const
inline

Definition at line 60 of file RunFromSource.h.

References principal_.

60 { return principal_->run(); }
std::shared_ptr< RunPrincipal const > principal_
Definition: RunFromSource.h:65

Member Data Documentation

◆ principal_

std::shared_ptr<RunPrincipal const> edm::test::RunFromSource::principal_
private

Definition at line 65 of file RunFromSource.h.

Referenced by aux(), get(), and run().

◆ token_

edm::ServiceToken edm::test::RunFromSource::token_
private

Definition at line 66 of file RunFromSource.h.

Referenced by get().