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(), CastorDigiProducer::CastorDigiProducer(), ClusterChecker::ClusterChecker(), DualByL2TSG::DualByL2TSG(), EcalDigiProducer::EcalDigiProducer(), EcalRecHitWorkerRecover::EcalRecHitWorkerRecover(), EcalTBDigiProducer::EcalTBDigiProducer(), ElectronIDSelectorLikelihood::ElectronIDSelectorLikelihood(), GetLumi::GetLumi(), GlobalCosmicMuonTrajectoryBuilder::GlobalCosmicMuonTrajectoryBuilder(), GlobalMuonTrajectoryBuilder::GlobalMuonTrajectoryBuilder(), GlobalTrackingRegionProducerFromBeamSpot::GlobalTrackingRegionProducerFromBeamSpot(), HcalDigitizer::HcalDigitizer(), HcalTBDigiProducer::HcalTBDigiProducer(), HLTEventSelector::HLTEventSelector(), PVFitter::initialize(), L3MuonTrajectoryBuilder::L3MuonTrajectoryBuilder(), reco::modules::ParameterAdapter< MCMatchCandRefSelector >::make(), MuonCosmicCompatibilityFiller::MuonCosmicCompatibilityFiller(), MuonDetLayerMeasurements::MuonDetLayerMeasurements(), MuonSegmentMatcher::MuonSegmentMatcher(), MuonShowerInformationFiller::MuonShowerInformationFiller(), MuonTrackLoader::MuonTrackLoader(), MuonTrackValidatorBase::MuonTrackValidatorBase(), pat::PATUserDataMerger< ObjectType, Operation >::PATUserDataMerger(), RecoTrackAccumulator::RecoTrackAccumulator(), SegmentsTrackAssociator::SegmentsTrackAssociator(), SETPatternRecognition::SETPatternRecognition(), cms::SiPixelDigitizer::SiPixelDigitizer(), SiStripDigitizer::SiStripDigitizer(), TrackAnalyzer::TrackAnalyzer(), TrackerSeedCleaner::TrackerSeedCleaner(), TrackingTruthAccumulator::TrackingTruthAccumulator(), METCorrectionAlgorithm::type2BinningEntryType::type2BinningEntryType(), ctfseeding::HitExtractorSTRP::useMatchedHits(), ctfseeding::HitExtractorSTRP::useRPhiHits(), ctfseeding::HitExtractorPIX::useSkipClusters_(), ctfseeding::HitExtractorSTRP::useSkipClusters_(), ctfseeding::HitExtractorSTRP::useStereoHits(), 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().