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(), EBRawDataTask::analyze(), EERawDataTask::analyze(), StudyHLT::analyze(), HcalRecHitMonitor::analyze(), IsoTrig::analyze(), HLTInspect::analyze(), EcalTPGAnalyzer::analyze(), myJetAna::analyze(), SiPixelDigiSource::analyze(), HitEff::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(), VertexHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), L1GlobalTriggerPSB::fillPsbBlock(), myFilter::filter(), BeamSplash::filter(), PhysDecl::filter(), FilterOutScraping::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 55 of file FWGenericHandle.cc.

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

57 {
58  std::string dataTypeName = result.type().name();
59  if (dataTypeName[dataTypeName.size() -1] == '>')
60  dataTypeName += " ";
61  std::string wrapperName = "edm::Wrapper<" + dataTypeName + ">";
62 
63  edm::TypeWithDict wrapperType(edm::TypeWithDict::byName(wrapperName));
64 
65  BasicHandle bh = this->getByLabelImpl(wrapperType.typeInfo(),
66  result.type().typeInfo(),
67  tag);
68  convert_handle(bh, result); // throws on conversion error
69  if(bh.failedToGet())
70  return false;
71  return true;
72 }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
static TypeWithDict byName(std::string const &className)
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(), ElectronIDAnalyzer::analyze(), PerformanceAnalyzer::analyze(), HFLightCal::analyze(), HFPreLightCal::analyze(), HFLightCalRand::analyze(), EcalTrivialObjectAnalyzer::analyze(), DQMFileSaver::analyze(), evf::EvFRecordInserter::analyze(), ESOccupancyTask::analyze(), ESPedestalTask::analyze(), ESRawDataTask::analyze(), RawDataConverter::analyze(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), SiStripDetVOffFakeBuilder::analyze(), JetValidation::analyze(), SiStripNoisesBuilder::analyze(), KVFTrackUpdate::analyze(), PlaybackRawDataProvider::analyze(), SiStripApvGainBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripPedestalsBuilder::analyze(), CSCFileDumper::analyze(), edmtest::FillInfoESAnalyzer::analyze(), ElectronAnalyzer::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), EventHeader::analyze(), ESTimingTask::analyze(), SiStripQualityStatistics::analyze(), HcalTBWriter::analyze(), AlignmentStats::analyze(), SiStripMonitorDigi::analyze(), pat::CandidateSummaryTable::analyze(), MCElectronAnalyzer::analyze(), MCPhotonAnalyzer::analyze(), MCPizeroAnalyzer::analyze(), PhotonsWithConversionsAnalyzer::analyze(), SimpleConvertedPhotonAnalyzer::analyze(), BeamSpotFromDB::analyze(), EBRawDataTask::analyze(), EERawDataTask::analyze(), StudyHLT::analyze(), BeamSpotAnalyzer::analyze(), EBTrendTask::analyze(), EcalBarrelMonitorModule::analyze(), EcalEndcapMonitorModule::analyze(), ZDCMonitorClient::analyze(), SiStripMonitorCluster::analyze(), AlCaElectronsTest::analyze(), IsoTrig::analyze(), test::GlobalNumbersAnalysis::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), PFCandidateChecker::analyze(), HcalSimHitStudy::analyze(), HcalDetDiagNoiseMonitor::analyze(), SiStripCommissioningOfflineClient::analyze(), HLTInspect::analyze(), SimHitsValidationHcal::analyze(), HcalMonitorClient::analyze(), SiStripCommissioningSource::analyze(), ElectronStudy::analyze(), ElectronSeedAnalyzer::analyze(), DTT0Calibration::analyze(), EcalPedHists::analyze(), DumpGctDigis::analyze(), SimplePhotonAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), DTT0CalibrationNew::analyze(), SiStripLAProfileBooker::analyze(), HcalMonitorModule::analyze(), DTConfigTester::analyze(), EcalTPGAnalyzer::analyze(), sistrip::SpyExtractRunModule::analyze(), TrackingMonitor::analyze(), DQMEventInfo::analyze(), EventIDChecker::analyze(), L1CondDBIOVWriter::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), L1TScalersSCAL::analyze(), KVFTest::analyze(), RPCPhiEff::analyze(), AbortOnEventIDAnalyzer::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), PFJetAnalyzer::analyze(), XmasToDQMEventInfo::analyze(), ZDCMonitorModule::analyze(), GsfElectronMCAnalyzer::analyze(), EcalBarrelMonitorClient::analyze(), EcalEndcapMonitorClient::analyze(), SiStripMonitorRawData::analyze(), KineExample::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), L1TRate::analyze(), ElectronConversionRejectionValidator::analyze(), ContainmentCorrectionAnalyzer::analyze(), EcalPreshowerSimHitsValidation::analyze(), DuplicationChecker::analyze(), SimplePi0DiscAnalyzer::analyze(), myJetAna::analyze(), edm::SecSourceAnalyzer::analyze(), cms::DiJetAnalyzer::analyze(), DTSegmentAnalysisTask::analyze(), edmtest::HcalDumpConditions::analyze(), DTTrigTest::analyze(), L1GtPatternGenerator::analyze(), TopDiLeptonDQM::analyze(), GeneralHLTOffline::analyze(), HLTrigReport::analyze(), cms::GammaJetAnalysis::analyze(), HiggsDQM::analyze(), L1O2OTestAnalyzer::analyze(), HitEff::analyze(), TrackerHitAnalyzer::analyze(), EcalSimHitsValidation::analyze(), DTCreateSummaryHistos::analyze(), FFTJetImageRecorder::analyze(), JetAnalyzer::analyze(), L1TRate_Offline::analyze(), TkConvValidator::analyze(), EcalRecHitsValidation::analyze(), PhotonValidator::analyze(), EcalBxOrbitNumberGrapher::analyze(), IgProfModule::analyze(), calcTopMass::analyze(), SiStripRecHitsValid::analyze(), SiStripSpyMonitorModule::analyze(), SiPixelRecHitsValid::analyze(), MulticoreRunLumiEventChecker::analyze(), SiStripMonitorPedestals::analyze(), SiStripMonitorTrack::analyze(), BigEventsDebugger< T >::analyze(), EcalDigisValidation::analyze(), EcalURecHitHists::analyze(), ZdcSimHitStudy::analyze(), CentralityTableProducer::analyze(), LhcTrackAnalyzer::analyze(), EcalLaserAnalyzerYousi::analyze(), CastorDumpConditions::analyze(), TestOutliers::analyze(), FFTJetPileupAnalyzer::analyze(), SiStripFEDMonitorPlugin::analyze(), SiPixelErrorEstimation::analyze(), GlobalRecHitsHistogrammer::analyze(), GlobalDigisHistogrammer::analyze(), CaloMETAnalyzer::analyze(), EcalMipGraphs::analyze(), JetMETHLTOfflineSource::analyze(), EcalDisplaysByEvent::analyze(), MuonSimHitsValidAnalyzer::analyze(), CSCViewDigi::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiStripCMMonitorPlugin::analyze(), HcalPedestalMCWidths::analyze(), ValidIsoTrkCalib::analyze(), Vx3DHLTAnalyzer::analyze(), EcalCosmicsHists::analyze(), HcalPedestalsAnalysis::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(), L1TBPTX::analyze(), HcalDetDiagLEDMonitor::analyze(), PhotonAnalyzer::analyze(), ZToMuMuGammaAnalyzer::analyze(), IsolatedTracksHcalScale::analyze(), GlobalDigisAnalyzer::analyze(), IsolatedTracksNxN::analyze(), LaserSorter::analyze(), TrackerDpgAnalysis::analyze(), EcnaAnalyzer::analyze(), SiPixelOfflineCalibAnalysisBase::analyze(), GlobalRecHitsAnalyzer::analyze(), HcalDetDiagPedestalMonitor::analyze(), BeamHaloAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), HOCalibAnalyzer::analyze(), HcalDetDiagLaserMonitor::analyze(), ResidualRefitting::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(), PFDQMEventSelector::filter(), myFilter::filter(), TrackingFailureFilter::filter(), SkipBadEvents::filter(), MultiEventFilter::filter(), EcalTangentFilter::filter(), PythiaFilterGammaJetIsoPi0::filter(), SiStripCommissioningBasicPrescaler::filter(), EcalLaserCorrFilter::filter(), BeamSplash::filter(), PhysDecl::filter(), HLTPrescaler::filter(), LogErrorEventFilter::filter(), FilterOutScraping::filter(), NMaxPerLumi::filter(), MCZll::filter(), edm::GeneratorFilter< HAD, DEC >::filter(), EcalSkim::filter(), HcalLaserEventFilter2012::filter(), PickEvents::filter(), HcalLaserEventFilter::filter(), edm::HadronizerFilter< HAD, DEC >::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::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()(), RecoTrackSelector::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(), edm::EventAuxiliaryHistoryProducer::produce(), GsfTrackRefitter::produce(), PixelTrackProducer::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), DTDigiToRawModule::produce(), ESRecHitsMerger::produce(), edm::FlatRandomEGunProducer::produce(), TrackRefitter::produce(), edm::FlatRandomPtGunProducer::produce(), CosmicMuonProducer::produce(), EcalRecHitsMerger::produce(), edm::MultiParticleInConeGunProducer::produce(), EcalListOfFEDSProducer::produce(), TrackProducer::produce(), CosmicMuonLinksProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), edm::CosMuoGenProducer::produce(), ESListOfFEDSProducer::produce(), PFV0Producer::produce(), ESDigiToRaw::produce(), CSCTFPacker::produce(), CSCDCCUnpacker::produce(), StoreSecondary::produce(), NtpProducer< C >::produce(), HcalDigiToRaw::produce(), CastorDigiToRaw::produce(), PFDisplacedVertexProducer::produce(), PFDisplacedVertexCandidateProducer::produce(), SiPixelFedFillerWordEventNumber::produce(), CSCRecHitDProducer::produce(), sistrip::RawToDigiModule::produce(), RPCPackingModule::produce(), edm::BeamHaloProducer::produce(), PreshowerClusterShapeProducer::produce(), BeamSpotProducer::produce(), PFProducer::produce(), SiPixelDigiToRaw::produce(), PiZeroDiscriminatorProducer::produce(), LaserAlignmentProducer::produce(), AlcaBeamSpotProducer::produce(), PFMET::produce(), FakeTBEventHeaderProducer::produce(), PFBlockProducer::produce(), gen::Pythia6Gun::produce(), ZToLLEdmNtupleDumper::produce(), DTTrigProd::produce(), EcalTrigPrimProducer::produce(), DTDigitizer::produce(), PFSimParticleProducer::produce(), EventWithHistoryProducer::produce(), PFElecTkProducer::produce(), GctDigiToRaw::produce(), EventWithHistoryProducerFromL1ABC::produce(), L1Comparator::produce(), PFEGammaProducer::produce(), RPCTrigger::produce(), GoodSeedProducer::produce(), EcalDigiToRaw::produce(), ConvBremSeedProducer::produce(), EcalSimpleProducer::produce(), SiPixelCalibDigiProducer::produce(), APVCyclePhaseProducerFromL1ABC::produce(), TrackerHitProducer::produce(), L1GlobalTrigger::produce(), RunManager::produce(), EgammaHLTNxNClusterProducer::produce(), reco::modules::TrackerTrackHitFilter::produce(), GlobalHitsProdHist::produce(), GlobalHitsProducer::produce(), LaserAlignment::produce(), VirtualJetProducer::produce(), GlobalDigisProducer::produce(), GlobalRecHitsProducer::produce(), AlCaHOCalibProducer::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), ElectronSeedGenerator::run(), edm::Event::run(), SiStripElectronSeedGenerator::run(), FastElectronSeedGenerator::run(), FWFFNavigator::setCurrentEvent(), reco::tau::RecoTauVertexAssociator::setEvent(), PFCandidateDQMAnalyzer::storeBadEvents(), PFMETDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::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(), PFJetTester::analyze(), JPTJetTester::analyze(), EBRawDataTask::analyze(), EERawDataTask::analyze(), EmDQM::analyze(), SiStripMonitorCluster::analyze(), DataCertificationJetMET::analyze(), HLTInspect::analyze(), L1TRCT::analyze(), L1TdeRCT::analyze(), L1TGCT::analyze(), FFTJetCorrectionProducer::applyCorrections(), ecaldqm::RawDataTask::beginEvent(), DetectorStateFilter::filter(), JetMETDQMDCSFilter::filter(), HLTPhysicsDeclared::filter(), HLTTriggerTypeFilter::filter(), HLTL1NumberFilter::filter(), L1GtBeamModeFilter::filter(), HLTEventNumberFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), HLTBeamModeFilter::hltFilter(), EcalDeadCellDeltaRFilter::loadEventInfo(), WeakEffectsWeightProducer::produce(), DistortedMETProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), HFEMClusterProducer::produce(), DistortedPFCandProducer::produce(), DistortedMuonProducer::produce(), DistortedMuonProducerFromDB::produce(), ISRGammaWeightProducer::produce(), FSRWeightProducer::produce(), ISRWeightProducer::produce(), PdfWeightProducer::produce(), HcalSimpleReconstructor::produce(), LHECOMWeightProducer::produce(), pat::PATPhotonProducer::produce(), HcalHitReconstructor::produce(), pat::PATMuonProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), PileupJetIdProducer::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(), EventHeader::analyze(), ElectronTagProbeAnalyzer::analyze(), SiStripQualityStatistics::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), StudyHLT::analyze(), ZDCMonitorClient::analyze(), test::GlobalNumbersAnalysis::analyze(), IsoTrig::analyze(), HcalDetDiagNoiseMonitor::analyze(), HLTInspect::analyze(), HcalMonitorClient::analyze(), HcalDeadCellMonitor::analyze(), HcalBaseDQMonitor::analyze(), WenuPlots::analyze(), ZeePlots::analyze(), HcalRawDataMonitor::analyze(), HcalMonitorModule::analyze(), BeamMonitor::analyze(), HcalDataIntegrityTask::analyze(), BeamMonitorBx::analyze(), L1Scalers::analyze(), BeamSpotProblemMonitor::analyze(), HcalHotCellMonitor::analyze(), NoiseRates::analyze(), L1TScalersSCAL::analyze(), HcalNoiseRates::analyze(), ZDCMonitorModule::analyze(), XmasToDQMEventInfo::analyze(), HLTAnalyzer::analyze(), myJetAna::analyze(), L1GtPatternGenerator::analyze(), TopDiLeptonDQM::analyze(), HLTrigReport::analyze(), SiPixelDigiSource::analyze(), L1TGT::analyze(), SiPixelRawDataErrorSource::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(), BeamSplash::filter(), EcalLaserCorrFilter::filter(), PhysDecl::filter(), LogErrorEventFilter::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

Definition at line 63 of file EventBase.h.

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

Referenced by ESRawDataTask::analyze(), EventHeader::analyze(), SiStripMonitorDigi::analyze(), EBRawDataTask::analyze(), EERawDataTask::analyze(), SiStripMonitorCluster::analyze(), EcalTPGAnalyzer::analyze(), myJetAna::analyze(), L1TGMT::analyze(), AnotherBeamSpotAnalyzer::analyze(), MultiplicityInvestigator::analyze(), L1TGT::analyze(), APVCyclePhaseMonitor::analyze(), SiStripMonitorTrack::analyze(), EventTimeDistribution::analyze(), SiStripQualityHistory::analyze(), SiPixelQualityHistory::analyze(), SiStripFEDMonitorPlugin::analyze(), MultiplicityTimeCorrelations::analyze(), SiStripCMMonitorPlugin::analyze(), HcalDigiMonitor::analyze(), APVShotsAnalyzer::analyze(), LaserSorter::analyze(), HcalDetDiagPedestalMonitor::analyze(), PrimaryVertexAnalyzer4PU::analyze(), HcalDetDiagLaserMonitor::analyze(), ecaldqm::RawDataTask::beginEvent(), VertexHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), FEDBadModuleFilter::filter(), edm::EventAuxiliaryHistoryProducer::produce(), EventWithHistoryProducer::produce(), EventWithHistoryProducerFromL1ABC::produce(), EcalDigiToRaw::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTrigger::produce(), L1GlobalTriggerFDL::run(), and LaserSorter::writeEventHeader().

63 {return eventAuxiliary().orbitNumber();}
virtual edm::EventAuxiliary const & eventAuxiliary() const =0
int orbitNumber() const
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 ThreadSafeRegistry * instance()
static TriggerNamesMap::const_iterator previousTriggerName
Definition: EventBase.cc:31
bool getMapped(key_type const &k, value_type &result) const
static TriggerNamesMap triggerNamesMap
Definition: EventBase.cc:30
Strings::size_type size() const
Definition: TriggerNames.cc:39
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