CMS 3D CMS Logo

Public Member Functions | Private Member Functions

fwlite::LuminosityBlockBase Class Reference

#include <LuminosityBlockBase.h>

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

List of all members.

Public Member Functions

virtual bool atEnd () const =0
virtual Long64_t fileIndex () const
virtual bool getByLabel (const std::type_info &, const char *, const char *, const char *, void *) const =0
 LuminosityBlockBase ()
virtual const LuminosityBlockBaseoperator++ ()=0
virtual Long64_t secondaryFileIndex () const
virtual const LuminosityBlockBasetoBegin ()=0
virtual ~LuminosityBlockBase ()

Private Member Functions

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

Detailed Description

Definition at line 32 of file LuminosityBlockBase.h.


Constructor & Destructor Documentation

LuminosityBlockBase::LuminosityBlockBase ( )

Reimplemented from edm::LuminosityBlockBase.

Definition at line 43 of file LuminosityBlockBase.cc.

   {
   }
LuminosityBlockBase::~LuminosityBlockBase ( ) [virtual]

Reimplemented from edm::LuminosityBlockBase.

Definition at line 47 of file LuminosityBlockBase.cc.

   {
   }

Member Function Documentation

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

Implemented in fwlite::LuminosityBlock.

virtual Long64_t fwlite::LuminosityBlockBase::fileIndex ( ) const [inline, virtual]

Definition at line 52 of file LuminosityBlockBase.h.

{ return -1; }
virtual bool fwlite::LuminosityBlockBase::getByLabel ( const std::type_info &  ,
const char *  ,
const char *  ,
const char *  ,
void *   
) const [pure virtual]

Implemented in fwlite::LuminosityBlock.

Referenced by getByLabelImpl().

edm::BasicHandle LuminosityBlockBase::getByLabelImpl ( const std::type_info &  iWrapperInfo,
const std::type_info &  ,
const edm::InputTag iTag 
) const [private, virtual]

Implements edm::LuminosityBlockBase.

Definition at line 52 of file LuminosityBlockBase.cc.

References getByLabel(), edm::InputTag::instance(), edm::InputTag::label(), edm::InputTag::process(), parseEventContent::prod, edm::errors::ProductNotFound, s_prov(), and relativeConstraints::value.

   {
      edm::EDProduct* prod=0;
      void* prodPtr = &prod;
      getByLabel(iWrapperInfo,
                 iTag.label().c_str(),
                 iTag.instance().empty()?static_cast<const char*>(0):iTag.instance().c_str(),
                 iTag.process().empty()?static_cast<const char*> (0):iTag.process().c_str(),
                 prodPtr);
      if(0==prod) {
         edm::TypeID productType(iWrapperInfo);
         boost::shared_ptr<cms::Exception> whyFailed(new edm::Exception(edm::errors::ProductNotFound));
         *whyFailed
         << "getByLabel: Found zero products matching all criteria\n"
         << "Looking for type: " << productType << "\n"
         << "Looking for module label: " << iTag.label() << "\n"
         << "Looking for productInstanceName: " << iTag.instance() << "\n"
         << (iTag.process().empty() ? "" : "Looking for process: ") << iTag.process() << "\n";

         edm::BasicHandle failed(whyFailed);
         return failed;
      }
      edm::BasicHandle value(boost::shared_ptr<edm::EDProduct>(prod,null_deleter()),&s_prov);
      return value;
   }
virtual const LuminosityBlockBase& fwlite::LuminosityBlockBase::operator++ ( ) [pure virtual]

Implemented in fwlite::LuminosityBlock.

virtual Long64_t fwlite::LuminosityBlockBase::secondaryFileIndex ( ) const [inline, virtual]

Definition at line 53 of file LuminosityBlockBase.h.

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

Implemented in fwlite::LuminosityBlock.