CMS 3D CMS Logo

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<typename T >
bool getByLabel (InputTag const &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 (std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
 

Detailed Description

Definition at line 33 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
Timestamp const& edm::RunBase::endTime ( ) const
inline
template<typename PROD >
bool edm::RunBase::getByLabel ( InputTag const &  tag,
Handle< PROD > &  result 
) const

same as above, but using the InputTag class

Referenced by endTime().

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

Definition at line 60 of file RunBase.h.

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

60  {
61  result.clear();
62  BasicHandle bh = this->getByLabelImpl(typeid(Wrapper<T>), typeid(T), tag);
63  convert_handle(std::move(bh), result); // throws on conversion error
64  if (result.failedToGet()) {
65  return false;
66  }
67  return true;
68  }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
long double T
def move(src, dest)
Definition: eostools.py:510
virtual BasicHandle edm::RunBase::getByLabelImpl ( std::type_info const &  iWrapperType,
std::type_info const &  iProductType,
InputTag const &  iTag 
) const
privatepure virtual

Implemented in edm::Run.

Referenced by endTime(), and getByLabel().

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

Definition at line 40 of file RunBase.h.

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

Referenced by CosmicRateAnalyzer::analyze(), L1GtAnalyzer::analyzeConditionsInRunBlock(), SiStripFedCablingBuilder::beginRun(), ecaldqm::RawDataTask::beginRun(), DQMEDAnalyzer::beginRun(), TKStatus::beginRun(), CastorRawToDigi::beginRun(), LumiCalculator::beginRun(), BeamMonitor::beginRun(), AlCaRecoTriggerBitsRcdRead::beginRun(), ConfigurableAPVCyclePhaseProducer::beginRun(), L1RCTProducer::beginRun(), AlCaIsolatedBunchSelector::beginRun(), AlCaIsolatedBunchFilter::beginRun(), SimpleHBHEPhase1Algo::beginRun(), GlobalHitsProdHistStripper::beginRun(), AlCaIsoTracksProducerFilter::beginRun(), CentralityBinProducer::beginRun(), AnotherBeamSpotAnalyzer::beginRun(), SiStripCorrelateNoise::beginRun(), BSvsPVAnalyzer::beginRun(), EDMtoMEConverter::beginRun(), APVCyclePhaseProducerFromL1ABC::beginRun(), AlCaHBHEMuonProducer::beginRun(), APVCyclePhaseProducerFromL1TS::beginRun(), AlCaHBHEMuonFilter::beginRun(), SiStripQualityHistory::beginRun(), MEtoEDMConverter::beginRun(), IgProfModule::beginRun(), SiPixelQualityHistory::beginRun(), MultiplicityTimeCorrelations::beginRun(), thread_unsafe::DQMEDAnalyzer::beginRun(), StudyHLT::beginRun(), HLTriggerJSONMonitoring::beginRun(), IsoTrig::beginRun(), L1TriggerJSONMonitoring::beginRun(), AlCaIsoTracksFilter::beginRun(), IsoTrackCalibration::beginRun(), MillePedeAlignmentAlgorithm::beginRun(), IsoTrackCalib::beginRun(), TriggerJSONMonitoring::beginRun(), AlCaIsoTracksProducer::beginRun(), LumiProducer::beginRun(), RunHistogramManager::beginRun(), PixelLumiDQM::bookHistograms(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), ecaldqm::EcalDQMonitor::ecaldqmBeginRun(), ecaldqm::EcalDQMonitor::ecaldqmEndRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), CTPPSPixelDQMSource::endRun(), LogErrorEventFilter::endRun(), LumiCalculator::endRun(), PhiSymmetryCalibration::endRun(), HLTrigReport::endRun(), AlCaIsolatedBunchFilter::endRun(), AlCaIsolatedBunchSelector::endRun(), AlCaIsoTracksProducerFilter::endRun(), AlCaHBHEMuonProducer::endRun(), cms::Analyzer_minbias::endRun(), AlCaHBHEMuonFilter::endRun(), StudyHLT::endRun(), AlCaIsoTracksFilter::endRun(), IsoTrackCalibration::endRun(), IsoTrackCalib::endRun(), AlCaIsoTracksProducer::endRun(), MEtoEDMConverter::endRunProduce(), DQMEDAnalyzer::endRunSummary(), and FamosManager::setupGeometryAndField().

40 {return runAuxiliary().run();}
virtual edm::RunAuxiliary const & runAuxiliary() const =0
RunNumber_t run() const
Definition: RunAuxiliary.h:41
virtual edm::RunAuxiliary const& edm::RunBase::runAuxiliary ( ) const
pure virtual

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

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