CMS 3D CMS Logo

List of all members | Public Member Functions | Static Protected Member Functions | Private Member Functions
edm::EventBase Class Referenceabstract

#include <EventBase.h>

Inheritance diagram for edm::EventBase:
edm::Event fwlite::EventBase fwlite::ChainEvent fwlite::Event fwlite::EventContainer fwlite::MultiChainEvent

Public Member Functions

int bunchCrossing () const
 
virtual edm::EventAuxiliary const & eventAuxiliary () const =0
 
 EventBase ()
 
edm::EventAuxiliary::ExperimentType experimentType () const
 
template<typename T >
bool get (ProductID const &, Handle< T > &) const
 
template<typename T >
bool getByLabel (InputTag const &, Handle< T > &) const
 
template<>
bool getByLabel (edm::InputTag const &tag, Handle< FWGenericObject > &result) const
 Specialize the getByLabel method to work with a Handle<FWGenericObject> More...
 
edm::EventID id () const
 
bool isRealData () const
 
edm::LuminosityBlockNumber_t luminosityBlock () const
 
int orbitNumber () const
 
virtual edm::ParameterSet const * parameterSet (edm::ParameterSetID const &psID) const =0
 
virtual ProcessHistory const & processHistory () const =0
 
edm::Timestamp time () const
 
virtual TriggerNames const & triggerNames (edm::TriggerResults const &triggerResults) const =0
 
virtual TriggerResultsByName triggerResultsByName (edm::TriggerResults const &triggerResults) const =0
 
virtual ~EventBase ()
 

Static Protected Member Functions

static edm::ParameterSet const * parameterSetForID_ (edm::ParameterSetID const &psID)
 
static TriggerNames const * triggerNames_ (edm::TriggerResults const &triggerResults)
 

Private Member Functions

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

Detailed Description

Definition at line 46 of file EventBase.h.

Constructor & Destructor Documentation

EventBase::EventBase ( )

Definition at line 39 of file EventBase.cc.

40  {
41  }
EventBase::~EventBase ( )
virtual

Reimplemented in fwlite::EventBase.

Definition at line 43 of file EventBase.cc.

44  {
45  }

Member Function Documentation

int edm::EventBase::bunchCrossing ( ) const
inline

Definition at line 66 of file EventBase.h.

References edm::EventAuxiliary::bunchCrossing(), and eventAuxiliary().

Referenced by TPTask::_process(), RawTask::_process(), RecHitTask::_process(), DigiTask::_process(), LaserTask::_process(), ESRawDataTask::analyze(), EventHeader::analyze(), L1TdeStage2CaloLayer1::analyze(), HLTInspect::analyze(), CTPPSPixelDQMSource::analyze(), EcalTPGAnalyzer::analyze(), CTPPSDiamondDQMSource::analyze(), TotemRPDQMSource::analyze(), V0Monitor::analyze(), HcalHBHEMuonSimAnalyzer::analyze(), SiPixelDigiSource::analyze(), L1ABCDebugger::analyze(), L1TStage2uGT::analyze(), PixelLumiDQM::analyze(), HitEff::analyze(), RPCTTUMonitor::analyze(), TrackingMonitor::analyze(), EventTimeDistribution::analyze(), HcalRaddamMuon::analyze(), L1TStage2CaloLayer1::analyze(), HcalHBHEMuonAnalyzer::analyze(), StudyHLT::analyze(), TrackCount::analyze(), CommonModeAnalyzer::analyze(), HLTScalers::analyze(), IsoTrig::analyze(), CastorMonitorModule::analyze(), IsoTrackCalibration::analyze(), IsoTrackCalib::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), BeamHaloAnalyzer::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), ecaldqm::RawDataTask::beginEvent(), ecaldqm::TrigPrimTask::beginEvent(), ecaldqm::TimingTask::beginEvent(), MultiplicityCorrelatorHistogramMaker::fill(), DigiInvestigatorHistogramMaker::fill(), DigiVertexCorrHistogramMaker::fill(), VertexHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), StringBasedNTupler::fill(), L1GlobalTriggerPSB::fillPsbBlock(), FilterOutLowPt::filter(), BeamSplash::filter(), FilterOutScraping::filter(), PhysDecl::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), AlCaIsoTracksProducerFilter::filter(), AlCaHBHEMuonFilter::filter(), AlCaIsoTracksFilter::filter(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), GetLumi::getRawValue(), GeometryInterface::loadTimebased(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), ShallowEventDataProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), RPCTwinMuxDigiToRaw::produce(), L1TGlobalProducer::produce(), EventWithHistoryProducer::produce(), HcalDigiToRawuHTR::produce(), EventWithHistoryProducerFromL1ABC::produce(), RPCTrigger::produce(), EcalDigiToRaw::produce(), AlCaHBHEMuonProducer::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTrigger::produce(), AlCaIsoTracksProducer::produce(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), L1Analysis::L1AnalysisEvent::Set(), TrackAnalyzer::setBX(), amc13::Packet::write(), and LaserSorter::writeEventHeader().

66 {return eventAuxiliary().bunchCrossing();}
int bunchCrossing() const
virtual edm::EventAuxiliary const & eventAuxiliary() const =0
virtual edm::EventAuxiliary const& edm::EventBase::eventAuxiliary ( ) const
pure virtual
edm::EventAuxiliary::ExperimentType edm::EventBase::experimentType ( ) const
inline
template<typename T >
bool EventBase::get ( ProductID const &  pid,
Handle< T > &  result 
) const

Definition at line 106 of file EventBase.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), fireworks::addSiStripClusters(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), fireworks::pushNearbyPixelHits(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

106  {
107  result.clear();
108  BasicHandle bh = this->getImpl(typeid(T), pid);
109  convert_handle(std::move(bh), result); // throws on conversion error
110  if (result.failedToGet()) {
111  return false;
112  }
113  return true;
114  }
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
virtual BasicHandle getImpl(std::type_info const &iProductType, ProductID const &iTag) const =0
long double T
def move(src, dest)
Definition: eostools.py:510
template<typename T >
bool EventBase::getByLabel ( InputTag const &  tag,
Handle< T > &  result 
) const

Definition at line 94 of file EventBase.h.

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

Referenced by FWSimTrackProxyBuilder::build(), FWECALCaloDataDetailViewBuilder::buildCaloData(), FWEventItem::data(), FWECALDetailViewBuilder::fillData(), FWHLTValidator::fillOptions(), PhoFull5x5SigmaIEtaIEtaValueMapCut::getEventContent(), GsfEleMVACut::getEventContent(), PhoMVACut::getEventContent(), GsfEleEffAreaPFIsoCut::getEventContent(), GsfEleFull5x5E2x5OverE5x5WithSatCut::getEventContent(), GsfEleFull5x5SigmaIEtaIEtaWithSatCut::getEventContent(), GsfEleValueMapIsoRhoCut::getEventContent(), PhoAnyPFIsoWithEAAndExpoScalingCut::getEventContent(), PhoAnyPFIsoWithEAAndExpoScalingEBCut::getEventContent(), PhoAnyPFIsoWithEACut::getEventContent(), PhoAnyPFIsoWithEAAndQuadScalingCut::getEventContent(), GsfEleDzCut::getEventContent(), GsfEleDxyCut::getEventContent(), MuonPOGStandardCut::getEventContent(), GsfEleDeltaBetaIsoCut::getEventContent(), GsfEleConversionVetoCut::getEventContent(), MuonDxyCut::getEventContent(), GsfEleEmHadD1IsoRhoCut::getEventContent(), MuonDzCut::getEventContent(), GsfEleCalPFClusterIsoCut::getEventContent(), GsfEleTrkPtIsoRhoCut::getEventContent(), FWPFCandidateWithHitsProxyBuilder::initPFRecHitsCollections(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::mvaValue(), ElectronMVAEstimatorRun2Spring16HZZ::mvaValue(), FWECALDetailViewBuilder::showSuperClusters(), FWECALCaloDataDetailViewBuilder::showSuperClusters(), edm::LumiReWeighting::weight(), edm::Lumi3DReWeighting::weight3D(), and edm::LumiReWeighting::weightOOT().

94  {
95  result.clear();
96  BasicHandle bh = this->getByLabelImpl(typeid(edm::Wrapper<T>), typeid(T), tag);
97  convert_handle(std::move(bh), result); // throws on conversion error
98  if (result.failedToGet()) {
99  return false;
100  }
101  return true;
102  }
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
bool edm::EventBase::getByLabel ( edm::InputTag const &  tag,
Handle< FWGenericObject > &  result 
) const

Specialize the getByLabel method to work with a Handle<FWGenericObject>

Specialize the Event's getByLabel method to work with a Handle<FWGenericObject>

Definition at line 56 of file FWGenericHandle.cc.

References edm::TypeWithDict::byName(), edm::convert_handle(), edm::BasicHandle::failedToGet(), mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and edm::TypeWithDict::typeInfo().

58 {
59  std::string dataTypeName = result.type().name();
60  if (dataTypeName[dataTypeName.size() -1] == '>')
61  dataTypeName += " ";
62  std::string wrapperName = "edm::Wrapper<" + dataTypeName + ">";
63 
64  edm::TypeWithDict wrapperType(edm::TypeWithDict::byName(wrapperName));
65 
66  BasicHandle bh = this->getByLabelImpl(wrapperType.typeInfo(),
67  result.type().typeInfo(),
68  tag);
69  convert_handle(bh, result); // throws on conversion error
70  if(bh.failedToGet())
71  return false;
72  return true;
73 }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
static TypeWithDict byName(std::string const &name)
Definition: TypeWithDict.cc:60
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
virtual BasicHandle edm::EventBase::getByLabelImpl ( std::type_info const &  iWrapperType,
std::type_info const &  iProductType,
InputTag const &  iTag 
) const
privatepure virtual

Implemented in edm::Event.

Referenced by getByLabel(), and orbitNumber().

virtual BasicHandle edm::EventBase::getImpl ( std::type_info const &  iProductType,
ProductID const &  iTag 
) const
privatepure virtual

Implemented in edm::Event, and fwlite::EventBase.

Referenced by get(), and orbitNumber().

edm::EventID edm::EventBase::id ( void  ) const
inline

Definition at line 60 of file EventBase.h.

References eventAuxiliary(), and edm::EventAuxiliary::id().

Referenced by fwlite::RunLumiSelector::accept(), Selection< C, Selector, StoreContainer >::acceptMap(), edm::DataMixingEMWorker::addEMSignals(), edm::DataMixingEMDigiWorker::addEMSignals(), edm::DataMixingHcalWorker::addHcalSignals(), edm::DataMixingHcalDigiWorker::addHcalSignals(), edm::DataMixingMuonWorker::addMuonSignals(), edm::DataMixingModule::addSignals(), edm::MixingModule::addSignals(), edm::HiMixingWorker< T >::addSignals(), edm::MixingWorker< T >::addSignals(), edm::DataMixingSiPixelWorker::addSiPixelSignals(), edm::DataMixingSiPixelMCDigiWorker::addSiPixelSignals(), SiStripGainFromData::algoAnalyze(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromCalibTree::algoAnalyze(), CSCDigiDump::analyze(), ElectronIDAnalyzer::analyze(), EcalTrivialObjectAnalyzer::analyze(), PerformanceAnalyzer::analyze(), RawDataConverter::analyze(), edmtest::AlignPCLThresholdsReader::analyze(), JetValidation::analyze(), SiStripDetVOffFakeBuilder::analyze(), L1TScalersSCAL::analyze(), L1CondDBIOVWriterExt::analyze(), SiStripNoisesBuilder::analyze(), PlaybackRawDataProvider::analyze(), ESOccupancyTask::analyze(), ESPedestalTask::analyze(), SiStripApvGainBuilder::analyze(), KVFTrackUpdate::analyze(), SiStripSummaryBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripThresholdBuilder::analyze(), ESRawDataTask::analyze(), edmtest::FillInfoESAnalyzer::analyze(), EventHeader::analyze(), ElectronMcSignalValidatorMiniAOD::analyze(), HcalTBWriter::analyze(), EcalEBTrigPrimAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), SiStripQualityStatistics::analyze(), ElectronGeneralAnalyzer::analyze(), CTPPSPixelDAQMappingAnalyzer::analyze(), MCElectronAnalyzer::analyze(), MCPhotonAnalyzer::analyze(), MCPizeroAnalyzer::analyze(), PhotonsWithConversionsAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), SimpleConvertedPhotonAnalyzer::analyze(), BeamSpotFromDB::analyze(), AlignmentStats::analyze(), ESTimingTask::analyze(), BeamSpotAnalyzer::analyze(), EcalDQMonitorTask::analyze(), L1TdeStage2CaloLayer1::analyze(), PUDumper::analyze(), L1O2OTestAnalyzerExt::analyze(), AlCaElectronsTest::analyze(), SiStripCommissioningOfflineClient::analyze(), PFCandidateChecker::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), SimHitsValidationHcal::analyze(), SiStripMonitorDigi::analyze(), DTT0Calibration::analyze(), HLTInspect::analyze(), TrackerHitAnalyzer::analyze(), SiPixelRecHitsValid::analyze(), l1t::L1TStage2CaloAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), ElectronStudy::analyze(), ElectronSeedAnalyzer::analyze(), DTT0CalibrationNew::analyze(), SiStripCommissioningSource::analyze(), DumpGctDigis::analyze(), ElectronMcFakeValidator::analyze(), EcalPedHists::analyze(), KVFTest::analyze(), HcalSimHitStudy::analyze(), SiStripLAProfileBooker::analyze(), DTConfigTester::analyze(), CSCRecoBadChannelsAnalyzer::analyze(), EcalTPGAnalyzer::analyze(), SiStripMonitorCluster::analyze(), SimplePhotonAnalyzer::analyze(), CSCViewDigi::analyze(), KineExample::analyze(), sistrip::SpyExtractRunModule::analyze(), ElectronAnalyzer::analyze(), DQMEventInfo::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), L1CondDBIOVWriter::analyze(), EventIDChecker::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), CentralityTableProducer::analyze(), AbortOnEventIDAnalyzer::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), GsfElectronMCAnalyzer::analyze(), RPCPhiEff::analyze(), DuplicationChecker::analyze(), V0Monitor::analyze(), EcalBarrelSimHitsValidation::analyze(), SimplePi0DiscAnalyzer::analyze(), ElectronConversionRejectionValidator::analyze(), edm::SecSourceAnalyzer::analyze(), EcalEndcapSimHitsValidation::analyze(), EcalPreshowerSimHitsValidation::analyze(), LumiMonitor::analyze(), DTTrigTest::analyze(), L1GtPatternGenerator::analyze(), HcalHBHEMuonSimAnalyzer::analyze(), SiStripMonitorRawData::analyze(), edmtest::HcalDumpConditions::analyze(), BTVHLTOfflineSource::analyze(), ContainmentCorrectionAnalyzer::analyze(), HiggsDQM::analyze(), L1O2OTestAnalyzer::analyze(), GeneralHLTOffline::analyze(), PSMonitor::analyze(), EcalSimHitsValidation::analyze(), DTSegmentAnalysisTask::analyze(), HLTrigReport::analyze(), BeamSpotRcdReader::analyze(), EcalBxOrbitNumberGrapher::analyze(), L1TRate::analyze(), PixelLumiDQM::analyze(), FFTJetImageRecorder::analyze(), HitEff::analyze(), TrackingMonitor::analyze(), calcTopMass::analyze(), EcalRecHitsValidation::analyze(), MulticoreRunLumiEventChecker::analyze(), Vx3DHLTAnalyzer::analyze(), IgProfModule::analyze(), SiStripSpyMonitorModule::analyze(), HGCalDigiValidation::analyze(), TkConvValidator::analyze(), SiStripMonitorPedestals::analyze(), L1TRate_Offline::analyze(), SiStripFEDCheckPlugin::analyze(), TestOutliers::analyze(), GlobalDigisHistogrammer::analyze(), ZdcSimHitStudy::analyze(), EcalURecHitHists::analyze(), LhcTrackAnalyzer::analyze(), BigEventsDebugger< T >::analyze(), EcalLaserAnalyzerYousi::analyze(), HcalRaddamMuon::analyze(), CastorDumpConditions::analyze(), EGammaCutBasedEleIdAnalyzer::analyze(), EcalDigisValidation::analyze(), GlobalRecHitsHistogrammer::analyze(), SiStripFEDMonitorPlugin::analyze(), L1TStage2CaloLayer1::analyze(), SiStripMonitorTrack::analyze(), FFTJetPileupAnalyzer::analyze(), HGCalRecHitValidation::analyze(), EcalMipGraphs::analyze(), CosmicSplitterValidation::analyze(), PhotonValidator::analyze(), SiPixelErrorEstimation::analyze(), l1t::GtRecordDump::analyze(), MuonSimHitsValidAnalyzer::analyze(), HcalHBHEMuonAnalyzer::analyze(), EcalDisplaysByEvent::analyze(), JetMETHLTOfflineSource::analyze(), StudyHLT::analyze(), METMonitor::analyze(), ValidIsoTrkCalib::analyze(), SiStripCMMonitorPlugin::analyze(), IsoTrig::analyze(), SiPixelTrackingRecHitsValid::analyze(), EcalCosmicsHists::analyze(), CastorPedestalsAnalysis::analyze(), CastorMonitorModule::analyze(), GlobalHitsHistogrammer::analyze(), IsoTrackCalibration::analyze(), GlobalHitsAnalyzer::analyze(), PiZeroAnalyzer::analyze(), SiStripBaselineAnalyzer::analyze(), pat::CandidateSummaryTable::analyze(), SiStripGainsPCLWorker::analyze(), IsoTrackCalib::analyze(), GctErrorAnalyzer::analyze(), IsolatedGenParticles::analyze(), JetAnalyzer::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiStripSpyDisplayModule::analyze(), ZToMuMuGammaAnalyzer::analyze(), PhotonAnalyzer::analyze(), IsolatedTracksCone::analyze(), L1TBPTX::analyze(), GlobalDigisAnalyzer::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), LaserSorter::analyze(), SiStripRecHitsValid::analyze(), TrackerDpgAnalysis::analyze(), EcnaAnalyzer::analyze(), SiPixelOfflineCalibAnalysisBase::analyze(), GlobalRecHitsAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), HOCalibAnalyzer::analyze(), SiStripTrackingRecHitsValid::analyze(), ResidualRefitting::analyze(), TrackingNtuple::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeTrigger(), CSCDigiToRaw::createFedBuffers(), sistrip::DigiToRaw::createFedBuffers_(), GsfElectronAlgo::displayInternalElectrons(), edm::DataMixingModule::doPileUp(), edm::MixingModule::doPileUp(), CastorDumpConditions::dumpIt(), EventWithHistory::EventWithHistory(), L1GtPatternGenerator::extractGlobalTriggerData(), extractRecordData(), HGCalTriggerNtupleEvent::fill(), StringBasedNTupler::fill(), FWHLTTriggerTableView::fillAverageAcceptFractions(), HLXMonitor::FillEventInfo(), L1GlobalTriggerPSB::fillPsbBlock(), DTNewROS8FileReader::fillRawData(), DTROS8FileReader::fillRawData(), DTDDUFileReader::fillRawData(), DTROS25FileReader::fillRawData(), DTSpyReader::fillRawData(), DaqFakeReader::fillRawData(), DTTFFEDSim::fillRawData(), edm::ModuloEventIDFilter::filter(), PFDQMEventSelector::filter(), TrackingFailureFilter::filter(), EcalTangentFilter::filter(), PhotonIsoProducer::filter(), MultiEventFilter::filter(), SiStripCommissioningBasicPrescaler::filter(), PythiaFilterGammaJetIsoPi0::filter(), FilterOutLowPt::filter(), BeamSplash::filter(), EcalLaserCorrFilter::filter(), LogErrorEventFilter::filter(), FilterOutScraping::filter(), PhysDecl::filter(), NMaxPerLumi::filter(), HLTEventNumberFilter::filter(), AlCaIsolatedBunchSelector::filter(), AlCaIsolatedBunchFilter::filter(), MCZll::filter(), AlCaIsoTracksProducerFilter::filter(), EcalSkim::filter(), HcalLaserEventFilter2012::filter(), edm::GeneratorFilter< HAD, DEC >::filter(), AlCaHBHEMuonFilter::filter(), HcalLaserEventFilter::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHFFilter2012::filter(), HLTPrescaler::filter(), SiStripShotFilter::filter(), PickEvents::filter(), edm::HadronizerFilter< HAD, DEC >::filter(), AlCaIsoTracksFilter::filter(), EcalDeadCellTriggerPrimitiveFilter::filter(), HLTEcalResonanceFilter::filter(), HLTRegionalEcalResonanceFilter::filter(), HSCPTreeBuilder::filter(), FWFileEntry::filterEventsWithCustomParser(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), RunManagerMTWorker::generateEvent(), RunManager::generateEvent(), MatacqProducer::getOrbitId(), TrackProducer::getTransient(), TrackProducerWithSCAssociation::getTransient(), tnp::BaseTreeFiller::init(), CmsShowMainFrame::loadEvent(), EcalDeadCellDeltaRFilter::loadEventInfo(), EgammaHLTNxNClusterProducer::makeNxNClusters(), RunLumiSelector::operator()(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), CkfDebugger::printSimHits(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), FFTJetTreeDump::processTreeData(), ShallowEventDataProducer::produce(), edm::FlatRandomMultiParticlePGunProducer::produce(), HcalPatternSource::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FlatRandomPtThetaGunProducer::produce(), edm::GaussRandomPThetaGunProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), edm::RandomtXiGunProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), DTDigiToRawModule::produce(), GsfTrackProducer::produce(), PixelTrackProducer::produce(), GsfTrackRefitter::produce(), CSCDigiProducer::produce(), CosmicMuonProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), TrackRefitter::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), CalibratedPhotonProducerRun2T< T >::produce(), edm::FlatRandomPtGunProducer::produce(), CosmicMuonLinksProducer::produce(), edm::FlatRandomEGunProducer::produce(), TrackProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), OscarProducer::produce(), edm::ExpoRandomPGunProducer::produce(), DAFTrackProducer::produce(), EcalRecHitsMerger::produce(), ESRecHitsMerger::produce(), CalibratedElectronProducerRun2T< T >::produce(), ESDigiToRaw::produce(), CSCDCCUnpacker::produce(), PFV0Producer::produce(), StoreSecondary::produce(), NtpProducer< C >::produce(), edm::CosMuoGenProducer::produce(), PreshowerClusterShapeProducer::produce(), CastorDigiToRaw::produce(), HcalDigiToRaw::produce(), PFDisplacedVertexProducer::produce(), edm::FlatRandomPtAndDxyGunProducer::produce(), SiPixelFedFillerWordEventNumber::produce(), GenParticles2HepMCConverter::produce(), BeamSpotProducer::produce(), TrackerHitProducer::produce(), RPCTwinMuxDigiToRaw::produce(), PFDisplacedVertexCandidateProducer::produce(), sistrip::RawToDigiModule::produce(), OscarMTProducer::produce(), EcalListOfFEDSProducer::produce(), AlcaBeamSpotProducer::produce(), PiZeroDiscriminatorProducer::produce(), LaserAlignmentProducer::produce(), CSCRecHitDProducer::produce(), RPCPackingModule::produce(), ESListOfFEDSProducer::produce(), FakeTBEventHeaderProducer::produce(), SiPixelDigiToRaw::produce(), PFMET::produce(), CSCTFPacker::produce(), edm::BeamHaloProducer::produce(), DTTrigProd::produce(), ZToLLEdmNtupleDumper::produce(), EcalTrigPrimProducer::produce(), RunManagerMTWorker::produce(), PFProducer::produce(), GctDigiToRaw::produce(), EventWithHistoryProducer::produce(), HcalDigiToRawuHTR::produce(), EventWithHistoryProducerFromL1ABC::produce(), PFSimParticleProducer::produce(), DTDigitizer::produce(), L1Comparator::produce(), gen::Pythia6Gun::produce(), EgammaHLTNxNClusterProducer::produce(), reco::PFMETProducerMVA::produce(), RPCTrigger::produce(), ConvBremSeedProducer::produce(), EcalDigiToRaw::produce(), AlCaHBHEMuonProducer::produce(), EcalSimpleProducer::produce(), SiPixelCalibDigiProducer::produce(), L1GlobalTrigger::produce(), APVCyclePhaseProducerFromL1ABC::produce(), PFEGammaProducer::produce(), l1t::GenToInputProducer::produce(), RunManager::produce(), reco::modules::TrackerTrackHitFilter::produce(), GoodSeedProducer::produce(), GlobalHitsProdHist::produce(), GlobalHitsProducer::produce(), LaserAlignment::produce(), VirtualJetProducer::produce(), AlCaIsoTracksProducer::produce(), GlobalDigisProducer::produce(), GlobalRecHitsProducer::produce(), AlCaHOCalibProducer::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), OMTFReconstruction::reconstruct(), tnp::TagProbePairMaker::run(), L1GlobalTriggerFDL::run(), ElectronSeedGenerator::run(), SiStripElectronSeedGenerator::run(), L1Analysis::L1AnalysisEvent::Set(), FWFFNavigator::setCurrentEvent(), reco::tau::RecoTauVertexAssociator::setEvent(), L1TdeStage2CaloLayer1::updateMismatch(), L1TStage2CaloLayer1::updateMismatch(), amc13::Packet::write(), LaserSorter::writeEventHeader(), and edmtest::HcalDumpConditions::writeToFile().

60 {return eventAuxiliary().id();}
EventID const & id() const
virtual edm::EventAuxiliary const & eventAuxiliary() const =0
bool edm::EventBase::isRealData ( ) const
inline

Definition at line 64 of file EventBase.h.

References eventAuxiliary(), and edm::EventAuxiliary::isRealData().

Referenced by StandaloneTrackMonitor::analyze(), PUDumper::analyze(), SUSY_HLT_InclusiveHT::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), HLTInspect::analyze(), SiStripMonitorCluster::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), JetTester::analyze(), L1TRCT::analyze(), SUSY_HLT_SingleLepton::analyze(), L1TdeRCT::analyze(), JetTester_HeavyIons::analyze(), EmDQM::analyze(), L1TGCT::analyze(), FFTJetCorrectionProducer::applyCorrections(), ecaldqm::RawDataTask::beginEvent(), SiPixelPhase1Base::checktrigger(), StringBasedNTupler::fill(), AdHocNTupler::fill(), DetectorStateFilter::filter(), JetMETDQMDCSFilter::filter(), HLTPhysicsDeclared::filter(), HLTTriggerTypeFilter::filter(), HLTEventNumberFilter::filter(), HLTL1NumberFilter::filter(), L1GtBeamModeFilter::filter(), cms::PFMETProducer::getMETCovMatrix(), pat::PATMETProducer::getMETCovMatrix(), HLTHcalNZSFilter::hltFilter(), HLTBeamModeFilter::hltFilter(), tnp::BaseTreeFiller::init(), EcalDeadCellDeltaRFilter::loadEventInfo(), WeakEffectsWeightProducer::produce(), TTClusterAssociator< T >::produce(), TTStubAssociator< T >::produce(), TTTrackAssociator< T >::produce(), edm::EventAuxiliaryHistoryProducer::produce(), HFEMClusterProducer::produce(), DistortedMETProducer::produce(), DistortedMuonProducerFromDB::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), ISRGammaWeightProducer::produce(), BunchSpacingProducer::produce(), FSRWeightProducer::produce(), ISRWeightProducer::produce(), PdfWeightProducer::produce(), HcalSimpleReconstructor::produce(), LHECOMWeightProducer::produce(), VoronoiBackgroundProducer::produce(), pat::PATMuonProducer::produce(), cms::METSignificanceProducer::produce(), pat::PATTauProducer::produce(), HcalHitReconstructor::produce(), pat::PATJetProducer::produce(), PileupJetIdProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATTriggerEventProducer::produce(), pat::PATElectronProducer::produce(), pat::PATTriggerProducer::produce(), ShiftedJetProducerT< T, Textractor >::produce(), JetCleanerForType1METT< T, Textractor >::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), AlCaHOCalibProducer::produce(), SmearedJetProducerT< T >::produce(), HBHEPhase1Reconstructor::produce(), and StringBranchHelper< Object, Collection >::StringBranchHelper().

64 {return eventAuxiliary().isRealData();}
bool isRealData() const
virtual edm::EventAuxiliary const & eventAuxiliary() const =0
edm::LuminosityBlockNumber_t edm::EventBase::luminosityBlock ( ) const
inline

Definition at line 63 of file EventBase.h.

References eventAuxiliary(), and edm::EventAuxiliary::luminosityBlock().

Referenced by fwlite::RunLumiSelector::accept(), SiStripHitEffFromCalibTree::algoAnalyze(), RawDataConverter::analyze(), L1Scalers::analyze(), L1TScalersSCAL::analyze(), EventHeader::analyze(), SiStripQualityStatistics::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), PUDumper::analyze(), HLTInspect::analyze(), BeamMonitorBx::analyze(), ElectronAnalyzer::analyze(), ZeePlots::analyze(), WenuPlots::analyze(), BeamMonitor::analyze(), BeamSpotProblemMonitor::analyze(), NoiseRates::analyze(), L1GtPatternGenerator::analyze(), HcalNoiseRates::analyze(), BTVHLTOfflineSource::analyze(), SiPixelDigiSource::analyze(), L1TStage2uGT::analyze(), HLTrigReport::analyze(), SiPixelRawDataErrorSource::analyze(), EGammaCutBasedEleIdAnalyzer::analyze(), L1TGT::analyze(), SiPixelClusterSource::analyze(), StudyHLT::analyze(), JetMETHLTOfflineSource::analyze(), IsoTrig::analyze(), DQMPFCandidateAnalyzer::analyze(), CastorMonitorModule::analyze(), IsoTrackCalibration::analyze(), IsoTrackCalib::analyze(), METAnalyzer::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), BeamHaloAnalyzer::analyze(), HOCalibAnalyzer::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), HGCalTriggerNtupleEvent::fill(), StringBasedNTupler::fill(), METAnalyzer::fillMonitorElement(), LSNumberFilter::filter(), FilterOutLowPt::filter(), BeamSplash::filter(), EcalLaserCorrFilter::filter(), LogErrorEventFilter::filter(), FilterOutScraping::filter(), PhysDecl::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), AlCaIsoTracksProducerFilter::filter(), HcalLaserEventFilter2012::filter(), AlCaHBHEMuonFilter::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHFFilter2012::filter(), AlCaIsoTracksFilter::filter(), EcalDeadCellTriggerPrimitiveFilter::filter(), ZeeCandidateFilter::filter(), EcalDeadCellDeltaRFilter::loadEventInfo(), GeometryInterface::loadTimebased(), ShallowEventDataProducer::produce(), NtpProducer< C >::produce(), ZToLLEdmNtupleDumper::produce(), reco::PFMETProducerMVA::produce(), AlCaHBHEMuonProducer::produce(), L1GlobalTrigger::produce(), AlCaIsoTracksProducer::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), L1Analysis::L1AnalysisEvent::Set(), L1Analysis::L1AnalysisL1Menu::SetPrescaleFactorIndex(), fwlite::ChainEvent::to(), fwlite::Event::to(), edm::LumiReWeighting::weightOOT(), and LaserSorter::writeEventHeader().

63 {return eventAuxiliary().luminosityBlock();}
LuminosityBlockNumber_t luminosityBlock() const
virtual edm::EventAuxiliary const & eventAuxiliary() const =0
int edm::EventBase::orbitNumber ( ) const
inline

Definition at line 67 of file EventBase.h.

References eventAuxiliary(), getByLabelImpl(), getImpl(), edm::EventAuxiliary::orbitNumber(), parameterSet(), parameterSetForID_(), processHistory(), triggerNames(), triggerNames_(), edm::triggerResults(), and triggerResultsByName().

Referenced by ESRawDataTask::analyze(), EventHeader::analyze(), SiStripMonitorDigi::analyze(), EcalTPGAnalyzer::analyze(), SiStripMonitorCluster::analyze(), L1TGMT::analyze(), AnotherBeamSpotAnalyzer::analyze(), L1ABCDebugger::analyze(), APVCyclePhaseMonitor::analyze(), EventTimeDistribution::analyze(), L1TGT::analyze(), SiPixelClusterSource::analyze(), SiStripQualityHistory::analyze(), SiStripFEDMonitorPlugin::analyze(), SiStripMonitorTrack::analyze(), SiPixelQualityHistory::analyze(), MultiplicityTimeCorrelations::analyze(), TrackCount::analyze(), CommonModeAnalyzer::analyze(), SiStripCMMonitorPlugin::analyze(), APVShotsAnalyzer::analyze(), ecaldqm::RawDataTask::beginEvent(), DigiInvestigatorHistogramMaker::fill(), VertexHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), StringBasedNTupler::fill(), FEDBadModuleFilter::filter(), edm::EventAuxiliaryHistoryProducer::produce(), EventWithHistoryProducer::produce(), HcalDigiToRawuHTR::produce(), EventWithHistoryProducerFromL1ABC::produce(), EcalDigiToRaw::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTrigger::produce(), L1GlobalTriggerFDL::run(), L1Analysis::L1AnalysisEvent::Set(), and amc13::Packet::write().

67 {return eventAuxiliary().orbitNumber();}
int orbitNumber() const
virtual edm::EventAuxiliary const & eventAuxiliary() const =0
virtual edm::ParameterSet const* edm::EventBase::parameterSet ( edm::ParameterSetID const &  psID) const
pure virtual
edm::ParameterSet const * EventBase::parameterSetForID_ ( edm::ParameterSetID const &  psID)
staticprotected

Definition at line 48 of file EventBase.cc.

References edm::pset::Registry::getMapped(), and edm::pset::Registry::instance().

Referenced by orbitNumber(), fwlite::Event::parameterSet(), and edm::Event::parameterSet().

48  {
50  }
bool getMapped(key_type const &k, value_type &result) const
Definition: Registry.cc:18
static Registry * instance()
Definition: Registry.cc:12
virtual ProcessHistory const& edm::EventBase::processHistory ( ) const
pure virtual
edm::Timestamp edm::EventBase::time ( ) const
inline
virtual TriggerNames const& edm::EventBase::triggerNames ( edm::TriggerResults const &  triggerResults) const
pure virtual
TriggerNames const * EventBase::triggerNames_ ( edm::TriggerResults const &  triggerResults)
staticprotected

Definition at line 53 of file EventBase.cc.

References edm::ParameterSet::addParameter(), Exception, edm::ParameterSet::existsAs(), edm::pset::Registry::getMapped(), edm::TriggerResults::getTriggerNames(), edm::ParameterSet::id(), edm::pset::Registry::instance(), edm::TriggerResults::parameterSetID(), muonDTDigis_cfi::pset, edm::ParameterSet::registerIt(), edm::HLTGlobalStatus::size(), edm::TriggerNames::size(), and mitigatedMETSequence_cff::U.

Referenced by orbitNumber(), fwlite::Event::triggerNames(), edm::Event::triggerNames(), fwlite::Event::triggerResultsByName(), and edm::Event::triggerResultsByName().

53  {
54 
55  // If TriggerNames was already created and cached here in the map,
56  // then look it up and return that one
57  TriggerNamesMap::const_iterator iter =
58  triggerNamesMap.find(triggerResults.parameterSetID());
59  if (iter != triggerNamesMap.end()) {
60  return &iter->second;
61  }
62 
63  // Look for the parameter set containing the trigger names in the parameter
64  // set registry using the ID from TriggerResults as the key used to find it.
66  edm::ParameterSet const* pset=0;
67  if (0!=(pset=psetRegistry->getMapped(triggerResults.parameterSetID()))) {
68 
69  if (pset->existsAs<std::vector<std::string> >("@trigger_paths", true)) {
70  TriggerNames triggerNames(*pset);
71 
72  // This should never happen
73  if (triggerNames.size() != triggerResults.size()) {
74  throw cms::Exception("LogicError")
75  << "edm::EventBase::triggerNames_ Encountered vector\n"
76  "of trigger names and a TriggerResults object with\n"
77  "different sizes. This should be impossible.\n"
78  "Please send information to reproduce this problem to\n"
79  "the edm developers.\n";
80  }
81 
82  std::pair<TriggerNamesMap::iterator, bool> ret =
83  triggerNamesMap.insert(std::pair<edm::ParameterSetID, edm::TriggerNames>(triggerResults.parameterSetID(), triggerNames));
84  return &(ret.first->second);
85  }
86  }
87  // For backward compatibility to very old data
88  if (triggerResults.getTriggerNames().size() > 0U) {
89  edm::ParameterSet fakePset;
90  fakePset.addParameter<std::vector<std::string> >("@trigger_paths", triggerResults.getTriggerNames());
91  fakePset.registerIt();
92  TriggerNames triggerNames(fakePset);
93 
94  // This should never happen
95  if (triggerNames.size() != triggerResults.size()) {
96  throw cms::Exception("LogicError")
97  << "edm::EventBase::triggerNames_ Encountered vector\n"
98  "of trigger names and a TriggerResults object with\n"
99  "different sizes. This should be impossible.\n"
100  "Please send information to reproduce this problem to\n"
101  "the edm developers (2).\n";
102  }
103 
104  std::pair<TriggerNamesMap::iterator, bool> ret =
105  triggerNamesMap.insert(std::pair<edm::ParameterSetID, edm::TriggerNames>(fakePset.id(), triggerNames));
106  return &(ret.first->second);
107  }
108  return 0;
109  }
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:186
ParameterSetID id() const
Strings::size_type size() const
Definition: TriggerNames.cc:39
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:144
bool getMapped(key_type const &k, value_type &result) const
Definition: Registry.cc:18
static std::string const triggerResults("TriggerResults")
virtual TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const =0
ParameterSet const & registerIt()
static Registry * instance()
Definition: Registry.cc:12
virtual TriggerResultsByName edm::EventBase::triggerResultsByName ( edm::TriggerResults const &  triggerResults) const
pure virtual