CMS 3D CMS Logo

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

#include <EDFilterBase.h>

Inheritance diagram for edm::limited::EDFilterBase:
edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper edm::limited::EDFilter< T >

Public Types

typedef EDFilterBase 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

unsigned int concurrencyLimit () const
 
 EDFilterBase (ParameterSet const &pset)
 
ModuleDescription const & moduleDescription () const
 
LimitedTaskQueuequeue ()
 
virtual bool wantsGlobalLuminosityBlocks () const =0
 
virtual bool wantsGlobalRuns () const =0
 
virtual bool wantsStreamLuminosityBlocks () const =0
 
virtual bool wantsStreamRuns () const =0
 
 ~EDFilterBase () 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)
 

Private Member Functions

virtual void beginJob ()
 
void doBeginJob ()
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetupImpl 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, EventSetupImpl 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, EventSetupImpl 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, EventSetupImpl 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, EventSetupImpl const &c, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doStreamBeginLuminosityBlock (StreamID id, LuminosityBlockPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doStreamBeginLuminosityBlock_ (StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
 
void doStreamBeginRun (StreamID id, RunPrincipal const &ep, EventSetupImpl const &c, ModuleCallingContext const *)
 
virtual void doStreamBeginRun_ (StreamID id, Run const &rp, EventSetup const &c)
 
void doStreamEndLuminosityBlock (StreamID id, LuminosityBlockPrincipal const &ep, EventSetupImpl 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, EventSetupImpl 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 bool filter (StreamID, Event &, EventSetup const &) const =0
 
bool hasAccumulator () const
 
bool hasAcquire () const
 
void preActionBeforeRunEventAsync (WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
virtual void preallocate (PreallocationConfiguration const &)
 
virtual void preallocLumis (unsigned int)
 
virtual void preallocStreams (unsigned int)
 
void registerProductsAndCallbacks (EDFilterBase *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_
 
LimitedTaskQueue queue_
 

Friends

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 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 50 of file EDFilterBase.h.

Member Typedef Documentation

Definition at line 56 of file EDFilterBase.h.

Constructor & Destructor Documentation

EDFilterBase::EDFilterBase ( ParameterSet const &  pset)

Definition at line 40 of file EDFilterBase.cc.

41  : ProducerBase(),
45  queue_(pset.getUntrackedParameter<unsigned int>("concurrencyLimit")) {}
std::unique_ptr< ParentageID[]> previousParentageIds_
Definition: EDFilterBase.h:156
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
Definition: EDFilterBase.h:155
LimitedTaskQueue queue_
Definition: EDFilterBase.h:158
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
EDFilterBase::~EDFilterBase ( )
override

Definition at line 47 of file EDFilterBase.cc.

47 {}

Member Function Documentation

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

Definition at line 226 of file EDFilterBase.cc.

References edm::limited::kBaseType().

226 { return kBaseType; }
static const std::string kBaseType("EDAnalyzer")
virtual void edm::limited::EDFilterBase::beginJob ( void  )
inlineprivatevirtual

Definition at line 121 of file EDFilterBase.h.

Referenced by doBeginJob().

121 {}
unsigned int edm::limited::EDFilterBase::concurrencyLimit ( ) const
inline

Definition at line 73 of file EDFilterBase.h.

73 { return queue_.concurrencyLimit(); }
unsigned int concurrencyLimit() const
LimitedTaskQueue queue_
Definition: EDFilterBase.h:158
void EDFilterBase::doBeginJob ( )
private

Definition at line 73 of file EDFilterBase.cc.

References beginJob().

73 { this->beginJob(); }
void EDFilterBase::doBeginLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 101 of file EDFilterBase.cc.

References edm::BeginLuminosityBlock, EnergyCorrector::c, edm::ProducerBase::commit_(), doBeginLuminosityBlock_(), doBeginLuminosityBlockProduce_(), doBeginLuminosityBlockSummary_(), edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, edm::LuminosityBlock::setConsumer(), and edm::LuminosityBlock::setProducer().

103  {
104  LuminosityBlock lb(lbp, moduleDescription_, mcc, false);
105  lb.setConsumer(this);
106  LuminosityBlock const& cnstLb = lb;
107  const EventSetup c{ci,
108  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
110  this->doBeginLuminosityBlock_(cnstLb, c);
111  this->doBeginLuminosityBlockSummary_(cnstLb, c);
112  lb.setProducer(this);
114  commit_(lb);
115  }
virtual void doBeginLuminosityBlockSummary_(LuminosityBlock const &rp, EventSetup const &c)
virtual void doBeginLuminosityBlockProduce_(LuminosityBlock &lbp, EventSetup const &c)
virtual void doBeginLuminosityBlock_(LuminosityBlock const &lbp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doBeginLuminosityBlock_ ( LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 206 of file EDFilterBase.cc.

Referenced by doBeginLuminosityBlock().

206 {}
void EDFilterBase::doBeginLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 213 of file EDFilterBase.cc.

Referenced by doBeginLuminosityBlock().

213 {}
void EDFilterBase::doBeginLuminosityBlockSummary_ ( LuminosityBlock const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 208 of file EDFilterBase.cc.

Referenced by doBeginLuminosityBlock().

208 {}
void EDFilterBase::doBeginRun ( RunPrincipal const &  rp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 77 of file EDFilterBase.cc.

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

77  {
78  Run r(rp, moduleDescription_, mcc, false);
79  r.setConsumer(this);
80  Run const& cnstR = r;
81  const EventSetup c{ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun)};
82  this->doBeginRun_(cnstR, c);
83  this->doBeginRunSummary_(cnstR, c);
84  r.setProducer(this);
85  this->doBeginRunProduce_(r, c);
86  commit_(r);
87  }
virtual void doBeginRunProduce_(Run &rp, EventSetup const &c)
virtual void doBeginRun_(Run const &rp, EventSetup const &c)
virtual void doBeginRunSummary_(Run const &rp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doBeginRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 201 of file EDFilterBase.cc.

Referenced by doBeginRun().

201 {}
void EDFilterBase::doBeginRunProduce_ ( Run rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 211 of file EDFilterBase.cc.

Referenced by doBeginRun().

211 {}
void EDFilterBase::doBeginRunSummary_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 203 of file EDFilterBase.cc.

Referenced by doBeginRun().

203 {}
void EDFilterBase::doBeginStream ( StreamID  id)
private

Definition at line 133 of file EDFilterBase.cc.

References doBeginStream_().

133 { doBeginStream_(id); }
virtual void doBeginStream_(StreamID id)
void EDFilterBase::doBeginStream_ ( StreamID  id)
privatevirtual

Definition at line 190 of file EDFilterBase.cc.

Referenced by doBeginStream().

190 {}
void EDFilterBase::doEndJob ( )
private

Definition at line 75 of file EDFilterBase.cc.

References endJob().

75 { this->endJob(); }
void EDFilterBase::doEndLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 117 of file EDFilterBase.cc.

References EnergyCorrector::c, edm::ProducerBase::commit_(), doEndLuminosityBlock_(), doEndLuminosityBlockProduce_(), doEndLuminosityBlockSummary_(), edm::EndLuminosityBlock, edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, edm::LuminosityBlock::setConsumer(), and edm::LuminosityBlock::setProducer().

119  {
120  LuminosityBlock lb(lbp, moduleDescription_, mcc, true);
121  lb.setConsumer(this);
122  lb.setProducer(this);
123  LuminosityBlock const& cnstLb = lb;
124  const EventSetup c{ci,
125  static_cast<unsigned int>(Transition::EndLuminosityBlock),
127  this->doEndLuminosityBlockProduce_(lb, c);
128  this->doEndLuminosityBlockSummary_(cnstLb, c);
129  this->doEndLuminosityBlock_(cnstLb, c);
130  commit_(lb);
131  }
virtual void doEndLuminosityBlockSummary_(LuminosityBlock const &lb, EventSetup const &c)
virtual void doEndLuminosityBlockProduce_(LuminosityBlock &lbp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
virtual void doEndLuminosityBlock_(LuminosityBlock const &lb, EventSetup const &c)
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doEndLuminosityBlock_ ( LuminosityBlock const &  lb,
EventSetup const &  c 
)
privatevirtual

Definition at line 207 of file EDFilterBase.cc.

Referenced by doEndLuminosityBlock().

207 {}
void EDFilterBase::doEndLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 214 of file EDFilterBase.cc.

Referenced by doEndLuminosityBlock().

214 {}
void EDFilterBase::doEndLuminosityBlockSummary_ ( LuminosityBlock const &  lb,
EventSetup const &  c 
)
privatevirtual

Definition at line 209 of file EDFilterBase.cc.

Referenced by doEndLuminosityBlock().

209 {}
void EDFilterBase::doEndRun ( RunPrincipal const &  rp,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 89 of file EDFilterBase.cc.

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

89  {
90  Run r(rp, moduleDescription_, mcc, true);
91  r.setConsumer(this);
92  r.setProducer(this);
93  Run const& cnstR = r;
94  const EventSetup c{ci, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun)};
95  this->doEndRunProduce_(r, c);
96  this->doEndRunSummary_(r, c);
97  this->doEndRun_(cnstR, c);
98  commit_(r);
99  }
virtual void doEndRun_(Run const &rp, EventSetup const &c)
virtual void doEndRunSummary_(Run const &rp, EventSetup const &c)
virtual void doEndRunProduce_(Run &rp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doEndRun_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 202 of file EDFilterBase.cc.

Referenced by doEndRun().

202 {}
void EDFilterBase::doEndRunProduce_ ( Run rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 212 of file EDFilterBase.cc.

Referenced by doEndRun().

212 {}
void EDFilterBase::doEndRunSummary_ ( Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 204 of file EDFilterBase.cc.

Referenced by doEndRun().

204 {}
void EDFilterBase::doEndStream ( StreamID  id)
private

Definition at line 134 of file EDFilterBase.cc.

References doEndStream_().

134 { doEndStream_(id); }
virtual void doEndStream_(StreamID id)
void EDFilterBase::doEndStream_ ( StreamID  id)
privatevirtual

Definition at line 191 of file EDFilterBase.cc.

Referenced by doEndStream().

191 {}
bool EDFilterBase::doEvent ( EventPrincipal const &  ep,
EventSetupImpl const &  c,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
private

Definition at line 49 of file EDFilterBase.cc.

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

52  {
53  Event e(ep, moduleDescription_, mcc);
54  e.setConsumer(this);
55  const auto streamIndex = e.streamID().value();
56  e.setProducer(this, &previousParentages_[streamIndex]);
57  const EventSetup c{ci, static_cast<unsigned int>(Transition::Event), esGetTokenIndices(Transition::Event)};
58  EventSignalsSentry sentry(act, mcc);
59  bool returnValue = this->filter(e.streamID(), e, c);
60  commit_(e, &previousParentageIds_[streamIndex]);
61  return returnValue;
62  }
std::unique_ptr< ParentageID[]> previousParentageIds_
Definition: EDFilterBase.h:156
virtual bool filter(StreamID, Event &, EventSetup const &) const =0
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
Definition: EDFilterBase.h:155
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
void commit_(P &iPrincipal)
Definition: ProducerBase.h:111
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doPreallocate ( PreallocationConfiguration const &  iPrealloc)
private

Definition at line 64 of file EDFilterBase.cc.

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

64  {
65  const auto nStreams = iPrealloc.numberOfStreams();
66  previousParentages_.reset(new std::vector<BranchID>[nStreams]);
67  previousParentageIds_.reset(new ParentageID[nStreams]);
68  preallocStreams(nStreams);
69  preallocLumis(iPrealloc.numberOfLuminosityBlocks());
70  preallocate(iPrealloc);
71  }
virtual void preallocate(PreallocationConfiguration const &)
std::unique_ptr< ParentageID[]> previousParentageIds_
Definition: EDFilterBase.h:156
virtual void preallocLumis(unsigned int)
std::unique_ptr< std::vector< BranchID >[]> previousParentages_
Definition: EDFilterBase.h:155
virtual void preallocStreams(unsigned int)
Hash< ParentageType > ParentageID
Definition: ParentageID.h:9
void edm::limited::EDFilterBase::doRegisterThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivate

Definition at line 113 of file EDFilterBase.h.

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

Definition at line 183 of file EDFilterBase.cc.

183  {
184  //respondToCloseInputFile(fb);
185  }
void EDFilterBase::doRespondToOpenInputFile ( FileBlock const &  fb)
private

Definition at line 179 of file EDFilterBase.cc.

179  {
180  //respondToOpenInputFile(fb);
181  }
void EDFilterBase::doStreamBeginLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 154 of file EDFilterBase.cc.

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

157  {
158  LuminosityBlock lb(lbp, moduleDescription_, mcc, false);
159  const EventSetup c{ci,
160  static_cast<unsigned int>(Transition::BeginLuminosityBlock),
162  lb.setConsumer(this);
163  this->doStreamBeginLuminosityBlock_(id, lb, c);
164  }
virtual void doStreamBeginLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doStreamBeginLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 195 of file EDFilterBase.cc.

Referenced by doStreamBeginLuminosityBlock().

195 {}
void EDFilterBase::doStreamBeginRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 135 of file EDFilterBase.cc.

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

138  {
139  Run r(rp, moduleDescription_, mcc, false);
140  r.setConsumer(this);
141  const EventSetup c{ci, static_cast<unsigned int>(Transition::BeginRun), esGetTokenIndices(Transition::BeginRun)};
142  this->doStreamBeginRun_(id, r, c);
143  }
virtual void doStreamBeginRun_(StreamID id, Run const &rp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doStreamBeginRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 192 of file EDFilterBase.cc.

Referenced by doStreamBeginRun().

192 {}
void EDFilterBase::doStreamEndLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 166 of file EDFilterBase.cc.

References EnergyCorrector::c, doStreamEndLuminosityBlock_(), doStreamEndLuminosityBlockSummary_(), edm::EndLuminosityBlock, edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, and edm::LuminosityBlock::setConsumer().

169  {
170  LuminosityBlock lb(lbp, moduleDescription_, mcc, true);
171  lb.setConsumer(this);
172  const EventSetup c{ci,
173  static_cast<unsigned int>(Transition::EndLuminosityBlock),
175  this->doStreamEndLuminosityBlock_(id, lb, c);
176  this->doStreamEndLuminosityBlockSummary_(id, lb, c);
177  }
virtual void doStreamEndLuminosityBlockSummary_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
virtual void doStreamEndLuminosityBlock_(StreamID id, LuminosityBlock const &lbp, EventSetup const &c)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doStreamEndLuminosityBlock_ ( StreamID  id,
LuminosityBlock const &  lbp,
EventSetup const &  c 
)
privatevirtual

Definition at line 196 of file EDFilterBase.cc.

Referenced by doStreamEndLuminosityBlock().

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

Definition at line 197 of file EDFilterBase.cc.

Referenced by doStreamEndLuminosityBlock().

199  {}
void EDFilterBase::doStreamEndRun ( StreamID  id,
RunPrincipal const &  ep,
EventSetupImpl const &  c,
ModuleCallingContext const *  mcc 
)
private

Definition at line 144 of file EDFilterBase.cc.

References EnergyCorrector::c, doStreamEndRun_(), doStreamEndRunSummary_(), edm::EndRun, edm::EDConsumerBase::esGetTokenIndices(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

147  {
148  Run r(rp, moduleDescription_, mcc, true);
149  r.setConsumer(this);
150  const EventSetup c{ci, static_cast<unsigned int>(Transition::EndRun), esGetTokenIndices(Transition::EndRun)};
151  this->doStreamEndRun_(id, r, c);
152  this->doStreamEndRunSummary_(id, r, c);
153  }
virtual void doStreamEndRunSummary_(StreamID id, Run const &rp, EventSetup const &c)
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
virtual void doStreamEndRun_(StreamID id, Run const &rp, EventSetup const &c)
ESProxyIndex const * esGetTokenIndices(edm::Transition iTrans) const
void EDFilterBase::doStreamEndRun_ ( StreamID  id,
Run const &  rp,
EventSetup const &  c 
)
privatevirtual

Definition at line 193 of file EDFilterBase.cc.

Referenced by doStreamEndRun().

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

Definition at line 194 of file EDFilterBase.cc.

Referenced by doStreamEndRun().

194 {}
virtual void edm::limited::EDFilterBase::endJob ( void  )
inlineprivatevirtual

Definition at line 122 of file EDFilterBase.h.

Referenced by doEndJob().

122 {}
void EDFilterBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 216 of file EDFilterBase.cc.

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

216  {
218  desc.setUnknown();
219  descriptions.addDefault(desc);
220  }
virtual bool edm::limited::EDFilterBase::filter ( StreamID  ,
Event ,
EventSetup const &   
) const
privatepure virtual
bool edm::limited::EDFilterBase::hasAccumulator ( ) const
inlineprivate

Definition at line 151 of file EDFilterBase.h.

151 { return false; }
bool edm::limited::EDFilterBase::hasAcquire ( ) const
inlineprivate

Definition at line 150 of file EDFilterBase.h.

150 { return false; }
ModuleDescription const& edm::limited::EDFilterBase::moduleDescription ( ) const
inline
void edm::limited::EDFilterBase::preActionBeforeRunEventAsync ( WaitingTask iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprivate

Definition at line 80 of file EDFilterBase.h.

References benchmark_cfg::fb.

82  {}
void EDFilterBase::preallocate ( PreallocationConfiguration const &  )
privatevirtual

Definition at line 189 of file EDFilterBase.cc.

Referenced by doPreallocate().

189 {}
void EDFilterBase::preallocLumis ( unsigned  int)
privatevirtual

Definition at line 188 of file EDFilterBase.cc.

Referenced by doPreallocate().

188 {}
void EDFilterBase::preallocStreams ( unsigned  int)
privatevirtual

Definition at line 187 of file EDFilterBase.cc.

Referenced by doPreallocate().

187 {}
void EDFilterBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 222 of file EDFilterBase.cc.

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

222 { edmodule_mightGet_config(iConfig); }
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
LimitedTaskQueue& edm::limited::EDFilterBase::queue ( )
inline

Definition at line 75 of file EDFilterBase.h.

References EnergyCorrector::c.

75 { return queue_; }
LimitedTaskQueue queue_
Definition: EDFilterBase.h:158
void edm::limited::EDFilterBase::registerProductsAndCallbacks ( EDFilterBase module,
ProductRegistry reg 
)
inlineprivate

Definition at line 115 of file EDFilterBase.h.

115  {
116  registerProducts(module, reg, moduleDescription_);
117  }
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
Definition: ProducerBase.cc:56
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
void edm::limited::EDFilterBase::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 153 of file EDFilterBase.h.

153 { moduleDescription_ = md; }
ModuleDescription moduleDescription_
Definition: EDFilterBase.h:154
virtual bool edm::limited::EDFilterBase::wantsGlobalLuminosityBlocks ( ) const
pure virtual

Implemented in edm::limited::EDFilter< T >.

virtual bool edm::limited::EDFilterBase::wantsGlobalRuns ( ) const
pure virtual

Implemented in edm::limited::EDFilter< T >.

virtual bool edm::limited::EDFilterBase::wantsStreamLuminosityBlocks ( ) const
pure virtual

Implemented in edm::limited::EDFilter< T >.

virtual bool edm::limited::EDFilterBase::wantsStreamRuns ( ) const
pure virtual

Implemented in edm::limited::EDFilter< T >.

std::string edm::limited::EDFilterBase::workerType ( ) const
inlineprivate

Definition at line 118 of file EDFilterBase.h.

References ALCARECOTkAlBeamHalo_cff::filter.

118 { return "WorkerT<EDProducer>"; }

Friends And Related Function Documentation

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

Definition at line 53 of file EDFilterBase.h.

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

Definition at line 55 of file EDFilterBase.h.

Member Data Documentation

ModuleDescription edm::limited::EDFilterBase::moduleDescription_
private
std::unique_ptr<ParentageID[]> edm::limited::EDFilterBase::previousParentageIds_
private

Definition at line 156 of file EDFilterBase.h.

Referenced by doEvent(), and doPreallocate().

std::unique_ptr<std::vector<BranchID>[]> edm::limited::EDFilterBase::previousParentages_
private

Definition at line 155 of file EDFilterBase.h.

Referenced by doEvent(), and doPreallocate().

LimitedTaskQueue edm::limited::EDFilterBase::queue_
private

Definition at line 158 of file EDFilterBase.h.