CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
fwlite::LuminosityBlockBase Class Referenceabstract

#include <LuminosityBlockBase.h>

Inheritance diagram for fwlite::LuminosityBlockBase:
edm::LuminosityBlockBase fwlite::LuminosityBlock

Public Member Functions

virtual bool atEnd () const =0
 
virtual Long64_t fileIndex () const
 
virtual bool getByLabel (std::type_info const &, char const *, char const *, char const *, void *) const =0
 
 LuminosityBlockBase ()
 
virtual const LuminosityBlockBaseoperator++ ()=0
 
virtual Long64_t secondaryFileIndex () const
 
virtual const LuminosityBlockBasetoBegin ()=0
 
 ~LuminosityBlockBase () override
 
- Public Member Functions inherited from edm::LuminosityBlockBase
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
template<class T >
bool getByLabel (const InputTag &tag, Handle< T > &result) const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 same as above, but using the InputTag class More...
 
LuminosityBlockID id () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
virtual edm::LuminosityBlockAuxiliary const & luminosityBlockAuxiliary () const =0
 
 LuminosityBlockBase ()
 
RunNumber_t run () const
 

Private Member Functions

edm::BasicHandle getByLabelImpl (std::type_info const &, std::type_info const &, const edm::InputTag &) const override
 

Detailed Description

Definition at line 30 of file LuminosityBlockBase.h.

Constructor & Destructor Documentation

◆ LuminosityBlockBase()

LuminosityBlockBase::LuminosityBlockBase ( )

Definition at line 35 of file LuminosityBlockBase.cc.

35 {}

◆ ~LuminosityBlockBase()

LuminosityBlockBase::~LuminosityBlockBase ( )
overridevirtual

Reimplemented from edm::LuminosityBlockBase.

Definition at line 37 of file LuminosityBlockBase.cc.

37 {}

Member Function Documentation

◆ atEnd()

virtual bool fwlite::LuminosityBlockBase::atEnd ( ) const
pure virtual

Implemented in fwlite::LuminosityBlock.

◆ fileIndex()

virtual Long64_t fwlite::LuminosityBlockBase::fileIndex ( ) const
inlinevirtual

Definition at line 46 of file LuminosityBlockBase.h.

46 { return -1; }

Referenced by python.Events::fileIndicies().

◆ getByLabel()

virtual bool fwlite::LuminosityBlockBase::getByLabel ( std::type_info const &  ,
char const *  ,
char const *  ,
char const *  ,
void *   
) const
pure virtual

Implemented in fwlite::LuminosityBlock.

Referenced by getByLabelImpl().

◆ getByLabelImpl()

edm::BasicHandle LuminosityBlockBase::getByLabelImpl ( std::type_info const &  iWrapperInfo,
std::type_info const &  ,
const edm::InputTag iTag 
) const
overrideprivatevirtual

Implements edm::LuminosityBlockBase.

Definition at line 39 of file LuminosityBlockBase.cc.

41  {
42  edm::WrapperBase* prod = nullptr;
43  void* prodPtr = &prod;
44  getByLabel(iWrapperInfo,
45  iTag.label().c_str(),
46  iTag.instance().empty() ? static_cast<char const*>(nullptr) : iTag.instance().c_str(),
47  iTag.process().empty() ? static_cast<char const*>(nullptr) : iTag.process().c_str(),
48  prodPtr);
49  if (prod == nullptr || !prod->isPresent()) {
50  edm::TypeID productType(iWrapperInfo);
51 
52  edm::BasicHandle failed(edm::makeHandleExceptionFactory([=]() -> std::shared_ptr<cms::Exception> {
53  std::shared_ptr<cms::Exception> whyFailed(std::make_shared<edm::Exception>(edm::errors::ProductNotFound));
54  *whyFailed << "getByLabel: Found zero products matching all criteria\n"
55  << "Looking for type: " << productType << "\n"
56  << "Looking for module label: " << iTag.label() << "\n"
57  << "Looking for productInstanceName: " << iTag.instance() << "\n"
58  << (iTag.process().empty() ? "" : "Looking for process: ") << iTag.process() << "\n";
59  return whyFailed;
60  }));
61  return failed;
62  }
64  return value;
65  }

References runEdmFileComparison::failed, getByLabel(), edm::InputTag::instance(), edm::InputTag::label(), edm::makeHandleExceptionFactory(), edm::InputTag::process(), dumpMFGeometry_cfg::prod, edm::errors::ProductNotFound, s_prov, and relativeConstraints::value.

◆ operator++()

virtual const LuminosityBlockBase& fwlite::LuminosityBlockBase::operator++ ( )
pure virtual

Implemented in fwlite::LuminosityBlock.

◆ secondaryFileIndex()

virtual Long64_t fwlite::LuminosityBlockBase::secondaryFileIndex ( ) const
inlinevirtual

Definition at line 47 of file LuminosityBlockBase.h.

47 { return -1; }

Referenced by python.Events::fileIndicies().

◆ toBegin()

virtual const LuminosityBlockBase& fwlite::LuminosityBlockBase::toBegin ( )
pure virtual

Implemented in fwlite::LuminosityBlock.

edm::InputTag::instance
std::string const & instance() const
Definition: InputTag.h:37
edm::BasicHandle
Definition: BasicHandle.h:43
s_prov
static const edm::Provenance s_prov(std::shared_ptr< edm::BranchDescription const >(&s_branch, edm::do_nothing_deleter()), s_id)
runEdmFileComparison.failed
failed
Definition: runEdmFileComparison.py:225
fwlite::LuminosityBlockBase::getByLabel
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const =0
edm::InputTag::process
std::string const & process() const
Definition: InputTag.h:40
watchdog.const
const
Definition: watchdog.py:83
edm::makeHandleExceptionFactory
std::shared_ptr< HandleExceptionFactory > makeHandleExceptionFactory(T &&iFunctor)
Definition: FunctorHandleExceptionFactory.h:45
edm::InputTag::label
std::string const & label() const
Definition: InputTag.h:36
edm::errors::ProductNotFound
Definition: EDMException.h:33
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
edm::WrapperBase
Definition: WrapperBase.h:23
instance
static PFTauRenderPlugin instance
Definition: PFTauRenderPlugin.cc:70
edm::TypeID
Definition: TypeID.h:22
relativeConstraints.value
value
Definition: relativeConstraints.py:53
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46