CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
edm::EDConsumerBase Class Reference

#include <EDConsumerBase.h>

Inheritance diagram for edm::EDConsumerBase:
edm::EDAnalyzer edm::EDFilter edm::EDLooperBase edm::EDProducer edm::global::EDAnalyzerBase edm::global::EDFilterBase edm::global::EDProducerBase edm::global::OutputModuleBase edm::limited::EDAnalyzerBase edm::limited::EDFilterBase edm::limited::EDProducerBase edm::limited::OutputModuleBase edm::one::EDAnalyzerBase edm::one::EDFilterBase edm::one::EDProducerBase edm::one::OutputModuleBase edm::stream::EDAnalyzerBase edm::stream::EDFilterBase edm::stream::EDProducerBase edm::SubProcess

Classes

struct  ESTokenLookupInfo
 
struct  LabelPlacement
 
struct  TokenLookupInfo
 

Public Types

typedef ProductLabels Labels
 

Public Member Functions

std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Types

enum  { kLookupInfo, kAlwaysGets, kLabels, kKind }
 
enum  { kESLookupInfo, kESProxyIndex }
 

Private Member Functions

edm::InputTag const & checkIfEmpty (edm::InputTag const &tag)
 
const char * labelFor (ESTokenIndex) const
 
unsigned int recordConsumes (BranchType iBranch, TypeToGet const &iType, edm::InputTag const &iTag, bool iAlwaysGets)
 
ESTokenIndex recordESConsumes (Transition, eventsetup::EventSetupRecordKey const &, eventsetup::heterocontainer::HCTypeTag const &, edm::ESInputTag const &iTag)
 
virtual void registerLateConsumes (eventsetup::ESRecordsToProxyIndices const &)
 
void throwBadToken (edm::TypeID const &iType, EDGetToken iToken) const
 
void throwBranchMismatch (BranchType, EDGetToken) const
 
void throwConsumesCallAfterFrozen (TypeToGet const &, InputTag const &) const
 
void throwESConsumesCallAfterFrozen (eventsetup::EventSetupRecordKey const &, eventsetup::heterocontainer::HCTypeTag const &, edm::ESInputTag const &) const
 
void throwESConsumesInProcessBlock () const
 
void throwTypeMismatch (edm::TypeID const &, EDGetToken) const
 

Private Attributes

bool containsCurrentProcessAlias_
 
std::array< std::vector< ESProxyIndex >, static_cast< unsigned int >edm::Transition::NumberOfEventSetupTransitions)> esItemsToGetFromTransition_
 
std::array< std::vector< ESRecordIndex >, static_cast< unsigned int >edm::Transition::NumberOfEventSetupTransitions)> esRecordsToGetFromTransition_
 
bool frozen_
 
std::array< std::vector< ProductResolverIndexAndSkipBit >, edm::NumBranchTypesitemsToGetFromBranch_
 
edm::SoATuple< ESTokenLookupInfo, ESProxyIndexm_esTokenInfo
 
edm::SoATuple< TokenLookupInfo, bool, LabelPlacement, edm::KindOfTypem_tokenInfo
 
std::vector< char > m_tokenLabels
 

Friends

class ConsumesCollector
 
template<BranchType B>
class EDConsumerBaseAdaptor
 
template<Transition Tr>
class EDConsumerBaseESAdaptor
 
template<Transition Tr>
class EDConsumerBaseWithTagESAdaptor
 
template<typename T >
class WillGetIfMatch
 

Detailed Description

Description: Allows declaration of what data is being consumed

Usage: The EDM modules all inherit from this base class

Definition at line 71 of file EDConsumerBase.h.

Member Typedef Documentation

◆ Labels

Definition at line 106 of file EDConsumerBase.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
kLookupInfo 
kAlwaysGets 
kLabels 
kKind 

Definition at line 279 of file EDConsumerBase.h.

◆ anonymous enum

anonymous enum
private
Enumerator
kESLookupInfo 
kESProxyIndex 

Definition at line 303 of file EDConsumerBase.h.

Constructor & Destructor Documentation

◆ EDConsumerBase() [1/3]

EDConsumerBase::EDConsumerBase ( )

Definition at line 39 of file EDConsumerBase.cc.

40  : m_tokenLabels{makeEmptyTokenLabels()}, frozen_(false), containsCurrentProcessAlias_(false) {}

◆ ~EDConsumerBase()

EDConsumerBase::~EDConsumerBase ( )
virtualnoexcept

Definition at line 42 of file EDConsumerBase.cc.

42 {}

◆ EDConsumerBase() [2/3]

edm::EDConsumerBase::EDConsumerBase ( EDConsumerBase const &  )
delete

◆ EDConsumerBase() [3/3]

edm::EDConsumerBase::EDConsumerBase ( EDConsumerBase &&  )
default

Member Function Documentation

◆ checkIfEmpty()

edm::InputTag const & EDConsumerBase::checkIfEmpty ( edm::InputTag const &  tag)
private

Definition at line 54 of file EDConsumerBase.cc.

54  {
55  if (iTag.label().empty()) {
56  return kWasEmpty;
57  }
58  return iTag;
59 }

References kWasEmpty, and edm::InputTag::label().

Referenced by consumes(), and mayConsume().

◆ consumes() [1/4]

EDGetToken edm::EDConsumerBase::consumes ( const TypeToGet id,
edm::InputTag const &  tag 
)
inlineprotected

Definition at line 165 of file EDConsumerBase.h.

165  {
166  return EDGetToken{recordConsumes(InEvent, id, checkIfEmpty(tag), true)};
167  }

References checkIfEmpty(), edm::InEvent, recordConsumes(), and GlobalPosition_Frontier_DevDB_cff::tag.

◆ consumes() [2/4]

template<typename ProductType , BranchType B = InEvent>
EDGetTokenT<ProductType> edm::EDConsumerBase::consumes ( edm::InputTag const &  tag)
inlineprotected

Definition at line 155 of file EDConsumerBase.h.

155  {
156  TypeToGet tid = TypeToGet::make<ProductType>();
157  return EDGetTokenT<ProductType>{recordConsumes(B, tid, checkIfEmpty(tag), true)};
158  }

References TtFullHadDaughter::B, checkIfEmpty(), recordConsumes(), and GlobalPosition_Frontier_DevDB_cff::tag.

Referenced by AlCaECALRecHitReducer::AlCaECALRecHitReducer(), pat::CandidateSummaryTable::CandidateSummaryTable(), CrossingFramePSimHitToPSimHitsConverter::CrossingFramePSimHitToPSimHitsConverter(), EgammaEcalRecHitIsolationProducer::EgammaEcalRecHitIsolationProducer(), EgammaElectronTkIsolationProducer::EgammaElectronTkIsolationProducer(), EgammaIsoDetIdCollectionProducer< T1 >::EgammaIsoDetIdCollectionProducer(), EgammaIsoESDetIdCollectionProducer::EgammaIsoESDetIdCollectionProducer(), EgammaPhotonTkIsolationProducer::EgammaPhotonTkIsolationProducer(), EgammaPhotonTkNumIsolationProducer::EgammaPhotonTkNumIsolationProducer(), edm::EventContentAnalyzer::EventContentAnalyzer(), EcalDQMonitorTask::formSchedule(), edm::GenericConsumer::GenericConsumer(), HGCalValidator::HGCalValidator(), HLTMuonIsoFilter::HLTMuonIsoFilter(), HLTMuonPFIsoFilter::HLTMuonPFIsoFilter(), JetCollectionReducerT< T >::JetCollectionReducerT(), edm::SubProcess::keepThisBranch(), edm::one::OutputModuleBase::keepThisBranch(), edm::global::OutputModuleBase::keepThisBranch(), edm::limited::OutputModuleBase::keepThisBranch(), L1TPFCandMultiMerger::L1TPFCandMultiMerger(), MultiplicityCorrelator::MultiplicityCorrelator(), MultiTrackValidator::MultiTrackValidator(), pat::PATPackedCandidateProducer::PATPackedCandidateProducer(), ShiftedParticleMETcorrInputProducer::ShiftedParticleMETcorrInputProducer(), SiStripMonitorDigi::SiStripMonitorDigi(), edm::SwitchProducer::SwitchProducer(), and TrackingParticleNumberOfLayersProducer::TrackingParticleNumberOfLayersProducer().

◆ consumes() [3/4]

template<BranchType B = InEvent>
EDConsumerBaseAdaptor<B> edm::EDConsumerBase::consumes ( edm::InputTag  tag)
inlineprotectednoexcept

Definition at line 161 of file EDConsumerBase.h.

161  {
162  return EDConsumerBaseAdaptor<B>(this, std::move(tag));
163  }

References eostools::move(), and GlobalPosition_Frontier_DevDB_cff::tag.

◆ consumes() [4/4]

template<BranchType B>
EDGetToken edm::EDConsumerBase::consumes ( TypeToGet const &  id,
edm::InputTag const &  tag 
)
inlineprotected

Definition at line 170 of file EDConsumerBase.h.

170  {
171  return EDGetToken{recordConsumes(B, id, checkIfEmpty(tag), true)};
172  }

References TtFullHadDaughter::B, checkIfEmpty(), recordConsumes(), and GlobalPosition_Frontier_DevDB_cff::tag.

◆ consumesCollector()

ConsumesCollector EDConsumerBase::consumesCollector ( )
protected

Use a ConsumesCollector to gather consumes information from helper functions.

Definition at line 47 of file EDConsumerBase.cc.

47  {
48  ConsumesCollector c{this};
49  return c;
50 }

References c.

Referenced by AlcaBeamMonitor::AlcaBeamMonitor(), AlcaBeamSpotProducer::AlcaBeamSpotProducer(), IsolatedParticlesGeneratedJets::analyze(), OverlapValidation::analyze(), BeamMonitor::BeamMonitor(), BeamMonitorBx::BeamMonitorBx(), BeamSpotAnalyzer::BeamSpotAnalyzer(), CaloParticleDebugger::CaloParticleDebugger(), ConfigurableAnalysis::ConfigurableAnalysis(), CosmicSplitterValidation::CosmicSplitterValidation(), CSCMonitorModule::CSCMonitorModule(), edm::global::OutputModuleBase::doPreallocate(), edm::limited::OutputModuleBase::doPreallocate(), edm::one::OutputModuleBase::doPreallocate(), DTResidualCalibration::DTResidualCalibration(), DTTrigTest::DTTrigTest(), DTTTrigOffsetCalibration::DTTTrigOffsetCalibration(), DTVDriftSegmentCalibration::DTVDriftSegmentCalibration(), EcalCosmicsHists::EcalCosmicsHists(), EcalDQMonitorTask::EcalDQMonitorTask(), EcalSelectiveReadoutValidation::EcalSelectiveReadoutValidation(), EDMtoMEConverter::EDMtoMEConverter(), EgammaHLTClusterShapeProducer::EgammaHLTClusterShapeProducer(), EgammaHLTR9IDProducer::EgammaHLTR9IDProducer(), EGEnergyAnalyzer::EGEnergyAnalyzer(), ElectronIdMVAProducer::ElectronIdMVAProducer(), ElectronMVANtuplizer::ElectronMVANtuplizer(), EopTreeWriter::EopTreeWriter(), EventWithHistoryEDFilter::EventWithHistoryEDFilter(), edm::FilterWrapper< T >::FilterWrapper(), HcalIsoTrkAnalyzer::HcalIsoTrkAnalyzer(), HGCalTriggerNtupleManager::HGCalTriggerNtupleManager(), HLTBitAnalyzer::HLTBitAnalyzer(), HLTExoticaValidator::HLTExoticaValidator(), HLTMuonIsoFilter::HLTMuonIsoFilter(), cms::CkfDebugTrackCandidateMaker::initDebugger(), IsolatedTracksCone::IsolatedTracksCone(), IsolatedTracksNxN::IsolatedTracksNxN(), L1EventTreeProducer::L1EventTreeProducer(), L1MuGlobalMuonTrigger::L1MuGlobalMuonTrigger(), LogMessageMonitor::LogMessageMonitor(), pat::helper::ManyThingsToValueMaps< Adaptor, Collection, value_type >::ManyThingsToValueMaps(), MomentumConstraintProducer::MomentumConstraintProducer(), MultiplicityCorrelator::MultiplicityCorrelator(), MultiplicityInvestigator::MultiplicityInvestigator(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), MuPFIsoEmbedder::MuPFIsoEmbedder(), OMTFPatternMaker::OMTFPatternMaker(), edm::global::OutputModuleBase::OutputModuleBase(), edm::limited::OutputModuleBase::OutputModuleBase(), edm::one::OutputModuleBase::OutputModuleBase(), OverlapValidation::OverlapValidation(), edm::PathStatusFilter::PathStatusFilter(), PhotonIDValueMapProducer::PhotonIDValueMapProducer(), PhotonMVANtuplizer::PhotonMVANtuplizer(), PlottingDevice::PlottingDevice(), QuickTrackAssociatorByHitsProducer::QuickTrackAssociatorByHitsProducer(), ResidualRefitting::ResidualRefitting(), SingleTopTChannelLeptonDQM::SingleTopTChannelLeptonDQM(), SingleTopTChannelLeptonDQM_miniAOD::SingleTopTChannelLeptonDQM_miniAOD(), SiPixelStatusHarvester::SiPixelStatusHarvester(), SiStripAnalyser::SiStripAnalyser(), SiStripDCSFilter::SiStripDCSFilter(), SiStripFineDelayHit::SiStripFineDelayHit(), SiStripMonitorCondDataOnDemandExample::SiStripMonitorCondDataOnDemandExample(), SiStripMonitorDigi::SiStripMonitorDigi(), edm::SubProcess::SubProcess(), TagProbeFitTreeProducer::TagProbeFitTreeProducer(), TopDiLeptonOfflineDQM::TopDiLeptonOfflineDQM(), TopSingleLeptonDQM::TopSingleLeptonDQM(), TopSingleLeptonDQM_miniAOD::TopSingleLeptonDQM_miniAOD(), TtDilepEvtSolutionMaker::TtDilepEvtSolutionMaker(), TtSemiEvtSolutionMaker::TtSemiEvtSolutionMaker(), and ValidIsoTrkCalib::ValidIsoTrkCalib().

◆ consumesInfo()

std::vector< ConsumesInfo > EDConsumerBase::consumesInfo ( ) const

Definition at line 616 of file EDConsumerBase.cc.

616  {
617  // Use this to eliminate duplicate entries related
618  // to consumesMany items where only the type was specified
619  // and the there are multiple matches. In these cases the
620  // label, instance, and process will be empty.
621  std::set<edm::TypeID> alreadySeenTypes;
622 
623  std::vector<ConsumesInfo> result;
624  auto itAlways = m_tokenInfo.begin<kAlwaysGets>();
625  auto itKind = m_tokenInfo.begin<kKind>();
626  auto itLabels = m_tokenInfo.begin<kLabels>();
627  for (auto itInfo = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); itInfo != itEnd;
628  ++itInfo, ++itKind, ++itLabels, ++itAlways) {
629  const unsigned int labelStart = itLabels->m_startOfModuleLabel;
630  const char* consumedModuleLabel = &(m_tokenLabels[labelStart]);
631  const char* consumedInstance = consumedModuleLabel + itLabels->m_deltaToProductInstance;
632  const char* consumedProcessName = consumedModuleLabel + itLabels->m_deltaToProcessName;
633 
634  // consumesMany case
635  if (*consumedModuleLabel == '\0') {
636  if (!alreadySeenTypes.insert(itInfo->m_type).second) {
637  continue;
638  }
639  }
640 
641  // Just copy the information into the ConsumesInfo data structure
642  result.emplace_back(itInfo->m_type,
643  consumedModuleLabel,
644  consumedInstance,
645  consumedProcessName,
646  itInfo->m_branchType,
647  *itKind,
648  *itAlways,
649  itInfo->m_index.skipCurrentProcess());
650  }
651  return result;
652 }

References kAlwaysGets, kKind, kLabels, kLookupInfo, m_tokenInfo, m_tokenLabels, and mps_fire::result.

◆ consumesMany() [1/3]

template<typename ProductType , BranchType B = InEvent>
void edm::EDConsumerBase::consumesMany ( )
inlineprotected

Definition at line 188 of file EDConsumerBase.h.

188  {
189  TypeToGet tid = TypeToGet::make<ProductType>();
190  consumesMany<B>(tid);
191  }

◆ consumesMany() [2/3]

void edm::EDConsumerBase::consumesMany ( const TypeToGet id)
inlineprotected

Definition at line 193 of file EDConsumerBase.h.

193 { consumesMany<InEvent>(id); }

◆ consumesMany() [3/3]

template<BranchType B>
void edm::EDConsumerBase::consumesMany ( const TypeToGet id)
inlineprotected

Definition at line 196 of file EDConsumerBase.h.

196  {
197  recordConsumes(B, id, edm::InputTag{}, true);
198  }

References TtFullHadDaughter::B, and recordConsumes().

◆ convertCurrentProcessAlias()

void EDConsumerBase::convertCurrentProcessAlias ( std::string const &  processName)

Convert "@currentProcess" in InputTag process names to the actual current process name.

Definition at line 570 of file EDConsumerBase.cc.

570  {
571  frozen_ = true;
572 
575 
576  auto newTokenLabels = makeEmptyTokenLabels();
577 
578  // first calculate the size of the new vector and reserve memory for it
579  std::vector<char>::size_type newSize = newTokenLabels.size();
580  std::string newProcessName;
581  for (auto iter = m_tokenInfo.begin<kLabels>(), itEnd = m_tokenInfo.end<kLabels>(); iter != itEnd; ++iter) {
582  newProcessName = &m_tokenLabels[iter->m_startOfModuleLabel + iter->m_deltaToProcessName];
583  if (newProcessName == InputTag::kCurrentProcess) {
584  newProcessName = processName;
585  }
586  newSize += (iter->m_deltaToProcessName + newProcessName.size() + 1);
587  }
588  newTokenLabels.reserve(newSize);
589 
590  unsigned int newStartOfModuleLabel = newTokenLabels.size();
591  for (auto iter = m_tokenInfo.begin<kLabels>(), itEnd = m_tokenInfo.end<kLabels>(); iter != itEnd; ++iter) {
592  unsigned int startOfModuleLabel = iter->m_startOfModuleLabel;
593  unsigned short deltaToProcessName = iter->m_deltaToProcessName;
594 
595  iter->m_startOfModuleLabel = newStartOfModuleLabel;
596 
597  newProcessName = &m_tokenLabels[startOfModuleLabel + deltaToProcessName];
598  if (newProcessName == InputTag::kCurrentProcess) {
599  newProcessName = processName;
600  }
601 
602  newStartOfModuleLabel += (deltaToProcessName + newProcessName.size() + 1);
603 
604  // Copy in both the module label and instance, they are the same
605  newTokenLabels.insert(newTokenLabels.end(),
606  m_tokenLabels.begin() + startOfModuleLabel,
607  m_tokenLabels.begin() + (startOfModuleLabel + deltaToProcessName));
608 
609  newTokenLabels.insert(newTokenLabels.end(), newProcessName.begin(), newProcessName.end());
610  newTokenLabels.push_back('\0');
611  }
612  m_tokenLabels = std::move(newTokenLabels);
613  }
614 }

References containsCurrentProcessAlias_, frozen_, edm::InputTag::kCurrentProcess, kLabels, m_tokenInfo, m_tokenLabels, eostools::move(), SimL1EmulatorRepack_CalouGT_cff::processName, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ esConsumes() [1/5]

template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto edm::EDConsumerBase::esConsumes ( )
inlineprotected

◆ esConsumes() [2/5]

template<Transition Tr = Transition::Event>
constexpr auto edm::EDConsumerBase::esConsumes ( )
inlineconstexprprotectednoexcept

Definition at line 219 of file EDConsumerBase.h.

219  {
220  return EDConsumerBaseESAdaptor<Tr>(this);
221  }

◆ esConsumes() [3/5]

template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto edm::EDConsumerBase::esConsumes ( ESInputTag const &  tag)
inlineprotected

Definition at line 207 of file EDConsumerBase.h.

207  {
208  auto index = recordESConsumes(Tr,
210  std::conditional_t<std::is_same_v<ESRecord, edm::DefaultRecord>,
211  eventsetup::default_record_t<ESHandleAdapter<ESProduct>>,
212  ESRecord>>(),
213  eventsetup::heterocontainer::HCTypeTag::make<ESProduct>(),
214  tag);
215  return ESGetToken<ESProduct, ESRecord>{static_cast<unsigned int>(Tr), index, labelFor(index)};
216  }

References labelFor(), edm::eventsetup::EventSetupRecordKey::makeKey(), recordESConsumes(), and GlobalPosition_Frontier_DevDB_cff::tag.

◆ esConsumes() [4/5]

template<Transition Tr = Transition::Event>
auto edm::EDConsumerBase::esConsumes ( ESInputTag  tag)
inlineprotectednoexcept

Definition at line 224 of file EDConsumerBase.h.

224  {
225  return EDConsumerBaseWithTagESAdaptor<Tr>(this, std::move(tag));
226  }

References eostools::move(), and GlobalPosition_Frontier_DevDB_cff::tag.

◆ esConsumes() [5/5]

template<Transition Tr = Transition::Event>
ESGetTokenGeneric edm::EDConsumerBase::esConsumes ( eventsetup::EventSetupRecordKey const &  iRecord,
eventsetup::DataKey const &  iKey 
)
inlineprotected

Used with EventSetupRecord::doGet.

Definition at line 230 of file EDConsumerBase.h.

230  {
231  return ESGetTokenGeneric(static_cast<unsigned int>(Tr),
232  recordESConsumes(Tr, iRecord, iKey.type(), ESInputTag("", iKey.name().value())),
233  iRecord.type());
234  }

References edm::eventsetup::DataKey::name(), recordESConsumes(), edm::eventsetup::EventSetupRecordKey::type(), edm::eventsetup::DataKey::type(), and edm::eventsetup::SimpleStringTag::value().

◆ esGetTokenIndices()

ESProxyIndex const* edm::EDConsumerBase::esGetTokenIndices ( edm::Transition  iTrans) const
inline

Definition at line 120 of file EDConsumerBase.h.

120  {
122  auto const& v = esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)];
123  if (v.empty()) {
124  return nullptr;
125  }
126  return &(esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)].front());
127  }
128  return nullptr;
129  }

References esItemsToGetFromTransition_, edm::NumberOfEventSetupTransitions, and findQualityFiles::v.

Referenced by edm::EDLooperBase::beginOfJob(), edm::global::EDFilterBase::doAcquire(), edm::global::EDProducerBase::doAcquire(), edm::EDAnalyzer::doBeginLuminosityBlock(), edm::EDProducer::doBeginLuminosityBlock(), edm::EDFilter::doBeginLuminosityBlock(), edm::one::EDFilterBase::doBeginLuminosityBlock(), edm::one::EDProducerBase::doBeginLuminosityBlock(), edm::one::EDAnalyzerBase::doBeginLuminosityBlock(), edm::EDLooperBase::doBeginLuminosityBlock(), edm::global::EDAnalyzerBase::doBeginLuminosityBlock(), edm::global::EDProducerBase::doBeginLuminosityBlock(), edm::limited::EDProducerBase::doBeginLuminosityBlock(), edm::global::EDFilterBase::doBeginLuminosityBlock(), edm::limited::EDFilterBase::doBeginLuminosityBlock(), edm::limited::EDAnalyzerBase::doBeginLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doBeginLuminosityBlock(), edm::EDAnalyzer::doBeginRun(), edm::EDProducer::doBeginRun(), edm::EDFilter::doBeginRun(), edm::one::EDFilterBase::doBeginRun(), edm::one::EDProducerBase::doBeginRun(), edm::one::EDAnalyzerBase::doBeginRun(), edm::EDLooperBase::doBeginRun(), edm::global::EDAnalyzerBase::doBeginRun(), edm::global::EDProducerBase::doBeginRun(), edm::limited::EDProducerBase::doBeginRun(), edm::global::EDFilterBase::doBeginRun(), edm::limited::EDFilterBase::doBeginRun(), edm::limited::EDAnalyzerBase::doBeginRun(), edm::stream::EDAnalyzerAdaptor< T >::doBeginRun(), edm::EDLooperBase::doDuringLoop(), edm::EDAnalyzer::doEndLuminosityBlock(), edm::EDProducer::doEndLuminosityBlock(), edm::EDFilter::doEndLuminosityBlock(), edm::one::EDFilterBase::doEndLuminosityBlock(), edm::one::EDProducerBase::doEndLuminosityBlock(), edm::one::EDAnalyzerBase::doEndLuminosityBlock(), edm::EDLooperBase::doEndLuminosityBlock(), edm::global::EDAnalyzerBase::doEndLuminosityBlock(), edm::global::EDProducerBase::doEndLuminosityBlock(), edm::limited::EDProducerBase::doEndLuminosityBlock(), edm::limited::EDFilterBase::doEndLuminosityBlock(), edm::global::EDFilterBase::doEndLuminosityBlock(), edm::limited::EDAnalyzerBase::doEndLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doEndLuminosityBlock(), edm::EDLooperBase::doEndOfLoop(), edm::EDAnalyzer::doEndRun(), edm::EDProducer::doEndRun(), edm::EDFilter::doEndRun(), edm::one::EDFilterBase::doEndRun(), edm::one::EDProducerBase::doEndRun(), edm::one::EDAnalyzerBase::doEndRun(), edm::EDLooperBase::doEndRun(), edm::global::EDAnalyzerBase::doEndRun(), edm::global::EDProducerBase::doEndRun(), edm::limited::EDProducerBase::doEndRun(), edm::global::EDFilterBase::doEndRun(), edm::limited::EDFilterBase::doEndRun(), edm::limited::EDAnalyzerBase::doEndRun(), edm::stream::EDAnalyzerAdaptor< T >::doEndRun(), edm::EDAnalyzer::doEvent(), edm::EDProducer::doEvent(), edm::EDFilter::doEvent(), edm::global::EDFilterBase::doEvent(), edm::one::EDFilterBase::doEvent(), edm::one::EDProducerBase::doEvent(), edm::global::EDAnalyzerBase::doEvent(), edm::one::EDAnalyzerBase::doEvent(), edm::global::EDProducerBase::doEvent(), edm::limited::EDFilterBase::doEvent(), edm::limited::EDAnalyzerBase::doEvent(), edm::limited::EDProducerBase::doEvent(), edm::global::EDAnalyzerBase::doStreamBeginLuminosityBlock(), edm::global::EDProducerBase::doStreamBeginLuminosityBlock(), edm::limited::EDProducerBase::doStreamBeginLuminosityBlock(), edm::limited::EDFilterBase::doStreamBeginLuminosityBlock(), edm::global::EDFilterBase::doStreamBeginLuminosityBlock(), edm::limited::EDAnalyzerBase::doStreamBeginLuminosityBlock(), edm::global::EDAnalyzerBase::doStreamBeginRun(), edm::global::EDProducerBase::doStreamBeginRun(), edm::limited::EDProducerBase::doStreamBeginRun(), edm::global::EDFilterBase::doStreamBeginRun(), edm::limited::EDFilterBase::doStreamBeginRun(), edm::limited::EDAnalyzerBase::doStreamBeginRun(), edm::global::EDAnalyzerBase::doStreamEndLuminosityBlock(), edm::global::EDProducerBase::doStreamEndLuminosityBlock(), edm::limited::EDProducerBase::doStreamEndLuminosityBlock(), edm::global::EDFilterBase::doStreamEndLuminosityBlock(), edm::limited::EDFilterBase::doStreamEndLuminosityBlock(), edm::limited::EDAnalyzerBase::doStreamEndLuminosityBlock(), edm::global::EDAnalyzerBase::doStreamEndRun(), edm::global::EDProducerBase::doStreamEndRun(), edm::limited::EDProducerBase::doStreamEndRun(), edm::limited::EDFilterBase::doStreamEndRun(), edm::global::EDFilterBase::doStreamEndRun(), and edm::limited::EDAnalyzerBase::doStreamEndRun().

◆ esGetTokenIndicesVector()

std::vector<ESProxyIndex> const& edm::EDConsumerBase::esGetTokenIndicesVector ( edm::Transition  iTrans) const
inline

Definition at line 131 of file EDConsumerBase.h.

131  {
133  return esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)];
134  }

References cms::cuda::assert(), esItemsToGetFromTransition_, and edm::NumberOfEventSetupTransitions.

◆ esGetTokenRecordIndicesVector()

std::vector<ESRecordIndex> const& edm::EDConsumerBase::esGetTokenRecordIndicesVector ( edm::Transition  iTrans) const
inline

Definition at line 136 of file EDConsumerBase.h.

136  {
138  return esRecordsToGetFromTransition_[static_cast<unsigned int>(iTrans)];
139  }

References cms::cuda::assert(), esRecordsToGetFromTransition_, and edm::NumberOfEventSetupTransitions.

◆ indexFrom()

ProductResolverIndexAndSkipBit EDConsumerBase::indexFrom ( EDGetToken  iToken,
BranchType  iBranch,
TypeID const &  iType 
) const

Definition at line 251 of file EDConsumerBase.cc.

253  {
254  if (UNLIKELY(iToken.index() >= m_tokenInfo.size())) {
255  throwBadToken(iType, iToken);
256  }
257  const auto& info = m_tokenInfo.get<kLookupInfo>(iToken.index());
258  if (LIKELY(iBranch == info.m_branchType)) {
259  if (LIKELY(iType == info.m_type)) {
260  return info.m_index;
261  } else {
262  throwTypeMismatch(iType, iToken);
263  }
264  } else {
265  throwBranchMismatch(iBranch, iToken);
266  }
268 }

References edm::EDGetToken::index(), info(), kLookupInfo, LIKELY, m_tokenInfo, edm::ProductResolverIndexInvalid, throwBadToken(), throwBranchMismatch(), throwTypeMismatch(), and UNLIKELY.

Referenced by edm::PrincipalGetAdapter::getByToken_().

◆ itemsMayGet()

void EDConsumerBase::itemsMayGet ( BranchType  iBranch,
std::vector< ProductResolverIndexAndSkipBit > &  oIndices 
) const

Definition at line 306 of file EDConsumerBase.cc.

306  {
307  //how many are we adding?
308  unsigned int count = 0;
309  {
310  auto itAlwaysGet = m_tokenInfo.begin<kAlwaysGets>();
311  for (auto it = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); it != itEnd;
312  ++it, ++itAlwaysGet) {
313  if (iBranch == it->m_branchType) {
314  if (it->m_index.productResolverIndex() != ProductResolverIndexInvalid) {
315  if (not *itAlwaysGet) {
316  ++count;
317  }
318  }
319  }
320  }
321  }
322  oIndices.reserve(oIndices.size() + count);
323  {
324  auto itAlwaysGet = m_tokenInfo.begin<kAlwaysGets>();
325  for (auto it = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); it != itEnd;
326  ++it, ++itAlwaysGet) {
327  if (iBranch == it->m_branchType) {
328  if (it->m_index.productResolverIndex() != ProductResolverIndexInvalid) {
329  if (not *itAlwaysGet) {
330  oIndices.push_back(it->m_index);
331  }
332  }
333  }
334  }
335  }
336 }

References submitPVResolutionJobs::count, kAlwaysGets, kLookupInfo, m_tokenInfo, and edm::ProductResolverIndexInvalid.

Referenced by updateLookup().

◆ itemsToGet()

void EDConsumerBase::itemsToGet ( BranchType  iBranch,
std::vector< ProductResolverIndexAndSkipBit > &  oIndices 
) const

Definition at line 274 of file EDConsumerBase.cc.

274  {
275  //how many are we adding?
276  unsigned int count = 0;
277  {
278  auto itAlwaysGet = m_tokenInfo.begin<kAlwaysGets>();
279  for (auto it = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); it != itEnd;
280  ++it, ++itAlwaysGet) {
281  if (iBranch == it->m_branchType) {
282  if (it->m_index.productResolverIndex() != ProductResolverIndexInvalid) {
283  if (*itAlwaysGet) {
284  ++count;
285  }
286  }
287  }
288  }
289  }
290  oIndices.reserve(oIndices.size() + count);
291  {
292  auto itAlwaysGet = m_tokenInfo.begin<kAlwaysGets>();
293  for (auto it = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); it != itEnd;
294  ++it, ++itAlwaysGet) {
295  if (iBranch == it->m_branchType) {
296  if (it->m_index.productResolverIndex() != ProductResolverIndexInvalid) {
297  if (*itAlwaysGet) {
298  oIndices.push_back(it->m_index);
299  }
300  }
301  }
302  }
303  }
304 }

References submitPVResolutionJobs::count, kAlwaysGets, kLookupInfo, m_tokenInfo, and edm::ProductResolverIndexInvalid.

Referenced by updateLookup().

◆ itemsToGetFrom()

std::vector<ProductResolverIndexAndSkipBit> const& edm::EDConsumerBase::itemsToGetFrom ( BranchType  iType) const
inline

Definition at line 91 of file EDConsumerBase.h.

91  {
92  return itemsToGetFromBranch_[iType];
93  }

References itemsToGetFromBranch_.

Referenced by edm::PrincipalGetAdapter::numberOfProductsConsumed().

◆ labelFor()

const char * EDConsumerBase::labelFor ( ESTokenIndex  iIndex) const
private

Definition at line 654 of file EDConsumerBase.cc.

654  {
655  return m_esTokenInfo.get<kESLookupInfo>(iIndex.value()).m_key.name().value();
656 }

References kESLookupInfo, m_esTokenInfo, and edm::ESTokenIndex::value().

Referenced by esConsumes().

◆ labelsForToken()

void EDConsumerBase::labelsForToken ( EDGetToken  iToken,
Labels oLabels 
) const

◆ mayConsume() [1/3]

EDGetToken edm::EDConsumerBase::mayConsume ( const TypeToGet id,
edm::InputTag const &  tag 
)
inlineprotected

Definition at line 180 of file EDConsumerBase.h.

180 { return mayConsume<InEvent>(id, tag); }

References GlobalPosition_Frontier_DevDB_cff::tag.

◆ mayConsume() [2/3]

template<BranchType B>
EDGetToken edm::EDConsumerBase::mayConsume ( const TypeToGet id,
edm::InputTag const &  tag 
)
inlineprotected

Definition at line 183 of file EDConsumerBase.h.

183  {
184  return EDGetToken{recordConsumes(B, id, checkIfEmpty(tag), false)};
185  }

References TtFullHadDaughter::B, checkIfEmpty(), recordConsumes(), and GlobalPosition_Frontier_DevDB_cff::tag.

◆ mayConsume() [3/3]

template<typename ProductType , BranchType B = InEvent>
EDGetTokenT<ProductType> edm::EDConsumerBase::mayConsume ( edm::InputTag const &  tag)
inlineprotected

Definition at line 175 of file EDConsumerBase.h.

175  {
176  TypeToGet tid = TypeToGet::make<ProductType>();
177  return EDGetTokenT<ProductType>{recordConsumes(B, tid, checkIfEmpty(tag), false)};
178  }

References TtFullHadDaughter::B, checkIfEmpty(), recordConsumes(), and GlobalPosition_Frontier_DevDB_cff::tag.

◆ modulesWhoseProductsAreConsumed()

void EDConsumerBase::modulesWhoseProductsAreConsumed ( std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &  modulesAll,
std::vector< ModuleProcessName > &  modulesInPreviousProcesses,
ProductRegistry const &  preg,
std::map< std::string, ModuleDescription const * > const &  labelsToDesc,
std::string const &  processName 
) const

Definition at line 471 of file EDConsumerBase.cc.

476  {
477  std::set<std::string> alreadyFound;
478 
479  auto modulesInPreviousProcessesEmplace = [&modulesInPreviousProcesses](std::string_view module,
480  std::string_view process) {
481  auto it = std::lower_bound(
482  modulesInPreviousProcesses.begin(), modulesInPreviousProcesses.end(), ModuleProcessName(module, process));
483  modulesInPreviousProcesses.emplace(it, module, process);
484  };
485 
486  auto itKind = m_tokenInfo.begin<kKind>();
487  auto itLabels = m_tokenInfo.begin<kLabels>();
488  for (auto itInfo = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); itInfo != itEnd;
489  ++itInfo, ++itKind, ++itLabels) {
490  ProductResolverIndexHelper const& helper = *preg.productLookup(itInfo->m_branchType);
491  std::vector<ModuleDescription const*>& modules = *modulesAll[itInfo->m_branchType];
492 
493  const unsigned int labelStart = itLabels->m_startOfModuleLabel;
494  const char* const consumedModuleLabel = &(m_tokenLabels[labelStart]);
495  const char* const consumedProductInstance = consumedModuleLabel + itLabels->m_deltaToProductInstance;
496  const char* const consumedProcessName = consumedModuleLabel + itLabels->m_deltaToProcessName;
497 
498  if (not itInfo->m_index.skipCurrentProcess()) {
499  if (*consumedModuleLabel != '\0') { // not a consumesMany
500  if (*consumedProcessName != '\0') { // process name is specified in consumes call
501  if (helper.index(
502  *itKind, itInfo->m_type, consumedModuleLabel, consumedProductInstance, consumedProcessName) !=
504  if (processName == consumedProcessName) {
505  insertFoundModuleLabel(*itKind,
506  itInfo->m_type,
507  consumedModuleLabel,
508  consumedProductInstance,
509  modules,
510  alreadyFound,
511  labelsToDesc,
512  preg);
513  } else {
514  // Product explicitly from different process than the current process, so must refer to an earlier process (unless it ends up "not found")
515  modulesInPreviousProcessesEmplace(consumedModuleLabel, consumedProcessName);
516  }
517  }
518  } else { // process name was empty
519  auto matches = helper.relatedIndexes(*itKind, itInfo->m_type, consumedModuleLabel, consumedProductInstance);
520  for (unsigned int j = 0; j < matches.numberOfMatches(); ++j) {
521  if (processName == matches.processName(j)) {
522  insertFoundModuleLabel(*itKind,
523  itInfo->m_type,
524  consumedModuleLabel,
525  consumedProductInstance,
526  modules,
527  alreadyFound,
528  labelsToDesc,
529  preg);
530  } else {
531  // Product did not match to current process, so must refer to an earlier process (unless it ends up "not found")
532  // Recall that empty process name means "in the latest process" that can change event-by-event
533  modulesInPreviousProcessesEmplace(consumedModuleLabel, matches.processName(j));
534  }
535  }
536  }
537  // consumesMany case
538  } else if (itInfo->m_index.productResolverIndex() == ProductResolverIndexInvalid) {
539  auto matches = helper.relatedIndexes(*itKind, itInfo->m_type);
540  for (unsigned int j = 0; j < matches.numberOfMatches(); ++j) {
541  if (processName == matches.processName(j)) {
542  insertFoundModuleLabel(*itKind,
543  itInfo->m_type,
544  matches.moduleLabel(j),
545  matches.productInstanceName(j),
546  modules,
547  alreadyFound,
548  labelsToDesc,
549  preg);
550  } else {
551  modulesInPreviousProcessesEmplace(matches.moduleLabel(j), matches.processName(j));
552  }
553  }
554  }
555  } else {
556  // The skipCurrentProcess means the same as empty process name,
557  // except the current process is skipped. Therefore need to do
558  // the same matching as above. There is no consumesMany branch
559  // in this case.
560  auto matches = helper.relatedIndexes(*itKind, itInfo->m_type, consumedModuleLabel, consumedProductInstance);
561  for (unsigned int j = 0; j < matches.numberOfMatches(); ++j) {
562  if (processName != matches.processName(j)) {
563  modulesInPreviousProcessesEmplace(matches.moduleLabel(j), matches.processName(j));
564  }
565  }
566  }
567  }
568 }

References dqmiolumiharvest::j, kKind, kLabels, kLookupInfo, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, m_tokenInfo, m_tokenLabels, oniaPATMuonsWithTrigger_cff::matches, LogMessageMonitor_cff::modules, LaserDQM_cfg::process, SimL1EmulatorRepack_CalouGT_cff::processName, edm::ProductRegistry::productLookup(), and edm::ProductResolverIndexInvalid.

◆ operator=() [1/2]

EDConsumerBase& edm::EDConsumerBase::operator= ( EDConsumerBase &&  )
default

◆ operator=() [2/2]

EDConsumerBase const& edm::EDConsumerBase::operator= ( EDConsumerBase const &  )
delete

◆ recordConsumes()

unsigned int EDConsumerBase::recordConsumes ( BranchType  iBranch,
TypeToGet const &  iType,
edm::InputTag const &  iTag,
bool  iAlwaysGets 
)
private

Definition at line 61 of file EDConsumerBase.cc.

64  {
65  if (frozen_) {
66  throwConsumesCallAfterFrozen(iType, iTag);
67  }
68 
69  unsigned int index = m_tokenInfo.size();
70 
71  bool skipCurrentProcess = iTag.willSkipCurrentProcess();
72 
73  const size_t labelSize = iTag.label().size();
74  const size_t productInstanceSize = iTag.instance().size();
75  unsigned int labelStart = m_tokenLabels.size();
76  unsigned short delta1 = labelSize + 1;
77  unsigned short delta2 = labelSize + 2 + productInstanceSize;
78  m_tokenInfo.emplace_back(TokenLookupInfo{iType.type(), ProductResolverIndexInvalid, skipCurrentProcess, iBranch},
79  iAlwaysGets,
80  LabelPlacement{labelStart, delta1, delta2},
81  iType.kind());
82 
83  const size_t additionalSize = skipCurrentProcess ? labelSize + productInstanceSize + 3
84  : labelSize + productInstanceSize + iTag.process().size() + 3;
85 
86  m_tokenLabels.reserve(m_tokenLabels.size() + additionalSize);
87  {
88  const std::string& m = iTag.label();
89  m_tokenLabels.insert(m_tokenLabels.end(), m.begin(), m.end());
90  m_tokenLabels.push_back('\0');
91  }
92  {
93  const std::string& m = iTag.instance();
94  m_tokenLabels.insert(m_tokenLabels.end(), m.begin(), m.end());
95  m_tokenLabels.push_back('\0');
96  }
97  {
98  const std::string& m = iTag.process();
101  }
102  if (!skipCurrentProcess) {
103  m_tokenLabels.insert(m_tokenLabels.end(), m.begin(), m.end());
104  m_tokenLabels.push_back('\0');
105  } else {
106  m_tokenLabels.push_back('\0');
107  }
108  }
109  return index;
110 }

References containsCurrentProcessAlias_, frozen_, edm::InputTag::instance(), edm::InputTag::kCurrentProcess, edm::TypeToGet::kind(), edm::InputTag::label(), visualization-live-secondInstance_cfg::m, m_tokenInfo, m_tokenLabels, edm::InputTag::process(), edm::ProductResolverIndexInvalid, AlCaHLTBitMon_QueryRunRegistry::string, throwConsumesCallAfterFrozen(), edm::TypeToGet::type(), and edm::InputTag::willSkipCurrentProcess().

Referenced by consumes(), consumesMany(), and mayConsume().

◆ recordESConsumes()

ESTokenIndex EDConsumerBase::recordESConsumes ( Transition  iTrans,
eventsetup::EventSetupRecordKey const &  iRecord,
eventsetup::heterocontainer::HCTypeTag const &  iDataType,
edm::ESInputTag const &  iTag 
)
private

Definition at line 213 of file EDConsumerBase.cc.

216  {
217  if (frozen_) {
218  throwESConsumesCallAfterFrozen(iRecord, iDataType, iTag);
219  }
220 
221  //m_tokenLabels first entry is a null. Since most ES data requests have
222  // empty labels we will assume we can reuse the first entry
223  unsigned int startOfComponentName = 0;
224  if (not iTag.module().empty()) {
225  startOfComponentName = m_tokenLabels.size();
226 
227  m_tokenLabels.reserve(m_tokenLabels.size() + iTag.module().size() + 1);
228  {
229  const std::string& m = iTag.module();
230  m_tokenLabels.insert(m_tokenLabels.end(), m.begin(), m.end());
231  m_tokenLabels.push_back('\0');
232  }
233  }
234 
235  auto index = static_cast<ESProxyIndex::Value_t>(m_esTokenInfo.size());
236  m_esTokenInfo.emplace_back(
237  ESTokenLookupInfo{iRecord, eventsetup::DataKey{iDataType, iTag.data().c_str()}, startOfComponentName},
238  ESProxyIndex{-1});
241  }
242  auto indexForToken = esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)].size();
243  esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)].emplace_back(-1 * (index + 1));
244  esRecordsToGetFromTransition_[static_cast<unsigned int>(iTrans)].emplace_back();
245  return ESTokenIndex{static_cast<ESTokenIndex::Value_t>(indexForToken)};
246 }

References edm::ESInputTag::data(), esItemsToGetFromTransition_, esRecordsToGetFromTransition_, frozen_, visualization-live-secondInstance_cfg::m, m_esTokenInfo, m_tokenLabels, edm::ESInputTag::module(), edm::NumberOfEventSetupTransitions, AlCaHLTBitMon_QueryRunRegistry::string, throwESConsumesCallAfterFrozen(), and throwESConsumesInProcessBlock().

Referenced by esConsumes().

◆ registeredToConsume()

bool EDConsumerBase::registeredToConsume ( ProductResolverIndex  iIndex,
bool  skipCurrentProcess,
BranchType  iBranch 
) const
Returns
true if the product corresponding to the index was registered via consumes or mayConsume call

Definition at line 347 of file EDConsumerBase.cc.

349  {
350  for (auto it = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); it != itEnd; ++it) {
351  if (it->m_index.productResolverIndex() == iIndex and it->m_index.skipCurrentProcess() == skipCurrentProcess and
352  it->m_branchType == iBranch) {
353  return true;
354  }
355  }
356  return false;
357 }

References kLookupInfo, and m_tokenInfo.

◆ registeredToConsumeMany()

bool EDConsumerBase::registeredToConsumeMany ( TypeID const &  iType,
BranchType  iBranch 
) const
Returns
true of TypeID corresponds to a type specified in a consumesMany call

Definition at line 359 of file EDConsumerBase.cc.

359  {
360  for (auto it = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); it != itEnd; ++it) {
361  //consumesMany entries do not have their index resolved
362  if (it->m_index.productResolverIndex() == ProductResolverIndexInvalid and it->m_type == iType and
363  it->m_branchType == iBranch) {
364  return true;
365  }
366  }
367  return false;
368 }

References kLookupInfo, m_tokenInfo, and edm::ProductResolverIndexInvalid.

◆ registerLateConsumes()

virtual void edm::EDConsumerBase::registerLateConsumes ( eventsetup::ESRecordsToProxyIndices const &  )
inlineprivatevirtual

Reimplemented in edm::EventSetupRecordDataGetter.

Definition at line 237 of file EDConsumerBase.h.

237 {}

Referenced by updateLookup().

◆ throwBadToken()

void EDConsumerBase::throwBadToken ( edm::TypeID const &  iType,
EDGetToken  iToken 
) const
private

Definition at line 383 of file EDConsumerBase.cc.

383  {
384  if (iToken.isUninitialized()) {
385  throw cms::Exception("BadToken") << "A get using a EDGetToken with the C++ type '" << iType.className()
386  << "' was made using an uninitialized token.\n Please check that the variable is "
387  "being initialized from a 'consumes' call.";
388  }
389  throw cms::Exception("BadToken")
390  << "A get using a EDGetToken with the C++ type '" << iType.className() << "' was made using a token with a value "
391  << iToken.index()
392  << " which is beyond the range used by this module.\n Please check that the variable is being initialized from a "
393  "'consumes' call from this module.\n You can not share EDGetToken values between modules.";
394 }

References edm::TypeID::className(), Exception, edm::EDGetToken::index(), and edm::EDGetToken::isUninitialized().

Referenced by indexFrom().

◆ throwBranchMismatch()

void EDConsumerBase::throwBranchMismatch ( BranchType  iBranch,
EDGetToken  iToken 
) const
private

Definition at line 376 of file EDConsumerBase.cc.

376  {
377  throw cms::Exception("BranchTypeMismatch")
378  << "A get using a EDGetToken was done in " << BranchTypeToString(iBranch) << " but the consumes call was for "
379  << BranchTypeToString(m_tokenInfo.get<kLookupInfo>(iToken.index()).m_branchType)
380  << ".\n Please modify the consumes call to use the correct branch type.";
381 }

References edm::BranchTypeToString(), Exception, edm::EDGetToken::index(), kLookupInfo, and m_tokenInfo.

Referenced by indexFrom().

◆ throwConsumesCallAfterFrozen()

void EDConsumerBase::throwConsumesCallAfterFrozen ( TypeToGet const &  typeToGet,
InputTag const &  inputTag 
) const
private

Definition at line 396 of file EDConsumerBase.cc.

396  {
397  throw cms::Exception("LogicError") << "A module declared it consumes a product after its constructor.\n"
398  << "This must be done in the contructor\n"
399  << "The product type was: " << typeToGet.type() << "\n"
400  << "and " << inputTag << "\n";
401 }

References Exception, SimL1EmulatorRepack_Full_cff::inputTag, and edm::TypeToGet::type().

Referenced by recordConsumes().

◆ throwESConsumesCallAfterFrozen()

void EDConsumerBase::throwESConsumesCallAfterFrozen ( eventsetup::EventSetupRecordKey const &  iRecord,
eventsetup::heterocontainer::HCTypeTag const &  iDataType,
edm::ESInputTag const &  iTag 
) const
private

Definition at line 403 of file EDConsumerBase.cc.

405  {
406  throw cms::Exception("LogicError") << "A module declared it consumes an EventSetup product after its constructor.\n"
407  << "This must be done in the contructor\n"
408  << "The product type was: " << iDataType.name() << " in record "
409  << iRecord.type().name() << "\n"
410  << "and ESInputTag was " << iTag << "\n";
411 }

References Exception, edm::eventsetup::heterocontainer::HCTypeTag::name(), and edm::eventsetup::EventSetupRecordKey::type().

Referenced by recordESConsumes().

◆ throwESConsumesInProcessBlock()

void EDConsumerBase::throwESConsumesInProcessBlock ( ) const
private

Definition at line 413 of file EDConsumerBase.cc.

413  {
414  throw cms::Exception("LogicError")
415  << "A module declared it consumes an EventSetup product during a ProcessBlock transition.\n"
416  << "EventSetup products can only be consumed in Event, Lumi, or Run transitions.\n";
417 }

References Exception.

Referenced by recordESConsumes().

◆ throwTypeMismatch()

void EDConsumerBase::throwTypeMismatch ( edm::TypeID const &  iType,
EDGetToken  iToken 
) const
private

Definition at line 370 of file EDConsumerBase.cc.

370  {
371  throw cms::Exception("TypeMismatch") << "A get using a EDGetToken used the C++ type '" << iType.className()
372  << "' but the consumes call was for type '"
373  << m_tokenInfo.get<kLookupInfo>(iToken.index()).m_type.className()
374  << "'.\n Please modify either the consumes or get call so the types match.";
375 }

References edm::TypeID::className(), Exception, edm::EDGetToken::index(), kLookupInfo, and m_tokenInfo.

Referenced by indexFrom().

◆ uncheckedIndexFrom()

ProductResolverIndexAndSkipBit EDConsumerBase::uncheckedIndexFrom ( EDGetToken  iToken) const

◆ updateLookup() [1/2]

void EDConsumerBase::updateLookup ( BranchType  iBranchType,
ProductResolverIndexHelper const &  iHelper,
bool  iPrefetchMayGet 
)

Definition at line 112 of file EDConsumerBase.cc.

114  {
115  frozen_ = true;
117  {
118  auto itKind = m_tokenInfo.begin<kKind>();
119  auto itLabels = m_tokenInfo.begin<kLabels>();
120  for (auto itInfo = m_tokenInfo.begin<kLookupInfo>(), itEnd = m_tokenInfo.end<kLookupInfo>(); itInfo != itEnd;
121  ++itInfo, ++itKind, ++itLabels) {
122  if (itInfo->m_branchType == iBranchType) {
123  const unsigned int labelStart = itLabels->m_startOfModuleLabel;
124  const char* moduleLabel = &(m_tokenLabels[labelStart]);
125  itInfo->m_index = ProductResolverIndexAndSkipBit(iHelper.index(*itKind,
126  itInfo->m_type,
127  moduleLabel,
128  moduleLabel + itLabels->m_deltaToProductInstance,
129  moduleLabel + itLabels->m_deltaToProcessName),
130  itInfo->m_index.skipCurrentProcess());
131  }
132  }
133  }
134 
135  //now add resolved requests to get many to the end of our list
136  // a get many will have an empty module label
137  for (size_t i = 0, iEnd = m_tokenInfo.size(); i != iEnd; ++i) {
138  //need to copy since pointer could be invalidated by emplace_back
139  auto const info = m_tokenInfo.get<kLookupInfo>(i);
140  if (info.m_branchType == iBranchType && info.m_index.productResolverIndex() == ProductResolverIndexInvalid &&
141  m_tokenLabels[m_tokenInfo.get<kLabels>(i).m_startOfModuleLabel] == '\0') {
142  //find all matching types
143  const auto kind = m_tokenInfo.get<kKind>(i);
144  auto matches = iHelper.relatedIndexes(kind, info.m_type);
145 
146  //NOTE: This could be changed to contain the true labels for what is being
147  // requested but for now I want to remember these are part of a get many
148  const LabelPlacement labels = m_tokenInfo.get<kLabels>(i);
149  bool alwaysGet = m_tokenInfo.get<kAlwaysGets>(i);
150  for (unsigned int j = 0; j != matches.numberOfMatches(); ++j) {
151  //only keep the ones that are for a specific data item and not a collection
152  if (matches.isFullyResolved(j)) {
153  auto index = matches.index(j);
154  m_tokenInfo.emplace_back(
155  TokenLookupInfo{info.m_type, index, info.m_index.skipCurrentProcess(), info.m_branchType},
156  alwaysGet,
157  labels,
158  kind);
159  }
160  }
161  }
162  }
163  m_tokenInfo.shrink_to_fit();
164 
165  itemsToGet(iBranchType, itemsToGetFromBranch_[iBranchType]);
166  if (iPrefetchMayGet) {
167  itemsMayGet(iBranchType, itemsToGetFromBranch_[iBranchType]);
168  }
169 }

References cms::cuda::assert(), containsCurrentProcessAlias_, frozen_, mps_fire::i, edm::ProductResolverIndexHelper::index(), info(), itemsMayGet(), itemsToGet(), itemsToGetFromBranch_, dqmiolumiharvest::j, kAlwaysGets, CalibrationSummaryClient_cfi::kind, kKind, kLabels, kLookupInfo, SummaryClient_cfi::labels, m_tokenInfo, m_tokenLabels, oniaPATMuonsWithTrigger_cff::matches, HerwigMaxPtPartonFilter_cfi::moduleLabel, edm::ProductResolverIndexInvalid, and edm::ProductResolverIndexHelper::relatedIndexes().

Referenced by edm::SubProcess::beginJob().

◆ updateLookup() [2/2]

void EDConsumerBase::updateLookup ( eventsetup::ESRecordsToProxyIndices const &  iPI)

Definition at line 171 of file EDConsumerBase.cc.

171  {
172  // temporarily unfreeze to allow late EventSetup consumes registration
173  frozen_ = false;
175  frozen_ = true;
176 
177  unsigned int index = 0;
178  for (auto it = m_esTokenInfo.begin<kESLookupInfo>(); it != m_esTokenInfo.end<kESLookupInfo>(); ++it, ++index) {
179  auto indexInRecord = iPI.indexInRecord(it->m_record, it->m_key);
181  const char* componentName = &(m_tokenLabels[it->m_startOfComponentName]);
182  if (*componentName) {
183  auto component = iPI.component(it->m_record, it->m_key);
184  if (component->label_.empty()) {
185  if (component->type_ != componentName) {
187  }
188  } else if (component->label_ != componentName) {
190  }
191  }
192  }
193  m_esTokenInfo.get<kESProxyIndex>(index) = indexInRecord;
194 
195  int negIndex = -1 * (index + 1);
196  for (auto& items : esItemsToGetFromTransition_) {
197  for (auto& itemIndex : items) {
198  if (itemIndex.value() == negIndex) {
199  itemIndex = indexInRecord;
200  esRecordsToGetFromTransition_[&items - &esItemsToGetFromTransition_.front()][&itemIndex - &items.front()] =
201  iPI.recordIndexFor(it->m_record);
202  negIndex = 1;
203  break;
204  }
205  }
206  if (negIndex > 0) {
207  break;
208  }
209  }
210  }
211 }

References edm::eventsetup::ESRecordsToProxyIndices::component(), esItemsToGetFromTransition_, esRecordsToGetFromTransition_, frozen_, edm::eventsetup::ESRecordsToProxyIndices::indexInRecord(), mps_monitormerge::items, kESLookupInfo, kESProxyIndex, m_esTokenInfo, m_tokenLabels, edm::eventsetup::ESRecordsToProxyIndices::missingProxyIndex(), edm::eventsetup::ESRecordsToProxyIndices::recordIndexFor(), and registerLateConsumes().

Friends And Related Function Documentation

◆ ConsumesCollector

friend class ConsumesCollector
friend

Definition at line 142 of file EDConsumerBase.h.

◆ EDConsumerBaseAdaptor

template<BranchType B>
friend class EDConsumerBaseAdaptor
friend

Definition at line 148 of file EDConsumerBase.h.

◆ EDConsumerBaseESAdaptor

template<Transition Tr>
friend class EDConsumerBaseESAdaptor
friend

Definition at line 144 of file EDConsumerBase.h.

◆ EDConsumerBaseWithTagESAdaptor

template<Transition Tr>
friend class EDConsumerBaseWithTagESAdaptor
friend

Definition at line 146 of file EDConsumerBase.h.

◆ WillGetIfMatch

template<typename T >
friend class WillGetIfMatch
friend

Definition at line 150 of file EDConsumerBase.h.

Member Data Documentation

◆ containsCurrentProcessAlias_

bool edm::EDConsumerBase::containsCurrentProcessAlias_
private

Definition at line 310 of file EDConsumerBase.h.

Referenced by convertCurrentProcessAlias(), recordConsumes(), and updateLookup().

◆ esItemsToGetFromTransition_

std::array<std::vector<ESProxyIndex>, static_cast<unsigned int>edm::Transition::NumberOfEventSetupTransitions)> edm::EDConsumerBase::esItemsToGetFromTransition_
private

◆ esRecordsToGetFromTransition_

std::array<std::vector<ESRecordIndex>, static_cast<unsigned int>edm::Transition::NumberOfEventSetupTransitions)> edm::EDConsumerBase::esRecordsToGetFromTransition_
private

Definition at line 308 of file EDConsumerBase.h.

Referenced by esGetTokenRecordIndicesVector(), recordESConsumes(), and updateLookup().

◆ frozen_

bool edm::EDConsumerBase::frozen_
private

◆ itemsToGetFromBranch_

std::array<std::vector<ProductResolverIndexAndSkipBit>, edm::NumBranchTypes> edm::EDConsumerBase::itemsToGetFromBranch_
private

Definition at line 286 of file EDConsumerBase.h.

Referenced by itemsToGetFrom(), and updateLookup().

◆ m_esTokenInfo

edm::SoATuple<ESTokenLookupInfo, ESProxyIndex> edm::EDConsumerBase::m_esTokenInfo
private

Definition at line 304 of file EDConsumerBase.h.

Referenced by labelFor(), recordESConsumes(), and updateLookup().

◆ m_tokenInfo

edm::SoATuple<TokenLookupInfo, bool, LabelPlacement, edm::KindOfType> edm::EDConsumerBase::m_tokenInfo
private

◆ m_tokenLabels

std::vector<char> edm::EDConsumerBase::m_tokenLabels
private
edm::EDConsumerBase::throwESConsumesCallAfterFrozen
void throwESConsumesCallAfterFrozen(eventsetup::EventSetupRecordKey const &, eventsetup::heterocontainer::HCTypeTag const &, edm::ESInputTag const &) const
Definition: EDConsumerBase.cc:403
edm::EDGetToken::index
constexpr unsigned int index() const noexcept
Definition: EDGetToken.h:50
SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
edm::InputTag::kCurrentProcess
static const std::string kCurrentProcess
Definition: InputTag.h:54
edm::ESTokenIndex
Definition: ESIndices.h:55
mps_fire.i
i
Definition: mps_fire.py:428
TypeToGet
start
Definition: start.py:1
LogMessageMonitor_cff.modules
modules
Definition: LogMessageMonitor_cff.py:7
edm::EDConsumerBase::esRecordsToGetFromTransition_
std::array< std::vector< ESRecordIndex >, static_cast< unsigned int >edm::Transition::NumberOfEventSetupTransitions)> esRecordsToGetFromTransition_
Definition: EDConsumerBase.h:308
edm::EDConsumerBase::kLabels
Definition: EDConsumerBase.h:279
ESInputTag
edm::EDConsumerBase::recordConsumes
unsigned int recordConsumes(BranchType iBranch, TypeToGet const &iType, edm::InputTag const &iTag, bool iAlwaysGets)
Definition: EDConsumerBase.cc:61
modules
Definition: MuonCleanerBySegments.cc:35
edm::ProductResolverIndexAndSkipBit
Definition: ProductResolverIndexAndSkipBit.h:28
oniaPATMuonsWithTrigger_cff.matches
matches
Definition: oniaPATMuonsWithTrigger_cff.py:77
edm::EDConsumerBase::checkIfEmpty
edm::InputTag const & checkIfEmpty(edm::InputTag const &tag)
Definition: EDConsumerBase.cc:54
edm::EDConsumerBase::m_esTokenInfo
edm::SoATuple< ESTokenLookupInfo, ESProxyIndex > m_esTokenInfo
Definition: EDConsumerBase.h:304
cms::cuda::assert
assert(be >=bs)
edm::eventsetup::DataKey
Definition: DataKey.h:29
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::EDConsumerBase::kAlwaysGets
Definition: EDConsumerBase.h:279
edm::ProductResolverIndexHelper
Definition: ProductResolverIndexHelper.h:89
findQualityFiles.v
v
Definition: findQualityFiles.py:179
edm::EDConsumerBase::itemsMayGet
void itemsMayGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
Definition: EDConsumerBase.cc:306
edm::EDConsumerBase::throwConsumesCallAfterFrozen
void throwConsumesCallAfterFrozen(TypeToGet const &, InputTag const &) const
Definition: EDConsumerBase.cc:396
edm::ESProxyIndex
Definition: ESIndices.h:30
mps_monitormerge.items
list items
Definition: mps_monitormerge.py:29
edm::EDConsumerBase::m_tokenLabels
std::vector< char > m_tokenLabels
Definition: EDConsumerBase.h:284
edm::EDConsumerBase::kLookupInfo
Definition: EDConsumerBase.h:279
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
kWasEmpty
static const edm::InputTag kWasEmpty("@EmptyLabel@")
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
edm::eventsetup::default_record_t
typename default_record< T >::RecordT default_record_t
Definition: data_default_record_trait.h:68
edm::ESTokenIndex::value
constexpr Value_t value() const noexcept
Definition: ESIndices.h:70
submitPVResolutionJobs.count
count
Definition: submitPVResolutionJobs.py:352
edm::EDConsumerBase::itemsToGet
void itemsToGet(BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
Definition: EDConsumerBase.cc:274
edm::InEvent
Definition: BranchType.h:11
edm::eventsetup::EventSetupRecordKey::makeKey
static EventSetupRecordKey makeKey()
Definition: EventSetupRecordKey.h:49
edm::EDConsumerBase::throwESConsumesInProcessBlock
void throwESConsumesInProcessBlock() const
Definition: EDConsumerBase.cc:413
edm::eventsetup::ESRecordsToProxyIndices::missingProxyIndex
static constexpr ESProxyIndex missingProxyIndex() noexcept
Definition: ESRecordsToProxyIndices.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EDConsumerBase::m_tokenInfo
edm::SoATuple< TokenLookupInfo, bool, LabelPlacement, edm::KindOfType > m_tokenInfo
Definition: EDConsumerBase.h:280
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
helper
Definition: helper.py:1
edm::EDConsumerBase::throwBadToken
void throwBadToken(edm::TypeID const &iType, EDGetToken iToken) const
Definition: EDConsumerBase.cc:383
edm::ProductResolverIndexInvalid
Definition: ProductResolverIndex.h:16
edm::EDConsumerBase::itemsToGetFromBranch_
std::array< std::vector< ProductResolverIndexAndSkipBit >, edm::NumBranchTypes > itemsToGetFromBranch_
Definition: EDConsumerBase.h:286
edm::EDConsumerBase::kESLookupInfo
Definition: EDConsumerBase.h:303
ESGetToken
edm::EDConsumerBase::containsCurrentProcessAlias_
bool containsCurrentProcessAlias_
Definition: EDConsumerBase.h:310
CalibrationSummaryClient_cfi.kind
kind
Definition: CalibrationSummaryClient_cfi.py:37
ESGetTokenGeneric
SimL1EmulatorRepack_CalouGT_cff.processName
processName
Definition: SimL1EmulatorRepack_CalouGT_cff.py:17
edm::EDConsumerBase::kKind
Definition: EDConsumerBase.h:279
EDGetToken
TtFullHadDaughter::B
static const std::string B
Definition: TtFullHadronicEvent.h:9
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::EDGetToken::isUninitialized
constexpr bool isUninitialized() const noexcept
Definition: EDGetToken.h:51
edm::EDConsumerBase::frozen_
bool frozen_
Definition: EDConsumerBase.h:309
LIKELY
#define LIKELY(x)
Definition: Likely.h:20
Exception
Definition: hltDiff.cc:245
edm::EDConsumerBase::kESProxyIndex
Definition: EDConsumerBase.h:303
edm::EDConsumerBase::labelFor
const char * labelFor(ESTokenIndex) const
Definition: EDConsumerBase.cc:654
edm::EDConsumerBase::throwBranchMismatch
void throwBranchMismatch(BranchType, EDGetToken) const
Definition: EDConsumerBase.cc:376
edm::ModuleProcessName
Definition: ModuleProcessName.h:12
edm::EDConsumerBase::esItemsToGetFromTransition_
std::array< std::vector< ESProxyIndex >, static_cast< unsigned int >edm::Transition::NumberOfEventSetupTransitions)> esItemsToGetFromTransition_
Definition: EDConsumerBase.h:306
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
mps_fire.result
result
Definition: mps_fire.py:311
command_line.start
start
Definition: command_line.py:167
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
edm::EDConsumerBase::recordESConsumes
ESTokenIndex recordESConsumes(Transition, eventsetup::EventSetupRecordKey const &, eventsetup::heterocontainer::HCTypeTag const &, edm::ESInputTag const &iTag)
Definition: EDConsumerBase.cc:213
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
SimL1EmulatorRepack_Full_cff.inputTag
inputTag
Definition: SimL1EmulatorRepack_Full_cff.py:56
edm::BranchTypeToString
std::string const & BranchTypeToString(BranchType const &branchType)
Definition: BranchType.cc:91
edm::EDConsumerBase::throwTypeMismatch
void throwTypeMismatch(edm::TypeID const &, EDGetToken) const
Definition: EDConsumerBase.cc:370
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
edm::EDConsumerBase::registerLateConsumes
virtual void registerLateConsumes(eventsetup::ESRecordsToProxyIndices const &)
Definition: EDConsumerBase.h:237
edm::Transition::NumberOfEventSetupTransitions