CMS 3D CMS Logo

Public Member Functions | Static Protected Member Functions | Private Member Functions

edm::EventBase Class Reference

#include <EventBase.h>

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

List of all members.

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>
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 ( )

Reimplemented in fwlite::EventBase.

Definition at line 33 of file EventBase.cc.

   {
   }
EventBase::~EventBase ( ) [virtual]

Reimplemented in fwlite::EventBase.

Definition at line 37 of file EventBase.cc.

   {
   }

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

virtual edm::EventAuxiliary const& edm::EventBase::eventAuxiliary ( ) const [pure virtual]
edm::EventAuxiliary::ExperimentType edm::EventBase::experimentType ( ) const [inline]
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.

{
   std::string dataTypeName = result.type().Name(ROOT::Reflex::SCOPED);
   if (dataTypeName[dataTypeName.size() -1] == '>')
      dataTypeName += " ";
   std::string wrapperName = "edm::Wrapper<" + dataTypeName + ">";

   ROOT::Reflex::Type wrapperType = ROOT::Reflex::Type::ByName(wrapperName);

   BasicHandle bh = this->getByLabelImpl(wrapperType.TypeInfo(),
                                         result.type().TypeInfo(),
                                         tag);
   convert_handle(bh, result);  // throws on conversion error
   if(bh.failedToGet()) 
      return false;
   return true;
}
template<typename T >
bool EventBase::getByLabel ( InputTag const &  tag,
Handle< T > &  result 
) const
virtual BasicHandle edm::EventBase::getByLabelImpl ( std::type_info const &  iWrapperType,
std::type_info const &  iProductType,
InputTag const &  iTag 
) const [private, pure virtual]

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

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

{return eventAuxiliary().id();}
bool edm::EventBase::isRealData ( ) const [inline]

Definition at line 60 of file EventBase.h.

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

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

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

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) [static, protected]

Definition at line 42 of file EventBase.cc.

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

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

                                                                   {

      // If the current and previous requests are for the same TriggerNames
      // then just return it.  
      if (!triggerNamesMap.empty() &&
          previousTriggerName->first == triggerResults.parameterSetID()) {
         return &previousTriggerName->second;
      }

      // If TriggerNames was already created and cached here in the map,
      // then look it up and return that one
      TriggerNamesMap::const_iterator iter =
         triggerNamesMap.find(triggerResults.parameterSetID());
      if (iter != triggerNamesMap.end()) {
         previousTriggerName = iter;
         return &iter->second;
      }

      // Look for the parameter set containing the trigger names in the parameter
      // set registry using the ID from TriggerResults as the key used to find it.
      edm::pset::Registry* psetRegistry = edm::pset::Registry::instance();
      edm::ParameterSet const* pset=0;
      if (0!=(pset=psetRegistry->getMapped(triggerResults.parameterSetID()))) {

         if (pset->existsAs<std::vector<std::string> >("@trigger_paths", true)) {
            TriggerNames triggerNames(*pset);

            // This should never happen
            if (triggerNames.size() != triggerResults.size()) {
               throw cms::Exception("LogicError")
                  << "edm::EventBase::triggerNames_ Encountered vector\n"
                     "of trigger names and a TriggerResults object with\n"
                     "different sizes.  This should be impossible.\n"
                     "Please send information to reproduce this problem to\n"
                     "the edm developers.\n";
            }

            std::pair<TriggerNamesMap::iterator, bool> ret =
               triggerNamesMap.insert(std::pair<edm::ParameterSetID, edm::TriggerNames>(triggerResults.parameterSetID(), triggerNames));
            previousTriggerName = ret.first;
            return &(ret.first->second);
         }
      }
      // For backward compatibility to very old data
      if (triggerResults.getTriggerNames().size() > 0U) {
         edm::ParameterSet fakePset;
         fakePset.addParameter<std::vector<std::string> >("@trigger_paths", triggerResults.getTriggerNames());
         fakePset.registerIt();
         TriggerNames triggerNames(fakePset);

         // This should never happen
         if (triggerNames.size() != triggerResults.size()) {
            throw cms::Exception("LogicError")
               << "edm::EventBase::triggerNames_ Encountered vector\n"
                  "of trigger names and a TriggerResults object with\n"
                  "different sizes.  This should be impossible.\n"
                  "Please send information to reproduce this problem to\n"
                  "the edm developers (2).\n";
         }

         std::pair<TriggerNamesMap::iterator, bool> ret =
            triggerNamesMap.insert(std::pair<edm::ParameterSetID, edm::TriggerNames>(fakePset.id(), triggerNames));
         previousTriggerName = ret.first;
         return &(ret.first->second);
      }
      return 0;
   }
virtual TriggerResultsByName edm::EventBase::triggerResultsByName ( std::string const &  process) const [pure virtual]