CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
virtual bool getByLabel (std::type_info const &, char const *, char const *, char const *, edm::WrapperHolder &) const =0
 
 LuminosityBlockBase ()
 
virtual const LuminosityBlockBaseoperator++ ()=0
 
virtual Long64_t secondaryFileIndex () const
 
virtual const LuminosityBlockBasetoBegin ()=0
 
virtual ~LuminosityBlockBase ()
 
- Public Member Functions inherited from edm::LuminosityBlockBase
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 same as above, but using the InputTag class More...
 
template<class T >
bool getByLabel (const InputTag &tag, Handle< T > &result) const
 
LuminosityBlockID id () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
virtual
edm::LuminosityBlockAuxiliary
const & 
luminosityBlockAuxiliary () const =0
 
 LuminosityBlockBase ()
 
RunNumber_t run () const
 

Private Member Functions

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

Detailed Description

Definition at line 32 of file LuminosityBlockBase.h.

Constructor & Destructor Documentation

LuminosityBlockBase::LuminosityBlockBase ( )

Definition at line 34 of file LuminosityBlockBase.cc.

35  {
36  }
LuminosityBlockBase::~LuminosityBlockBase ( )
virtual

Reimplemented from edm::LuminosityBlockBase.

Definition at line 38 of file LuminosityBlockBase.cc.

39  {
40  }

Member Function Documentation

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

Implemented in fwlite::LuminosityBlock.

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

Definition at line 60 of file LuminosityBlockBase.h.

Referenced by python.Events::fileIndicies().

60 { return -1; }
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().

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

Implemented in fwlite::LuminosityBlock.

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

Implements edm::LuminosityBlockBase.

Definition at line 43 of file LuminosityBlockBase.cc.

References compareJSON::const, getByLabel(), edm::InputTag::instance(), edm::WrapperHolder::isPresent(), edm::WrapperHolder::isValid(), edm::InputTag::label(), edm::InputTag::process(), edm::errors::ProductNotFound, s_prov, and relativeConstraints::value.

43  {
45  getByLabel(iWrapperInfo,
46  iTag.label().c_str(),
47  iTag.instance().empty()?static_cast<char const*>(0):iTag.instance().c_str(),
48  iTag.process().empty()?static_cast<char const*> (0):iTag.process().c_str(),
49  edp);
50  if(!edp.isValid() || !edp.isPresent()) {
51  edm::TypeID productType(iWrapperInfo);
52  boost::shared_ptr<cms::Exception> whyFailed(new edm::Exception(edm::errors::ProductNotFound));
53  *whyFailed
54  << "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 
60  edm::BasicHandle failed(whyFailed);
61  return failed;
62  }
64  return value;
65  }
static const edm::Provenance s_prov(boost::shared_ptr< edm::ConstBranchDescription >(&s_branch, edm::do_nothing_deleter()), s_id)
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const =0
string const
Definition: compareJSON.py:14
std::string const & label() const
Definition: InputTag.h:25
std::string const & process() const
Definition: InputTag.h:29
bool isValid() const
Definition: WrapperHolder.h:27
bool isPresent() const
Definition: WrapperHolder.h:64
std::string const & instance() const
Definition: InputTag.h:26
virtual const LuminosityBlockBase& fwlite::LuminosityBlockBase::operator++ ( )
pure virtual

Implemented in fwlite::LuminosityBlock.

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

Definition at line 61 of file LuminosityBlockBase.h.

Referenced by python.Events::fileIndicies().

61 { return -1; }
virtual const LuminosityBlockBase& fwlite::LuminosityBlockBase::toBegin ( )
pure virtual

Implemented in fwlite::LuminosityBlock.