CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::ConsumesCollector Class Reference

#include "FWCore/Framework/interface/ConsumesCollector.h"

Public Member Functions

template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
 ConsumesCollector (ConsumesCollector &&iOther)
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Member Functions

 ConsumesCollector (EDConsumerBase *iConsumer)
 
 ConsumesCollector ()=delete
 
 ConsumesCollector (const ConsumesCollector &)=delete
 
const ConsumesCollectoroperator= (const ConsumesCollector &)=delete
 

Private Attributes

EDConsumerBasem_consumer
 

Friends

class EDConsumerBase
 

Detailed Description

Description: Helper class to gather consumes information for EDConsumerBase class.

Usage: The constructor of a module can get an instance of edm::ConsumesCollector by calling its consumesCollector() method. This instance can then be passed to helper classes in order to register the data the helper will request from an Event, LuminosityBlock or Run on behalf of the module.

Definition at line 32 of file ConsumesCollector.h.

Constructor & Destructor Documentation

edm::ConsumesCollector::ConsumesCollector ( ConsumesCollector &&  iOther)
inline

Definition at line 37 of file ConsumesCollector.h.

37 : m_consumer(iOther.m_consumer){}
EDConsumerBase * m_consumer
edm::ConsumesCollector::ConsumesCollector ( EDConsumerBase iConsumer)
inlineprivate

Definition at line 89 of file ConsumesCollector.h.

89  :
90  m_consumer(iConsumer) {}
EDConsumerBase * m_consumer
edm::ConsumesCollector::ConsumesCollector ( )
privatedelete
edm::ConsumesCollector::ConsumesCollector ( const ConsumesCollector )
privatedelete

Member Function Documentation

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

Definition at line 41 of file ConsumesCollector.h.

References edm::EDConsumerBase::consumes(), m_consumer, and GlobalPosition_Frontier_DevDB_cff::tag.

Referenced by tnp::BaseTreeFiller::addBranches_(), tnp::BaseTreeFiller::BaseTreeFiller(), HLTHiggsSubAnalysis::bookobjects(), MuonTrackingRegionBuilder::build(), CastorDigiProducer::CastorDigiProducer(), ClusterChecker::ClusterChecker(), ConversionSeedFinder::ConversionSeedFinder(), CutBasedElectronID::CutBasedElectronID(), DualByL2TSG::DualByL2TSG(), EcalDigiProducer::EcalDigiProducer(), EcalRecHitWorkerRecover::EcalRecHitWorkerRecover(), EcalTBDigiProducer::EcalTBDigiProducer(), ElectronIDSelectorLikelihood::ElectronIDSelectorLikelihood(), ElectronMaker::ElectronMaker(), ExpressionVariable< Object, label >::ExpressionVariable(), GetLumi::GetLumi(), GlobalCosmicMuonTrajectoryBuilder::GlobalCosmicMuonTrajectoryBuilder(), GlobalMuonRefitter::GlobalMuonRefitter(), GlobalMuonTrajectoryBuilder::GlobalMuonTrajectoryBuilder(), GlobalTrackingRegionProducerFromBeamSpot::GlobalTrackingRegionProducerFromBeamSpot(), GSFTrackMaker::GSFTrackMaker(), HcalDigitizer::HcalDigitizer(), HcalTBDigiProducer::HcalTBDigiProducer(), HLTBitComputer::HLTBitComputer(), HLTEventSelector::HLTEventSelector(), PVFitter::initialize(), JetMETDQMDCSFilter::JetMETDQMDCSFilter(), L1BitComputer::L1BitComputer(), L3MuonTrajectoryBuilder::L3MuonTrajectoryBuilder(), TrackAssociatorParameters::loadParameters(), reco::modules::ParameterAdapter< MCMatchCandRefSelector >::make(), MuonCosmicCompatibilityFiller::MuonCosmicCompatibilityFiller(), MuonDetLayerMeasurements::MuonDetLayerMeasurements(), MuonMaker::MuonMaker(), MuonSegmentMatcher::MuonSegmentMatcher(), MuonShowerInformationFiller::MuonShowerInformationFiller(), MuonTrackLoader::MuonTrackLoader(), MuonTrackValidatorBase::MuonTrackValidatorBase(), MuonVPlusJetsIDSelectionFunctor::MuonVPlusJetsIDSelectionFunctor(), MVAJetIdMaker::MVAJetIdMaker(), pat::PATUserDataMerger< ObjectType, Operation >::PATUserDataMerger(), PF_PU_AssoMapAlgos::PF_PU_AssoMapAlgos(), PFCandidateMaker::PFCandidateMaker(), PFEcalRecHitCreator< Geometry, Layer, Detector >::PFEcalRecHitCreator(), PFElectronMaker::PFElectronMaker(), PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::PFHcalRecHitCreator(), PFJetMaker::PFJetMaker(), PFMETMaker::PFMETMaker(), PFPSRecHitCreator::PFPSRecHitCreator(), PixelClusterShapeSeedComparitor::PixelClusterShapeSeedComparitor(), RecoConversionMaker::RecoConversionMaker(), RecoTrackAccumulator::RecoTrackAccumulator(), HLTExoticaSubAnalysis::registerConsumes(), RhoMaker::RhoMaker(), SeedFilter::SeedFilter(), SegmentsTrackAssociator::SegmentsTrackAssociator(), SETPatternRecognition::SETPatternRecognition(), CollHandle< EEDigiCollection >::setToken(), ecaldqm::ClusterTask::setTokens(), cms::SiPixelDigitizer::SiPixelDigitizer(), SiStripDCSStatus::SiStripDCSStatus(), SiStripDigitizer::SiStripDigitizer(), TrackAnalyzer::TrackAnalyzer(), TrackerSeedCleaner::TrackerSeedCleaner(), TrackingTruthAccumulator::TrackingTruthAccumulator(), TrackMaker::TrackMaker(), TSGForRoadSearch::TSGForRoadSearch(), TSGFromPropagation::TSGFromPropagation(), METCorrectionAlgorithm::type2BinningEntryType::type2BinningEntryType(), ctfseeding::HitExtractorSTRP::useMatchedHits(), ctfseeding::HitExtractorSTRP::useRPhiHits(), ctfseeding::HitExtractorPIX::useSkipClusters_(), ctfseeding::HitExtractorSTRP::useSkipClusters_(), ctfseeding::HitExtractorSTRP::useStereoHits(), VertexMaker::VertexMaker(), VertexMonitor::VertexMonitor(), and WeightManager::WeightManager().

41  {
42  return m_consumer->consumes<ProductType,B>(tag);
43  }
EDConsumerBase * m_consumer
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
EDGetToken edm::ConsumesCollector::consumes ( const TypeToGet id,
edm::InputTag const &  tag 
)
inline

Definition at line 45 of file ConsumesCollector.h.

References edm::EDConsumerBase::consumes(), and m_consumer.

45  {
46  return m_consumer->consumes(id,tag);
47  }
EDConsumerBase * m_consumer
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
template<BranchType B>
EDGetToken edm::ConsumesCollector::consumes ( TypeToGet const &  id,
edm::InputTag const &  tag 
)
inline

Definition at line 50 of file ConsumesCollector.h.

References edm::EDConsumerBase::consumes(), m_consumer, and GlobalPosition_Frontier_DevDB_cff::tag.

50  {
51  return m_consumer->consumes<B>(id,tag);
52  }
EDConsumerBase * m_consumer
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
template<typename ProductType , BranchType B = InEvent>
void edm::ConsumesCollector::consumesMany ( )
inline

Definition at line 70 of file ConsumesCollector.h.

References edm::EDConsumerBase::consumesMany(), and m_consumer.

70  {
71  m_consumer->consumesMany<ProductType,B>();
72  }
EDConsumerBase * m_consumer
void edm::ConsumesCollector::consumesMany ( const TypeToGet id)
inline

Definition at line 75 of file ConsumesCollector.h.

References edm::EDConsumerBase::consumesMany(), and m_consumer.

75  {
77  }
EDConsumerBase * m_consumer
template<BranchType B>
void edm::ConsumesCollector::consumesMany ( const TypeToGet id)
inline

Definition at line 80 of file ConsumesCollector.h.

References edm::EDConsumerBase::consumesMany(), and m_consumer.

80  {
82  }
EDConsumerBase * m_consumer
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT<ProductType> edm::ConsumesCollector::mayConsume ( edm::InputTag const &  tag)
inline
EDGetToken edm::ConsumesCollector::mayConsume ( const TypeToGet id,
edm::InputTag const &  tag 
)
inline

Definition at line 60 of file ConsumesCollector.h.

References m_consumer, and edm::EDConsumerBase::mayConsume().

60  {
61  return m_consumer->mayConsume(id,tag);
62  }
EDConsumerBase * m_consumer
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
template<BranchType B>
EDGetToken edm::ConsumesCollector::mayConsume ( const TypeToGet id,
edm::InputTag const &  tag 
)
inline

Definition at line 65 of file ConsumesCollector.h.

References m_consumer, edm::EDConsumerBase::mayConsume(), and GlobalPosition_Frontier_DevDB_cff::tag.

65  {
66  return m_consumer->mayConsume<B>(id,tag);
67  }
EDConsumerBase * m_consumer
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
const ConsumesCollector& edm::ConsumesCollector::operator= ( const ConsumesCollector )
privatedelete

Friends And Related Function Documentation

friend class EDConsumerBase
friend

Definition at line 87 of file ConsumesCollector.h.

Member Data Documentation

EDConsumerBase* edm::ConsumesCollector::m_consumer
private

Definition at line 98 of file ConsumesCollector.h.

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