test
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 get (ProductID const &, Handle< T > &) const
 
template<typename T >
bool getByLabel (InputTag const &, Handle< T > &) const
 
template<>
bool getByLabel (edm::InputTag const &tag, Handle< FWGenericObject > &result) const
 Specialize the getByLabel method to work with a Handle<FWGenericObject> More...
 
edm::EventID id () const
 
bool isRealData () const
 
edm::LuminosityBlockNumber_t luminosityBlock () const
 
int orbitNumber () const
 
virtual 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
 
virtual BasicHandle getImpl (std::type_info const &iProductType, ProductID const &iTag) const =0
 

Detailed Description

Definition at line 46 of file EventBase.h.

Constructor & Destructor Documentation

EventBase::EventBase ( )

Definition at line 39 of file EventBase.cc.

40  {
41  }
EventBase::~EventBase ( )
virtual

Reimplemented in fwlite::EventBase.

Definition at line 43 of file EventBase.cc.

44  {
45  }

Member Function Documentation

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

Definition at line 66 of file EventBase.h.

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

Referenced by HcalNZSMonitor::analyze(), ESRawDataTask::analyze(), EventHeader::analyze(), HcalBeamMonitor::analyze(), HcalRecHitMonitor::analyze(), HLTInspect::analyze(), EcalTPGAnalyzer::analyze(), StudyHLT::analyze(), myJetAna::analyze(), SiPixelDigiSource::analyze(), HitEff::analyze(), L1ABCDebugger::analyze(), PixelLumiDQM::analyze(), RPCTTUMonitor::analyze(), EventTimeDistribution::analyze(), HcalRaddamMuon::analyze(), TrackCount::analyze(), HcalIsoTrkAnalyzer::analyze(), HLTScalers::analyze(), HcalDigiMonitor::analyze(), IsoTrig::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), CastorMonitorModule::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), HcalHBHEMuonAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), ecaldqm::TrigPrimTask::beginEvent(), ecaldqm::RawDataTask::beginEvent(), MultiplicityCorrelatorHistogramMaker::fill(), DigiInvestigatorHistogramMaker::fill(), DigiVertexCorrHistogramMaker::fill(), VertexHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), StringBasedNTupler::fill(), L1GlobalTriggerPSB::fillPsbBlock(), myFilter::filter(), BeamSplash::filter(), PhysDecl::filter(), FilterOutScraping::filter(), AlCaHBHEMuonFilter::filter(), AlCaIsoTracksFilter::filter(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), GetLumi::getRawValue(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), ShallowEventDataProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), EventWithHistoryProducer::produce(), EventWithHistoryProducerFromL1ABC::produce(), RPCTrigger::produce(), EcalDigiToRaw::produce(), AlCaHBHEMuonProducer::produce(), l1t::GtProducer::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTrigger::produce(), AlCaIsoTracksProducer::produce(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), amc13::Packet::write(), and LaserSorter::writeEventHeader().

66 {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::get ( ProductID const &  pid,
Handle< T > &  result 
) const

Definition at line 104 of file EventBase.h.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), fireworks::addSiStripClusters(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), fireworks::pushNearbyPixelHits(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

104  {
105  result.clear();
106  BasicHandle bh = this->getImpl(typeid(T), pid);
107  convert_handle(std::move(bh), result); // throws on conversion error
108  if (result.failedToGet()) {
109  return false;
110  }
111  return true;
112  }
def move
Definition: eostools.py:510
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
virtual BasicHandle getImpl(std::type_info const &iProductType, ProductID const &iTag) const =0
tuple pid
Definition: sysUtil.py:22
long double T
template<typename T >
bool EventBase::getByLabel ( InputTag const &  tag,
Handle< T > &  result 
) const

Definition at line 92 of file EventBase.h.

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

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

92  {
93  result.clear();
94  BasicHandle bh = this->getByLabelImpl(typeid(edm::Wrapper<T>), typeid(T), tag);
95  convert_handle(std::move(bh), result); // throws on conversion error
96  if (result.failedToGet()) {
97  return false;
98  }
99  return true;
100  }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
def move
Definition: eostools.py:510
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
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 56 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().

58 {
59  std::string dataTypeName = result.type().name();
60  if (dataTypeName[dataTypeName.size() -1] == '>')
61  dataTypeName += " ";
62  std::string wrapperName = "edm::Wrapper<" + dataTypeName + ">";
63 
64  edm::TypeWithDict wrapperType(edm::TypeWithDict::byName(wrapperName));
65 
66  BasicHandle bh = this->getByLabelImpl(wrapperType.typeInfo(),
67  result.type().typeInfo(),
68  tag);
69  convert_handle(bh, result); // throws on conversion error
70  if(bh.failedToGet())
71  return false;
72  return true;
73 }
virtual BasicHandle getByLabelImpl(std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const =0
static TypeWithDict byName(std::string const &name)
Definition: TypeWithDict.cc:60
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
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().

virtual BasicHandle edm::EventBase::getImpl ( std::type_info const &  iProductType,
ProductID const &  iTag 
) const
privatepure virtual

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

Referenced by get().

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

Definition at line 60 of file EventBase.h.

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

Referenced by fwlite::RunLumiSelector::accept(), Selection< C, Selector, StoreContainer >::acceptMap(), 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(), edm::DataMixingSiPixelMCDigiWorker::addSiPixelSignals(), SiStripGainFromData::algoAnalyze(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromCalibTree::algoAnalyze(), CSCDigiDump::analyze(), ElectronIDAnalyzer::analyze(), EcalTrivialObjectAnalyzer::analyze(), evf::EvFRecordInserter::analyze(), PerformanceAnalyzer::analyze(), L1TScalersSCAL::analyze(), RawDataConverter::analyze(), SiStripDetVOffFakeBuilder::analyze(), JetValidation::analyze(), SiStripNoisesBuilder::analyze(), PlaybackRawDataProvider::analyze(), ESOccupancyTask::analyze(), ESPedestalTask::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), KVFTrackUpdate::analyze(), SiStripThresholdBuilder::analyze(), SiStripSummaryBuilder::analyze(), ESRawDataTask::analyze(), edmtest::FillInfoESAnalyzer::analyze(), EventHeader::analyze(), HcalTBWriter::analyze(), ElectronMcSignalValidator::analyze(), SiStripQualityStatistics::analyze(), ElectronGeneralAnalyzer::analyze(), MCElectronAnalyzer::analyze(), MCPhotonAnalyzer::analyze(), MCPizeroAnalyzer::analyze(), PhotonsWithConversionsAnalyzer::analyze(), SimpleConvertedPhotonAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), BeamSpotFromDB::analyze(), AlignmentStats::analyze(), ESTimingTask::analyze(), BeamSpotAnalyzer::analyze(), EcalDQMonitorTask::analyze(), PUDumper::analyze(), AlCaElectronsTest::analyze(), SiStripCommissioningOfflineClient::analyze(), edmtest::RunInfoESAnalyzer::analyze(), PFCandidateChecker::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), SimHitsValidationHcal::analyze(), SiStripMonitorDigi::analyze(), DTT0Calibration::analyze(), HLTInspect::analyze(), HcalSimHitStudy::analyze(), test::GlobalNumbersAnalysis::analyze(), TrackerHitAnalyzer::analyze(), SiPixelRecHitsValid::analyze(), ElectronSeedAnalyzer::analyze(), ElectronStudy::analyze(), ValidationMisalignedTracker::analyze(), DTT0CalibrationNew::analyze(), DumpGctDigis::analyze(), SiStripCommissioningSource::analyze(), SimAnalyzerMinbias::analyze(), ElectronMcFakeValidator::analyze(), EcalPedHists::analyze(), KVFTest::analyze(), SiStripLAProfileBooker::analyze(), HcalDetDiagNoiseMonitor::analyze(), DTConfigTester::analyze(), CSCRecoBadChannelsAnalyzer::analyze(), SiStripMonitorCluster::analyze(), EcalTPGAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), CSCViewDigi::analyze(), KineExample::analyze(), sistrip::SpyExtractRunModule::analyze(), ElectronAnalyzer::analyze(), DQMEventInfo::analyze(), HcalMonitorModule::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), L1CondDBIOVWriter::analyze(), StudyHLT::analyze(), EventIDChecker::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), CentralityTableProducer::analyze(), AbortOnEventIDAnalyzer::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), GsfElectronMCAnalyzer::analyze(), RPCPhiEff::analyze(), DuplicationChecker::analyze(), EcalBarrelSimHitsValidation::analyze(), SimplePi0DiscAnalyzer::analyze(), ElectronConversionRejectionValidator::analyze(), EcalEndcapSimHitsValidation::analyze(), EcalPreshowerSimHitsValidation::analyze(), ZDCMonitorModule::analyze(), DTTrigTest::analyze(), L1GtPatternGenerator::analyze(), SiStripMonitorRawData::analyze(), edmtest::HcalDumpConditions::analyze(), myJetAna::analyze(), BTVHLTOfflineSource::analyze(), edm::SecSourceAnalyzer::analyze(), ContainmentCorrectionAnalyzer::analyze(), HiggsDQM::analyze(), L1O2OTestAnalyzer::analyze(), GeneralHLTOffline::analyze(), HitEff::analyze(), EcalSimHitsValidation::analyze(), DTSegmentAnalysisTask::analyze(), HLTrigReport::analyze(), TrackingMonitor::analyze(), L1TRate::analyze(), PixelLumiDQM::analyze(), EcalBxOrbitNumberGrapher::analyze(), FFTJetImageRecorder::analyze(), MulticoreRunLumiEventChecker::analyze(), calcTopMass::analyze(), EcalRecHitsValidation::analyze(), IgProfModule::analyze(), SiStripSpyMonitorModule::analyze(), TkConvValidator::analyze(), SiStripMonitorPedestals::analyze(), L1TRate_Offline::analyze(), SiStripFEDCheckPlugin::analyze(), TestOutliers::analyze(), GlobalDigisHistogrammer::analyze(), ZdcSimHitStudy::analyze(), l1t::GtRecordDump::analyze(), l1t::L1TGlobalAnalyzer::analyze(), EcalURecHitHists::analyze(), LhcTrackAnalyzer::analyze(), EcalLaserAnalyzerYousi::analyze(), l1t::L1TStage2CaloAnalyzer::analyze(), CastorDumpConditions::analyze(), HcalRaddamMuon::analyze(), EGammaCutBasedEleIdAnalyzer::analyze(), BigEventsDebugger< T >::analyze(), EcalDigisValidation::analyze(), GlobalRecHitsHistogrammer::analyze(), SiStripFEDMonitorPlugin::analyze(), SiStripMonitorTrack::analyze(), FFTJetPileupAnalyzer::analyze(), EcalMipGraphs::analyze(), CosmicSplitterValidation::analyze(), PhotonValidator::analyze(), SiPixelErrorEstimation::analyze(), MuonSimHitsValidAnalyzer::analyze(), EcalDisplaysByEvent::analyze(), JetMETHLTOfflineSource::analyze(), Vx3DHLTAnalyzer::analyze(), HcalIsoTrkAnalyzer::analyze(), ValidIsoTrkCalib::analyze(), SiStripCMMonitorPlugin::analyze(), IsoTrig::analyze(), SiPixelTrackingRecHitsValid::analyze(), EcalCosmicsHists::analyze(), IsoTrackCalib::analyze(), CastorPedestalsAnalysis::analyze(), GlobalHitsHistogrammer::analyze(), IsoTrackCalibration::analyze(), GlobalHitsAnalyzer::analyze(), PiZeroAnalyzer::analyze(), SiStripBaselineAnalyzer::analyze(), HcalTimingMonitorModule::analyze(), pat::CandidateSummaryTable::analyze(), CastorMonitorModule::analyze(), DiJetAnalyzer::analyze(), GctErrorAnalyzer::analyze(), JetAnalyzer::analyze(), IsolatedGenParticles::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiStripSpyDisplayModule::analyze(), ZToMuMuGammaAnalyzer::analyze(), PhotonAnalyzer::analyze(), IsolatedTracksCone::analyze(), PCLTrackerAlProducer::analyze(), HcalDetDiagLEDMonitor::analyze(), L1TBPTX::analyze(), GlobalDigisAnalyzer::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), LaserSorter::analyze(), SiStripRecHitsValid::analyze(), GammaJetAnalysis::analyze(), TrackerDpgAnalysis::analyze(), EcnaAnalyzer::analyze(), HcalHBHEMuonAnalyzer::analyze(), SiPixelOfflineCalibAnalysisBase::analyze(), GlobalRecHitsAnalyzer::analyze(), BeamHaloAnalyzer::analyze(), HcalDetDiagPedestalMonitor::analyze(), HOCalibAnalyzer::analyze(), SiStripTrackingRecHitsValid::analyze(), ResidualRefitting::analyze(), HcalDetDiagLaserMonitor::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeTrigger(), CSCDigiToRaw::createFedBuffers(), sistrip::DigiToRaw::createFedBuffers_(), GsfElectronAlgo::displayInternalElectrons(), edm::DataMixingModule::doPileUp(), edm::MixingModule::doPileUp(), CastorDumpConditions::dumpIt(), AlignmentProducer::duringLoop(), EventWithHistory::EventWithHistory(), L1GtPatternGenerator::extractGlobalTriggerData(), extractRecordData(), StringBasedNTupler::fill(), FWHLTTriggerTableView::fillAverageAcceptFractions(), HLXMonitor::FillEventInfo(), L1GlobalTriggerPSB::fillPsbBlock(), DaqFakeReader::fillRawData(), DTTFFEDSim::fillRawData(), PFDQMEventSelector::filter(), myFilter::filter(), TrackingFailureFilter::filter(), EcalTangentFilter::filter(), MultiEventFilter::filter(), PhotonIsoProducer::filter(), SiStripCommissioningBasicPrescaler::filter(), PythiaFilterGammaJetIsoPi0::filter(), EcalLaserCorrFilter::filter(), BeamSplash::filter(), PhysDecl::filter(), FilterOutScraping::filter(), LogErrorEventFilter::filter(), NMaxPerLumi::filter(), HLTEventNumberFilter::filter(), MCZll::filter(), EcalSkim::filter(), L1TValidationEventFilter::filter(), HcalLaserEventFilter2012::filter(), edm::GeneratorFilter< HAD, DEC >::filter(), HLTPrescaler::filter(), HcalLaserEventFilter::filter(), AlCaHBHEMuonFilter::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHFFilter2012::filter(), PickEvents::filter(), SiStripShotFilter::filter(), edm::HadronizerFilter< HAD, DEC >::filter(), AlCaIsoTracksFilter::filter(), HLTEcalResonanceFilter::filter(), HLTRegionalEcalResonanceFilter::filter(), HSCPTreeBuilder::filter(), FWFileEntry::filterEventsWithCustomParser(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), RunManagerMTWorker::generateEvent(), RunManager::generateEvent(), MatacqProducer::getOrbitId(), TrackProducer::getTransient(), TrackProducerWithSCAssociation::getTransient(), tnp::BaseTreeFiller::init(), FWFFNavigator::isFirstEvent(), CmsShowMainFrame::loadEvent(), EcalDeadCellDeltaRFilter::loadEventInfo(), EcalDeadCellTriggerPrimitiveFilter::loadEventInfo(), EgammaHLTNxNClusterProducer::makeNxNClusters(), RunLumiSelector::operator()(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), CkfDebugger::printSimHits(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), FFTJetTreeDump::processTreeData(), ShallowEventDataProducer::produce(), HcalPatternSource::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FlatRandomPtThetaGunProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), GsfTrackProducer::produce(), PixelTrackProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), CosmicMuonProducer::produce(), GsfTrackRefitter::produce(), TrackRefitter::produce(), CSCDigiProducer::produce(), DTDigiToRawModule::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), CosmicMuonLinksProducer::produce(), edm::FlatRandomEGunProducer::produce(), edm::FlatRandomPtGunProducer::produce(), TrackProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), DAFTrackProducer::produce(), edm::ExpoRandomPGunProducer::produce(), EcalRecHitsMerger::produce(), ESRecHitsMerger::produce(), CSCDCCUnpacker::produce(), StoreSecondary::produce(), PFV0Producer::produce(), ESDigiToRaw::produce(), edm::CosMuoGenProducer::produce(), NtpProducer< C >::produce(), PreshowerClusterShapeProducer::produce(), CastorDigiToRaw::produce(), PFDisplacedVertexProducer::produce(), HcalDigiToRaw::produce(), SiPixelFedFillerWordEventNumber::produce(), BeamSpotProducer::produce(), RPCPackingModule::produce(), TrackerHitProducer::produce(), PFDisplacedVertexCandidateProducer::produce(), sistrip::RawToDigiModule::produce(), EcalListOfFEDSProducer::produce(), GenParticles2HepMCConverter::produce(), ESListOfFEDSProducer::produce(), CSCRecHitDProducer::produce(), AlcaBeamSpotProducer::produce(), LaserAlignmentProducer::produce(), PiZeroDiscriminatorProducer::produce(), PFMET::produce(), SiPixelDigiToRaw::produce(), FakeTBEventHeaderProducer::produce(), CSCTFPacker::produce(), DTTrigProd::produce(), edm::BeamHaloProducer::produce(), ZToLLEdmNtupleDumper::produce(), EcalTrigPrimProducer::produce(), RunManagerMTWorker::produce(), PFProducer::produce(), EventWithHistoryProducer::produce(), GctDigiToRaw::produce(), EventWithHistoryProducerFromL1ABC::produce(), PFSimParticleProducer::produce(), DTDigitizer::produce(), gen::Pythia6Gun::produce(), L1Comparator::produce(), EgammaHLTNxNClusterProducer::produce(), RPCTrigger::produce(), reco::PFMETProducerMVA::produce(), ConvBremSeedProducer::produce(), EcalDigiToRaw::produce(), AlCaHBHEMuonProducer::produce(), EcalSimpleProducer::produce(), SiPixelCalibDigiProducer::produce(), L1GlobalTrigger::produce(), APVCyclePhaseProducerFromL1ABC::produce(), PFEGammaProducer::produce(), RunManager::produce(), reco::modules::TrackerTrackHitFilter::produce(), GoodSeedProducer::produce(), GlobalHitsProdHist::produce(), GlobalHitsProducer::produce(), LaserAlignment::produce(), VirtualJetProducer::produce(), AlCaIsoTracksProducer::produce(), GlobalDigisProducer::produce(), GlobalRecHitsProducer::produce(), AlCaHOCalibProducer::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), tnp::TagProbePairMaker::run(), L1GlobalTriggerFDL::run(), ElectronSeedGenerator::run(), SiStripElectronSeedGenerator::run(), edm::Event::run(), FWFFNavigator::setCurrentEvent(), reco::tau::RecoTauVertexAssociator::setEvent(), RawEventOutputModuleForBU< Consumer >::write(), amc13::Packet::write(), LaserSorter::writeEventHeader(), and edmtest::HcalDumpConditions::writeToFile().

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

Definition at line 64 of file EventBase.h.

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

Referenced by StandaloneTrackMonitor::analyze(), PUDumper::analyze(), SUSY_HLT_InclusiveHT::analyze(), HLTInspect::analyze(), SUSY_HLT_PhotonHT::analyze(), SiStripMonitorCluster::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), JetTester::analyze(), L1TRCT::analyze(), SUSY_HLT_SingleLepton::analyze(), L1TdeRCT::analyze(), EmDQM::analyze(), L1TGCT::analyze(), FFTJetCorrectionProducer::applyCorrections(), ecaldqm::RawDataTask::beginEvent(), StringBasedNTupler::fill(), AdHocNTupler::fill(), DetectorStateFilter::filter(), JetMETDQMDCSFilter::filter(), HLTPhysicsDeclared::filter(), HLTTriggerTypeFilter::filter(), HLTEventNumberFilter::filter(), HLTL1NumberFilter::filter(), L1GtBeamModeFilter::filter(), HLTHcalNZSFilter::hltFilter(), HLTBeamModeFilter::hltFilter(), EcalDeadCellDeltaRFilter::loadEventInfo(), WeakEffectsWeightProducer::produce(), HFEMClusterProducer::produce(), edm::EventAuxiliaryHistoryProducer::produce(), DistortedMETProducer::produce(), DistortedMuonProducerFromDB::produce(), DistortedMuonProducer::produce(), DistortedPFCandProducer::produce(), ISRGammaWeightProducer::produce(), BunchSpacingProducer::produce(), ISRWeightProducer::produce(), FSRWeightProducer::produce(), PdfWeightProducer::produce(), HcalSimpleReconstructor::produce(), LHECOMWeightProducer::produce(), VoronoiBackgroundProducer::produce(), pat::PATMuonProducer::produce(), HcalHitReconstructor::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), PileupJetIdProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATTriggerEventProducer::produce(), pat::PATElectronProducer::produce(), pat::PATTriggerProducer::produce(), ShiftedJetProducerT< T, Textractor >::produce(), PFJetMETcorrInputProducerT< T, Textractor >::produce(), and StringBranchHelper< Object, Collection >::StringBranchHelper().

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

Definition at line 63 of file EventBase.h.

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

Referenced by fwlite::RunLumiSelector::accept(), SiStripHitEffFromCalibTree::algoAnalyze(), HcalNZSMonitor::analyze(), HcalTrigPrimMonitor::analyze(), L1Scalers::analyze(), L1TScalersSCAL::analyze(), RawDataConverter::analyze(), HcalCoarsePedestalMonitor::analyze(), EventHeader::analyze(), SiStripQualityStatistics::analyze(), HcalBeamMonitor::analyze(), ElectronGeneralAnalyzer::analyze(), HcalRecHitMonitor::analyze(), ElectronTagProbeAnalyzer::analyze(), PUDumper::analyze(), test::GlobalNumbersAnalysis::analyze(), HcalDeadCellMonitor::analyze(), HcalRawDataMonitor::analyze(), HLTInspect::analyze(), HcalDataIntegrityTask::analyze(), HcalDetDiagNoiseMonitor::analyze(), BeamMonitorBx::analyze(), HcalBaseDQMonitor::analyze(), HcalMonitorModule::analyze(), ZeePlots::analyze(), HcalHotCellMonitor::analyze(), ElectronAnalyzer::analyze(), WenuPlots::analyze(), StudyHLT::analyze(), BeamMonitor::analyze(), BeamSpotProblemMonitor::analyze(), HLTAnalyzer::analyze(), NoiseRates::analyze(), ZDCMonitorModule::analyze(), L1GtPatternGenerator::analyze(), myJetAna::analyze(), HcalNoiseRates::analyze(), BTVHLTOfflineSource::analyze(), SiPixelDigiSource::analyze(), HLTrigReport::analyze(), SiPixelRawDataErrorSource::analyze(), EGammaCutBasedEleIdAnalyzer::analyze(), L1TGT::analyze(), SiPixelClusterSource::analyze(), JetMETHLTOfflineSource::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), HcalDigiMonitor::analyze(), IsoTrackCalib::analyze(), IsoTrackCalibration::analyze(), CastorMonitorModule::analyze(), HcalDetDiagTimingMonitor::analyze(), METAnalyzer::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), BeamHaloAnalyzer::analyze(), L1GtAnalyzer::analyzeConditionsInEventBlock(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), StringBasedNTupler::fill(), METAnalyzer::fillMonitorElement(), LSNumberFilter::filter(), EcalLaserCorrFilter::filter(), BeamSplash::filter(), PhysDecl::filter(), LogErrorEventFilter::filter(), FilterOutScraping::filter(), LumiblockFilter::filter(), HcalLaserEventFilter2012::filter(), AlCaHBHEMuonFilter::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHFFilter2012::filter(), AlCaIsoTracksFilter::filter(), ZeeCandidateFilter::filter(), EcalDeadCellDeltaRFilter::loadEventInfo(), EcalDeadCellTriggerPrimitiveFilter::loadEventInfo(), ShallowEventDataProducer::produce(), NtpProducer< C >::produce(), ZToLLEdmNtupleDumper::produce(), reco::PFMETProducerMVA::produce(), AlCaHBHEMuonProducer::produce(), L1GlobalTrigger::produce(), AlCaIsoTracksProducer::produce(), BeamFitter::readEvent(), PVFitter::readEvent(), L1GlobalTriggerFDL::run(), fwlite::ChainEvent::to(), fwlite::MultiChainEvent::to(), fwlite::Event::to(), edm::LumiReWeighting::weightOOT(), RawEventOutputModuleForBU< Consumer >::write(), and LaserSorter::writeEventHeader().

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

Definition at line 67 of file EventBase.h.

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

Referenced by ESRawDataTask::analyze(), EventHeader::analyze(), SiStripMonitorDigi::analyze(), EcalTPGAnalyzer::analyze(), SiStripMonitorCluster::analyze(), myJetAna::analyze(), L1TGMT::analyze(), L1ABCDebugger::analyze(), AnotherBeamSpotAnalyzer::analyze(), APVCyclePhaseMonitor::analyze(), EventTimeDistribution::analyze(), L1TGT::analyze(), SiStripFEDMonitorPlugin::analyze(), SiStripQualityHistory::analyze(), SiPixelQualityHistory::analyze(), SiStripMonitorTrack::analyze(), MultiplicityTimeCorrelations::analyze(), TrackCount::analyze(), SiStripCMMonitorPlugin::analyze(), HcalDigiMonitor::analyze(), APVShotsAnalyzer::analyze(), HcalDetDiagPedestalMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), ecaldqm::RawDataTask::beginEvent(), DigiInvestigatorHistogramMaker::fill(), VertexHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), StringBasedNTupler::fill(), FEDBadModuleFilter::filter(), edm::EventAuxiliaryHistoryProducer::produce(), EventWithHistoryProducer::produce(), EventWithHistoryProducerFromL1ABC::produce(), EcalDigiToRaw::produce(), l1t::GtProducer::produce(), APVCyclePhaseProducerFromL1ABC::produce(), L1GlobalTrigger::produce(), L1GlobalTriggerFDL::run(), and amc13::Packet::write().

67 {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 48 of file EventBase.cc.

References edm::ParameterSet::addParameter(), Exception, edm::ParameterSet::existsAs(), edm::pset::Registry::getMapped(), edm::TriggerResults::getTriggerNames(), edm::ParameterSet::id(), edm::pset::Registry::instance(), edm::TriggerResults::parameterSetID(), edm::ParameterSet::registerIt(), run_regression::ret, edm::HLTGlobalStatus::size(), edm::TriggerNames::size(), and triggerNames().

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

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