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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
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)
 
virtual void doSelectInputProcessBlocks (ProductRegistry const &, ProcessBlockHelperBase const &)
 
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 110 of file EDConsumerBase.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
kLookupInfo 
kAlwaysGets 
kLabels 
kKind 

Definition at line 286 of file EDConsumerBase.h.

◆ anonymous enum

anonymous enum
private
Enumerator
kESLookupInfo 
kESProxyIndex 

Definition at line 310 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 169 of file EDConsumerBase.h.

169  {
170  return EDGetToken{recordConsumes(InEvent, id, checkIfEmpty(tag), true)};
171  }

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

◆ consumes() [2/4]

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

Definition at line 159 of file EDConsumerBase.h.

159  {
160  TypeToGet tid = TypeToGet::make<ProductType>();
161  return EDGetTokenT<ProductType>{recordConsumes(B, tid, checkIfEmpty(tag), true)};
162  }

References TtFullHadDaughter::B, checkIfEmpty(), recordConsumes(), and makeGlobalPositionRcd_cfg::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(), MkFitEventOfHitsProducer::MkFitEventOfHitsProducer(), MkFitProducer::MkFitProducer(), MultiplicityCorrelator::MultiplicityCorrelator(), MultiTrackValidator::MultiTrackValidator(), pat::PATPackedCandidateProducer::PATPackedCandidateProducer(), ShiftedParticleMETcorrInputProducer::ShiftedParticleMETcorrInputProducer(), SiStripMonitorDigi::SiStripMonitorDigi(), edm::SwitchProducer::SwitchProducer(), TrackingParticleNumberOfLayersProducer::TrackingParticleNumberOfLayersProducer(), and l1tVertexFinder::VertexNTupler::VertexNTupler().

◆ consumes() [3/4]

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

Definition at line 165 of file EDConsumerBase.h.

165  {
166  return EDConsumerBaseAdaptor<B>(this, std::move(tag));
167  }

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

◆ consumes() [4/4]

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

Definition at line 174 of file EDConsumerBase.h.

174  {
175  return EDGetToken{recordConsumes(B, id, checkIfEmpty(tag), true)};
176  }

References TtFullHadDaughter::B, checkIfEmpty(), recordConsumes(), and makeGlobalPositionRcd_cfg::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(), AlignmentMonitorAsAnalyzer::AlignmentMonitorAsAnalyzer(), 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(), EcalDQMonitorClient::EcalDQMonitorClient(), EcalDQMonitorTask::EcalDQMonitorTask(), EcalMEFormatter::EcalMEFormatter(), EcalSelectiveReadoutValidation::EcalSelectiveReadoutValidation(), EDMtoMEConverter::EDMtoMEConverter(), EgammaHLTClusterShapeProducer::EgammaHLTClusterShapeProducer(), EgammaHLTR9IDProducer::EgammaHLTR9IDProducer(), EGEnergyAnalyzer::EGEnergyAnalyzer(), ElectronIdMVAProducer::ElectronIdMVAProducer(), ElectronMVANtuplizer::ElectronMVANtuplizer(), EopTreeWriter::EopTreeWriter(), EventWithHistoryEDFilter::EventWithHistoryEDFilter(), edm::FilterWrapper< T >::FilterWrapper(), GeometryProducer::GeometryProducer(), HcalIsoTrkAnalyzer::HcalIsoTrkAnalyzer(), HcalOfflineHarvesting::HcalOfflineHarvesting(), HcalOnlineHarvesting::HcalOnlineHarvesting(), 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(), SiStripBadComponentInfo::SiStripBadComponentInfo(), SiStripDCSFilter::SiStripDCSFilter(), SiStripFineDelayHit::SiStripFineDelayHit(), SiStripMonitorCondDataOnDemandExample::SiStripMonitorCondDataOnDemandExample(), SiStripMonitorDigi::SiStripMonitorDigi(), SiStripQualityStatistics::SiStripQualityStatistics(), edm::SubProcess::SubProcess(), TagProbeFitTreeProducer::TagProbeFitTreeProducer(), TopDiLeptonOfflineDQM::TopDiLeptonOfflineDQM(), TopSingleLeptonDQM::TopSingleLeptonDQM(), TopSingleLeptonDQM_miniAOD::TopSingleLeptonDQM_miniAOD(), TriggerResultsFilter::TriggerResultsFilter(), TtDilepEvtSolutionMaker::TtDilepEvtSolutionMaker(), TtSemiEvtSolutionMaker::TtSemiEvtSolutionMaker(), and ValidIsoTrkCalib::ValidIsoTrkCalib().

◆ consumesInfo()

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

Definition at line 622 of file EDConsumerBase.cc.

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

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 192 of file EDConsumerBase.h.

192  {
193  TypeToGet tid = TypeToGet::make<ProductType>();
194  consumesMany<B>(tid);
195  }

◆ consumesMany() [2/3]

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

Definition at line 197 of file EDConsumerBase.h.

197 { consumesMany<InEvent>(id); }

◆ consumesMany() [3/3]

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

Definition at line 200 of file EDConsumerBase.h.

200  {
201  recordConsumes(B, id, edm::InputTag{}, true);
202  }

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 576 of file EDConsumerBase.cc.

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

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

◆ doSelectInputProcessBlocks()

void EDConsumerBase::doSelectInputProcessBlocks ( ProductRegistry const &  ,
ProcessBlockHelperBase const &   
)
privatevirtual

Definition at line 419 of file EDConsumerBase.cc.

419 {}

Referenced by selectInputProcessBlocks().

◆ 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 223 of file EDConsumerBase.h.

223  {
224  return EDConsumerBaseESAdaptor<Tr>(this);
225  }

◆ esConsumes() [3/5]

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

Definition at line 211 of file EDConsumerBase.h.

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

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

◆ esConsumes() [4/5]

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

Definition at line 228 of file EDConsumerBase.h.

228  {
229  return EDConsumerBaseWithTagESAdaptor<Tr>(this, std::move(tag));
230  }

References eostools::move(), and makeGlobalPositionRcd_cfg::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 234 of file EDConsumerBase.h.

234  {
235  return ESGetTokenGeneric(static_cast<unsigned int>(Tr),
236  recordESConsumes(Tr, iRecord, iKey.type(), ESInputTag("", iKey.name().value())),
237  iRecord.type());
238  }

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 124 of file EDConsumerBase.h.

124  {
126  auto const& v = esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)];
127  if (v.empty()) {
128  return nullptr;
129  }
130  return &(esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)].front());
131  }
132  return nullptr;
133  }

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 135 of file EDConsumerBase.h.

135  {
137  return esItemsToGetFromTransition_[static_cast<unsigned int>(iTrans)];
138  }

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

Referenced by edm::EDLooperBase::esPrefetchAsync().

◆ esGetTokenRecordIndicesVector()

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

Definition at line 140 of file EDConsumerBase.h.

140  {
142  return esRecordsToGetFromTransition_[static_cast<unsigned int>(iTrans)];
143  }

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

Referenced by edm::EDLooperBase::esPrefetchAsync().

◆ 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::EDLooperBase::edPrefetchAsync(), and edm::PrincipalGetAdapter::numberOfProductsConsumed().

◆ labelFor()

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

Definition at line 660 of file EDConsumerBase.cc.

660  {
661  return m_esTokenInfo.get<kESLookupInfo>(iIndex.value()).m_key.name().value();
662 }

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

Referenced by esConsumes().

◆ labelsForToken()

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

Definition at line 338 of file EDConsumerBase.cc.

338  {
339  unsigned int index = iToken.index();
340  auto labels = m_tokenInfo.get<kLabels>(index);
341  unsigned int start = labels.m_startOfModuleLabel;
342  oLabels.module = &(m_tokenLabels[start]);
343  oLabels.productInstance = oLabels.module + labels.m_deltaToProductInstance;
344  oLabels.process = oLabels.module + labels.m_deltaToProcessName;
345 }

References edm::EDGetToken::index(), kLabels, SummaryClient_cfi::labels, m_tokenInfo, m_tokenLabels, edm::ProductLabels::module, edm::ProductLabels::process, edm::ProductLabels::productInstance, and command_line::start.

Referenced by AlCaElectronsTest::analyze(), ContainmentCorrectionAnalyzer::analyze(), EnergyScaleAnalyzer::analyze(), PhotonValidator::analyze(), HLTScalers::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), HLTVertexPerformanceAnalyzer::dqmBeginRun(), HLTBTagPerformanceAnalyzer::dqmBeginRun(), TriggerBxMonitor::dqmBeginRun(), TriggerRatesMonitor::dqmBeginRun(), TrackingNtuple::fillSeeds(), TrackingNtuple::fillTracks(), EcalSimpleUncalibRecHitFilter::filter(), EcalMIPRecHitFilter::filter(), HLTBTagPerformanceAnalyzer::HLTBTagPerformanceAnalyzer(), HLTVertexPerformanceAnalyzer::HLTVertexPerformanceAnalyzer(), edm::PrincipalGetAdapter::labelsForToken(), edm::PrincipalGetAdapter::makeFailToGetException(), MultiTrackValidator::MultiTrackValidator(), HIPixelTrackFilterProducer::produce(), HIProtoTrackFilterProducer::produce(), and edm::PrincipalGetAdapter::throwAmbiguousException().

◆ mayConsume() [1/3]

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

Definition at line 184 of file EDConsumerBase.h.

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

References makeGlobalPositionRcd_cfg::tag.

◆ mayConsume() [2/3]

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

Definition at line 187 of file EDConsumerBase.h.

187  {
188  return EDGetToken{recordConsumes(B, id, checkIfEmpty(tag), false)};
189  }

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

◆ mayConsume() [3/3]

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

Definition at line 179 of file EDConsumerBase.h.

179  {
180  TypeToGet tid = TypeToGet::make<ProductType>();
181  return EDGetTokenT<ProductType>{recordConsumes(B, tid, checkIfEmpty(tag), false)};
182  }

References TtFullHadDaughter::B, checkIfEmpty(), recordConsumes(), and makeGlobalPositionRcd_cfg::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 477 of file EDConsumerBase.cc.

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

References dqmiolumiharvest::j, kKind, kLabels, kLookupInfo, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, m_tokenInfo, m_tokenLabels, oniaPATMuonsWithTrigger_cff::matches, callgraph::module, 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 241 of file EDConsumerBase.h.

241 {}

Referenced by updateLookup().

◆ selectInputProcessBlocks()

void edm::EDConsumerBase::selectInputProcessBlocks ( ProductRegistry const &  productRegistry,
ProcessBlockHelperBase const &  processBlockHelperBase 
)
inline

Definition at line 105 of file EDConsumerBase.h.

106  {
107  doSelectInputProcessBlocks(productRegistry, processBlockHelperBase);
108  }

References doSelectInputProcessBlocks().

◆ 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 146 of file EDConsumerBase.h.

◆ EDConsumerBaseAdaptor

template<BranchType B>
friend class EDConsumerBaseAdaptor
friend

Definition at line 152 of file EDConsumerBase.h.

◆ EDConsumerBaseESAdaptor

template<Transition Tr>
friend class EDConsumerBaseESAdaptor
friend

Definition at line 148 of file EDConsumerBase.h.

◆ EDConsumerBaseWithTagESAdaptor

template<Transition Tr>
friend class EDConsumerBaseWithTagESAdaptor
friend

Definition at line 150 of file EDConsumerBase.h.

◆ WillGetIfMatch

template<typename T >
friend class WillGetIfMatch
friend

Definition at line 154 of file EDConsumerBase.h.

Member Data Documentation

◆ containsCurrentProcessAlias_

bool edm::EDConsumerBase::containsCurrentProcessAlias_
private

Definition at line 317 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 315 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 293 of file EDConsumerBase.h.

Referenced by itemsToGetFrom(), and updateLookup().

◆ m_esTokenInfo

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

Definition at line 311 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:315
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:311
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::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:291
edm::EDConsumerBase::kESProxyIndex
Definition: EDConsumerBase.h:310
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
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:78
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
edm::EDConsumerBase::m_tokenInfo
edm::SoATuple< TokenLookupInfo, bool, LabelPlacement, edm::KindOfType > m_tokenInfo
Definition: EDConsumerBase.h:287
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
edm::EDConsumerBase::kAlwaysGets
Definition: EDConsumerBase.h:286
makeGlobalPositionRcd_cfg.tag
tag
Definition: makeGlobalPositionRcd_cfg.py:6
edm::EDConsumerBase::kESLookupInfo
Definition: EDConsumerBase.h:310
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:293
ESGetToken
edm::EDConsumerBase::containsCurrentProcessAlias_
bool containsCurrentProcessAlias_
Definition: EDConsumerBase.h:317
CalibrationSummaryClient_cfi.kind
kind
Definition: CalibrationSummaryClient_cfi.py:37
ESGetTokenGeneric
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SimL1EmulatorRepack_CalouGT_cff.processName
processName
Definition: SimL1EmulatorRepack_CalouGT_cff.py:17
callgraph.module
module
Definition: callgraph.py:61
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:316
LIKELY
#define LIKELY(x)
Definition: Likely.h:20
Exception
Definition: hltDiff.cc:245
edm::EDConsumerBase::labelFor
const char * labelFor(ESTokenIndex) const
Definition: EDConsumerBase.cc:660
edm::EDConsumerBase::doSelectInputProcessBlocks
virtual void doSelectInputProcessBlocks(ProductRegistry const &, ProcessBlockHelperBase const &)
Definition: EDConsumerBase.cc:419
edm::EDConsumerBase::throwBranchMismatch
void throwBranchMismatch(BranchType, EDGetToken) const
Definition: EDConsumerBase.cc:376
edm::ModuleProcessName
Definition: ModuleProcessName.h:12
edm::EDConsumerBase::kLabels
Definition: EDConsumerBase.h:286
edm::EDConsumerBase::esItemsToGetFromTransition_
std::array< std::vector< ESProxyIndex >, static_cast< unsigned int >edm::Transition::NumberOfEventSetupTransitions)> esItemsToGetFromTransition_
Definition: EDConsumerBase.h:313
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::kKind
Definition: EDConsumerBase.h:286
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:56
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:93
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::kLookupInfo
Definition: EDConsumerBase.h:286
edm::EDConsumerBase::registerLateConsumes
virtual void registerLateConsumes(eventsetup::ESRecordsToProxyIndices const &)
Definition: EDConsumerBase.h:241
edm::Transition::NumberOfEventSetupTransitions