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 AlCaHcalNoiseProducer AlignmentMuonHIPTrajectorySelector AlignmentPrescaler AlphaTVarProducer APVCyclePhaseProducerFromL1ABC AssociationMapOneToOne2Association< CKey, CVal > AssociationVector2ValueMap< KeyRefProd, CVal > AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector > BasicToPFJet BetaBoostEvtVtxGenerator CandOneToOneDeltaRMatcher CandReducer CandViewRefMerger CastorCellProducer CastorClusterProducer CloneProducer< C > cms::CkfDebugTrackCandidateMaker cms::ClusterizerFP420 cms::HitReCalibrator cms::JetVertexAssociation cms::ReconstructerFP420 cms::TrackerizerFP420 ColinsSoperVariablesComputer CollectionAdder< C > ConeIsolation ConfigurableAPVCyclePhaseProducer ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init > CosmicMuonLinksProducer CRackSeedGenerator CSCFileReader CSCOverlapsTrackPreparation DeltaBetaWeights DeltaRNearestObjectComputer< T > DiJetVarProducer DoubleProducer DQMTauProducer DTClusterer DTDDUFileReader DTNewROS8FileReader DTRecSegment2DExtendedProducer DTROS25FileReader DTROS8FileReader DTSpyReader EcalDCCTB07UnpackingModule EcalDCCTBUnpackingModule EcalFEDWithCRCErrorProducer EcalRecHitRecalib ECALRegFEDSelector EcalTBH2TDCRecInfoProducer EcalTBHodoscopeRecInfoProducer EcalTBTDCRecInfoProducer EcalTBWeightUncalibRecHitProducer edm::GenericSelectorByValueMap< T, C > ElectronMatchedCandidateProducer ElectronPATIdMVAProducer ElectronRecalibSuperClusterAssociator ElectronSqPtTkIsolationProducer EmptySimHits EventShapeVarsProducer EventWithHistoryProducer fftjetcms::FFTJetInterface FFTJetCorrectionProducer FFTJetPFPileupCleaner FFTJetPileupEstimator FFTJetVertexAdder FlavorHistoryProducer FromClusterSummaryMultiplicityProducer gen::Pythia6Gun GenHIEventProducer GenParticleDecaySelector GtPsbTextToDigi HcalCalibFEDSelector HcalHistogramRawToDigi HcalLaserEventFiltProducer2012 HcalLaserReco HcalPatternSource HcalRecHitRecalib HcalTBObjectUnpacker HepMCCopy HiL1Subtractor HLTDummyCollections ImpactParameter IsolationProducer< C1, C2, Alg, OutputCollection, Setup > IsolationProducerForTracks JetEnergyShift JetIdSelector< T > JetSignalVertexCompatibility L1CaloJetHTTProducer L1CaloJetProducer L1DummyProducer L1EmulBias L1ExtraParticleMapProd L1GctInternJetProducer L1GtTextToRaw L1HLTJetsMatching L1RCTInputProducer L1RCTTPGProvider l1t::AMC13DumpToRaw l1t::AMCDumpToRaw l1t::BXVectorInputProducer l1t::FakeInputProducer l1t::GenToInputProducer l1t::L1ComparatorRun2 l1t::MP7BufferDumpToRaw L1TowerCalibrator L1TStage2CaloLayer2Comp L1TStage2Layer1Producer L2TauPixelTrackMatch LaserAlignmentT0Producer LHE2HepMCConverter LHECOMWeightProducer LTCRawToDigi MaskedRctInputDigiProducer MassKinFitterCandProducer MatacqProducer MatchedProbeMaker< T > reco::modules::MatcherBase< Collection, Collection, reco::helper::CandMapTrait< Collection >::type > MFProducer MixBoostEvtVtxGenerator modules::MuonCleanerBySegmentsT< T > MuIsolatorResultProducer< BT > MultiplicityProducer< T > MuonErrorMatrixAdjuster MuonMCClassifier MuonSeedTrack MuonSelectorVertex MuPFIsoEmbedder MuScleFitMuonProducer NearbyCandCountComputer NtpProducer< C > NtpProducer< C > NTuplingDevice NuclearTrackCorrector ObjectMultiplicityCounter< T > ObjectViewCleaner< T > ObjectViewMatcher< T1, T2 > OtherObjectVariableComputer< T > ParticleDecayProducer 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 PF_PU_FirstVertexTracks PFCand_NoPU_WithAM PFJetToCaloProducer PFMET PFTau3ProngReco PFTauToJetProducer Phase2Tracker::Phase2TrackerCommissioningDigiProducer Phase2Tracker::Phase2TrackerDigiProducer PileupJPTJetIdProducer ProbeMulteplicityProducer QjetsAdder RawDataSelector RazorVarProducer RctInputTextToDigi RctTextToRctDigi reco::modules::CaloRecHitCandidateProducer< HitCollection > reco::modules::HICaloCompatibleTrackSelector reco::modules::MatcherBase< C1, C2, M > reco::modulesNew::IsolationProducer< C1, C2, Alg, OutputCollection, Setup > reco::modulesNew::Matcher< C1, C2, S, D > reco::modulesNew::MCTruthCompositeMatcher RegressionEnergyPatElectronProducer RPCSeedGenerator RPDigiProducer ShallowCloneProducer< C > ShallowExampleProducer ShiftedPFCandidateProducerForPFNoPUMEt SiPixelCalibDigiProducer SiPixelFedFillerWordEventNumber sistrip::FEDEmulatorModule sistrip::SpyDigiConverterModule sistrip::SpyEventSummaryProducer sistrip::SpyUnpackerModule SiStripFineDelayHit SiStripProcessedRawDigiProducer SiStripRegFEDSelector SourceCardTextToRctDigi StEvtSolutionMaker StGenEventReco SubdetFEDSelector TagProbeMassProducer TextToRaw TkAlCaOverlapTagger TopDecaySubset TopInitSubset TrackInfoProducer TriggerCandProducer< object > TriggerMatcherToHLTDebug TriggerObjectFilterByCollection TtDilepEvtSolutionMaker TtEvtBuilder< C > TtFullHadHypothesis TtFullHadKinFitProducer TtFullHadSignalSelMVAComputer TtFullLepHypothesis TtFullLepKinSolutionProducer TtGenEventReco TtHadEvtSolutionMaker TtJetPartonMatch< C > TtSemiEvtSolutionMaker TtSemiLepHitFitProducer< LeptonCollection > TtSemiLepHypothesis TtSemiLepJetCombGeom TtSemiLepJetCombMaxSumPtWMass TtSemiLepJetCombMVAComputer TtSemiLepJetCombWMassDeltaTopMass TtSemiLepJetCombWMassMaxSumPt TtSemiLepKinFitProducer< LeptonCollection > TtSemiLepSignalSelMVAComputer Type1PFMET ValueMapTraslator

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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~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 &&)=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)
 

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 wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
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 doAccessInputProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
void doBeginRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
void doEndJob ()
 
void doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
void doEndRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToCloseOutputFile ()
 
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 (WaitingTaskHolder, ModuleCallingContext const &, Principal const &) 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::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
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)
 

Detailed Description

Definition at line 35 of file EDProducer.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 41 of file EDProducer.h.

Constructor & Destructor Documentation

◆ EDProducer()

edm::EDProducer::EDProducer ( )

◆ ~EDProducer()

edm::EDProducer::~EDProducer ( )
override

Definition at line 25 of file EDProducer.cc.

25 {}

Member Function Documentation

◆ baseType()

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

Definition at line 113 of file EDProducer.cc.

113 { return kBaseType; }

References edm::kBaseType().

◆ beginJob()

virtual void edm::EDProducer::beginJob ( void  )
inlineprivatevirtual

Reimplemented in L1DummyProducer, L1EmulBias, MFProducer, FFTJetProducer, FFTJetCorrectionProducer, RPCSeedGenerator, FFTJetPatRecoProducer, L1TStage2Layer1Producer, CSCOverlapsTrackPreparation, l1t::GenToInputProducer, l1t::BXVectorInputProducer, l1t::MP7BufferDumpToRaw, FFTJetPileupProcessor, FFTJetEFlowSmoother, APVCyclePhaseProducerFromL1ABC, l1t::AMC13DumpToRaw, l1t::AMCDumpToRaw, RctInputTextToDigi, FFTJetPileupEstimator, MuonSeedTrack, FFTJetPFPileupCleaner, FFTJetVertexAdder, MultiplicityProducer< T >, CastorClusterProducer, l1t::FakeInputProducer, MuScleFitMuonProducer, PatJPsiProducer, HiL1Subtractor, MuonErrorMatrixAdjuster, ConfigurableAPVCyclePhaseProducer, EventShapeVarsProducer, CastorCellProducer, TextToRaw, EventWithHistoryProducer, FromClusterSummaryMultiplicityProducer, L1GtTextToRaw, gen::Pythia6Gun, AlCaDiJetsProducer, NTuplingDevice, ECALRegFEDSelector, cms::HitReCalibrator, LaserAlignmentT0Producer, TagProbeMassProducer, L1GctInternJetProducer, MatchedProbeMaker< T >, EcalDCCTB07UnpackingModule, EcalDCCTBUnpackingModule, PFMET, cms::ClusterizerFP420, SubdetFEDSelector, Phase2Tracker::Phase2TrackerDigiProducer, cms::TrackerizerFP420, SiPixelFedFillerWordEventNumber, SiStripRegFEDSelector, LHECOMWeightProducer, TriggerCandProducer< object >, cms::ReconstructerFP420, AlignmentPrescaler, TtSemiLepSignalSelMVAComputer, TtSemiLepJetCombMVAComputer, TtFullHadSignalSelMVAComputer, TtFullLepKinSolutionProducer, HcalCalibFEDSelector, ElectronMatchedCandidateProducer, EmptySimHits, TtDilepEvtSolutionMaker, TtSemiLepJetCombWMassDeltaTopMass, TtSemiLepJetCombGeom, TtSemiLepJetCombWMassMaxSumPt, and TtSemiLepJetCombMaxSumPtWMass.

Definition at line 91 of file EDProducer.h.

91 {}

Referenced by doBeginJob().

◆ beginLuminosityBlock()

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

Reimplemented in gen::Pythia6Gun.

Definition at line 96 of file EDProducer.h.

96 {}

Referenced by doBeginLuminosityBlock().

◆ beginRun()

virtual void edm::EDProducer::beginRun ( Run const &  ,
EventSetup const &   
)
inlineprivatevirtual

◆ doAccessInputProcessBlock()

void edm::EDProducer::doAccessInputProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprivate

Definition at line 72 of file EDProducer.h.

72 {}

◆ doBeginJob()

void edm::EDProducer::doBeginJob ( )
private

◆ doBeginLuminosityBlock()

void edm::EDProducer::doBeginLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 71 of file EDProducer.cc.

71  {
72  LuminosityBlock lb(info, moduleDescription_, mcc, false);
73  lb.setConsumer(this);
74  LuminosityBlock const& cnstLb = lb;
75  ESParentContext parentC(mcc);
76  const EventSetup c{info,
77  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
79  parentC,
80  false};
81  this->beginLuminosityBlock(cnstLb, c);
82  commit_(lb);
83  }

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

◆ doBeginProcessBlock()

void edm::EDProducer::doBeginProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprivate

Definition at line 71 of file EDProducer.h.

71 {}

◆ doBeginRun()

void edm::EDProducer::doBeginRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 49 of file EDProducer.cc.

49  {
50  Run r(info, moduleDescription_, mcc, false);
51  r.setConsumer(this);
52  Run const& cnstR = r;
53  ESParentContext parentC(mcc);
54  const EventSetup c{
55  info, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun), parentC, false};
56  this->beginRun(cnstR, c);
57  commit_(r);
58  }

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

◆ doEndJob()

void edm::EDProducer::doEndJob ( )
private

Definition at line 47 of file EDProducer.cc.

47 { this->endJob(); }

References endJob().

◆ doEndLuminosityBlock()

void edm::EDProducer::doEndLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 85 of file EDProducer.cc.

85  {
86  LuminosityBlock lb(info, moduleDescription_, mcc, true);
87  lb.setConsumer(this);
88  ESParentContext parentC(mcc);
89  const EventSetup c{info,
90  static_cast<unsigned int>(Transition::EndLuminosityBlock),
92  parentC,
93  false};
94  LuminosityBlock const& cnstLb = lb;
95  this->endLuminosityBlock(cnstLb, c);
96  commit_(lb);
97  }

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

◆ doEndProcessBlock()

void edm::EDProducer::doEndProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprivate

Definition at line 73 of file EDProducer.h.

73 {}

◆ doEndRun()

void edm::EDProducer::doEndRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
private

Definition at line 60 of file EDProducer.cc.

60  {
61  Run r(info, moduleDescription_, mcc, true);
62  r.setConsumer(this);
63  Run const& cnstR = r;
64  ESParentContext parentC(mcc);
65  const EventSetup c{
66  info, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun), parentC, false};
67  this->endRun(cnstR, c);
68  commit_(r);
69  }

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

◆ doEvent()

bool edm::EDProducer::doEvent ( EventTransitionInfo const &  info,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
private

Definition at line 27 of file EDProducer.cc.

27  {
29  e.setConsumer(this);
30  e.setProducer(this, &previousParentage_);
31  e.setSharedResourcesAcquirer(&resourceAcquirer_);
32  EventSignalsSentry sentry(act, mcc);
33  ESParentContext parentC(mcc);
34  const EventSetup c{
35  info, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event), parentC, false};
36  this->produce(e, c);
38  return true;
39  }

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

◆ doPreallocate()

void edm::EDProducer::doPreallocate ( PreallocationConfiguration const &  )
inlineprivate

Definition at line 68 of file EDProducer.h.

68 {}

◆ doRegisterThinnedAssociations()

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

Definition at line 81 of file EDProducer.h.

81 {}

◆ doRespondToCloseInputFile()

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

Definition at line 101 of file EDProducer.cc.

References respondToCloseInputFile().

◆ doRespondToCloseOutputFile()

void edm::EDProducer::doRespondToCloseOutputFile ( )
inlineprivate

Definition at line 80 of file EDProducer.h.

80 {}

◆ doRespondToOpenInputFile()

void edm::EDProducer::doRespondToOpenInputFile ( FileBlock const &  fb)
private

Definition at line 99 of file EDProducer.cc.

References respondToOpenInputFile().

◆ endJob()

virtual void edm::EDProducer::endJob ( void  )
inlineprivatevirtual

Reimplemented in L1EmulBias, EcalDCCTB07UnpackingModule, EcalDCCTBUnpackingModule, MFProducer, FFTJetProducer, FFTJetCorrectionProducer, RPCSeedGenerator, FFTJetPatRecoProducer, NuclearTrackCorrector, ObjectViewCleaner< T >, L1TStage2Layer1Producer, CSCOverlapsTrackPreparation, ObjectViewMatcher< T1, T2 >, l1t::GenToInputProducer, l1t::BXVectorInputProducer, JetIdSelector< T >, l1t::MP7BufferDumpToRaw, FFTJetPileupProcessor, APVCyclePhaseProducerFromL1ABC, FFTJetEFlowSmoother, MuonSeedTrack, l1t::AMC13DumpToRaw, l1t::AMCDumpToRaw, L1GtTextToRaw, RctInputTextToDigi, FFTJetPileupEstimator, FFTJetPFPileupCleaner, FFTJetVertexAdder, CastorClusterProducer, MultiplicityProducer< T >, MuScleFitMuonProducer, PatJPsiProducer, HiL1Subtractor, MuonErrorMatrixAdjuster, l1t::FakeInputProducer, ConfigurableAPVCyclePhaseProducer, MaskedRctInputDigiProducer, EventShapeVarsProducer, CastorCellProducer, TextToRaw, pat::GenPlusSimParticleProducer, EventWithHistoryProducer, FromClusterSummaryMultiplicityProducer, L1DummyProducer, AlCaDiJetsProducer, NTuplingDevice, ECALRegFEDSelector, LaserAlignmentT0Producer, TagProbeMassProducer, L1GctInternJetProducer, L1RCTTPGProvider, MatchedProbeMaker< T >, GtPsbTextToDigi, Phase2Tracker::Phase2TrackerDigiProducer, SubdetFEDSelector, SiPixelFedFillerWordEventNumber, SiStripRegFEDSelector, TriggerCandProducer< object >, TtSemiLepSignalSelMVAComputer, TtSemiLepJetCombMVAComputer, AlignmentPrescaler, TtFullHadSignalSelMVAComputer, TtFullLepKinSolutionProducer, HcalCalibFEDSelector, ElectronMatchedCandidateProducer, EmptySimHits, cms::CkfDebugTrackCandidateMaker, TtSemiLepJetCombWMassDeltaTopMass, TtSemiLepJetCombGeom, TtSemiLepJetCombWMassMaxSumPt, TtSemiLepJetCombMaxSumPtWMass, and HcalLaserEventFiltProducer2012.

Definition at line 92 of file EDProducer.h.

92 {}

Referenced by doEndJob().

◆ endLuminosityBlock()

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

Definition at line 97 of file EDProducer.h.

97 {}

Referenced by doEndLuminosityBlock().

◆ endRun()

virtual void edm::EDProducer::endRun ( Run const &  ,
EventSetup const &   
)
inlineprivatevirtual

◆ fillDescriptions()

void edm::EDProducer::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 103 of file EDProducer.cc.

103  {
105  desc.setUnknown();
106  descriptions.addDefault(desc);
107  }

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

◆ globalLuminosityBlocksQueue()

SerialTaskQueue* edm::EDProducer::globalLuminosityBlocksQueue ( )
inline

Definition at line 61 of file EDProducer.h.

61 { return &luminosityBlockQueue_; }

References luminosityBlockQueue_.

◆ globalRunsQueue()

SerialTaskQueue* edm::EDProducer::globalRunsQueue ( )
inline

Definition at line 60 of file EDProducer.h.

60 { return &runQueue_; }

References runQueue_.

◆ hasAccumulator()

bool edm::EDProducer::hasAccumulator ( ) const
inlineprivate

Definition at line 102 of file EDProducer.h.

102 { return false; }

◆ hasAcquire()

bool edm::EDProducer::hasAcquire ( ) const
inlineprivate

Definition at line 101 of file EDProducer.h.

101 { return false; }

◆ moduleDescription()

ModuleDescription const& edm::EDProducer::moduleDescription ( ) const
inline

Definition at line 51 of file EDProducer.h.

51 { return moduleDescription_; }

References moduleDescription_.

◆ preActionBeforeRunEventAsync()

void edm::EDProducer::preActionBeforeRunEventAsync ( WaitingTaskHolder  ,
ModuleCallingContext const &  ,
Principal const &   
) const
inlineprivate

Definition at line 66 of file EDProducer.h.

66 {}

◆ prevalidate()

void edm::EDProducer::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 109 of file EDProducer.cc.

109 { edmodule_mightGet_config(iConfig); }

References edm::edmodule_mightGet_config().

◆ produce()

virtual void edm::EDProducer::produce ( Event ,
EventSetup const &   
)
privatepure virtual

Implemented in l1t::GenToInputProducer, l1t::BXVectorInputProducer, l1t::FakeInputProducer, RPCSeedGenerator, pat::helper::ManyThingsToValueMaps< Adaptor, Collection, value_type >, ObjectViewCleaner< T >, ObjectViewMatcher< T1, T2 >, DeltaRNearestObjectComputer< T >, JetIdSelector< T >, SiPixelCalibDigiProducer, modules::MuonCleanerBySegmentsT< T >, pat::HLTL1MuonMatcher, pat::L1MuonMatcher, pat::MatcherUsingTracks, TriggerObjectFilterByCollection, TkAlCaOverlapTagger, NearbyCandCountComputer, QjetsAdder, OtherObjectVariableComputer< T >, pat::helper::AnythingToValueMap< Adaptor, Collection, value_type >, ObjectMultiplicityCounter< T >, ColinsSoperVariablesComputer, AlignmentPrescaler, TtHadEvtSolutionMaker, ProbeMulteplicityProducer, TtSemiEvtSolutionMaker, TtDilepEvtSolutionMaker, MuonSelectorVertex, PatElectronEAIsoCorrectionProducer, TtSemiLepSignalSelMVAComputer, TtSemiLepJetCombMVAComputer, TtFullHadSignalSelMVAComputer, TtSemiLepJetCombWMassDeltaTopMass, TtSemiLepJetCombGeom, TtSemiLepJetCombWMassMaxSumPt, TtSemiLepJetCombMaxSumPtWMass, TtFullLepKinSolutionProducer, reco::modules::HICaloCompatibleTrackSelector, EcalTBWeightUncalibRecHitProducer, CandReducer, CollectionAdder< C >, CandViewRefMerger, DoubleProducer, edm::GenericSelectorByValueMap< T, C >, DTClusterer, DTRecSegment2DExtendedProducer, TopDecaySubset, TtFullHadKinFitProducer, IsolationProducerForTracks, MatacqProducer, TriggerMatcherToHLTDebug, BasicToPFJet, Phase2Tracker::Phase2TrackerCommissioningDigiProducer, JetSignalVertexCompatibility, sistrip::SpyEventSummaryProducer, SiStripProcessedRawDigiProducer, cms::CkfDebugTrackCandidateMaker, EcalTBHodoscopeRecInfoProducer, EcalTBH2TDCRecInfoProducer, EcalTBTDCRecInfoProducer, cms::ClusterizerFP420, HcalTBObjectUnpacker, cms::TrackerizerFP420, EcalDCCTB07UnpackingModule, HcalHistogramRawToDigi, L1RCTInputProducer, EcalDCCTBUnpackingModule, cms::ReconstructerFP420, cms::JetVertexAssociation, ElectronRecalibSuperClusterAssociator, HcalLaserReco, CRackSeedGenerator, HcalPatternSource, HepMCCopy, FlavorHistoryProducer, GenParticleDecaySelector, CSCFileReader, l1t::L1ComparatorRun2, DTSpyReader, DTROS25FileReader, DTDDUFileReader, DTROS8FileReader, DTNewROS8FileReader, FFTJetProducer, FFTJetCorrectionProducer, L1TStage2CaloLayer2Comp, PFTau3ProngReco, FFTJetPatRecoProducer, NuclearTrackCorrector, HLTDummyCollections, L1TStage2Layer1Producer, MuonMCClassifier, CSCOverlapsTrackPreparation, L1TowerCalibrator, l1t::MP7BufferDumpToRaw, FFTJetPileupProcessor, APVCyclePhaseProducerFromL1ABC, sistrip::FEDEmulatorModule, sistrip::SpyUnpackerModule, FFTJetEFlowSmoother, RPDigiProducer, PFCand_NoPU_WithAM, AlignmentMuonHIPTrajectorySelector, BetaBoostEvtVtxGenerator, L1CaloJetProducer, MuIsolatorResultProducer< BT >, MuonSeedTrack, l1t::AMC13DumpToRaw, l1t::AMCDumpToRaw, PF_PU_FirstVertexTracks, RctInputTextToDigi, FFTJetPileupEstimator, MixBoostEvtVtxGenerator, FFTJetPFPileupCleaner, FFTJetVertexAdder, MultiplicityProducer< T >, L1GtTextToRaw, GenHIEventProducer, CastorClusterProducer, MuScleFitMuonProducer, PatJPsiProducer, HiL1Subtractor, MuonErrorMatrixAdjuster, LHE2HepMCConverter, pat::MatcherByPulls< T >, ValueMapTraslator, ConfigurableAPVCyclePhaseProducer, MaskedRctInputDigiProducer, EventShapeVarsProducer, TtJetPartonMatch< C >, EcalFEDWithCRCErrorProducer, SiStripFineDelayHit, SourceCardTextToRctDigi, CastorCellProducer, gen::Pythia6Gun, TextToRaw, pat::GenPlusSimParticleProducer, reco::modulesNew::IsolationProducer< C1, C2, Alg, OutputCollection, Setup >, EventWithHistoryProducer, FromClusterSummaryMultiplicityProducer, L1DummyProducer, MuPFIsoEmbedder, AlCaHcalNoiseProducer, LTCRawToDigi, ShiftedPFCandidateProducerForPFNoPUMEt, L1EmulBias, L1ExtraParticleMapProd, RctTextToRctDigi, AlCaDiJetsProducer, L1CaloJetHTTProducer, IsolationProducer< C1, C2, Alg, OutputCollection, Setup >, NTuplingDevice, cms::HitReCalibrator, ECALRegFEDSelector, JetEnergyShift, TtEvtBuilder< C >, TtFullLepHypothesis, EcalRecHitRecalib, HcalRecHitRecalib, LaserAlignmentT0Producer, TagProbeMassProducer, L1GctInternJetProducer, L1RCTTPGProvider, MatchedProbeMaker< T >, GtPsbTextToDigi, TtSemiLepHypothesis, sistrip::SpyDigiConverterModule, TtFullHadHypothesis, Phase2Tracker::Phase2TrackerDigiProducer, SubdetFEDSelector, ImpactParameter, PFMET, Type1PFMET, TrackInfoProducer, SiPixelFedFillerWordEventNumber, ShallowCloneProducer< C >, DeltaBetaWeights, reco::modules::MatcherBase< C1, C2, M >, reco::modulesNew::Matcher< C1, C2, S, D >, LHECOMWeightProducer, reco::modules::MatcherBase< Collection, Collection, reco::helper::CandMapTrait< Collection >::type >, SiStripRegFEDSelector, ConstrainedFitCandProducer< Fitter, InputCollection, OutputCollection, Init >, TriggerCandProducer< object >, NtpProducer< C >, ElectronPATIdMVAProducer, reco::modulesNew::MCTruthCompositeMatcher, PileupJPTJetIdProducer, RawDataSelector, TtSemiLepHitFitProducer< LeptonCollection >, ConeIsolation, AssociationVector2ValueMap< KeyRefProd, CVal >, L2TauPixelTrackMatch, AssociationMapOneToOne2Association< CKey, CVal >, HcalCalibFEDSelector, CandOneToOneDeltaRMatcher, ElectronMatchedCandidateProducer, L1HLTJetsMatching, AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector >, DiJetVarProducer, RegressionEnergyPatElectronProducer, EmptySimHits, CosmicMuonLinksProducer, ParticleDecayProducer, MassKinFitterCandProducer, StEvtSolutionMaker, AlphaTVarProducer, DQMTauProducer, PFTauToJetProducer, TtSemiLepKinFitProducer< LeptonCollection >, reco::modules::CaloRecHitCandidateProducer< HitCollection >, RazorVarProducer, MFProducer, PFJetToCaloProducer, TopInitSubset, ElectronSqPtTkIsolationProducer, HcalLaserEventFiltProducer2012, StGenEventReco, TtGenEventReco, CloneProducer< C >, NtpProducer< C >, and ShallowExampleProducer.

Referenced by doEvent().

◆ registerProductsAndCallbacks()

void edm::EDProducer::registerProductsAndCallbacks ( EDProducer module,
ProductRegistry reg 
)
inlineprivate

◆ respondToCloseInputFile()

virtual void edm::EDProducer::respondToCloseInputFile ( FileBlock const &  )
inlineprivatevirtual

Definition at line 99 of file EDProducer.h.

99 {}

Referenced by doRespondToCloseInputFile().

◆ respondToOpenInputFile()

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

Definition at line 98 of file EDProducer.h.

98 {}

Referenced by doRespondToOpenInputFile().

◆ setModuleDescription()

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

Definition at line 104 of file EDProducer.h.

104 { moduleDescription_ = md; }

References moduleDescription_.

◆ sharedResourcesAcquirer()

SharedResourcesAcquirer& edm::EDProducer::sharedResourcesAcquirer ( )
inlineprivate

Definition at line 88 of file EDProducer.h.

88 { return resourceAcquirer_; }

References resourceAcquirer_.

◆ wantsGlobalLuminosityBlocks()

static bool edm::EDProducer::wantsGlobalLuminosityBlocks ( )
inlinestatic

Definition at line 56 of file EDProducer.h.

56 { return true; }

◆ wantsGlobalRuns()

static bool edm::EDProducer::wantsGlobalRuns ( )
inlinestatic

Definition at line 55 of file EDProducer.h.

55 { return true; }

◆ wantsInputProcessBlocks()

static bool edm::EDProducer::wantsInputProcessBlocks ( )
inlinestatic

Definition at line 54 of file EDProducer.h.

54 { return false; }

◆ wantsProcessBlocks()

static bool edm::EDProducer::wantsProcessBlocks ( )
inlinestatic

Definition at line 53 of file EDProducer.h.

53 { return false; }

◆ wantsStreamLuminosityBlocks()

static bool edm::EDProducer::wantsStreamLuminosityBlocks ( )
inlinestatic

Definition at line 58 of file EDProducer.h.

58 { return false; };

◆ wantsStreamRuns()

static bool edm::EDProducer::wantsStreamRuns ( )
inlinestatic

Definition at line 57 of file EDProducer.h.

57 { return false; }

◆ workerType()

std::string edm::EDProducer::workerType ( ) const
inlineprivate

Definition at line 86 of file EDProducer.h.

86 { return "WorkerT<EDProducer>"; }

Friends And Related Function Documentation

◆ maker::ModuleHolderT

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

Definition at line 38 of file EDProducer.h.

◆ WorkerT

template<typename T >
friend class WorkerT
friend

Definition at line 40 of file EDProducer.h.

Member Data Documentation

◆ luminosityBlockQueue_

SerialTaskQueue edm::EDProducer::luminosityBlockQueue_
private

Definition at line 109 of file EDProducer.h.

Referenced by globalLuminosityBlocksQueue().

◆ moduleDescription_

ModuleDescription edm::EDProducer::moduleDescription_
private

◆ previousParentage_

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

Definition at line 106 of file EDProducer.h.

Referenced by doEvent().

◆ previousParentageId_

ParentageID edm::EDProducer::previousParentageId_
private

Definition at line 110 of file EDProducer.h.

Referenced by doEvent().

◆ resourceAcquirer_

SharedResourcesAcquirer edm::EDProducer::resourceAcquirer_
private

Definition at line 107 of file EDProducer.h.

Referenced by doBeginJob(), doEvent(), and sharedResourcesAcquirer().

◆ runQueue_

SerialTaskQueue edm::EDProducer::runQueue_
private

Definition at line 108 of file EDProducer.h.

Referenced by globalRunsQueue().

edm::SharedResourcesRegistry::registerSharedResource
void registerSharedResource(const std::string &)
A resource name must be registered before it can be used in the createAcquirer call.
Definition: SharedResourcesRegistry.cc:32
edm::ProducerBase::ProducerBase
ProducerBase()
Definition: ProducerBase.cc:16
edm::Transition::Event
edm::ProducerBase::commit_
void commit_(P &iPrincipal)
Definition: ProducerBase.h:120
edm::SharedResourcesRegistry::kLegacyModuleResourceName
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.
Definition: SharedResourcesRegistry.h:56
edm::EDProducer::previousParentage_
std::vector< BranchID > previousParentage_
Definition: EDProducer.h:106
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::EDProducer::previousParentageId_
ParentageID previousParentageId_
Definition: EDProducer.h:110
edm::EDProducer::luminosityBlockQueue_
SerialTaskQueue luminosityBlockQueue_
Definition: EDProducer.h:109
edm::EDProducer::respondToCloseInputFile
virtual void respondToCloseInputFile(FileBlock const &)
Definition: EDProducer.h:99
edm::EDProducer::beginJob
virtual void beginJob()
Definition: EDProducer.h:91
LuminosityBlock
Event
edm::Transition::BeginLuminosityBlock
edm::SharedResourcesRegistry::instance
static SharedResourcesRegistry * instance()
Definition: SharedResourcesRegistry.cc:25
edm::SharedResourcesRegistry::createAcquirer
SharedResourcesAcquirer createAcquirer(std::vector< std::string > const &) const
Definition: SharedResourcesRegistry.cc:75
edm::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::EDProducer::runQueue_
SerialTaskQueue runQueue_
Definition: EDProducer.h:108
edm::EDProducer::beginLuminosityBlock
virtual void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDProducer.h:96
edm::EDProducer::endLuminosityBlock
virtual void endLuminosityBlock(LuminosityBlock const &, EventSetup const &)
Definition: EDProducer.h:97
res
Definition: Electron.h:6
edm::EDProducer::endRun
virtual void endRun(Run const &, EventSetup const &)
Definition: EDProducer.h:95
alignCSCRings.r
r
Definition: alignCSCRings.py:93
callgraph.module
module
Definition: callgraph.py:61
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::Transition::EndLuminosityBlock
edm::EDConsumerBase::esGetTokenIndices
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
Definition: EDConsumerBase.h:124
edm::Transition::BeginRun
edm::EDProducer::moduleDescription_
ModuleDescription moduleDescription_
Definition: EDProducer.h:105
ParameterSetDescription
edm::EDProducer::respondToOpenInputFile
virtual void respondToOpenInputFile(FileBlock const &)
Definition: EDProducer.h:98
edm::edmodule_mightGet_config
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
Definition: edmodule_mightGet_config.cc:36
edm::EDProducer::beginRun
virtual void beginRun(Run const &, EventSetup const &)
Definition: EDProducer.h:94
EventSetup
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::ProducerBase::registerProducts
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
Definition: ProducerBase.cc:57
edm::EDProducer::resourceAcquirer_
SharedResourcesAcquirer resourceAcquirer_
Definition: EDProducer.h:107
edm::Transition::EndRun
edm::EDProducer::produce
virtual void produce(Event &, EventSetup const &)=0
edm::EDProducer::endJob
virtual void endJob()
Definition: EDProducer.h:92
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
Run