CMS 3D CMS Logo

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

#include <EDProducerBase.h>

Inheritance diagram for edm::global::EDProducerBase:
edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper edm::global::EDProducer< T > edm::global::EDProducer< edm::BeginLuminosityBlockProducer > edm::global::EDProducer<> RandomEngineStateProducer bestPVselector CaloJetMETcorrInputProducerT< T, Textractor > CaloTowerCreatorForTauHLT CaloTowerFromL1TCreatorForTauHLT CandOneToManyDeltaRMatcher CandPtrProjector CATopJetTagger ClusterShapeTrackFilterProducer ClusterTPAssociationProducer CollectionCombiner< Collection > CollectionFromZLegProducer ConversionSeedFilterCharge CrossingFramePSimHitToPSimHitsConverter DoubleVertexFilter DuplicateListMerger EcalBarrelClusterFastTimer EcalRecalibRecHitProducer edm::LogErrorHarvester edm::ProductFromFwdPtrProducer< T, H > edm::TriggerResultInserter EgammaHLTCaloTowerProducer EgammaHLTClusterShapeProducer EgammaHLTElectronTrackIsolationProducers EgammaHLTPhotonTrackIsolationProducersRegional EgammaHLTPixelMatchElectronProducers EgammaHLTPixelMatchVarProducer EgammaHLTR9IDProducer EgammaHLTR9Producer EgammaHLTRecoEcalCandidateProducers evf::EvFFEDSelector ExtraFromSeeds FastPrimaryVertexProducer GeneratorSmearedProducer GenJetBCEnergyRatio GlobalMuonToMuonProducer GsfElectronFromPVSelector HIPixelTrackFilterProducer HIProtoTrackFilterProducer HLTCollectionProducer< T > HLTHcalPFClusterIsolationProducer< T1 > HLTL1MuonSelector HLTL1TMuonSelector HLTScoutingCaloProducer HLTScoutingEgammaProducer HLTScoutingMuonProducer HLTScoutingPFProducer HLTScoutingPrimaryVertexProducer HLTTauRefProducer IPTCorrector IsolatedEcalPixelTrackCandidateProducer IsoTracks JetChargeProducer JetDeltaRTagInfoValueMapProducer< T, I > JetPartonMatcher JetTracksAssociationToTrackRefs KFBasedPixelFitterProducer L1HLTTauMatching L1TCaloUpgradeToGCTConverter L1THLTTauMatching L2MuonCandidateProducer L2TauJetsMerger L2TauPixelIsoTagProducer L3MuonCandidateProducer L3MuonCandidateProducerFromMuons L3MuonCleaner L3MuonSumCaloPFIsolationProducer MCTrackMatcher Merger< InputCollection, OutputCollection, P > MuonFromPVSelector MuonLinksProducer MuonLinksProducerForHLT MuonRefProducer PartonSelector pat::DuplicatedElectronCleaner pat::GenMETExtractor pat::PATConversionProducer pat::PATLostTracks pat::PATMETSlimmer pat::PATPackedCandidateProducer pat::PATPackedGenParticleProducer pat::PATSecondaryVertexSlimmer pat::PATTrackAndVertexUnpacker pat::PATTriggerMatchEmbedder< PATObjectType > pat::PATTriggerObjectStandAloneUnpacker pat::PATVertexSlimmer pat::RecoMETExtractor PATHeavyIonProducer PATHemisphereProducer PFClusterCollectionMerger PFRecoTauTagInfoProducer PFTauSecondaryVertexProducer Phase2TrackerRecHits PileupSummaryInfoSlimmer PixelClusterSelectorTopBottom PixelFitterByConformalMappingAndLineProducer PixelFitterByHelixProjectionsProducer PixelJetPuId PixelTrackFilterByKinematicsProducer PixelVertexProducerClusters PUFilter QuarkoniaTrackSelector QuickTrackAssociatorByHitsProducer RecHitFilter reco::CorrectedJetProducer< T > reco::modules::JetFlavourIdentifier RPCPointProducer SecondaryVertexTagInfoProxy ShiftedParticleMETcorrInputProducer SimHitTPAssociationProducer SimPFProducer SiPixelClusterShapeCacheProducer StripClusterSelectorTopBottom TauGenJetProducer TauJetSelectorForHLTTrackSeeding TopBottomClusterInfoProducer TrackAlgoCompareUtil TrackAssociatorByChi2Producer TrackAssociatorByHitsProducer TrackAssociatorByPositionProducer TrackAssociatorEDProducer TrackFitterProducer TrackFromPVSelector TrackFromSeedProducer TrackingParticleConversionRefSelector TrackingParticleNumberOfLayersProducer TrackListCombiner TrackMCQuality TrackTimeValueMapProducer UncleanSCRecoveryProducer ValidHitPairFilterProducer VertexAssociatorByPositionAndTracksProducer VertexAssociatorByTracksProducer VertexFromTrackProducer ZllArbitrator

Public Types

typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- 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 ()
 
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, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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 & itemsToGetFromEvent () 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
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

virtual void beginJob ()
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doBeginLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
 
virtual void doBeginLuminosityBlockProduce_ (LuminosityBlock &lbp, EventSetup const &c)
 
virtual void doBeginLuminosityBlockSummary_ (LuminosityBlock const &rp, EventSetup const &c)
 
void doBeginRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doBeginRun_ (Run const &rp, EventSetup const &c)
 
virtual void doBeginRunProduce_ (Run &rp, EventSetup const &c)
 
virtual void doBeginRunSummary_ (Run const &rp, EventSetup const &c)
 
void doBeginStream (StreamID id)
 
virtual void doBeginStream_ (StreamID id)
 
void doEndJob ()
 
void doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doEndLuminosityBlock_ (LuminosityBlock const &lb, EventSetup const &c)
 
virtual void doEndLuminosityBlockProduce_ (LuminosityBlock &lbp, EventSetup const &c)
 
virtual void doEndLuminosityBlockSummary_ (LuminosityBlock const &lb, EventSetup const &c)
 
void doEndRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doEndRun_ (Run const &rp, EventSetup const &c)
 
virtual void doEndRunProduce_ (Run &rp, EventSetup const &c)
 
virtual void doEndRunSummary_ (Run const &rp, EventSetup const &c)
 
void doEndStream (StreamID id)
 
virtual void doEndStream_ (StreamID id)
 
bool doEvent (EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *, ModuleCallingContext const *)
 
void doPostForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doPreForkReleaseResources ()
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doStreamBeginLuminosityBlock (StreamID id, LuminosityBlockPrincipal const &ep, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doStreamBeginLuminosityBlock_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
void doStreamBeginRun (StreamID id, RunPrincipal const &ep, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doStreamBeginRun_ (StreamID id, Run const &rp, EventSetup const &c)
 
void doStreamEndLuminosityBlock (StreamID id, LuminosityBlockPrincipal const &ep, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doStreamEndLuminosityBlock_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
virtual void doStreamEndLuminosityBlockSummary_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
void doStreamEndRun (StreamID id, RunPrincipal const &ep, EventSetup const &c, ModuleCallingContext const *)
 
virtual void doStreamEndRun_ (StreamID id, Run const &rp, EventSetup const &c)
 
virtual void doStreamEndRunSummary_ (StreamID id, Run const &rp, EventSetup const &c)
 
virtual void endJob ()
 
virtual void postForkReacquireResources (unsigned int, unsigned int)
 
void preActionBeforeRunEventAsync (WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
virtual void preallocStreams (unsigned int)
 
virtual void preForkReleaseResources ()
 
virtual void produce (StreamID, Event &, EventSetup const &) const =0
 
void registerProductsAndCallbacks (EDProducerBase *module, ProductRegistry *reg)
 
void setModuleDescription (ModuleDescription const &md)
 
std::string workerType () const
 

Private Attributes

ModuleDescription moduleDescription_
 
std::unique_ptr< ParentageID[]> previousParentageIds_
 
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
 

Friends

class edm::GlobalSchedule
 
template<typename T >
class edm::maker::ModuleHolderT
 
template<typename T >
class edm::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 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 49 of file EDProducerBase.h.

Member Typedef Documentation

Definition at line 55 of file EDProducerBase.h.

Constructor & Destructor Documentation

EDProducerBase::EDProducerBase ( )

Definition at line 40 of file EDProducerBase.cc.

40  :
41  ProducerBase(),
ModuleDescription moduleDescription_
std::unique_ptr< ParentageID[]> previousParentageIds_
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
EDProducerBase::~EDProducerBase ( )
virtual

Definition at line 46 of file EDProducerBase.cc.

47  {
48  }

Member Function Documentation

const std::string & EDProducerBase::baseType ( )
static

Definition at line 241 of file EDProducerBase.cc.

References edm::global::kBaseType().

241  {
242  return kBaseType;
243  }
static const std::string kBaseType("EDAnalyzer")
virtual void edm::global::EDProducerBase::beginJob ( void  )
inlineprivatevirtual
void EDProducerBase::doBeginJob ( )
private

Definition at line 72 of file EDProducerBase.cc.

References beginJob().

72  {
73  this->beginJob();
74  }
void EDProducerBase::doBeginLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 106 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), doBeginLuminosityBlock_(), doBeginLuminosityBlockProduce_(), doBeginLuminosityBlockSummary_(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

107  {
108  LuminosityBlock lb(lbp, moduleDescription_, mcc);
109  lb.setConsumer(this);
110  LuminosityBlock const& cnstLb = lb;
111  this->doBeginLuminosityBlock_(cnstLb, c);
112  this->doBeginLuminosityBlockSummary_(cnstLb, c);
114  commit_(lb);
115  }
ModuleDescription moduleDescription_
virtual void doBeginLuminosityBlockProduce_(LuminosityBlock &lbp, EventSetup const &c)
virtual void doBeginLuminosityBlockSummary_(LuminosityBlock const &rp, EventSetup const &c)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:92
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
void EDProducerBase::doBeginLuminosityBlock_ ( LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 216 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

216 {}
void EDProducerBase::doBeginLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 223 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

223 {}
void EDProducerBase::doBeginLuminosityBlockSummary_ ( LuminosityBlock const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 218 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

218 {}
void EDProducerBase::doBeginRun ( RunPrincipal const &  rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 82 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), doBeginRun_(), doBeginRunProduce_(), doBeginRunSummary_(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

83  {
84  Run r(rp, moduleDescription_, mcc);
85  r.setConsumer(this);
86  Run const& cnstR = r;
87  this->doBeginRun_(cnstR, c);
88  this->doBeginRunSummary_(cnstR, c);
89  this->doBeginRunProduce_(r,c);
90  commit_(r);
91  }
ModuleDescription moduleDescription_
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
virtual void doBeginRunProduce_(Run &rp, EventSetup const &c)
virtual void doBeginRunSummary_(Run const &rp, EventSetup const &c)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:92
void EDProducerBase::doBeginRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 211 of file EDProducerBase.cc.

Referenced by doBeginRun().

211 {}
void EDProducerBase::doBeginRunProduce_ ( Run rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 221 of file EDProducerBase.cc.

Referenced by doBeginRun().

221 {}
void EDProducerBase::doBeginRunSummary_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 213 of file EDProducerBase.cc.

Referenced by doBeginRun().

213 {}
void EDProducerBase::doBeginStream ( StreamID  id)
private

Definition at line 130 of file EDProducerBase.cc.

References doBeginStream_().

130  {
131  doBeginStream_(id);
132  }
virtual void doBeginStream_(StreamID id)
void EDProducerBase::doBeginStream_ ( StreamID  id)
privatevirtual

Definition at line 201 of file EDProducerBase.cc.

Referenced by doBeginStream().

201 {}
void EDProducerBase::doEndJob ( )
private

Definition at line 77 of file EDProducerBase.cc.

References endJob().

77  {
78  this->endJob();
79  }
void EDProducerBase::doEndLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 118 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), doEndLuminosityBlock_(), doEndLuminosityBlockProduce_(), doEndLuminosityBlockSummary_(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

119  {
120  LuminosityBlock lb(lbp, moduleDescription_, mcc);
121  lb.setConsumer(this);
122  LuminosityBlock const& cnstLb = lb;
123  this->doEndLuminosityBlockProduce_(lb, c);
124  this->doEndLuminosityBlockSummary_(cnstLb,c);
125  this->doEndLuminosityBlock_(cnstLb, c);
126  commit_(lb);
127  }
ModuleDescription moduleDescription_
virtual void doEndLuminosityBlockProduce_(LuminosityBlock &lbp, EventSetup const &c)
virtual void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c)
virtual void doEndLuminosityBlock_(LuminosityBlock const &lb, EventSetup const &c)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:92
void EDProducerBase::doEndLuminosityBlock_ ( LuminosityBlock const &  lb,
EventSetup const &  c 
)
privatevirtual

Definition at line 217 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

217 {}
void EDProducerBase::doEndLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 224 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

224 {}
void EDProducerBase::doEndLuminosityBlockSummary_ ( LuminosityBlock const &  lb,
EventSetup const &  c 
)
privatevirtual

Definition at line 219 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

219 {}
void EDProducerBase::doEndRun ( RunPrincipal const &  rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 94 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), doEndRun_(), doEndRunProduce_(), doEndRunSummary_(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

95  {
96  Run r(rp, moduleDescription_, mcc);
97  r.setConsumer(this);
98  Run const& cnstR = r;
99  this->doEndRunProduce_(r, c);
100  this->doEndRunSummary_(r,c);
101  this->doEndRun_(cnstR, c);
102  commit_(r);
103  }
ModuleDescription moduleDescription_
virtual void doEndRunSummary_(Run const &rp, EventSetup const &c)
virtual void doEndRun_(Run const &rp, EventSetup const &c)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:92
virtual void doEndRunProduce_(Run &rp, EventSetup const &c)
void EDProducerBase::doEndRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 212 of file EDProducerBase.cc.

Referenced by doEndRun().

212 {}
void EDProducerBase::doEndRunProduce_ ( Run rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 222 of file EDProducerBase.cc.

Referenced by doEndRun().

222 {}
void EDProducerBase::doEndRunSummary_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 214 of file EDProducerBase.cc.

Referenced by doEndRun().

214 {}
void EDProducerBase::doEndStream ( StreamID  id)
private

Definition at line 134 of file EDProducerBase.cc.

References doEndStream_().

134  {
135  doEndStream_(id);
136  }
virtual void doEndStream_(StreamID id)
void EDProducerBase::doEndStream_ ( StreamID  id)
privatevirtual

Definition at line 202 of file EDProducerBase.cc.

Referenced by doEndStream().

202 {}
bool EDProducerBase::doEvent ( EventPrincipal const &  ep,
EventSetup const &  c,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
private

Definition at line 51 of file EDProducerBase.cc.

References EnergyCorrector::c, edm::ProducerBase::commit_(), MillePedeFileConverter_cfg::e, moduleDescription_, previousParentageIds_, previousParentages_, produce(), edm::Event::setConsumer(), edm::Event::streamID(), and edm::StreamID::value().

53  {
54  Event e(ep, moduleDescription_, mcc);
55  e.setConsumer(this);
56  EventSignalsSentry sentry(act,mcc);
57  this->produce(e.streamID(), e, c);
58  const auto streamIndex = e.streamID().value();
59  commit_(e,&previousParentages_[streamIndex], &previousParentageIds_[streamIndex]);
60  return true;
61  }
ModuleDescription moduleDescription_
std::unique_ptr< ParentageID[]> previousParentageIds_
virtual void produce(StreamID, Event &, EventSetup const &) const =0
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
void commit_(P &iPrincipal)
Definition: ProducerBase.h:92
void EDProducerBase::doPostForkReacquireResources ( unsigned int  iChildIndex,
unsigned int  iNumberOfChildren 
)
private

Definition at line 196 of file EDProducerBase.cc.

References postForkReacquireResources().

196  {
197  postForkReacquireResources(iChildIndex, iNumberOfChildren);
198  }
virtual void postForkReacquireResources(unsigned int, unsigned int)
void EDProducerBase::doPreallocate ( PreallocationConfiguration const &  iPrealloc)
private

Definition at line 64 of file EDProducerBase.cc.

References edm::PreallocationConfiguration::numberOfStreams(), preallocStreams(), previousParentageIds_, and previousParentages_.

64  {
65  auto const nStreams = iPrealloc.numberOfStreams();
66  previousParentages_.reset(new std::vector<BranchID>[nStreams]);
67  previousParentageIds_.reset( new ParentageID[nStreams]);
68  preallocStreams(nStreams);
69  }
std::unique_ptr< ParentageID[]> previousParentageIds_
virtual void preallocStreams(unsigned int)
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
Hash< ParentageType > ParentageID
Definition: ParentageID.h:9
void EDProducerBase::doPreForkReleaseResources ( )
private

Definition at line 191 of file EDProducerBase.cc.

References preForkReleaseResources().

191  {
193  }
virtual void preForkReleaseResources()
void edm::global::EDProducerBase::doRegisterThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivate

Definition at line 112 of file EDProducerBase.h.

113  { }
void EDProducerBase::doRespondToCloseInputFile ( FileBlock const &  fb)
private

Definition at line 186 of file EDProducerBase.cc.

186  {
187  //respondToCloseInputFile(fb);
188  }
void EDProducerBase::doRespondToOpenInputFile ( FileBlock const &  fb)
private

Definition at line 181 of file EDProducerBase.cc.

181  {
182  //respondToOpenInputFile(fb);
183  }
void EDProducerBase::doStreamBeginLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 158 of file EDProducerBase.cc.

References doStreamBeginLuminosityBlock_(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

161  {
162  LuminosityBlock lb(lbp, moduleDescription_, mcc);
163  lb.setConsumer(this);
164  this->doStreamBeginLuminosityBlock_(id,lb, c);
165  }
ModuleDescription moduleDescription_
virtual void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
void EDProducerBase::doStreamBeginLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 206 of file EDProducerBase.cc.

Referenced by doStreamBeginLuminosityBlock().

206 {}
void EDProducerBase::doStreamBeginRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 138 of file EDProducerBase.cc.

References doStreamBeginRun_(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

142  {
143  Run r(rp, moduleDescription_, mcc);
144  r.setConsumer(this);
145  this->doStreamBeginRun_(id, r, c);
146  }
ModuleDescription moduleDescription_
virtual void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c)
void EDProducerBase::doStreamBeginRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 203 of file EDProducerBase.cc.

Referenced by doStreamBeginRun().

203 {}
void EDProducerBase::doStreamEndLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 168 of file EDProducerBase.cc.

References doStreamEndLuminosityBlock_(), doStreamEndLuminosityBlockSummary_(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

171  {
172  LuminosityBlock lb(lbp, moduleDescription_, mcc);
173  lb.setConsumer(this);
174  this->doStreamEndLuminosityBlock_(id,lb, c);
176  }
ModuleDescription moduleDescription_
virtual void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
virtual void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
void EDProducerBase::doStreamEndLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 207 of file EDProducerBase.cc.

Referenced by doStreamEndLuminosityBlock().

207 {}
void EDProducerBase::doStreamEndLuminosityBlockSummary_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 208 of file EDProducerBase.cc.

Referenced by doStreamEndLuminosityBlock().

208 {}
void EDProducerBase::doStreamEndRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 148 of file EDProducerBase.cc.

References doStreamEndRun_(), doStreamEndRunSummary_(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

151  {
152  Run r(rp, moduleDescription_, mcc);
153  r.setConsumer(this);
154  this->doStreamEndRun_(id, r, c);
155  this->doStreamEndRunSummary_(id, r, c);
156  }
ModuleDescription moduleDescription_
virtual void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c)
virtual void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c)
void EDProducerBase::doStreamEndRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 204 of file EDProducerBase.cc.

Referenced by doStreamEndRun().

204 {}
void EDProducerBase::doStreamEndRunSummary_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 205 of file EDProducerBase.cc.

Referenced by doStreamEndRun().

205 {}
virtual void edm::global::EDProducerBase::endJob ( void  )
inlineprivatevirtual
void EDProducerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 227 of file EDProducerBase.cc.

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

227  {
229  desc.setUnknown();
230  descriptions.addDefault(desc);
231  }
ModuleDescription const& edm::global::EDProducerBase::moduleDescription ( ) const
inline

Definition at line 67 of file EDProducerBase.h.

References EnergyCorrector::c, and benchmark_cfg::fb.

67 { return moduleDescription_; }
ModuleDescription moduleDescription_
virtual void edm::global::EDProducerBase::postForkReacquireResources ( unsigned  int,
unsigned  int 
)
inlineprivatevirtual

Definition at line 128 of file EDProducerBase.h.

Referenced by doPostForkReacquireResources().

128 {}
void edm::global::EDProducerBase::preActionBeforeRunEventAsync ( WaitingTask iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprivate

Definition at line 122 of file EDProducerBase.h.

122 {}
void EDProducerBase::preallocStreams ( unsigned  int)
privatevirtual

Definition at line 200 of file EDProducerBase.cc.

Referenced by doPreallocate().

200 {}
virtual void edm::global::EDProducerBase::preForkReleaseResources ( )
inlineprivatevirtual

Definition at line 127 of file EDProducerBase.h.

Referenced by doPreForkReleaseResources().

127 {}
void EDProducerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 234 of file EDProducerBase.cc.

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

234  {
235  edmodule_mightGet_config(iConfig);
236  }
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
virtual void edm::global::EDProducerBase::produce ( StreamID  ,
Event ,
EventSetup const &   
) const
privatepure virtual
void edm::global::EDProducerBase::registerProductsAndCallbacks ( EDProducerBase module,
ProductRegistry reg 
)
inlineprivate

Definition at line 115 of file EDProducerBase.h.

115  {
116  registerProducts(module, reg, moduleDescription_);
117  }
ModuleDescription moduleDescription_
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
Definition: ProducerBase.cc:60
void edm::global::EDProducerBase::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 155 of file EDProducerBase.h.

155  {
156  moduleDescription_ = md;
157  }
ModuleDescription moduleDescription_
std::string edm::global::EDProducerBase::workerType ( ) const
inlineprivate

Definition at line 118 of file EDProducerBase.h.

118 {return "WorkerT<EDProducer>";}

Friends And Related Function Documentation

friend class edm::GlobalSchedule
friend

Definition at line 57 of file EDProducerBase.h.

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

Definition at line 53 of file EDProducerBase.h.

template<typename T >
friend class edm::WorkerT
friend

Definition at line 54 of file EDProducerBase.h.

Member Data Documentation

ModuleDescription edm::global::EDProducerBase::moduleDescription_
private
std::unique_ptr<ParentageID[]> edm::global::EDProducerBase::previousParentageIds_
private

Definition at line 160 of file EDProducerBase.h.

Referenced by doEvent(), and doPreallocate().

std::unique_ptr<std::vector<BranchID>[]> edm::global::EDProducerBase::previousParentages_
private

Definition at line 159 of file EDProducerBase.h.

Referenced by doEvent(), and doPreallocate().