CMS 3D CMS Logo

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

#include <LuminosityBlockFromSource.h>

Public Member Functions

LuminosityBlockAuxiliary const & aux () const
 
template<typename T >
TestHandle< Tget (std::string const &iModule, std::string const &iInstanceLabel, std::string const &iProcess) const
 
LuminosityBlockNumber_t luminosityBlock () const
 
 LuminosityBlockFromSource (std::shared_ptr< LuminosityBlockPrincipal const > iPrincipal, edm::ServiceToken iToken)
 
RunNumber_t run () const
 

Private Attributes

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

Detailed Description

Definition at line 37 of file LuminosityBlockFromSource.h.

Constructor & Destructor Documentation

◆ LuminosityBlockFromSource()

edm::test::LuminosityBlockFromSource::LuminosityBlockFromSource ( std::shared_ptr< LuminosityBlockPrincipal const >  iPrincipal,
edm::ServiceToken  iToken 
)
inline

Definition at line 39 of file LuminosityBlockFromSource.h.

40  : principal_(iPrincipal), token_(iToken) {}
std::shared_ptr< LuminosityBlockPrincipal const > principal_

Member Function Documentation

◆ aux()

LuminosityBlockAuxiliary const& edm::test::LuminosityBlockFromSource::aux ( ) const
inline

Definition at line 62 of file LuminosityBlockFromSource.h.

References principal_.

62 { return principal_->aux(); }
std::shared_ptr< LuminosityBlockPrincipal const > principal_

◆ get()

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

Definition at line 44 of file LuminosityBlockFromSource.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  }
assert(be >=bs)
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
std::shared_ptr< LuminosityBlockPrincipal const > principal_
static HepMC::HEPEVT_Wrapper wrapper

◆ luminosityBlock()

LuminosityBlockNumber_t edm::test::LuminosityBlockFromSource::luminosityBlock ( ) const
inline

Definition at line 61 of file LuminosityBlockFromSource.h.

References principal_.

61 { return principal_->luminosityBlock(); }
std::shared_ptr< LuminosityBlockPrincipal const > principal_

◆ run()

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

Definition at line 60 of file LuminosityBlockFromSource.h.

References principal_.

60 { return principal_->run(); }
std::shared_ptr< LuminosityBlockPrincipal const > principal_

Member Data Documentation

◆ principal_

std::shared_ptr<LuminosityBlockPrincipal const> edm::test::LuminosityBlockFromSource::principal_
private

Definition at line 70 of file LuminosityBlockFromSource.h.

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

◆ token_

edm::ServiceToken edm::test::LuminosityBlockFromSource::token_
private

Definition at line 71 of file LuminosityBlockFromSource.h.

Referenced by get().