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<class T >
bool getByLabel (const InputTag &, 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
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 (const std::type_info &iWrapperType, const std::type_info &iProductType, const InputTag &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 IsolatedTracksHcalScale::analyze(), PrimaryVertexAnalyzer4PU::analyze(), EBRawDataTask::analyze(), BeamHaloAnalyzer::analyze(), HcalDigiMonitor::analyze(), ESFEDIntegrityTask::analyze(), ESRawDataTask::analyze(), EERawDataTask::analyze(), HcalRecHitMonitor::analyze(), FourVectorHLTOnline::analyze(), HcalBeamMonitor::analyze(), HitEff::analyze(), SiPixelDigiSource::analyze(), L1TRPCTF::analyze(), FourVectorHLTOffline::analyze(), EventTimeDistribution::analyze(), EcalTPGAnalyzer::analyze(), IsolatedTracksNxN::analyze(), HLTScalers::analyze(), RPCTTUMonitor::analyze(), HcalNZSMonitor::analyze(), EventHeader::analyze(), CastorMonitorModule::analyze(), HLTInspect::analyze(), myJetAna::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), L1GlobalTriggerPSB::fillPsbBlock(), PhysDecl::filter(), BeamSplash::filter(), myFilter::filter(), FilterOutScraping::filter(), L1GTDigiToRaw::packHeader(), L1GTEvmDigiToRaw::packHeader(), EETriggerTowerTask::processDigis(), EBTriggerTowerTask::processDigis(), EventWithHistoryProducerFromL1ABC::produce(), EventWithHistoryProducer::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 68 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<class T >
bool EventBase::getByLabel ( const InputTag tag,
Handle< T > &  result 
) const
virtual BasicHandle edm::EventBase::getByLabelImpl ( const std::type_info &  iWrapperType,
const std::type_info &  iProductType,
const InputTag 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(), ElectronMcFakeValidator::analyze(), GlobalRecHitsHistogrammer::analyze(), MCPhotonAnalyzer::analyze(), DTTrigTest::analyze(), HFLightCalRand::analyze(), EcalEndcapMonitorModule::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), ElectronAnalyzer::analyze(), XmasToDQMEventInfo::analyze(), EventIDChecker::analyze(), IgProfModule::analyze(), PrimaryVertexAnalyzer4PU::analyze(), PhotonValidator::analyze(), GlobalDigisHistogrammer::analyze(), JetValidation::analyze(), GsfElectronDataAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), IsolatedTracksHcalScale::analyze(), TrackerDpgAnalysis::analyze(), HcalDetDiagLaserMonitor::analyze(), AlCaElectronsTest::analyze(), EcalPedHists::analyze(), L1O2OTestAnalyzer::analyze(), EBRawDataTask::analyze(), L1TScalersSCAL::analyze(), KVFTest::analyze(), calcTopMass::analyze(), DumpGctDigis::analyze(), EcnaAnalyzer::analyze(), EcalTrivialObjectAnalyzer::analyze(), DTT0CalibrationNew::analyze(), HcalIsoTrkAnalyzer::analyze(), SiStripQualityStatistics::analyze(), EcalBxOrbitNumberGrapher::analyze(), ESTimingTask::analyze(), BeamHaloAnalyzer::analyze(), MuonSimHitsValidAnalyzer::analyze(), BeamSpotAnalyzer::analyze(), HcalPedestalMCWidths::analyze(), EBTrendTask::analyze(), SiStripMonitorRawData::analyze(), DQMEventInfo::analyze(), EcalRecHitsValidation::analyze(), CentralityTableProducer::analyze(), pat::CandidateSummaryTable::analyze(), GctErrorAnalyzer::analyze(), LhcTrackAnalyzer::analyze(), ResidualRefitting::analyze(), EcalMipGraphs::analyze(), EcalURecHitHists::analyze(), Vx3DHLTAnalyzer::analyze(), EcalBarrelMonitorClient::analyze(), ESRawDataTask::analyze(), ElectronGeneralAnalyzer::analyze(), SiPixelRecHitsValid::analyze(), PerformanceAnalyzer::analyze(), GlobalDigisAnalyzer::analyze(), HFLightCal::analyze(), cms::DiJetAnalyzer::analyze(), SiStripApvGainBuilder::analyze(), SiStripThresholdBuilder::analyze(), EcalBarrelMonitorModule::analyze(), EERawDataTask::analyze(), SiStripMonitorCluster::analyze(), DQMFileSaver::analyze(), PlaybackRawDataProvider::analyze(), test::GlobalNumbersAnalysis::analyze(), DuplicationChecker::analyze(), EcalDigisValidation::analyze(), KineExample::analyze(), ElectronIDAnalyzer::analyze(), LaserSorter::analyze(), SiPixelErrorEstimation::analyze(), SiPixelOfflineCalibAnalysisBase::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), SiStripCommissioningOfflineClient::analyze(), PhotonAnalyzer::analyze(), CaloMETAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), DTConfigTester::analyze(), EcalCosmicsHists::analyze(), HcalDetDiagPedestalMonitor::analyze(), TopDiLeptonDQM::analyze(), RPCEfficiency::analyze(), SiStripCommissioningSource::analyze(), HLTrigReport::analyze(), SiPixelTrackingRecHitsValid::analyze(), HcalSimHitStudy::analyze(), GlobalHitsAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), DTT0Calibration::analyze(), HitEff::analyze(), SiStripDetVOffFakeBuilder::analyze(), ESOccupancyTask::analyze(), HcalDetDiagNoiseMonitor::analyze(), SiStripMonitorDigi::analyze(), SiStripCMMonitorPlugin::analyze(), EcalBarrelSimHitsValidation::analyze(), ContainmentCorrectionAnalyzer::analyze(), MCPizeroAnalyzer::analyze(), ElectronSeedAnalyzer::analyze(), SiPixelLorentzAngle::analyze(), SiStripNoisesBuilder::analyze(), HcalMonitorModule::analyze(), ElectronTagProbeAnalyzer::analyze(), CSCViewDigi::analyze(), SiStripRecHitsValid::analyze(), ZdcSimHitStudy::analyze(), SimpleConvertedPhotonAnalyzer::analyze(), MCElectronAnalyzer::analyze(), CastorPedestalsAnalysis::analyze(), cms::GammaJetAnalysis::analyze(), IsolatedTracksCone::analyze(), edmtest::RunInfoESAnalyzer::analyze(), SiStripSummaryBuilder::analyze(), SiStripSpyDisplayModule::analyze(), GlobalRecHitsAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), HOCalibAnalyzer::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), SiStripPedestalsBuilder::analyze(), HcalMonitorClient::analyze(), HcalTimingMonitorModule::analyze(), ZDCMonitorModule::analyze(), HcalDetDiagLEDMonitor::analyze(), SiStripFEDMonitorPlugin::analyze(), MulticoreRunLumiEventChecker::analyze(), EcalSimHitsValidation::analyze(), CSCDigiDump::analyze(), TestOutliers::analyze(), SiStripBaselineAnalyzer::analyze(), SimplePi0DiscAnalyzer::analyze(), HcalPedestalsAnalysis::analyze(), IsolatedTracksNxN::analyze(), EcalTPGAnalyzer::analyze(), L1CondDBIOVWriter::analyze(), DTCreateSummaryHistos::analyze(), DTSegmentAnalysisTask::analyze(), TrackerHitAnalyzer::analyze(), KVFTrackUpdate::analyze(), DQMAnalyzer::analyze(), HcalPedestalWidthsValidation::analyze(), HFPreLightCal::analyze(), ValidIsoTrkCalib::analyze(), EcalDisplaysByEvent::analyze(), EcalEndcapMonitorClient::analyze(), ZDCMonitorClient::analyze(), HLTScalers::analyze(), PiZeroAnalyzer::analyze(), EcalEndcapSimHitsValidation::analyze(), BeamSpotFromDB::analyze(), AlignmentStats::analyze(), EcalLaserAnalyzerYousi::analyze(), SiStripLAProfileBooker::analyze(), HiggsDQM::analyze(), SiStripMonitorTrack::analyze(), evf::EvFRecordInserter::analyze(), EventHeader::analyze(), TkConvValidator::analyze(), GlobalHitsHistogrammer::analyze(), EcalPreshowerSimHitsValidation::analyze(), myJetAna::analyze(), GsfElectronFakeAnalyzer::analyze(), RawDataConverter::analyze(), edmtest::HcalDumpConditions::analyze(), HLTInspect::analyze(), CastorMonitorModule::analyze(), ESPedestalTask::analyze(), sistrip::SpyExtractRunModule::analyze(), SiStripSpyMonitorModule::analyze(), SiStripMonitorPedestals::analyze(), HcalTBWriter::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), MuonDetLayerMeasurements::checkCSCRecHits(), MuonDetLayerMeasurements::checkDTRecHits(), MuonDetLayerMeasurements::checkRPCRecHits(), CSCDigiToRaw::createFedBuffers(), sistrip::DigiToRaw::createFedBuffers_(), GsfElectronAlgo::displayInternalElectrons(), edmtest::HcalDumpConditions::dumpIt(), AlignmentProducer::duringLoop(), EventWithHistory::EventWithHistory(), L1GtPatternGenerator::extractGlobalTriggerData(), extractRecordData(), FWHLTTriggerTableView::fillAverageAcceptFractions(), HLXMonitor::FillEventInfo(), L1GlobalTriggerPSB::fillPsbBlock(), DTTFFEDSim::fillRawData(), HLTPi0RecHitsFilter::filter(), edm::GeneratorFilter< HAD, DEC >::filter(), HSCPTreeBuilder::filter(), HLTEventNumberFilter::filter(), edm::HadronizerFilter< HAD, DEC >::filter(), EcalSkim::filter(), PhysDecl::filter(), MCZll::filter(), PythiaFilterGammaJetIsoPi0::filter(), HLTPrescaler::filter(), BeamSplash::filter(), SiStripCommissioningBasicPrescaler::filter(), HLTEcalResonanceFilter::filter(), EcalTangentFilter::filter(), NMaxPerLumi::filter(), PickEvents::filter(), SkipBadEvents::filter(), myFilter::filter(), SiStripShotFilter::filter(), FilterOutScraping::filter(), FWFileEntry::filterEventsWithCustomParser(), RunManager::generateEvent(), MatacqProducer::getOrbitId(), edm::Event::getProcessParameterSet(), TrackProducerWithSCAssociation::getTransient(), TrackProducer::getTransient(), tnp::BaseTreeFiller::init(), PFRootEventManager::initializeEventInformation(), FWFFNavigator::isFirstEvent(), CmsShowMainFrame::loadEvent(), EgammaHLTNxNClusterProducer::makeNxNClusters(), CentralityProvider::newEvent(), RunLumiSelector::operator()(), L1GTDigiToRaw::packHeader(), L1GTEvmDigiToRaw::packHeader(), edm::service::IgProfService::postEvent(), edm::service::SimpleMemoryCheck::postEventProcessing(), CkfDebugger::printSimHits(), PFRootEventManager::processEntry(), GlobalHitsProdHist::produce(), TrackProducer::produce(), MTFTrackProducer::produce(), edm::BMixingModule::produce(), ESDigiToRaw::produce(), edm::CosMuoGenProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), SoftConversionTrackCandidateProducer::produce(), EventWithHistoryProducer::produce(), EventWithHistoryProducerFromL1ABC::produce(), EgammaHLTNxNClusterProducer::produce(), RPCPackingModule::produce(), edm::BeamHaloProducer::produce(), CosmicMuonProducer::produce(), edm::ExhumeProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), BeamSpotProducer::produce(), GoodSeedProducer::produce(), LaserAlignment::produce(), CSCTFPacker::produce(), DTDigitizer::produce(), PFElecTkProducer::produce(), L1Comparator::produce(), GctDigiToRaw::produce(), SiPixelDigiToRaw::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), GlobalRecHitsProducer::produce(), FakeTBEventHeaderProducer::produce(), PFDisplacedVertexCandidateProducer::produce(), PFBlockProducer::produce(), ESListOfFEDSProducer::produce(), PreshowerClusterShapeProducer::produce(), L1GlobalTrigger::produce(), NtpProducer< C >::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FlatRandomPtGunProducer::produce(), GlobalHitsProducer::produce(), DTDigiToRawModule::produce(), TrackerHitProducer::produce(), ShallowEventDataProducer::produce(), edm::FlatRandomEGunProducer::produce(), reco::modules::TrackerTrackHitFilter::produce(), SiPixelCalibDigiProducer::produce(), APVCyclePhaseProducerFromL1ABC::produce(), CSCDCCUnpacker::produce(), HcalDigiToRaw::produce(), sistrip::RawToDigiModule::produce(), CosmicMuonLinksProducer::produce(), TopProjector< Top, Bottom >::produce(), RPCTrigger::produce(), AlCaHOCalibProducer::produce(), AlcaBeamSpotProducer::produce(), ZToLLEdmNtupleDumper::produce(), edm::EventAuxiliaryHistoryProducer::produce(), gen::Pythia6Gun::produce(), edm::FlatRandomPtThetaGunProducer::produce(), StoreSecondary::produce(), RunManager::produce(), GsfTrackProducer::produce(), PFDisplacedVertexProducer::produce(), PFProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), EcalRecHitsMerger::produce(), edm::MultiParticleInConeGunProducer::produce(), HcalPatternSource::produce(), PFSimParticleProducer::produce(), SiPixelFedFillerWordEventNumber::produce(), CastorDigiToRaw::produce(), TrackRefitter::produce(), DAFTrackProducer::produce(), ESRecHitsMerger::produce(), EcalListOfFEDSProducer::produce(), EcalDigiToRaw::produce(), GlobalDigisProducer::produce(), EcalTrigPrimProducer::produce(), GsfTrackRefitter::produce(), ConvBremSeedProducer::produce(), DTTrigProd::produce(), PixelTrackProducer::produce(), PFV0Producer::produce(), PiZeroDiscriminatorProducer::produce(), PVFitter::readEvent(), BeamFitter::readEvent(), ElectronSeedGenerator::run(), SiStripElectronSeedGenerator::run(), edm::Event::run(), L1GlobalTriggerFDL::run(), FastElectronSeedGenerator::run(), FWFFNavigator::setCurrentEvent(), PFMETDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeEventHeader().

{return eventAuxiliary().id();}
bool edm::EventBase::isRealData ( ) const [inline]
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(), XmasToDQMEventInfo::analyze(), JetMETAnalyzer::analyze(), ElectronAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), L1TGT::analyze(), BeamMonitorBx::analyze(), IsolatedTracksHcalScale::analyze(), L1TScalersSCAL::analyze(), SiPixelClusterSource::analyze(), BeamHaloAnalyzer::analyze(), HcalDigiMonitor::analyze(), SiStripQualityStatistics::analyze(), HLTAnalyzer::analyze(), ElectronGeneralAnalyzer::analyze(), L1Scalers::analyze(), HcalTrigPrimMonitor::analyze(), test::GlobalNumbersAnalysis::analyze(), HcalRecHitMonitor::analyze(), HcalDetDiagTimingMonitor::analyze(), LaserSorter::analyze(), TopDiLeptonDQM::analyze(), HcalCoarsePedestalMonitor::analyze(), HLTrigReport::analyze(), HcalDetDiagNoiseMonitor::analyze(), HcalDataIntegrityTask::analyze(), HcalBeamMonitor::analyze(), HcalBaseDQMonitor::analyze(), ElectronTagProbeAnalyzer::analyze(), SiPixelDigiSource::analyze(), HcalMonitorModule::analyze(), HcalRawDataMonitor::analyze(), HcalDeadCellMonitor::analyze(), ZDCMonitorModule::analyze(), HcalMonitorClient::analyze(), NoiseRates::analyze(), IsolatedTracksNxN::analyze(), DQMHcalPhiSymHLT::analyze(), ZDCMonitorClient::analyze(), SiPixelRawDataErrorSource::analyze(), HcalNZSMonitor::analyze(), HcalHotCellMonitor::analyze(), BeamMonitor::analyze(), EventHeader::analyze(), myJetAna::analyze(), CastorMonitorModule::analyze(), HLTInspect::analyze(), RawDataConverter::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeL1GtUtilsCore(), CaloMETAnalyzer::fillMonitorElement(), MuCorrMETAnalyzer::fillMonitorElement(), PFMETAnalyzer::fillMonitorElement(), METAnalyzer::fillMonitorElement(), TcMETAnalyzer::fillMonitorElement(), LumiblockFilter::filter(), PhysDecl::filter(), BeamSplash::filter(), FilterOutScraping::filter(), L1GlobalTrigger::produce(), NtpProducer< C >::produce(), ShallowEventDataProducer::produce(), ZToLLEdmNtupleDumper::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), fwlite::MultiChainEvent::to(), fwlite::Event::to(), fwlite::ChainEvent::to(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeEventHeader().

int edm::EventBase::orbitNumber ( ) const [inline]
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(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), edm::TriggerResults::parameterSetID(), edm::previousTriggerName, CrabTask::pset, edm::ParameterSet::registerIt(), runTheMatrix::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]