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 37 of file EventBase.cc.

37 {}
EventBase::~EventBase ( )
virtual

Reimplemented in fwlite::EventBase.

Definition at line 39 of file EventBase.cc.

39 {}

Member Function Documentation

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

Definition at line 64 of file EventBase.h.

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

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

64 { 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 103 of file EventBase.h.

References edm::HandleBase::clear(), 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().

103  {
104  result.clear();
105  BasicHandle bh = this->getImpl(typeid(T), pid);
106  result = convert_handle_check_type<T>(std::move(bh));
107  if (result.failedToGet()) {
108  return false;
109  }
110  return true;
111  }
virtual BasicHandle getImpl(std::type_info const &iProductType, ProductID const &iTag) const =0
long double T
def move(src, dest)
Definition: eostools.py:511
template<typename T >
bool EventBase::getByLabel ( InputTag const &  tag,
Handle< T > &  result 
) const

Definition at line 92 of file EventBase.h.

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

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

92  {
93  result.clear();
94  BasicHandle bh = this->getByLabelImpl(typeid(edm::Wrapper<T>), typeid(T), tag);
95  result = convert_handle<T>(std::move(bh));
96  if (result.failedToGet()) {
97  return false;
98  }
99  return true;
100  }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
long double T
def move(src, dest)
Definition: eostools.py:511
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:74
Handle< T > convert_handle(BasicHandle &&bh)(true)
Definition: ConvertHandle.h:22
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 59 of file EventBase.h.

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

Referenced by fwlite::RunLumiSelector::accept(), FilterSelection::acceptMap(), timestudy::ExternalWorkSleepingProducer::acquire(), edm::DataMixingEMWorker::addEMSignals(), edm::DataMixingEMDigiWorker::addEMSignals(), edm::DataMixingHcalWorker::addHcalSignals(), edm::DataMixingHcalDigiWorker::addHcalSignals(), edm::DataMixingMuonWorker::addMuonSignals(), PreMixingSiPixelWorker::addSignals(), edm::PreMixingModule::addSignals(), edm::DataMixingModule::addSignals(), edm::MixingModule::addSignals(), edm::HiMixingWorker< T >::addSignals(), edm::MixingWorker< T >::addSignals(), edm::DataMixingSiPixelWorker::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(), SiStripNoisesBuilder::analyze(), L1CondDBIOVWriterExt::analyze(), PlaybackRawDataProvider::analyze(), ESOccupancyTask::analyze(), ESPedestalTask::analyze(), SiStripApvGainBuilder::analyze(), KVFTrackUpdate::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripPedestalsBuilder::analyze(), ESRawDataTask::analyze(), edmtest::FillInfoESAnalyzer::analyze(), edmtest::LHCInfoESAnalyzer::analyze(), ElectronMcSignalValidatorMiniAOD::analyze(), EventHeader::analyze(), HcalTBWriter::analyze(), CTPPSPixGainCalibsESAnalyzer::analyze(), EcalEBTrigPrimAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), CTPPSRPAlignmentInfoReader::analyze(), ElectronGeneralAnalyzer::analyze(), SiStripQualityStatistics::analyze(), CTPPSPixelDAQMappingAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), MCElectronAnalyzer::analyze(), MCPhotonAnalyzer::analyze(), MCPizeroAnalyzer::analyze(), PhotonsWithConversionsAnalyzer::analyze(), SimpleConvertedPhotonAnalyzer::analyze(), BeamSpotFromDB::analyze(), ESTimingTask::analyze(), BeamSpotAnalyzer::analyze(), AlignmentStats::analyze(), EcalDQMonitorTask::analyze(), PUDumper::analyze(), SimHitsValidationHcal::analyze(), TrackerHitAnalyzer::analyze(), L1TdeStage2CaloLayer1::analyze(), DTT0CalibrationRMS::analyze(), L1O2OTestAnalyzerExt::analyze(), AlCaElectronsTest::analyze(), SiStripCommissioningOfflineClient::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), PFCandidateChecker::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), SiStripMonitorDigi::analyze(), l1t::L1TStage2CaloAnalyzer::analyze(), EcalTPGAnalyzer::analyze(), HLTInspect::analyze(), SiPixelRecHitsValid::analyze(), EcalPedHists::analyze(), DumpGctDigis::analyze(), DTConfigTester::analyze(), ValidationMisalignedTracker::analyze(), ElectronSeedAnalyzer::analyze(), HcalSimHitStudy::analyze(), ElectronMcFakeValidator::analyze(), SiStripLAProfileBooker::analyze(), SiStripCommissioningSource::analyze(), SimAnalyzerMinbias::analyze(), KVFTest::analyze(), CSCRecoBadChannelsAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), CSCViewDigi::analyze(), KineExample::analyze(), CTPPSProtonReconstructionEfficiencyEstimator::analyze(), SiStripMonitorCluster::analyze(), sistrip::SpyExtractRunModule::analyze(), ElectronAnalyzer::analyze(), DQMEventInfo::analyze(), EventIDChecker::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), CentralityTableProducer::analyze(), L1CondDBIOVWriter::analyze(), AbortOnEventIDAnalyzer::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), EcalBarrelSimHitsValidation::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), GsfElectronMCAnalyzer::analyze(), EcalEndcapSimHitsValidation::analyze(), EcalPreshowerSimHitsValidation::analyze(), RPCPhiEff::analyze(), DuplicationChecker::analyze(), ElectronStudy::analyze(), BTVHLTOfflineSource::analyze(), V0Monitor::analyze(), DTTrigTest::analyze(), L1GtPatternGenerator::analyze(), edmtest::HcalDumpConditions::analyze(), SimplePi0DiscAnalyzer::analyze(), edm::SecSourceAnalyzer::analyze(), ElectronConversionRejectionValidator::analyze(), PrimaryVertexResolution::analyze(), HcalHBHEMuonSimAnalyzer::analyze(), ElectronMVANtuplizer::analyze(), EcalSimHitsValidation::analyze(), ContainmentCorrectionAnalyzer::analyze(), EcalBxOrbitNumberGrapher::analyze(), PhotonMVANtuplizer::analyze(), HiggsDQM::analyze(), SiStripMonitorRawData::analyze(), RunLumiEventChecker::analyze(), HcalCollapseAnalyzer::analyze(), GeneralHLTOffline::analyze(), L1O2OTestAnalyzer::analyze(), DTSegmentAnalysisTask::analyze(), EcalRecHitsValidation::analyze(), BeamSpotRcdReader::analyze(), GlobalDigisHistogrammer::analyze(), HLTrigReport::analyze(), L1TRate::analyze(), DiJetMonitor::analyze(), FFTJetImageRecorder::analyze(), SiStripMonitorPedestals::analyze(), calcTopMass::analyze(), Vx3DHLTAnalyzer::analyze(), HitEff::analyze(), IgProfModule::analyze(), PixelLumiDQM::analyze(), SiStripSpyMonitorModule::analyze(), EcalURecHitHists::analyze(), METplusTrackMonitor::analyze(), MuonSimHitsValidAnalyzer::analyze(), TkConvValidator::analyze(), SiStripFEDCheckPlugin::analyze(), L1TRate_Offline::analyze(), TestOutliers::analyze(), LhcTrackAnalyzer::analyze(), DiDispStaMuonMonitor::analyze(), ObjMonitor::analyze(), BigEventsDebugger< T >::analyze(), EcalLaserAnalyzerYousi::analyze(), HcalRaddamMuon::analyze(), EGammaCutBasedEleIdAnalyzer::analyze(), EcalDigisValidation::analyze(), GlobalRecHitsHistogrammer::analyze(), HGCalRecHitValidation::analyze(), EcalMipGraphs::analyze(), NoBPTXMonitor::analyze(), TopMonitor::analyze(), SiStripFEDMonitorPlugin::analyze(), ZdcSimHitStudy::analyze(), L1TStage2CaloLayer1::analyze(), SiStripMonitorTrack::analyze(), FFTJetPileupAnalyzer::analyze(), EcalDisplaysByEvent::analyze(), CosmicSplitterValidation::analyze(), CastorDumpConditions::analyze(), SiPixelErrorEstimation::analyze(), l1t::GtRecordDump::analyze(), PhotonValidator::analyze(), TrackingMonitor::analyze(), PhotonMonitor::analyze(), ValidIsoTrkCalib::analyze(), JetMETHLTOfflineSource::analyze(), HGCalDigiValidation::analyze(), EcalCosmicsHists::analyze(), SiStripCMMonitorPlugin::analyze(), MuonMonitor::analyze(), SiPixelTrackingRecHitsValid::analyze(), CastorPedestalsAnalysis::analyze(), GlobalHitsAnalyzer::analyze(), GlobalHitsHistogrammer::analyze(), HcalHBHEMuonAnalyzer::analyze(), JetMonitor::analyze(), METMonitor::analyze(), PiZeroAnalyzer::analyze(), HTMonitor::analyze(), IsoTrackCalibration::analyze(), pat::CandidateSummaryTable::analyze(), FSQDQM::analyze(), GctErrorAnalyzer::analyze(), StudyHLT::analyze(), IsoTrackCalib::analyze(), HcalIsoTrkAnalyzer::analyze(), JetAnalyzer::analyze(), analyzer::SiPixelLorentzAngle::analyze(), OverlapValidation::analyze(), SiStripSpyDisplayModule::analyze(), ZToMuMuGammaAnalyzer::analyze(), PhotonAnalyzer::analyze(), IsoTrig::analyze(), IsolatedTracksHcalScale::analyze(), GlobalDigisAnalyzer::analyze(), L1TBPTX::analyze(), IsolatedGenParticles::analyze(), LaserSorter::analyze(), IsolatedTracksCone::analyze(), SiStripRecHitsValid::analyze(), CSCTriggerPrimitivesReader::analyze(), TrackerDpgAnalysis::analyze(), EcnaAnalyzer::analyze(), SiPixelOfflineCalibAnalysisBase::analyze(), IsolatedTracksNxN::analyze(), GlobalRecHitsAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), HOCalibAnalyzer::analyze(), SiStripTrackingRecHitsValid::analyze(), ResidualRefitting::analyze(), TrackingNtuple::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeTrigger(), CSCDigiToRaw::createFedBuffers(), sistrip::DigiToRaw::createFedBuffers_(), edm::PreMixingModule::doPileUp(), edm::DataMixingModule::doPileUp(), edm::MixingModule::doPileUp(), SiStripGainsPCLWorker::dqmAnalyze(), 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(), DTuROSDigiToRaw::fillRawData(), PFDQMEventSelector::filter(), edm::ModuloEventIDFilter::filter(), TrackingFailureFilter::filter(), EcalTangentFilter::filter(), PhotonIsoProducer::filter(), MultiEventFilter::filter(), SiStripCommissioningBasicPrescaler::filter(), PythiaFilterGammaJetIsoPi0::filter(), BeamSplash::filter(), FilterOutLowPt::filter(), FilterOutScraping::filter(), EcalLaserCorrFilter::filter(), PhysDecl::filter(), NMaxPerLumi::filter(), HLTEventNumberFilter::filter(), AlCaIsolatedBunchSelector::filter(), AlCaIsoTracksProducerFilter::filter(), AlCaIsolatedBunchFilter::filter(), MCZll::filter(), EcalSkim::filter(), HcalLaserEventFilter2012::filter(), edm::GeneratorFilter< HAD, DEC >::filter(), AlCaHBHEMuonFilter::filter(), AlCaHEMuonFilter::filter(), AlCaLowPUHBHEMuonFilter::filter(), HcalLaserEventFilter::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHFFilter2012::filter(), PrescaleEventFilter::filter(), HLTPrescaler::filter(), SiStripShotFilter::filter(), PickEvents::filter(), edm::HadronizerFilter< HAD, DEC >::filter(), AlCaIsoTracksFilter::filter(), EcalDeadCellTriggerPrimitiveFilter::filter(), HLTEcalResonanceFilter::filter(), HLTRegionalEcalResonanceFilter::filter(), LogErrorEventFilter::filter(), HSCPTreeBuilder::filter(), FWFileEntry::filterEventsWithCustomParser(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), RunManagerMTWorker::generateEvent(), RunManager::generateEvent(), MatacqProducer::getOrbitId(), egamma::getRandomSeedFromObj(), egamma::getRandomSeedFromSC(), TrackProducer::getTransient(), TrackProducerWithSCAssociation::getTransient(), tnp::BaseTreeFiller::init(), CmsShowMainFrame::loadEvent(), EcalDeadCellDeltaRFilter::loadEventInfo(), EgammaHLTNxNClusterProducer::makeNxNClusters(), RunLumiSelector::operator()(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), CkfDebugger::printSimHits(), TrackFinder::process(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), FFTJetTreeDump::processTreeData(), ShallowEventDataProducer::produce(), edm::FlatRandomMultiParticlePGunProducer::produce(), edm::RandomMultiParticlePGunProducer::produce(), HcalPatternSource::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FlatRandomPtThetaGunProducer::produce(), edm::GaussRandomPThetaGunProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), edm::CloseByParticleGunProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), edm::RandomtXiGunProducer::produce(), GsfTrackProducer::produce(), CSCDigiProducer::produce(), DTDigiToRawModule::produce(), PixelTrackProducer::produce(), TrackRefitter::produce(), CosmicMuonProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), GsfTrackRefitter::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), CosmicMuonLinksProducer::produce(), edm::FlatRandomEGunProducer::produce(), edm::FlatRandomPtGunProducer::produce(), TrackProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), CalibratedPhotonProducerRun2T< T >::produce(), ESDigiToRaw::produce(), DAFTrackProducer::produce(), edm::ExpoRandomPGunProducer::produce(), OscarProducer::produce(), EcalRecHitsMerger::produce(), ESRecHitsMerger::produce(), edm::RandomXiThetaGunProducer::produce(), StoreSecondary::produce(), CSCDCCUnpacker::produce(), PFV0Producer::produce(), CalibratedElectronProducerRun2T< T >::produce(), NtpProducer< C >::produce(), TrackerHitProducer::produce(), CastorDigiToRaw::produce(), HcalDigiToRaw::produce(), edm::FlatRandomPtAndDxyGunProducer::produce(), PreshowerClusterShapeProducer::produce(), SiPixelFedFillerWordEventNumber::produce(), edm::CosMuoGenProducer::produce(), PFDisplacedVertexProducer::produce(), RPCTwinMuxDigiToRaw::produce(), BeamSpotProducer::produce(), GenParticles2HepMCConverter::produce(), AlcaBeamSpotProducer::produce(), FakeTBEventHeaderProducer::produce(), sistrip::RawToDigiModule::produce(), GEMDigiToRawModule::produce(), PFDisplacedVertexCandidateProducer::produce(), OscarMTProducer::produce(), EcalListOfFEDSProducer::produce(), CSCRecHitDProducer::produce(), LaserAlignmentProducer::produce(), ESListOfFEDSProducer::produce(), RPCPackingModule::produce(), PFMET::produce(), CalibratedPhotonProducerT< T >::produce(), CSCTFPacker::produce(), EcalBarrelClusterFastTimer::produce(), DeDxHitInfoProducer::produce(), edm::BeamHaloProducer::produce(), EgammaHLTNxNClusterProducer::produce(), EcalTrigPrimProducer::produce(), ZToLLEdmNtupleDumper::produce(), CalibratedElectronProducerT< T >::produce(), TrackTimeValueMapProducer::produce(), HcalDigiToRawuHTR::produce(), GctDigiToRaw::produce(), EventWithHistoryProducer::produce(), PFProducer::produce(), RunManagerMTWorker::produce(), EventWithHistoryProducerFromL1ABC::produce(), DTDigitizer::produce(), PFSimParticleProducer::produce(), gen::Pythia6Gun::produce(), L1Comparator::produce(), reco::PFMETProducerMVA::produce(), RPCTrigger::produce(), omtf::OmtfPacker::produce(), SiPixelDigiToRaw::produce(), PFEGammaProducer::produce(), ConvBremSeedProducer::produce(), AlCaHBHEMuonProducer::produce(), DTTrigProd::produce(), EcalSimpleProducer::produce(), EcalDigiToRaw::produce(), L1GlobalTrigger::produce(), SiPixelCalibDigiProducer::produce(), APVCyclePhaseProducerFromL1ABC::produce(), l1t::GenToInputProducer::produce(), RunManager::produce(), DeepBoostedJetTagsProducer::produce(), reco::modules::TrackerTrackHitFilter::produce(), GlobalHitsProdHist::produce(), GlobalHitsProducer::produce(), GoodSeedProducer::produce(), LaserAlignment::produce(), AlCaIsoTracksProducer::produce(), L1TStage2CaloLayer2Comp::produce(), VirtualJetProducer::produce(), GlobalDigisProducer::produce(), AlCaHOCalibProducer::produce(), GlobalRecHitsProducer::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().

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

Definition at line 62 of file EventBase.h.

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

Referenced by PUDumper::analyze(), SUSY_HLT_InclusiveHT::analyze(), StandaloneTrackMonitor::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), HLTInspect::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SiStripMonitorCluster::analyze(), JetTester::analyze(), L1TRCT::analyze(), SUSY_HLT_SingleLepton::analyze(), LepHTMonitor::analyze(), L1TdeRCT::analyze(), EmDQM::analyze(), JetTester_HeavyIons::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(), TrackFinder::process(), WeakEffectsWeightProducer::produce(), TTStubAssociator< T >::produce(), TTClusterAssociator< T >::produce(), TTTrackAssociator< T >::produce(), edm::EventAuxiliaryHistoryProducer::produce(), HFEMClusterProducer::produce(), DistortedMETProducer::produce(), DistortedMuonProducerFromDB::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), BunchSpacingProducer::produce(), ISRGammaWeightProducer::produce(), FSRWeightProducer::produce(), ISRWeightProducer::produce(), PdfWeightProducer::produce(), LHECOMWeightProducer::produce(), CalibratedPhotonProducerT< T >::produce(), CalibratedElectronProducerT< T >::produce(), cms::METSignificanceProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), ReducedEGProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATTriggerEventProducer::produce(), pat::PATElectronProducer::produce(), pat::PATTriggerProducer::produce(), pat::PATMuonProducer::produce(), ShiftedJetProducerT< T, Textractor >::produce(), PileupJetIdProducer::produce(), JetCleanerForType1METT< T, Textractor >::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), AlCaHOCalibProducer::produce(), SmearedJetProducerT< T >::produce(), HBHEPhase1Reconstructor::produce(), and StringBranchHelper< Object, Collection >::StringBranchHelper().

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

Definition at line 61 of file EventBase.h.

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

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

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

Definition at line 65 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(), EcalTPGAnalyzer::analyze(), SiStripMonitorDigi::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(), HcalDigiToRawuHTR::produce(), EventWithHistoryProducer::produce(), EventWithHistoryProducerFromL1ABC::produce(), EcalDigiToRaw::produce(), L1GlobalTrigger::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTriggerFDL::run(), L1Analysis::L1AnalysisEvent::Set(), and amc13::Packet::write().

65 { 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 41 of file EventBase.cc.

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

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

41  {
43  }
bool getMapped(key_type const &k, value_type &result) const
Definition: Registry.cc:17
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 45 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(), and edm::TriggerNames::size().

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

45  {
46  // If TriggerNames was already created and cached here in the map,
47  // then look it up and return that one
48  TriggerNamesMap::const_iterator iter = triggerNamesMap.find(triggerResults.parameterSetID());
49  if (iter != triggerNamesMap.end()) {
50  return &iter->second;
51  }
52 
53  // Look for the parameter set containing the trigger names in the parameter
54  // set registry using the ID from TriggerResults as the key used to find it.
56  edm::ParameterSet const* pset = nullptr;
57  if (nullptr != (pset = psetRegistry->getMapped(triggerResults.parameterSetID()))) {
58  if (pset->existsAs<std::vector<std::string> >("@trigger_paths", true)) {
59  TriggerNames triggerNames(*pset);
60 
61  // This should never happen
62  if (triggerNames.size() != triggerResults.size()) {
63  throw cms::Exception("LogicError") << "edm::EventBase::triggerNames_ Encountered vector\n"
64  "of trigger names and a TriggerResults object with\n"
65  "different sizes. This should be impossible.\n"
66  "Please send information to reproduce this problem to\n"
67  "the edm developers.\n";
68  }
69 
70  std::pair<TriggerNamesMap::iterator, bool> ret = triggerNamesMap.insert(
71  std::pair<edm::ParameterSetID, edm::TriggerNames>(triggerResults.parameterSetID(), triggerNames));
72  return &(ret.first->second);
73  }
74  }
75  // For backward compatibility to very old data
76  if (!triggerResults.getTriggerNames().empty()) {
77  edm::ParameterSet fakePset;
78  fakePset.addParameter<std::vector<std::string> >("@trigger_paths", triggerResults.getTriggerNames());
79  fakePset.registerIt();
80  TriggerNames triggerNames(fakePset);
81 
82  // This should never happen
83  if (triggerNames.size() != triggerResults.size()) {
84  throw cms::Exception("LogicError") << "edm::EventBase::triggerNames_ Encountered vector\n"
85  "of trigger names and a TriggerResults object with\n"
86  "different sizes. This should be impossible.\n"
87  "Please send information to reproduce this problem to\n"
88  "the edm developers (2).\n";
89  }
90 
91  std::pair<TriggerNamesMap::iterator, bool> ret =
92  triggerNamesMap.insert(std::pair<edm::ParameterSetID, edm::TriggerNames>(fakePset.id(), triggerNames));
93  return &(ret.first->second);
94  }
95  return nullptr;
96  }
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:161
ParameterSetID id() const
Strings::size_type size() const
Definition: TriggerNames.cc:31
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:125
bool getMapped(key_type const &k, value_type &result) const
Definition: Registry.cc:17
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