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
edm::RunBase Class Referenceabstract

#include <RunBase.h>

Inheritance diagram for edm::RunBase:
edm::Run fwlite::RunBase fwlite::Run

Public Member Functions

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
 
RunID const & id () const
 
RunNumber_t run () const
 
virtual edm::RunAuxiliary const & runAuxiliary () const =0
 
 RunBase ()
 
virtual ~RunBase ()
 

Private Member Functions

virtual BasicHandle getByLabelImpl (const std::type_info &iWrapperType, const std::type_info &iProductType, const InputTag &iTag) const =0
 

Detailed Description

Definition at line 37 of file RunBase.h.

Constructor & Destructor Documentation

RunBase::RunBase ( )

Definition at line 23 of file RunBase.cc.

24  {
25  }
RunBase::~RunBase ( )
virtual

Reimplemented in fwlite::RunBase.

Definition at line 27 of file RunBase.cc.

28  {
29  }

Member Function Documentation

Timestamp const& edm::RunBase::beginTime ( ) const
inline

Definition at line 45 of file RunBase.h.

References edm::RunAuxiliary::beginTime(), and runAuxiliary().

Referenced by BeamMonitor::beginRun(), BeamMonitorBx::beginRun(), DQMEventInfo::beginRun(), XmasToDQMEventInfo::beginRun(), and PhiSymmetryCalibration::endRun().

45 {return runAuxiliary().beginTime();}
virtual edm::RunAuxiliary const & runAuxiliary() const =0
Timestamp const & beginTime() const
Definition: RunAuxiliary.h:39
Timestamp const& edm::RunBase::endTime ( ) const
inline

Definition at line 46 of file RunBase.h.

References edm::RunAuxiliary::endTime(), and runAuxiliary().

Referenced by PhiSymmetryCalibration::endRun().

46 {return runAuxiliary().endTime();}
virtual edm::RunAuxiliary const & runAuxiliary() const =0
Timestamp const & endTime() const
Definition: RunAuxiliary.h:40
template<typename PROD >
bool edm::RunBase::getByLabel ( InputTag const &  tag,
Handle< PROD > &  result 
) const

same as above, but using the InputTag class

template<class T >
bool edm::RunBase::getByLabel ( const InputTag tag,
Handle< T > &  result 
) const

Definition at line 64 of file RunBase.h.

References edm::HandleBase::clear(), edm::convert_handle(), edm::BasicHandle::failedToGet(), and getByLabelImpl().

64  {
65  result.clear();
66  BasicHandle bh = this->getByLabelImpl(typeid(edm::Wrapper<T>), typeid(T), tag);
67  convert_handle(bh, result); // throws on conversion error
68  if (bh.failedToGet()) {
69  return false;
70  }
71  return true;
72  }
virtual BasicHandle getByLabelImpl(const std::type_info &iWrapperType, const std::type_info &iProductType, const InputTag &iTag) const =0
void convert_handle(BasicHandle const &orig, Handle< T > &result)
Definition: ConvertHandle.h:17
virtual BasicHandle edm::RunBase::getByLabelImpl ( const std::type_info &  iWrapperType,
const std::type_info &  iProductType,
const InputTag iTag 
) const
privatepure virtual

Implemented in edm::Run, and fwlite::RunBase.

Referenced by getByLabel().

RunID const& edm::RunBase::id ( void  ) const
inline

Definition at line 43 of file RunBase.h.

References edm::RunAuxiliary::id(), and runAuxiliary().

Referenced by DQMFileSaver::beginRun(), HcalBeamMonitor::beginRun(), ZDCMonitorClient::beginRun(), DTTrigProd::beginRun(), DQMEventInfo::beginRun(), HcalMonitorClient::beginRun(), HLTJetMETDQMSource::beginRun(), PhotonDataCertification::beginRun(), EcalBarrelMonitorClient::beginRun(), EcalEndcapMonitorClient::beginRun(), HLTSeedL1LogicScalers::beginRun(), FourVectorHLT::beginRun(), MulticoreRunLumiEventChecker::beginRun(), HLTMuonCertSummary::beginRun(), HLTOverallSummary::beginRun(), HLTScalers::beginRun(), FourVectorHLTOnline::beginRun(), TrigResRateMon::beginRun(), FourVectorHLTriggerOffline::beginRun(), FourVectorHLTOffline::beginRun(), HLTScalersClient::beginRun(), AlcaBeamSpotHarvester::endRun(), AlcaBeamMonitorClient::endRun(), DataCertificationJetMET::endRun(), ZDCMonitorClient::endRun(), HLTJetMETDQMSource::endRun(), EcalBarrelMonitorClient::endRun(), EcalEndcapMonitorClient::endRun(), FourVectorHLT::endRun(), JetMETHLTOfflineSource::endRun(), MulticoreRunLumiEventChecker::endRun(), AlignmentProducer::endRun(), HLTScalers::endRun(), L1GtHwValidation::endRun(), FourVectorHLTOnline::endRun(), TrigResRateMon::endRun(), FourVectorHLTriggerOffline::endRun(), FourVectorHLTOffline::endRun(), L1ExtraDQM::endRun(), HLTConfigProvider::init(), and main().

43 {return runAuxiliary().id();}
virtual edm::RunAuxiliary const & runAuxiliary() const =0
RunID const & id() const
Definition: RunAuxiliary.h:37
RunNumber_t edm::RunBase::run ( void  ) const
inline
virtual edm::RunAuxiliary const& edm::RunBase::runAuxiliary ( ) const
pure virtual

Implemented in fwlite::Run, and edm::Run.

Referenced by beginTime(), endTime(), id(), and run().