CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::EDProducer Class Referenceabstract

#include <EDProducer.h>

Inheritance diagram for edm::EDProducer:
edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper AlCaDiJetsProducer AlCaEcalHcalReadoutsProducer AlCaECALRecHitReducer AlCaElectronTracksReducer AlCaGammaJetProducer AlCaHcalNoiseProducer AlCaHOCalibProducer AlignmentMuonHIPTrajectorySelector AlignmentPrescaler AlphaTVarProducer APVCyclePhaseProducerFromL1ABC AssociationMapOneToOne2Association< CKey, CVal > AssociationVector2ValueMap< KeyRefProd, CVal > AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector > BasicToPFJet BetaBoostEvtVtxGenerator BoostedTopProducer CaloRecoTauProducer CaloRecoTauTagInfoProducer CandidateTriggerObjectProducer CandOneToOneDeltaRMatcher CandReducer CandViewRefMerger CandViewRefTriggerBiasRemover CastorCellProducer CastorClusterProducer CentralityBinProducer CloneProducer< C > cms::CkfDebugTrackCandidateMaker cms::ClusterizerFP420 cms::HitReCalibrator cms::JetVertexAssociation cms::ReconstructerFP420 cms::TrackerizerFP420 ColinsSoperVariablesComputer CollectionAdder< C > ConeIsolation ConfigurableAPVCyclePhaseProducer ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init > ConvBremSeedProducer CosmicMuonLinksProducer CRackSeedGenerator CSCOverlapsTrackPreparation DeltaBetaWeights DeltaRNearestObjectComputer< T > DiJetVarProducer DimuonMCMatcher DistortedMETProducer DistortedMuonProducer DistortedMuonProducerFromDB DistortedPFCandProducer DoubleProducer DQMTauProducer DTClusterer DTDDUFileReader DTNewROS8FileReader DTRecSegment2DExtendedProducer DTROS25FileReader DTROS8FileReader DTSpyReader EcalDCCTB07UnpackingModule EcalDCCTBUnpackingModule EcalFEDWithCRCErrorProducer EcalRecHitRecalib ECALRegFEDSelector EcalTBH2TDCRecInfoProducer EcalTBHodoscopeRecInfoProducer EcalTBTDCRecInfoProducer EcalTBWeightUncalibRecHitProducer edm::GenericSelectorByValueMap< T, C > ElectronConversionRejectionVars ElectronMatchedCandidateProducer ElectronPATIdMVAProducer ElectronRecalibSuperClusterAssociator ElectronSqPtTkIsolationProducer EmptySimHits EventShapeVarsProducer EventVtxInfoNtupleDumper EventWithHistoryProducer fftjetcms::FFTJetInterface FFTJetCorrectionProducer FFTJetPFPileupCleaner FFTJetPileupEstimator FFTJetVertexAdder FlavorHistoryProducer FromClusterSummaryMultiplicityProducer FSRWeightProducer gen::Pythia6Gun GenHIEventProducer GenParticleDecaySelector GenTtbarCategorizer GlobalDigisProducer GlobalHitsProducer GlobalRecHitsProducer GtPsbTextToDigi HcalCalibFEDSelector HcalHistogramRawToDigi HcalLaserEventFiltProducer2012 HcalLaserReco HcalPatternSource HcalRecHitRecalib HcalTBObjectUnpacker HepMCCopy HiGenCleaner< T2 > HighPtTrackEcalDetIdProducer HiL1Subtractor HLTDisplacedmumumuVtxProducer HLTDummyCollections HLTTauMCProducer HLTTauRefCombiner ImpactParameter IsolationProducer< C1, C2, Alg, OutputCollection, Setup > IsolationProducerForTracks ISRGammaWeightProducer ISRWeightProducer JetEnergyShift JetIdSelector< T > JetPlusTrackProducerAA JetSignalVertexCompatibility L1Comparator L1DummyProducer L1EmulBias L1ExtraParticleMapProd L1GctEmulator L1GctInternJetProducer L1GtTextToRaw L1HLTJetsMatching L1RCTInputProducer L1RCTProducer L1RCTTPGProvider l1t::AMC13DumpToRaw l1t::AMCDumpToRaw l1t::BXVectorInputProducer l1t::FakeInputProducer l1t::GenToInputProducer l1t::L1ComparatorRun2 l1t::L1TCaloRCTToUpgradeConverter l1t::MP7BufferDumpToRaw L1TStage1Layer2Producer L1TStage2CaloLayer2Comp L1TStage2Layer1Producer L2TauPixelTrackMatch LaserAlignmentT0Producer LHE2HepMCConverter LHECOMWeightProducer LTCRawToDigi MaskedRctInputDigiProducer MassKinFitterCandProducer MatacqProducer MatchedProbeMaker< T > reco::modules::MatcherBase< Collection, Collection, reco::helper::CandMapTrait< Collection >::type > MCTruthCompositeMatcher< C1, C2 > MFProducer MixBoostEvtVtxGenerator modules::MuonCleanerBySegmentsT< T > MuIsolatorResultProducer< BT > MultiplicityProducer< T > MuonErrorMatrixAdjuster MuonMCClassifier MuonMillepedeTrackRefitter MuonSeedTrack MuonSegmentProducer MuonSelectorVertex MuonWithPFIsoProducer MuPFIsoEmbedder MuScleFitMuonProducer NearbyCandCountComputer NtpProducer< C > NtpProducer< C > NTuplingDevice NuclearTrackCorrector ObjectMultiplicityCounter< T > ObjectViewCleaner< T > ObjectViewMatcher< T1, T2 > Onia2MuMuPAT OniaAddV0TracksProducer OtherObjectVariableComputer< T > ParticleDecayProducer ParticleTowerProducer pat::__class__Producer pat::GenPlusSimParticleProducer pat::helper::AnythingToValueMap< Adaptor, Collection, value_type > pat::helper::ManyThingsToValueMaps< Adaptor, Collection, value_type > pat::HLTL1MuonMatcher pat::L1MuonMatcher pat::MatcherByPulls< T > pat::MatcherUsingTracks PatElectronEAIsoCorrectionProducer PatJPsiProducer PdfWeightProducer PF_PU_FirstVertexTracks PFCand_NoPU_WithAM PFJetToCaloProducer PFMET PFRecoTauProducer PFTau3ProngReco PFTauMVAInputDiscriminantTranslator PFTauToJetProducer PFTauViewRefMerger Phase2Tracker::Phase2TrackerCommissioningDigiProducer Phase2Tracker::Phase2TrackerDigiProducer PileupJPTJetIdProducer PixelVertexProducerMedian PiZeroDiscriminatorProducer ProbeMulteplicityProducer ProduceIsolationMap QjetsAdder RawDataSelector RazorVarProducer RctInputTextToDigi RctTextToRctDigi reco::CentralityProducer reco::modules::CaloRecHitCandidateProducer< HitCollection > reco::modules::HICaloCompatibleTrackSelector reco::modules::MatcherBase< C1, C2, M > reco::modules::NamedCandCombinerBase reco::modulesNew::IsolationProducer< C1, C2, Alg, OutputCollection, Setup > reco::modulesNew::Matcher< C1, C2, S, D > reco::modulesNew::MCTruthCompositeMatcher reco::tautools::CastedRefProducer< DerivedCollection, BaseType > reco::tautools::CopyProducer< Collection > RecoTauEventFlagProducer RecoTauPiZeroFlattener ReduceHcalRecHitCollectionProducer RegressionEnergyPatElectronProducer RPCSeedGenerator ShallowCloneProducer< C > ShallowClustersProducer ShallowDigisProducer ShallowEventDataProducer ShallowExampleProducer ShallowGainCalibration ShallowRechitClustersProducer ShallowSimhitClustersProducer ShallowSimTracksProducer ShallowTrackClustersProducer ShallowTracksProducer ShiftedPFCandidateProducerForPFNoPUMEt SimHitShifter SiPixelCalibDigiProducer SiPixelFedFillerWordEventNumber sistrip::FEDEmulatorModule sistrip::SpyDigiConverterModule sistrip::SpyEventSummaryProducer sistrip::SpyUnpackerModule SiStripFineDelayHit SiStripProcessedRawDigiProducer SiStripRegFEDSelector SourceCardTextToRctDigi StEvtSolutionMaker StGenEventReco SubdetFEDSelector TagProbeMassProducer TextToRaw TkAlCaOverlapTagger TopDecaySubset TopInitSubset TrackerHitProducer TrackerToMuonPropagator TrackInfoProducer TriggerCandProducer< object > TriggerMatcherToHLTDebug TriggerMatchProducer< object > TriggerObjectFilterByCollection TruthTauDecayModeProducer TTClusterBuilder< T > TtDilepEvtSolutionMaker TtEvtBuilder< C > TtFullHadHypothesis TtFullHadKinFitProducer TtFullHadSignalSelMVAComputer TtFullLepHypothesis TtFullLepKinSolutionProducer TtGenEventReco TtHadEvtSolutionMaker TtJetPartonMatch< C > TtSemiEvtSolutionMaker TtSemiLepHitFitProducer< LeptonCollection > TtSemiLepHypothesis TtSemiLepJetCombGeom TtSemiLepJetCombMaxSumPtWMass TtSemiLepJetCombMVAComputer TtSemiLepJetCombWMassDeltaTopMass TtSemiLepJetCombWMassMaxSumPt TtSemiLepKinFitProducer< LeptonCollection > TtSemiLepSignalSelMVAComputer TTStubBuilder< T > Type1PFMET UpdatedMuonInnerTrackRef ValueMapTraslator WeakEffectsWeightProducer WMuNuProducer ZMuMuMuonUserData ZMuMuTrackUserData ZMuMuUserData ZMuMuUserDataOneTrack ZToLLEdmNtupleDumper

Public Types

typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 EDProducer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducer () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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)
 

Static Public Member Functions

static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

Private Member Functions

virtual void beginJob ()
 
virtual void beginLuminosityBlock (LuminosityBlock const &, EventSetup const &)
 
virtual void beginRun (Run const &, EventSetup const &)
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *mcc)
 
void doBeginRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *mcc)
 
void doEndJob ()
 
void doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *mcc)
 
void doEndRun (RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *mcc)
 
bool doEvent (EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *act, ModuleCallingContext const *mcc)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
virtual void endJob ()
 
virtual void endLuminosityBlock (LuminosityBlock const &, EventSetup const &)
 
virtual void endRun (Run const &, EventSetup const &)
 
bool hasAccumulator () const
 
bool hasAcquire () const
 
void preActionBeforeRunEventAsync (WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
virtual void produce (Event &, EventSetup const &)=0
 
void registerProductsAndCallbacks (EDProducer *module, ProductRegistry *reg)
 
virtual void respondToCloseInputFile (FileBlock const &)
 
virtual void respondToOpenInputFile (FileBlock const &)
 
void setModuleDescription (ModuleDescription const &md)
 
SharedResourcesAcquirersharedResourcesAcquirer ()
 
std::string workerType () const
 

Private Attributes

SerialTaskQueue luminosityBlockQueue_
 
ModuleDescription moduleDescription_
 
std::vector< BranchIDpreviousParentage_
 
ParentageID previousParentageId_
 
SharedResourcesAcquirer resourceAcquirer_
 
SerialTaskQueue runQueue_
 

Friends

template<typename T >
class maker::ModuleHolderT
 
template<typename T >
class WorkerT
 

Additional Inherited Members

- Protected Member Functions inherited from edm::EDConsumerBase
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 ()
 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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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)
 

Detailed Description

Definition at line 36 of file EDProducer.h.

Member Typedef Documentation

Definition at line 42 of file EDProducer.h.

Constructor & Destructor Documentation

edm::EDProducer::EDProducer ( )

Definition at line 20 of file EDProducer.cc.

References edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, and edm::SharedResourcesRegistry::registerSharedResource().

22  }
ParentageID previousParentageId_
Definition: EDProducer.h:114
std::vector< BranchID > previousParentage_
Definition: EDProducer.h:110
static SharedResourcesRegistry * instance()
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
void registerSharedResource(const std::string &)
A resource name must be registered before it can be used in the createAcquirer call.
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.
edm::EDProducer::~EDProducer ( )
override

Definition at line 24 of file EDProducer.cc.

24 {}

Member Function Documentation

const std::string & edm::EDProducer::baseType ( )
static

Definition at line 107 of file EDProducer.cc.

References edm::kBaseType().

107 { return kBaseType; }
static const std::string kBaseType("EDAnalyzer")
virtual void edm::EDProducer::beginJob ( void  )
inlineprivatevirtual

Reimplemented in AlCaHOCalibProducer, GlobalRecHitsProducer, SimHitShifter, FFTJetProducer, GlobalDigisProducer, FFTJetCorrectionProducer, RPCSeedGenerator, GenTtbarCategorizer, GlobalHitsProducer, L1TStage1Layer2Producer, FFTJetPatRecoProducer, L1TStage2Layer1Producer, CSCOverlapsTrackPreparation, TrackerToMuonPropagator, l1t::BXVectorInputProducer, l1t::GenToInputProducer, l1t::MP7BufferDumpToRaw, FFTJetPileupProcessor, APVCyclePhaseProducerFromL1ABC, l1t::AMC13DumpToRaw, l1t::AMCDumpToRaw, reco::CentralityProducer, JetPlusTrackProducerAA, FFTJetEFlowSmoother, HiL1Subtractor, MultiplicityProducer< T >, RctInputTextToDigi, PatJPsiProducer, CastorClusterProducer, l1t::L1TCaloRCTToUpgradeConverter, l1t::FakeInputProducer, MuonSeedTrack, FFTJetPileupEstimator, MuonErrorMatrixAdjuster, MuonSegmentProducer, MuScleFitMuonProducer, FFTJetPFPileupCleaner, FFTJetVertexAdder, TruthTauDecayModeProducer, EventShapeVarsProducer, ConfigurableAPVCyclePhaseProducer, L1GtTextToRaw, L1Comparator, CastorCellProducer, FromClusterSummaryMultiplicityProducer, gen::Pythia6Gun, EventWithHistoryProducer, L1DummyProducer, TextToRaw, AlCaDiJetsProducer, AlCaGammaJetProducer, NTuplingDevice, ECALRegFEDSelector, WMuNuProducer, Onia2MuMuPAT, L1GctEmulator, L1EmulBias, cms::HitReCalibrator, LaserAlignmentT0Producer, TagProbeMassProducer, cms::ClusterizerFP420, MatchedProbeMaker< T >, PFMET, cms::TrackerizerFP420, EcalDCCTB07UnpackingModule, SiStripRegFEDSelector, EcalDCCTBUnpackingModule, HLTDisplacedmumumuVtxProducer, SubdetFEDSelector, L1GctInternJetProducer, cms::ReconstructerFP420, ParticleTowerProducer, TriggerCandProducer< object >, SiPixelFedFillerWordEventNumber, CandidateTriggerObjectProducer, TriggerMatchProducer< object >, Phase2Tracker::Phase2TrackerDigiProducer, LHECOMWeightProducer, TtSemiLepSignalSelMVAComputer, TtSemiLepJetCombMVAComputer, AlignmentPrescaler, TrackerHitProducer, PdfWeightProducer, TtFullHadSignalSelMVAComputer, TtFullLepKinSolutionProducer, FSRWeightProducer, ISRWeightProducer, ISRGammaWeightProducer, ElectronMatchedCandidateProducer, UpdatedMuonInnerTrackRef, HcalCalibFEDSelector, DistortedMuonProducer, DistortedPFCandProducer, MuonWithPFIsoProducer, EmptySimHits, TtSemiLepJetCombWMassDeltaTopMass, TtDilepEvtSolutionMaker, DistortedMETProducer, MFProducer, TtSemiLepJetCombGeom, TtSemiLepJetCombWMassMaxSumPt, TtSemiLepJetCombMaxSumPtWMass, and WeakEffectsWeightProducer.

Definition at line 95 of file EDProducer.h.

Referenced by doBeginJob().

95 {}
virtual void edm::EDProducer::beginLuminosityBlock ( LuminosityBlock const &  ,
EventSetup const &   
)
inlineprivatevirtual

Reimplemented in gen::Pythia6Gun.

Definition at line 100 of file EDProducer.h.

Referenced by doBeginLuminosityBlock().

100 {}
virtual void edm::EDProducer::beginRun ( Run const &  ,
EventSetup const &   
)
inlineprivatevirtual
void edm::EDProducer::doBeginJob ( )
private

Definition at line 41 of file EDProducer.cc.

References beginJob(), edm::SharedResourcesRegistry::createAcquirer(), edm::SharedResourcesRegistry::instance(), edm::SharedResourcesRegistry::kLegacyModuleResourceName, and resourceAcquirer_.

41  {
42  std::vector<std::string> res = {SharedResourcesRegistry::kLegacyModuleResourceName};
44  this->beginJob();
45  }
SharedResourcesAcquirer createAcquirer(std::vector< std::string > const &) const
virtual void beginJob()
Definition: EDProducer.h:95
Definition: Electron.h:6
static SharedResourcesRegistry * instance()
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.
SharedResourcesAcquirer resourceAcquirer_
Definition: EDProducer.h:111
void edm::EDProducer::doBeginLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 67 of file EDProducer.cc.

References edm::BeginLuminosityBlock, beginLuminosityBlock(), EnergyCorrector::c, edm::ProducerBase::commit_(), edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

69  {
70  LuminosityBlock lb(lbp, moduleDescription_, mcc, false);
71  lb.setConsumer(this);
72  LuminosityBlock const& cnstLb = lb;
73  const EventSetup c{ci,
74  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
76  this->beginLuminosityBlock(cnstLb, c);
77  commit_(lb);
78  }
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
virtual void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDProducer.h:100
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void edm::EDProducer::doBeginRun ( RunPrincipal const &  rp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 49 of file EDProducer.cc.

References edm::BeginRun, beginRun(), EnergyCorrector::c, edm::ProducerBase::commit_(), edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

49  {
50  Run r(rp, moduleDescription_, mcc, false);
51  r.setConsumer(this);
52  Run const& cnstR = r;
53  const EventSetup c{ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun)};
54  this->beginRun(cnstR, c);
55  commit_(r);
56  }
virtual void beginRun(Run const &, EventSetup const &)
Definition: EDProducer.h:98
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void edm::EDProducer::doEndJob ( )
private

Definition at line 47 of file EDProducer.cc.

References endJob().

47 { this->endJob(); }
virtual void endJob()
Definition: EDProducer.h:96
void edm::EDProducer::doEndLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 80 of file EDProducer.cc.

References EnergyCorrector::c, edm::ProducerBase::commit_(), edm::EndLuminosityBlock, endLuminosityBlock(), edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

82  {
83  LuminosityBlock lb(lbp, moduleDescription_, mcc, true);
84  lb.setConsumer(this);
85  const EventSetup c{ci,
86  static_cast<unsigned int>(Transition::EndLuminosityBlock),
88  LuminosityBlock const& cnstLb = lb;
89  this->endLuminosityBlock(cnstLb, c);
90  commit_(lb);
91  }
virtual void endLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDProducer.h:101
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void edm::EDProducer::doEndRun ( RunPrincipal const &  rp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 58 of file EDProducer.cc.

References EnergyCorrector::c, edm::ProducerBase::commit_(), edm::EndRun, endRun(), edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

58  {
59  Run r(rp, moduleDescription_, mcc, true);
60  r.setConsumer(this);
61  Run const& cnstR = r;
62  const EventSetup c{ci, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun)};
63  this->endRun(cnstR, c);
64  commit_(r);
65  }
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
virtual void endRun(Run const &, EventSetup const &)
Definition: EDProducer.h:99
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
bool edm::EDProducer::doEvent ( EventPrincipal const &  ep,
EventSetupImpl const &  c,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
private

Definition at line 26 of file EDProducer.cc.

References EnergyCorrector::c, edm::ProducerBase::commit_(), MillePedeFileConverter_cfg::e, edm::EDConsumerBase::esGetTokenIndices(), edm::Event, moduleDescription_, previousParentage_, previousParentageId_, produce(), resourceAcquirer_, edm::Event::setConsumer(), edm::Event::setProducer(), and edm::Event::setSharedResourcesAcquirer().

29  {
30  Event e(ep, moduleDescription_, mcc);
31  e.setConsumer(this);
32  e.setProducer(this, &previousParentage_);
33  e.setSharedResourcesAcquirer(&resourceAcquirer_);
34  EventSignalsSentry sentry(act, mcc);
35  const EventSetup c{ci, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event)};
36  this->produce(e, c);
38  return true;
39  }
ParentageID previousParentageId_
Definition: EDProducer.h:114
std::vector< BranchID > previousParentage_
Definition: EDProducer.h:110
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
SharedResourcesAcquirer resourceAcquirer_
Definition: EDProducer.h:111
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
virtual void produce(Event &, EventSetup const &)=0
void edm::EDProducer::doPreallocate ( PreallocationConfiguration const &  )
inlineprivate

Definition at line 72 of file EDProducer.h.

References benchmark_cfg::fb.

72 {}
void edm::EDProducer::doRegisterThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivate

Definition at line 85 of file EDProducer.h.

85 {}
void edm::EDProducer::doRespondToCloseInputFile ( FileBlock const &  fb)
private

Definition at line 95 of file EDProducer.cc.

References respondToCloseInputFile().

virtual void respondToCloseInputFile(FileBlock const &)
Definition: EDProducer.h:103
void edm::EDProducer::doRespondToOpenInputFile ( FileBlock const &  fb)
private

Definition at line 93 of file EDProducer.cc.

References respondToOpenInputFile().

virtual void respondToOpenInputFile(FileBlock const &)
Definition: EDProducer.h:102
virtual void edm::EDProducer::endJob ( void  )
inlineprivatevirtual

Reimplemented in AlCaHOCalibProducer, GlobalRecHitsProducer, SimHitShifter, FFTJetProducer, GlobalDigisProducer, FFTJetCorrectionProducer, RPCSeedGenerator, NuclearTrackCorrector, GenTtbarCategorizer, GlobalHitsProducer, L1TStage1Layer2Producer, FFTJetPatRecoProducer, L1TStage2Layer1Producer, CSCOverlapsTrackPreparation, TrackerToMuonPropagator, l1t::BXVectorInputProducer, l1t::GenToInputProducer, JetIdSelector< T >, l1t::MP7BufferDumpToRaw, APVCyclePhaseProducerFromL1ABC, ObjectViewCleaner< T >, FFTJetPileupProcessor, L1GtTextToRaw, l1t::AMC13DumpToRaw, l1t::AMCDumpToRaw, reco::CentralityProducer, JetPlusTrackProducerAA, MuonSeedTrack, ObjectViewMatcher< T1, T2 >, FFTJetEFlowSmoother, HiL1Subtractor, CastorClusterProducer, MultiplicityProducer< T >, RctInputTextToDigi, PatJPsiProducer, l1t::L1TCaloRCTToUpgradeConverter, l1t::FakeInputProducer, FFTJetPileupEstimator, MuonErrorMatrixAdjuster, MuonSegmentProducer, MuScleFitMuonProducer, FFTJetPFPileupCleaner, FFTJetVertexAdder, TruthTauDecayModeProducer, ConfigurableAPVCyclePhaseProducer, EventShapeVarsProducer, L1Comparator, MaskedRctInputDigiProducer, CastorCellProducer, FromClusterSummaryMultiplicityProducer, L1DummyProducer, EventWithHistoryProducer, TextToRaw, AlCaDiJetsProducer, AlCaGammaJetProducer, L1EmulBias, pat::GenPlusSimParticleProducer, NTuplingDevice, ECALRegFEDSelector, Onia2MuMuPAT, L1GctEmulator, WMuNuProducer, LaserAlignmentT0Producer, TagProbeMassProducer, MatchedProbeMaker< T >, L1RCTTPGProvider, EcalDCCTB07UnpackingModule, GtPsbTextToDigi, EcalDCCTBUnpackingModule, SiStripRegFEDSelector, HLTDisplacedmumumuVtxProducer, SubdetFEDSelector, L1GctInternJetProducer, ParticleTowerProducer, Phase2Tracker::Phase2TrackerDigiProducer, TriggerCandProducer< object >, SiPixelFedFillerWordEventNumber, CandidateTriggerObjectProducer, TriggerMatchProducer< object >, TtSemiLepSignalSelMVAComputer, TtSemiLepJetCombMVAComputer, OniaAddV0TracksProducer, AlignmentPrescaler, PdfWeightProducer, TtFullHadSignalSelMVAComputer, TtFullLepKinSolutionProducer, TrackerHitProducer, FSRWeightProducer, ISRWeightProducer, ISRGammaWeightProducer, ElectronMatchedCandidateProducer, UpdatedMuonInnerTrackRef, HcalCalibFEDSelector, DistortedMuonProducer, DistortedPFCandProducer, DistortedMuonProducerFromDB, MuonWithPFIsoProducer, EmptySimHits, cms::CkfDebugTrackCandidateMaker, TtSemiLepJetCombWMassDeltaTopMass, DistortedMETProducer, MFProducer, TtSemiLepJetCombGeom, TtSemiLepJetCombWMassMaxSumPt, TtSemiLepJetCombMaxSumPtWMass, HcalLaserEventFiltProducer2012, and WeakEffectsWeightProducer.

Definition at line 96 of file EDProducer.h.

Referenced by doEndJob().

96 {}
virtual void edm::EDProducer::endLuminosityBlock ( LuminosityBlock const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 101 of file EDProducer.h.

Referenced by doEndLuminosityBlock().

101 {}
virtual void edm::EDProducer::endRun ( Run const &  ,
EventSetup const &   
)
inlineprivatevirtual
void edm::EDProducer::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 97 of file EDProducer.cc.

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().

97  {
99  desc.setUnknown();
100  descriptions.addDefault(desc);
101  }
SerialTaskQueue* edm::EDProducer::globalLuminosityBlocksQueue ( )
inline

Definition at line 60 of file EDProducer.h.

References EnergyCorrector::c.

60 { return &luminosityBlockQueue_; }
SerialTaskQueue luminosityBlockQueue_
Definition: EDProducer.h:113
SerialTaskQueue* edm::EDProducer::globalRunsQueue ( )
inline

Definition at line 59 of file EDProducer.h.

59 { return &runQueue_; }
SerialTaskQueue runQueue_
Definition: EDProducer.h:112
bool edm::EDProducer::hasAccumulator ( ) const
inlineprivate

Definition at line 106 of file EDProducer.h.

106 { return false; }
bool edm::EDProducer::hasAcquire ( ) const
inlineprivate

Definition at line 105 of file EDProducer.h.

105 { return false; }
ModuleDescription const& edm::EDProducer::moduleDescription ( ) const
inline

Definition at line 52 of file EDProducer.h.

52 { return moduleDescription_; }
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
void edm::EDProducer::preActionBeforeRunEventAsync ( WaitingTask iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprivate

Definition at line 68 of file EDProducer.h.

70  {}
void edm::EDProducer::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 103 of file EDProducer.cc.

References edm::edmodule_mightGet_config(), edm::kBaseType(), and AlCaHLTBitMon_QueryRunRegistry::string.

103 { edmodule_mightGet_config(iConfig); }
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
virtual void edm::EDProducer::produce ( Event ,
EventSetup const &   
)
privatepure virtual
void edm::EDProducer::registerProductsAndCallbacks ( EDProducer module,
ProductRegistry reg 
)
inlineprivate

Definition at line 86 of file EDProducer.h.

86  {
88  }
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
Definition: ProducerBase.cc:56
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
Definition: vlib.h:208
virtual void edm::EDProducer::respondToCloseInputFile ( FileBlock const &  )
inlineprivatevirtual

Definition at line 103 of file EDProducer.h.

Referenced by doRespondToCloseInputFile().

103 {}
virtual void edm::EDProducer::respondToOpenInputFile ( FileBlock const &  )
inlineprivatevirtual

Definition at line 102 of file EDProducer.h.

Referenced by doRespondToOpenInputFile().

102 {}
void edm::EDProducer::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 108 of file EDProducer.h.

108 { moduleDescription_ = md; }
ModuleDescription moduleDescription_
Definition: EDProducer.h:109
SharedResourcesAcquirer& edm::EDProducer::sharedResourcesAcquirer ( )
inlineprivate

Definition at line 92 of file EDProducer.h.

92 { return resourceAcquirer_; }
SharedResourcesAcquirer resourceAcquirer_
Definition: EDProducer.h:111
static bool edm::EDProducer::wantsGlobalLuminosityBlocks ( )
inlinestatic

Definition at line 55 of file EDProducer.h.

55 { return true; }
static bool edm::EDProducer::wantsGlobalRuns ( )
inlinestatic

Definition at line 54 of file EDProducer.h.

54 { return true; }
static bool edm::EDProducer::wantsStreamLuminosityBlocks ( )
inlinestatic

Definition at line 57 of file EDProducer.h.

57 { return false; };
static bool edm::EDProducer::wantsStreamRuns ( )
inlinestatic

Definition at line 56 of file EDProducer.h.

56 { return false; }
std::string edm::EDProducer::workerType ( ) const
inlineprivate

Definition at line 90 of file EDProducer.h.

90 { return "WorkerT<EDProducer>"; }

Friends And Related Function Documentation

template<typename T >
friend class maker::ModuleHolderT
friend

Definition at line 39 of file EDProducer.h.

template<typename T >
friend class WorkerT
friend

Definition at line 41 of file EDProducer.h.

Member Data Documentation

SerialTaskQueue edm::EDProducer::luminosityBlockQueue_
private

Definition at line 113 of file EDProducer.h.

ModuleDescription edm::EDProducer::moduleDescription_
private
std::vector<BranchID> edm::EDProducer::previousParentage_
private

Definition at line 110 of file EDProducer.h.

Referenced by doEvent().

ParentageID edm::EDProducer::previousParentageId_
private

Definition at line 114 of file EDProducer.h.

Referenced by doEvent().

SharedResourcesAcquirer edm::EDProducer::resourceAcquirer_
private

Definition at line 111 of file EDProducer.h.

Referenced by doBeginJob(), and doEvent().

SerialTaskQueue edm::EDProducer::runQueue_
private

Definition at line 112 of file EDProducer.h.