CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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 ProcessHistory const & processHistory () const =0
 
edm::Timestamp time () const
 
virtual TriggerNames const & triggerNames (edm::TriggerResults const &triggerResults) const =0
 
virtual TriggerResultsByName triggerResultsByName (std::string const &process) const =0
 
virtual ~EventBase ()
 

Static Protected Member Functions

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
 

Detailed Description

Definition at line 45 of file EventBase.h.

Constructor & Destructor Documentation

EventBase::EventBase ( )

Definition at line 33 of file EventBase.cc.

34  {
35  }
EventBase::~EventBase ( )
virtual

Reimplemented in fwlite::EventBase.

Definition at line 37 of file EventBase.cc.

38  {
39  }

Member Function Documentation

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

Definition at line 62 of file EventBase.h.

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

Referenced by HcalNZSMonitor::analyze(), ESRawDataTask::analyze(), EventHeader::analyze(), HcalBeamMonitor::analyze(), EERawDataTask::analyze(), EBRawDataTask::analyze(), HcalRecHitMonitor::analyze(), HLTInspect::analyze(), EcalTPGAnalyzer::analyze(), myJetAna::analyze(), HitEff::analyze(), SiPixelDigiSource::analyze(), EventTimeDistribution::analyze(), HcalDigiMonitor::analyze(), RPCTTUMonitor::analyze(), FourVectorHLTOnline::analyze(), CastorMonitorModule::analyze(), HLTScalers::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), BeamHaloAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), ecaldqm::RawDataTask::beginEvent(), ecaldqm::TrigPrimTask::beginEvent(), MultiplicityCorrelatorHistogramMaker::fill(), DigiVertexCorrHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), L1GlobalTriggerPSB::fillPsbBlock(), myFilter::filter(), BeamSplash::filter(), PhysDecl::filter(), FilterOutScraping::filter(), HighLumiFilter::filter(), GetLumi::getRawValue(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), EBTriggerTowerTask::processDigis(), EETriggerTowerTask::processDigis(), ShallowEventDataProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), EventWithHistoryProducer::produce(), EventWithHistoryProducerFromL1ABC::produce(), RPCTrigger::produce(), EcalDigiToRaw::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTrigger::produce(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), and LaserSorter::writeEventHeader().

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

Definition at line 86 of file EventBase.h.

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

Referenced by FWSimTrackProxyBuilder::build(), FWECALDetailViewBuilder::buildCaloData(), FWEventItem::data(), FWHLTValidator::fillOptions(), FWPFCandidateWithHitsProxyBuilder::initPFRecHitsCollections(), PFRootEventManager::readFromSimulation(), pf2pat::IsolatedPFCandidateSelectorDefinition::select(), FWECALDetailViewBuilder::showSuperClusters(), edm::LumiReWeighting::weight(), edm::Lumi3DReWeighting::weight3D(), and edm::LumiReWeighting::weightOOT().

86  {
87  result.clear();
88  BasicHandle bh = this->getByLabelImpl(typeid(edm::Wrapper<T>), typeid(T), tag);
89  convert_handle(bh, result); // throws on conversion error
90  if (bh.failedToGet()) {
91  return false;
92  }
93  return true;
94  }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
void convert_handle(BasicHandle const &bh, Handle< T > &result)
Definition: ConvertHandle.h:19
long double T
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 65 of file FWGenericHandle.cc.

References edm::convert_handle(), edm::BasicHandle::failedToGet(), query::result, and GlobalPosition_Frontier_DevDB_cff::tag.

67 {
68  std::string dataTypeName = result.type().Name(Reflex::SCOPED);
69  if (dataTypeName[dataTypeName.size() -1] == '>')
70  dataTypeName += " ";
71  std::string wrapperName = "edm::Wrapper<" + dataTypeName + ">";
72 
73  Reflex::Type wrapperType = Reflex::Type::ByName(wrapperName);
74 
75  BasicHandle bh = this->getByLabelImpl(wrapperType.TypeInfo(),
76  result.type().TypeInfo(),
77  tag);
78  convert_handle(bh, result); // throws on conversion error
79  if(bh.failedToGet())
80  return false;
81  return true;
82 }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
void convert_handle(BasicHandle const &bh, Handle< T > &result)
Definition: ConvertHandle.h:19
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, and fwlite::EventBase.

Referenced by getByLabel().

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

Definition at line 56 of file EventBase.h.

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

Referenced by fwlite::RunLumiSelector::accept(), Selection< C, Selector, StoreContainer >::accept(), 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(), SiStripGainFromData::algoAnalyze(), SiStripHitEffFromCalibTree::algoAnalyze(), CSCDigiDump::analyze(), HFLightCal::analyze(), HFPreLightCal::analyze(), HFLightCalRand::analyze(), PerformanceAnalyzer::analyze(), ElectronIDAnalyzer::analyze(), DQMFileSaver::analyze(), EcalTrivialObjectAnalyzer::analyze(), evf::EvFRecordInserter::analyze(), ESOccupancyTask::analyze(), ESPedestalTask::analyze(), ESRawDataTask::analyze(), RawDataConverter::analyze(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), JetValidation::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), KVFTrackUpdate::analyze(), PlaybackRawDataProvider::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripSummaryBuilder::analyze(), edmtest::FillInfoESAnalyzer::analyze(), ElectronAnalyzer::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), EventHeader::analyze(), ESTimingTask::analyze(), HcalTBWriter::analyze(), SiStripQualityStatistics::analyze(), AlignmentStats::analyze(), pat::CandidateSummaryTable::analyze(), SiStripMonitorDigi::analyze(), MCElectronAnalyzer::analyze(), MCPhotonAnalyzer::analyze(), MCPizeroAnalyzer::analyze(), PhotonsWithConversionsAnalyzer::analyze(), SimpleConvertedPhotonAnalyzer::analyze(), BeamSpotFromDB::analyze(), EBRawDataTask::analyze(), EERawDataTask::analyze(), BeamSpotAnalyzer::analyze(), EBTrendTask::analyze(), EcalBarrelMonitorModule::analyze(), EcalEndcapMonitorModule::analyze(), SiStripMonitorCluster::analyze(), AlCaElectronsTest::analyze(), HcalDetDiagLEDMonitor::analyze(), test::GlobalNumbersAnalysis::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), PFCandidateChecker::analyze(), HcalSimHitStudy::analyze(), SimHitsValidationHcal::analyze(), ZdcSimHitStudy::analyze(), SiStripCommissioningOfflineClient::analyze(), HLTInspect::analyze(), HcalMonitorClient::analyze(), HcalDetDiagNoiseMonitor::analyze(), SiStripCommissioningSource::analyze(), SiStripLAProfileBooker::analyze(), ElectronStudy::analyze(), ElectronSeedAnalyzer::analyze(), DTT0Calibration::analyze(), EcalPedHists::analyze(), DumpGctDigis::analyze(), SimplePhotonAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), DTT0CalibrationNew::analyze(), HcalMonitorModule::analyze(), ZDCMonitorModule::analyze(), DTConfigTester::analyze(), EcalTPGAnalyzer::analyze(), sistrip::SpyExtractRunModule::analyze(), TrackingMonitor::analyze(), DQMEventInfo::analyze(), EventIDChecker::analyze(), L1CondDBIOVWriter::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), CentralityTableProducer::analyze(), L1TScalersSCAL::analyze(), KVFTest::analyze(), RPCPhiEff::analyze(), DQMAnalyzer::analyze(), PFJetAnalyzer::analyze(), XmasToDQMEventInfo::analyze(), GsfElectronMCAnalyzer::analyze(), EcalBarrelMonitorClient::analyze(), EcalEndcapMonitorClient::analyze(), SiStripMonitorRawData::analyze(), KineExample::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), L1TRate::analyze(), myJetAna::analyze(), ElectronConversionRejectionValidator::analyze(), ContainmentCorrectionAnalyzer::analyze(), EcalPreshowerSimHitsValidation::analyze(), DuplicationChecker::analyze(), edmtest::HcalDumpConditions::analyze(), SimplePi0DiscAnalyzer::analyze(), edm::SecSourceAnalyzer::analyze(), DTSegmentAnalysisTask::analyze(), cms::DiJetAnalyzer::analyze(), DTTrigTest::analyze(), L1GtPatternGenerator::analyze(), TopDiLeptonDQM::analyze(), GeneralHLTOffline::analyze(), HitEff::analyze(), HLTrigReport::analyze(), cms::GammaJetAnalysis::analyze(), HiggsDQM::analyze(), TrackerHitAnalyzer::analyze(), L1O2OTestAnalyzer::analyze(), EcalSimHitsValidation::analyze(), DTCreateSummaryHistos::analyze(), FFTJetImageRecorder::analyze(), JetAnalyzer::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), EcalRecHitsValidation::analyze(), EcalBxOrbitNumberGrapher::analyze(), IgProfModule::analyze(), calcTopMass::analyze(), EGammaCutBasedEleIdAnalyzer::analyze(), SiPixelRecHitsValid::analyze(), SiStripRecHitsValid::analyze(), SiStripSpyMonitorModule::analyze(), BigEventsDebugger::analyze(), MulticoreRunLumiEventChecker::analyze(), SiStripMonitorPedestals::analyze(), SiStripMonitorTrack::analyze(), EcalDigisValidation::analyze(), EcalURecHitHists::analyze(), EcalLaserAnalyzerYousi::analyze(), CastorDumpConditions::analyze(), SiStripFEDMonitorPlugin::analyze(), FFTJetPileupAnalyzer::analyze(), SiPixelErrorEstimation::analyze(), GlobalDigisHistogrammer::analyze(), GlobalRecHitsHistogrammer::analyze(), CaloMETAnalyzer::analyze(), LhcTrackAnalyzer::analyze(), TestOutliers::analyze(), EcalMipGraphs::analyze(), JetMETHLTOfflineSource::analyze(), EcalDisplaysByEvent::analyze(), MuonSimHitsValidAnalyzer::analyze(), CSCViewDigi::analyze(), SiPixelTrackingRecHitsValid::analyze(), HcalPedestalMCWidths::analyze(), HcalPedestalsAnalysis::analyze(), ValidIsoTrkCalib::analyze(), Vx3DHLTAnalyzer::analyze(), SiStripCMMonitorPlugin::analyze(), CosmicSplitterValidation::analyze(), EcalCosmicsHists::analyze(), HcalPedestalWidthsValidation::analyze(), CastorPedestalsAnalysis::analyze(), SiStripBaselineAnalyzer::analyze(), GlobalHitsAnalyzer::analyze(), HcalTimingMonitorModule::analyze(), GlobalHitsHistogrammer::analyze(), CastorMonitorModule::analyze(), GctErrorAnalyzer::analyze(), PiZeroAnalyzer::analyze(), SiPixelLorentzAngle::analyze(), IsolatedGenParticles::analyze(), SiStripSpyDisplayModule::analyze(), HcalIsoTrkAnalyzer::analyze(), IsolatedTracksCone::analyze(), HLTScalers::analyze(), PhotonAnalyzer::analyze(), ZToMuMuGammaAnalyzer::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), LaserSorter::analyze(), GlobalDigisAnalyzer::analyze(), TrackerDpgAnalysis::analyze(), EcnaAnalyzer::analyze(), SiPixelOfflineCalibAnalysisBase::analyze(), HcalDetDiagPedestalMonitor::analyze(), GlobalRecHitsAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), HOCalibAnalyzer::analyze(), ResidualRefitting::analyze(), HcalDetDiagLaserMonitor::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeTrigger(), MuonDetLayerMeasurements::checkCSCRecHits(), MuonDetLayerMeasurements::checkDTRecHits(), MuonDetLayerMeasurements::checkRPCRecHits(), CSCDigiToRaw::createFedBuffers(), sistrip::DigiToRaw::createFedBuffers_(), GsfElectronAlgo::displayInternalElectrons(), edm::DataMixingModule::doPileUp(), edm::MixingModule::doPileUp(), edmtest::HcalDumpConditions::dumpIt(), CastorDumpConditions::dumpIt(), AlignmentProducer::duringLoop(), EventWithHistory::EventWithHistory(), L1GtPatternGenerator::extractGlobalTriggerData(), extractRecordData(), FWHLTTriggerTableView::fillAverageAcceptFractions(), HLXMonitor::FillEventInfo(), L1GlobalTriggerPSB::fillPsbBlock(), DTTFFEDSim::fillRawData(), myFilter::filter(), PFDQMEventSelector::filter(), TrackingFailureFilter::filter(), SkipBadEvents::filter(), MultiEventFilter::filter(), EcalTangentFilter::filter(), PhotonIsoProducer::filter(), PythiaFilterGammaJetIsoPi0::filter(), SiStripCommissioningBasicPrescaler::filter(), LogErrorEventFilter::filter(), EcalLaserCorrFilter::filter(), PhysDecl::filter(), HLTPrescaler::filter(), BeamSplash::filter(), FilterOutScraping::filter(), NMaxPerLumi::filter(), MCZll::filter(), edm::GeneratorFilter< HAD, DEC >::filter(), EcalSkim::filter(), PickEvents::filter(), edm::HadronizerFilter< HAD, DEC >::filter(), HcalLaserEventFilter2012::filter(), HcalLaserEventFilter::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHFFilter2012::filter(), SiStripShotFilter::filter(), HLTEcalResonanceFilter::filter(), HSCPTreeBuilder::filter(), FWFileEntry::filterEventsWithCustomParser(), RunManager::generateEvent(), L1GtUtils::getL1GtRecordInputTag(), MatacqProducer::getOrbitId(), edm::Event::getProcessParameterSet(), TrackProducer::getTransient(), TrackProducerWithSCAssociation::getTransient(), HLTEventNumberFilter::hltFilter(), tnp::BaseTreeFiller::init(), PFRootEventManager::initializeEventInformation(), FWFFNavigator::isFirstEvent(), CmsShowMainFrame::loadEvent(), EcalDeadCellDeltaRFilter::loadEventInfo(), EcalDeadCellTriggerPrimitiveFilter::loadEventInfo(), EgammaHLTNxNClusterProducer::makeNxNClusters(), CentralityProvider::newEvent(), RunLumiSelector::operator()(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), edm::service::IgProfService::postEvent(), edm::service::SimpleMemoryCheck::postEventProcessing(), CkfDebugger::printSimHits(), PFRootEventManager::processEntry(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), FFTJetTreeDump::processTreeData(), ShallowEventDataProducer::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FlatRandomPtThetaGunProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), HcalPatternSource::produce(), GsfTrackProducer::produce(), GsfTrackRefitter::produce(), edm::EventAuxiliaryHistoryProducer::produce(), PixelTrackProducer::produce(), DTDigiToRawModule::produce(), EcalTBH2TDCRecInfoProducer::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), CosmicMuonProducer::produce(), ESRecHitsMerger::produce(), edm::FlatRandomEGunProducer::produce(), FSPFProducer::produce(), TrackRefitter::produce(), edm::FlatRandomPtGunProducer::produce(), EcalRecHitsMerger::produce(), CosmicMuonLinksProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), TrackProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), EcalListOfFEDSProducer::produce(), edm::CosMuoGenProducer::produce(), ESListOfFEDSProducer::produce(), PFV0Producer::produce(), ESDigiToRaw::produce(), CSCTFPacker::produce(), StoreSecondary::produce(), CSCDCCUnpacker::produce(), NtpProducer< C >::produce(), HcalDigiToRaw::produce(), CastorDigiToRaw::produce(), PFDisplacedVertexCandidateProducer::produce(), SiPixelFedFillerWordEventNumber::produce(), PFDisplacedVertexProducer::produce(), RPCPackingModule::produce(), sistrip::RawToDigiModule::produce(), BeamSpotProducer::produce(), edm::BeamHaloProducer::produce(), PreshowerClusterShapeProducer::produce(), AlcaBeamSpotProducer::produce(), PFProducer::produce(), SiPixelDigiToRaw::produce(), PiZeroDiscriminatorProducer::produce(), GenParticles2HepMCConverter::produce(), PFMET::produce(), FakeTBEventHeaderProducer::produce(), PFBlockProducer::produce(), DTTrigProd::produce(), ZToLLEdmNtupleDumper::produce(), gen::Pythia6Gun::produce(), EcalTrigPrimProducer::produce(), DTDigitizer::produce(), PFSimParticleProducer::produce(), edm::ExhumeProducer::produce(), EventWithHistoryProducer::produce(), PFElecTkProducer::produce(), GctDigiToRaw::produce(), EventWithHistoryProducerFromL1ABC::produce(), TopProjector< Top, Bottom >::produce(), RPCTrigger::produce(), GoodSeedProducer::produce(), L1Comparator::produce(), EcalDigiToRaw::produce(), ConvBremSeedProducer::produce(), TrackerHitProducer::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTrigger::produce(), SiPixelCalibDigiProducer::produce(), RunManager::produce(), EgammaHLTNxNClusterProducer::produce(), reco::modules::TrackerTrackHitFilter::produce(), GlobalHitsProdHist::produce(), GlobalHitsProducer::produce(), VirtualJetProducer::produce(), LaserAlignment::produce(), GlobalDigisProducer::produce(), GlobalRecHitsProducer::produce(), AlCaHOCalibProducer::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), ElectronSeedGenerator::run(), edm::Event::run(), SiStripElectronSeedGenerator::run(), FastElectronSeedGenerator::run(), FWFFNavigator::setCurrentEvent(), PFMETDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), OnDemandMeasurementTracker::updateStrips(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeEventHeader().

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

Definition at line 60 of file EventBase.h.

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

Referenced by CaloJetTesterUnCorr::analyze(), JPTJetTesterUnCorr::analyze(), PFJetTesterUnCorr::analyze(), CaloJetTester::analyze(), CaloJetTesterUnCorr_HeavyIons::analyze(), PFJetTester::analyze(), JPTJetTester::analyze(), EBRawDataTask::analyze(), EERawDataTask::analyze(), EmDQM::analyze(), SiStripMonitorCluster::analyze(), DataCertificationJetMET::analyze(), HLTInspect::analyze(), L1TRCT::analyze(), L1TdeRCT::analyze(), L1TGCT::analyze(), ecaldqm::RawDataTask::beginEvent(), DetectorStateFilter::filter(), JetMETDQMDCSFilter::filter(), HLTPhysicsDeclared::filter(), HLTTriggerTypeFilter::filter(), HLTL1NumberFilter::filter(), L1GtBeamModeFilter::filter(), HLTEventNumberFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), HLTBeamModeFilter::hltFilter(), EcalDeadCellDeltaRFilter::loadEventInfo(), HcalSimpleReconstructor::process(), WeakEffectsWeightProducer::produce(), DistortedMETProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), HFEMClusterProducer::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), DistortedMuonProducerFromDB::produce(), ISRGammaWeightProducer::produce(), HcalSimpleReconstructor::produce(), FSRWeightProducer::produce(), ISRWeightProducer::produce(), PdfWeightProducer::produce(), LHECOMWeightProducer::produce(), VoronoiBackgroundProducer::produce(), pat::PATPhotonProducer::produce(), HcalHitReconstructor::produce(), pat::PATMuonProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), pat::PATTriggerEventProducer::produce(), pat::PATElectronProducer::produce(), and pat::PATTriggerProducer::produce().

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

Definition at line 59 of file EventBase.h.

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

Referenced by fwlite::RunLumiSelector::accept(), SiStripHitEffFromCalibTree::algoAnalyze(), HcalNZSMonitor::analyze(), RawDataConverter::analyze(), HcalTrigPrimMonitor::analyze(), HcalCoarsePedestalMonitor::analyze(), ElectronAnalyzer::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), EventHeader::analyze(), SiStripQualityStatistics::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), test::GlobalNumbersAnalysis::analyze(), HcalBaseDQMonitor::analyze(), HLTInspect::analyze(), HcalMonitorClient::analyze(), HcalDetDiagNoiseMonitor::analyze(), ZeePlots::analyze(), HcalRawDataMonitor::analyze(), WenuPlots::analyze(), HcalMonitorModule::analyze(), ZDCMonitorModule::analyze(), HcalDeadCellMonitor::analyze(), BeamMonitor::analyze(), BeamMonitorBx::analyze(), L1Scalers::analyze(), HcalDataIntegrityTask::analyze(), HcalHotCellMonitor::analyze(), NoiseRates::analyze(), L1TScalersSCAL::analyze(), HcalNoiseRates::analyze(), XmasToDQMEventInfo::analyze(), HLTAnalyzer::analyze(), myJetAna::analyze(), TopDiLeptonDQM::analyze(), L1GtPatternGenerator::analyze(), HLTrigReport::analyze(), SiPixelDigiSource::analyze(), HcalZDCMonitor::analyze(), SiPixelRawDataErrorSource::analyze(), L1TGT::analyze(), EGammaCutBasedEleIdAnalyzer::analyze(), JetMETAnalyzer::analyze(), SiPixelClusterSource::analyze(), OccupancyPlotter::analyze(), JetMETHLTOfflineSource::analyze(), HcalDigiMonitor::analyze(), CastorMonitorModule::analyze(), HcalDetDiagTimingMonitor::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), LaserSorter::analyze(), BeamHaloAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), MuCorrMETAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), CaloMETAnalyzer::fillMonitorElementTriggered(), LogErrorEventFilter::filter(), BeamSplash::filter(), PhysDecl::filter(), EcalLaserCorrFilter::filter(), FilterOutScraping::filter(), LumiblockFilter::filter(), HcalLaserEventFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHFFilter2012::filter(), ZeeCandidateFilter::filter(), EcalDeadCellDeltaRFilter::loadEventInfo(), EcalDeadCellTriggerPrimitiveFilter::loadEventInfo(), ShallowEventDataProducer::produce(), NtpProducer< C >::produce(), ZToLLEdmNtupleDumper::produce(), L1GlobalTrigger::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), fwlite::ChainEvent::to(), fwlite::MultiChainEvent::to(), fwlite::Event::to(), edm::LumiReWeighting::weightOOT(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeEventHeader().

59 {return eventAuxiliary().luminosityBlock();}
virtual edm::EventAuxiliary const & eventAuxiliary() const =0
LuminosityBlockNumber_t luminosityBlock() const
int edm::EventBase::orbitNumber ( ) const
inline
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 42 of file EventBase.cc.

References edm::ParameterSet::addParameter(), edm::hlt::Exception, edm::ParameterSet::existsAs(), edm::detail::ThreadSafeRegistry< KEY, T, E >::getMapped(), edm::TriggerResults::getTriggerNames(), edm::ParameterSet::id(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), edm::TriggerResults::parameterSetID(), edm::previousTriggerName, edm::ParameterSet::registerIt(), run_regression::ret, edm::HLTGlobalStatus::size(), edm::TriggerNames::size(), triggerNames(), and edm::triggerNamesMap.

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

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