CMS 3D CMS Logo

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

#include <OutputModuleBase.h>

Inheritance diagram for edm::limited::OutputModuleBase:
edm::EDConsumerBase edm::limited::OutputModule< T > edm::limited::outputmodule::InputFileWatcher

Public Types

typedef OutputModuleBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

BranchIDLists const * branchIDLists () const
 
unsigned int concurrencyLimit () const
 
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch () const
 
SelectedProductsForBranchType const & keptProducts () const
 
int maxEvents () const
 
const ModuleDescriptionmoduleDescription () const
 
OutputModuleBaseoperator= (OutputModuleBase const &)=delete
 
 OutputModuleBase (ParameterSet const &pset)
 
 OutputModuleBase (OutputModuleBase const &)=delete
 
std::string const & processName () const
 
LimitedTaskQueuequeue ()
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &)
 
ThinnedAssociationsHelper const * thinnedAssociationsHelper () const
 
bool wantAllEvents () const
 
bool wantsGlobalLuminosityBlocks () const
 
bool wantsGlobalRuns () const
 
virtual bool wantsStreamLuminosityBlocks () const =0
 
virtual bool wantsStreamRuns () const =0
 
 ~OutputModuleBase () 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
 
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)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

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

Protected Member Functions

void configure (OutputModuleDescription const &desc)
 
ModuleDescription const & description () const
 
void doBeginJob ()
 
bool doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
 
bool doBeginRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
 
void doBeginStream (StreamID id)
 
void doEndJob ()
 
bool doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
 
bool doEndRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
 
void doEndStream (StreamID id)
 
bool doEvent (EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
void doStreamBeginLuminosityBlock (StreamID id, LuminosityBlockPrincipal &ep, EventSetup const &c, ModuleCallingContext const *)
 
void doStreamBeginRun (StreamID id, RunPrincipal &ep, EventSetup const &c, ModuleCallingContext const *)
 
void doStreamEndLuminosityBlock (StreamID id, LuminosityBlockPrincipal &ep, EventSetup const &c, ModuleCallingContext const *)
 
void doStreamEndRun (StreamID id, RunPrincipal &ep, EventSetup const &c, ModuleCallingContext const *)
 
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID ()
 
void preActionBeforeRunEventAsync (WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
ParameterSetID selectorConfig () const
 
void setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
 
- 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)
 

Private Member Functions

virtual void beginJob ()
 
virtual void doBeginLuminosityBlock_ (LuminosityBlockForOutput const &)
 
virtual void doBeginLuminosityBlockSummary_ (LuminosityBlockForOutput const &, EventSetup const &)
 
virtual void doBeginRun_ (RunForOutput const &)
 
virtual void doBeginRunSummary_ (RunForOutput const &, EventSetup const &)
 
virtual void doBeginStream_ (StreamID)
 
void doCloseFile ()
 Tell the OutputModule that is must end the current file. More...
 
virtual void doEndLuminosityBlock_ (LuminosityBlockForOutput const &)
 
virtual void doEndLuminosityBlockSummary_ (LuminosityBlockForOutput const &, EventSetup const &)
 
virtual void doEndRun_ (RunForOutput const &)
 
virtual void doEndRunSummary_ (RunForOutput const &, EventSetup const &)
 
virtual void doEndStream_ (StreamID)
 
void doOpenFile (FileBlock const &fb)
 
void doRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
virtual void doRespondToCloseInputFile_ (FileBlock const &)
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
virtual void doRespondToOpenInputFile_ (FileBlock const &)
 
virtual void doStreamBeginLuminosityBlock_ (StreamID, LuminosityBlockForOutput const &, EventSetup const &)
 
virtual void doStreamBeginRun_ (StreamID, RunForOutput const &, EventSetup const &)
 
virtual void doStreamEndLuminosityBlock_ (StreamID, LuminosityBlockForOutput const &, EventSetup const &)
 
virtual void doStreamEndLuminosityBlockSummary_ (StreamID, LuminosityBlockForOutput const &, EventSetup const &)
 
virtual void doStreamEndRun_ (StreamID, RunForOutput const &, EventSetup const &)
 
virtual void doStreamEndRunSummary_ (StreamID, RunForOutput const &, EventSetup const &)
 
void doWriteLuminosityBlock (LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
 
void doWriteRun (RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
 
virtual void endJob ()
 
bool hasAccumulator () const
 
bool hasAcquire () const
 
virtual bool isFileOpen () const
 
void keepThisBranch (BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
 
bool limitReached () const
 
bool needToRunSelection () const
 
virtual void openFile (FileBlock const &) const
 
virtual void preallocate (PreallocationConfiguration const &)
 
virtual void preallocLumis (unsigned int)
 
virtual void preallocStreams (unsigned int)
 
bool prePrefetchSelection (StreamID id, EventPrincipal const &, ModuleCallingContext const *)
 
std::vector< ProductResolverIndexAndSkipBitproductsUsedBySelection () const
 
virtual void reallyCloseFile ()
 
void registerProductsAndCallbacks (OutputModuleBase const *, ProductRegistry const *)
 
void setModuleDescription (ModuleDescription const &md)
 
virtual void setProcessesWithSelectedMergeableRunProducts (std::set< std::string > const &)
 
virtual bool shouldWeCloseFile () const
 Ask the OutputModule if we should end the current file. More...
 
void updateBranchIDListsWithKeptAliases ()
 
std::string workerType () const
 
virtual void write (EventForOutput const &)=0
 
virtual void writeLuminosityBlock (LuminosityBlockForOutput const &)=0
 
virtual void writeRun (RunForOutput const &)=0
 

Private Attributes

edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
 
std::map< BranchID::value_type, BranchID::value_typedroppedBranchIDToKeptBranchID_
 
std::array< bool, NumBranchTypeshasNewlyDroppedBranch_
 
std::map< BranchID, bool > keepAssociation_
 
SelectedProductsForBranchType keptProducts_
 
int maxEvents_
 
ModuleDescription moduleDescription_
 
BranchIDLists const * origBranchIDLists_
 
std::string process_name_
 
ProductSelector productSelector_
 
ProductSelectorRules productSelectorRules_
 
LimitedTaskQueue queue_
 
std::atomic< int > remainingEvents_
 
ParameterSet selectEvents_
 
ParameterSetID selector_config_id_
 
std::vector< detail::TriggerResultsBasedEventSelectorselectors_
 
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
 
bool wantAllEvents_
 

Friends

template<typename T >
class ::edm::OutputModuleCommunicatorT
 
template<typename T >
class ::edm::WorkerT
 
template<typename U >
class edm::maker::ModuleHolderT
 

Detailed Description

Definition at line 64 of file OutputModuleBase.h.

Member Typedef Documentation

Definition at line 69 of file OutputModuleBase.h.

Constructor & Destructor Documentation

OutputModuleBase::OutputModuleBase ( ParameterSet const &  pset)
explicit

Definition at line 43 of file OutputModuleBase.cc.

References edm::detail::configureEventSelector(), edm::EDConsumerBase::consumesCollector(), edm::getAllTriggerNames(), edm::ParameterSet::getUntrackedParameterSet(), hasNewlyDroppedBranch_, edm::ParameterSet::id(), process_name_, edm::ParameterSet::registerIt(), selectEvents_, selector_config_id_, selectors_, and wantAllEvents_.

43  :
44  maxEvents_(-1),
46  keptProducts_(),
48  process_name_(),
49  productSelectorRules_(pset, "outputCommands", "OutputModule"),
52  wantAllEvents_(false),
53  selectors_(),
57  origBranchIDLists_(nullptr),
58  thinnedAssociationsHelper_(new ThinnedAssociationsHelper),
59  queue_(pset.getUntrackedParameter<unsigned int>("concurrencyLimit")) {
60 
61  hasNewlyDroppedBranch_.fill(false);
62 
64  process_name_ = tns->getProcessName();
65 
67  pset.getUntrackedParameterSet("SelectEvents", ParameterSet());
68 
69  selectEvents_.registerIt(); // Just in case this PSet is not registered
70 
72 
73  //need to set wantAllEvents_ in constructor
74  // we will make the remaining selectors once we know how many streams
75  selectors_.resize(1);
79  selectors_[0],
81 
82  }
std::atomic< int > remainingEvents_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
BranchIDLists const * origBranchIDLists_
ParameterSetID id() const
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
bool configureEventSelector(edm::ParameterSet const &iPSet, std::string const &iProcessName, std::vector< std::string > const &iAllTriggerNames, edm::detail::TriggerResultsBasedEventSelector &oSelector, ConsumesCollector &&iC)
ProductSelectorRules productSelectorRules_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
ModuleDescription moduleDescription_
std::vector< std::string > const & getAllTriggerNames()
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
SelectedProductsForBranchType keptProducts_
ParameterSet const & registerIt()
OutputModuleBase::~OutputModuleBase ( )
override

Definition at line 207 of file OutputModuleBase.cc.

207 { }
edm::limited::OutputModuleBase::OutputModuleBase ( OutputModuleBase const &  )
delete

Member Function Documentation

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

Definition at line 412 of file OutputModuleBase.cc.

References edm::limited::kBaseType().

412  {
413  return kBaseType;
414  }
static const std::string kBaseType("EDAnalyzer")
virtual void edm::limited::OutputModuleBase::beginJob ( void  )
inlineprivatevirtual

Definition at line 251 of file OutputModuleBase.h.

Referenced by doBeginJob().

251 {}
BranchIDLists const * OutputModuleBase::branchIDLists ( ) const

Definition at line 369 of file OutputModuleBase.cc.

References branchIDLists_, droppedBranchIDToKeptBranchID_, edm::propagate_const< T >::get(), and origBranchIDLists_.

369  {
370  if(!droppedBranchIDToKeptBranchID_.empty()) {
371  return branchIDLists_.get();
372  }
373  return origBranchIDLists_;
374  }
BranchIDLists const * origBranchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
element_type const * get() const
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
unsigned int edm::limited::OutputModuleBase::concurrencyLimit ( ) const
inline

Definition at line 113 of file OutputModuleBase.h.

113 { return queue_.concurrencyLimit(); }
unsigned int concurrencyLimit() const
void OutputModuleBase::configure ( OutputModuleDescription const &  desc)
protected
ModuleDescription const & OutputModuleBase::description ( ) const
protected

Definition at line 382 of file OutputModuleBase.cc.

References moduleDescription_.

Referenced by setEventSelectionInfo().

382  {
383  return moduleDescription_;
384  }
ModuleDescription moduleDescription_
void OutputModuleBase::doBeginJob ( )
protected

Definition at line 230 of file OutputModuleBase.cc.

References beginJob().

230  {
231  this->beginJob();
232  }
bool OutputModuleBase::doBeginLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 320 of file OutputModuleBase.cc.

References doBeginLuminosityBlock_(), moduleDescription_, and edm::OccurrenceForOutput::setConsumer().

322  {
323  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, false);
324  lb.setConsumer(this);
326  return true;
327  }
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
ModuleDescription moduleDescription_
virtual void edm::limited::OutputModuleBase::doBeginLuminosityBlock_ ( LuminosityBlockForOutput const &  )
inlineprivatevirtual

Definition at line 274 of file OutputModuleBase.h.

Referenced by doBeginLuminosityBlock().

274 {}
virtual void edm::limited::OutputModuleBase::doBeginLuminosityBlockSummary_ ( LuminosityBlockForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 275 of file OutputModuleBase.h.

275 {}
bool OutputModuleBase::doBeginRun ( RunPrincipal const &  rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 291 of file OutputModuleBase.cc.

References doBeginRun_(), moduleDescription_, alignCSCRings::r, and edm::OccurrenceForOutput::setConsumer().

293  {
294  RunForOutput r(rp, moduleDescription_, mcc, false);
295  r.setConsumer(this);
296  doBeginRun_(r);
297  return true;
298  }
virtual void doBeginRun_(RunForOutput const &)
ModuleDescription moduleDescription_
virtual void edm::limited::OutputModuleBase::doBeginRun_ ( RunForOutput const &  )
inlineprivatevirtual

Definition at line 270 of file OutputModuleBase.h.

Referenced by doBeginRun().

270 {}
virtual void edm::limited::OutputModuleBase::doBeginRunSummary_ ( RunForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 271 of file OutputModuleBase.h.

271 {}
void edm::limited::OutputModuleBase::doBeginStream ( StreamID  id)
protected
virtual void edm::limited::OutputModuleBase::doBeginStream_ ( StreamID  )
inlineprivatevirtual

Definition at line 261 of file OutputModuleBase.h.

261 {}
void OutputModuleBase::doCloseFile ( )
private

Tell the OutputModule that is must end the current file.

Definition at line 359 of file OutputModuleBase.cc.

References isFileOpen(), and reallyCloseFile().

359  {
360  if(isFileOpen()) {
361  reallyCloseFile();
362  }
363  }
virtual bool isFileOpen() const
void OutputModuleBase::doEndJob ( )
protected

Definition at line 234 of file OutputModuleBase.cc.

References endJob().

234  {
235  endJob();
236  }
bool OutputModuleBase::doEndLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 330 of file OutputModuleBase.cc.

References doEndLuminosityBlock_(), moduleDescription_, and edm::OccurrenceForOutput::setConsumer().

332  {
333  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
334  lb.setConsumer(this);
336  return true;
337  }
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
ModuleDescription moduleDescription_
virtual void edm::limited::OutputModuleBase::doEndLuminosityBlock_ ( LuminosityBlockForOutput const &  )
inlineprivatevirtual

Definition at line 276 of file OutputModuleBase.h.

Referenced by doEndLuminosityBlock().

276 {}
virtual void edm::limited::OutputModuleBase::doEndLuminosityBlockSummary_ ( LuminosityBlockForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 277 of file OutputModuleBase.h.

277 {}
bool OutputModuleBase::doEndRun ( RunPrincipal const &  rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 301 of file OutputModuleBase.cc.

References doEndRun_(), moduleDescription_, alignCSCRings::r, and edm::OccurrenceForOutput::setConsumer().

303  {
304  RunForOutput r(rp, moduleDescription_, mcc, true);
305  r.setConsumer(this);
306  doEndRun_(r);
307  return true;
308  }
virtual void doEndRun_(RunForOutput const &)
ModuleDescription moduleDescription_
virtual void edm::limited::OutputModuleBase::doEndRun_ ( RunForOutput const &  )
inlineprivatevirtual

Definition at line 272 of file OutputModuleBase.h.

Referenced by doEndRun().

272 {}
virtual void edm::limited::OutputModuleBase::doEndRunSummary_ ( RunForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 273 of file OutputModuleBase.h.

273 {}
void edm::limited::OutputModuleBase::doEndStream ( StreamID  id)
protected
virtual void edm::limited::OutputModuleBase::doEndStream_ ( StreamID  )
inlineprivatevirtual

Definition at line 262 of file OutputModuleBase.h.

262 {}
bool OutputModuleBase::doEvent ( EventPrincipal const &  ep,
EventSetup const &  c,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 264 of file OutputModuleBase.cc.

References MillePedeFileConverter_cfg::e, moduleDescription_, remainingEvents(), remainingEvents_, edm::OccurrenceForOutput::setConsumer(), and write().

267  {
268 
269  {
271  e.setConsumer(this);
272  EventSignalsSentry sentry(act,mcc);
273  write(e);
274  }
275 
276  auto remainingEvents = remainingEvents_.load();
277  bool keepTrying = remainingEvents > 0;
278  while(keepTrying) {
279  auto newValue = remainingEvents - 1;
280  keepTrying = !remainingEvents_.compare_exchange_strong(remainingEvents, newValue);
281  if(keepTrying) {
282  // the exchange failed because the value was changed by another thread.
283  // remainingEvents was changed to be the new value of remainingEvents_;
284  keepTrying = remainingEvents > 0;
285  }
286  }
287  return true;
288  }
std::atomic< int > remainingEvents_
virtual void write(EventForOutput const &)=0
ModuleDescription moduleDescription_
void OutputModuleBase::doOpenFile ( FileBlock const &  fb)
private

Definition at line 346 of file OutputModuleBase.cc.

References openFile().

346  {
347  openFile(fb);
348  }
virtual void openFile(FileBlock const &) const
void OutputModuleBase::doPreallocate ( PreallocationConfiguration const &  iPC)
protected

Definition at line 209 of file OutputModuleBase.cc.

References edm::detail::configureEventSelector(), edm::EDConsumerBase::consumesCollector(), edm::getAllTriggerNames(), edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfStreams(), preallocate(), preallocLumis(), preallocStreams(), process_name_, alignCSCRings::s, selectEvents_, and selectors_.

209  {
210  auto nstreams = iPC.numberOfStreams();
211  selectors_.resize(nstreams);
212 
213  bool seenFirst = false;
214  for(auto& s : selectors_) {
215  if(seenFirst) {
219  s,
221  } else {
222  seenFirst = true;
223  }
224  }
225  preallocStreams(nstreams);
226  preallocLumis(iPC.numberOfLuminosityBlocks());
227  preallocate(iPC);
228  }
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
virtual void preallocate(PreallocationConfiguration const &)
bool configureEventSelector(edm::ParameterSet const &iPSet, std::string const &iProcessName, std::vector< std::string > const &iAllTriggerNames, edm::detail::TriggerResultsBasedEventSelector &oSelector, ConsumesCollector &&iC)
virtual void preallocStreams(unsigned int)
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
std::vector< std::string > const & getAllTriggerNames()
virtual void preallocLumis(unsigned int)
void edm::limited::OutputModuleBase::doRegisterThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivate

Definition at line 228 of file OutputModuleBase.h.

229  { }
void OutputModuleBase::doRespondToCloseInputFile ( FileBlock const &  fb)
private

Definition at line 355 of file OutputModuleBase.cc.

References doRespondToCloseInputFile_().

355  {
357  }
virtual void doRespondToCloseInputFile_(FileBlock const &)
virtual void edm::limited::OutputModuleBase::doRespondToCloseInputFile_ ( FileBlock const &  )
inlineprivatevirtual

Reimplemented in edm::limited::outputmodule::InputFileWatcher.

Definition at line 279 of file OutputModuleBase.h.

Referenced by doRespondToCloseInputFile().

279 {}
void OutputModuleBase::doRespondToOpenInputFile ( FileBlock const &  fb)
private
virtual void edm::limited::OutputModuleBase::doRespondToOpenInputFile_ ( FileBlock const &  )
inlineprivatevirtual

Reimplemented in edm::limited::outputmodule::InputFileWatcher.

Definition at line 278 of file OutputModuleBase.h.

Referenced by doRespondToOpenInputFile().

278 {}
void edm::limited::OutputModuleBase::doStreamBeginLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal ep,
EventSetup const &  c,
ModuleCallingContext const *   
)
protected
virtual void edm::limited::OutputModuleBase::doStreamBeginLuminosityBlock_ ( StreamID  ,
LuminosityBlockForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 266 of file OutputModuleBase.h.

266 {}
void edm::limited::OutputModuleBase::doStreamBeginRun ( StreamID  id,
RunPrincipal ep,
EventSetup const &  c,
ModuleCallingContext const *   
)
protected
virtual void edm::limited::OutputModuleBase::doStreamBeginRun_ ( StreamID  ,
RunForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 263 of file OutputModuleBase.h.

263 {}
void edm::limited::OutputModuleBase::doStreamEndLuminosityBlock ( StreamID  id,
LuminosityBlockPrincipal ep,
EventSetup const &  c,
ModuleCallingContext const *   
)
protected
virtual void edm::limited::OutputModuleBase::doStreamEndLuminosityBlock_ ( StreamID  ,
LuminosityBlockForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 267 of file OutputModuleBase.h.

267 {}
virtual void edm::limited::OutputModuleBase::doStreamEndLuminosityBlockSummary_ ( StreamID  ,
LuminosityBlockForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 268 of file OutputModuleBase.h.

268 {}
void edm::limited::OutputModuleBase::doStreamEndRun ( StreamID  id,
RunPrincipal ep,
EventSetup const &  c,
ModuleCallingContext const *   
)
protected
virtual void edm::limited::OutputModuleBase::doStreamEndRun_ ( StreamID  ,
RunForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 264 of file OutputModuleBase.h.

264 {}
virtual void edm::limited::OutputModuleBase::doStreamEndRunSummary_ ( StreamID  ,
RunForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 265 of file OutputModuleBase.h.

265 {}
void OutputModuleBase::doWriteLuminosityBlock ( LuminosityBlockPrincipal const &  lbp,
ModuleCallingContext const *  mcc 
)
private

Definition at line 339 of file OutputModuleBase.cc.

References moduleDescription_, edm::OccurrenceForOutput::setConsumer(), and writeLuminosityBlock().

340  {
341  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
342  lb.setConsumer(this);
344  }
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
ModuleDescription moduleDescription_
void OutputModuleBase::doWriteRun ( RunPrincipal const &  rp,
ModuleCallingContext const *  mcc,
MergeableRunProductMetadata const *  mrpm 
)
private

Definition at line 311 of file OutputModuleBase.cc.

References moduleDescription_, alignCSCRings::r, edm::OccurrenceForOutput::setConsumer(), and writeRun().

313  {
314  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
315  r.setConsumer(this);
316  writeRun(r);
317  }
virtual void writeRun(RunForOutput const &)=0
ModuleDescription moduleDescription_
std::map<BranchID::value_type, BranchID::value_type> const& edm::limited::OutputModuleBase::droppedBranchIDToKeptBranchID ( )
inlineprotected

Definition at line 168 of file OutputModuleBase.h.

168  {
170  }
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
virtual void edm::limited::OutputModuleBase::endJob ( void  )
inlineprivatevirtual

Definition at line 252 of file OutputModuleBase.h.

Referenced by doEndJob().

252 {}
void OutputModuleBase::fillDescription ( ParameterSetDescription desc)
static

Definition at line 399 of file OutputModuleBase.cc.

References edm::ParameterSetDescription::addUntracked(), edm::ProductSelectorRules::fillDescription(), and edm::EventSelector::fillDescription().

399  {
400  ProductSelectorRules::fillDescription(desc, "outputCommands");
402  desc.addUntracked<unsigned int>("concurrencyLimit",1);
403  }
static void fillDescription(ParameterSetDescription &desc, char const *parameterName, std::vector< std::string > const &defaultStrings=defaultSelectionStrings())
static void fillDescription(ParameterSetDescription &desc)
void OutputModuleBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 392 of file OutputModuleBase.cc.

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

392  {
394  desc.setUnknown();
395  descriptions.addDefault(desc);
396  }
bool edm::limited::OutputModuleBase::hasAccumulator ( ) const
inlineprivate

Definition at line 284 of file OutputModuleBase.h.

284 { return false; }
bool edm::limited::OutputModuleBase::hasAcquire ( ) const
inlineprivate

Definition at line 283 of file OutputModuleBase.h.

283 { return false; }
std::array<bool, NumBranchTypes> const& edm::limited::OutputModuleBase::hasNewlyDroppedBranch ( ) const
inline

Definition at line 90 of file OutputModuleBase.h.

References fillDescriptions(), and AlCaHLTBitMon_QueryRunRegistry::string.

90 {return hasNewlyDroppedBranch_;}
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
virtual bool edm::limited::OutputModuleBase::isFileOpen ( ) const
inlineprivatevirtual

Definition at line 256 of file OutputModuleBase.h.

Referenced by doCloseFile().

256 { return true; }
void OutputModuleBase::keepThisBranch ( BranchDescription const &  desc,
std::map< BranchID, BranchDescription const * > &  trueBranchIDToKeptBranchDesc,
std::set< BranchID > &  keptProductsInEvent 
)
private

Definition at line 161 of file OutputModuleBase.cc.

References edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), edm::ProductSelector::checkForDuplicateKeptBranch(), edm::EDConsumerBase::consumes(), edm::InEvent, edm::InLumi, edm::InRun, keptProducts_, edm::BranchDescription::moduleLabel(), edm::BranchDescription::originalBranchID(), edm::BranchDescription::processName(), edm::BranchDescription::produced(), edm::PRODUCT_TYPE, edm::BranchDescription::productInstanceName(), and edm::BranchDescription::unwrappedTypeID().

Referenced by selectProducts().

163  {
164 
166  trueBranchIDToKeptBranchDesc);
167 
168  EDGetToken token;
169  switch (desc.branchType()) {
170  case InEvent:
171  {
172  if(desc.produced()) {
173  keptProductsInEvent.insert(desc.originalBranchID());
174  } else {
175  keptProductsInEvent.insert(desc.branchID());
176  }
177  token = consumes(TypeToGet{desc.unwrappedTypeID(),PRODUCT_TYPE},
178  InputTag{desc.moduleLabel(),
179  desc.productInstanceName(),
180  desc.processName()});
181  break;
182  }
183  case InLumi:
184  {
185  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(),PRODUCT_TYPE},
186  InputTag(desc.moduleLabel(),
187  desc.productInstanceName(),
188  desc.processName()));
189  break;
190  }
191  case InRun:
192  {
193  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(),PRODUCT_TYPE},
194  InputTag(desc.moduleLabel(),
195  desc.productInstanceName(),
196  desc.processName()));
197  break;
198  }
199  default:
200  assert(false);
201  break;
202  }
203  // Now put it in the list of selected branches.
204  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
205  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
SelectedProductsForBranchType keptProducts_
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
SelectedProductsForBranchType const& edm::limited::OutputModuleBase::keptProducts ( ) const
inline

Definition at line 89 of file OutputModuleBase.h.

89 {return keptProducts_;}
SelectedProductsForBranchType keptProducts_
bool edm::limited::OutputModuleBase::limitReached ( ) const
inlineprivate

Definition at line 294 of file OutputModuleBase.h.

294 {return remainingEvents_ == 0;}
std::atomic< int > remainingEvents_
int edm::limited::OutputModuleBase::maxEvents ( ) const
inline

Accessor for maximum number of events to be written. -1 is used for unlimited.

Definition at line 79 of file OutputModuleBase.h.

const ModuleDescription& edm::limited::OutputModuleBase::moduleDescription ( ) const
inline

Definition at line 103 of file OutputModuleBase.h.

103  {
104  return moduleDescription_;
105  }
ModuleDescription moduleDescription_
bool OutputModuleBase::needToRunSelection ( ) const
private

Definition at line 238 of file OutputModuleBase.cc.

References wantAllEvents_.

238  {
239  return !wantAllEvents_;
240  }
virtual void edm::limited::OutputModuleBase::openFile ( FileBlock const &  ) const
inlineprivatevirtual
OutputModuleBase& edm::limited::OutputModuleBase::operator= ( OutputModuleBase const &  )
delete
void edm::limited::OutputModuleBase::preActionBeforeRunEventAsync ( WaitingTask iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprotected

Definition at line 152 of file OutputModuleBase.h.

References genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.

152 {}
virtual void edm::limited::OutputModuleBase::preallocate ( PreallocationConfiguration const &  )
inlineprivatevirtual

Definition at line 260 of file OutputModuleBase.h.

Referenced by doPreallocate().

260 {}
virtual void edm::limited::OutputModuleBase::preallocLumis ( unsigned  int)
inlineprivatevirtual

Definition at line 259 of file OutputModuleBase.h.

Referenced by doPreallocate().

259 {}
virtual void edm::limited::OutputModuleBase::preallocStreams ( unsigned  int)
inlineprivatevirtual

Definition at line 258 of file OutputModuleBase.h.

Referenced by doPreallocate().

258 {}
bool OutputModuleBase::prePrefetchSelection ( StreamID  id,
EventPrincipal const &  ep,
ModuleCallingContext const *  mcc 
)
private

Definition at line 255 of file OutputModuleBase.cc.

References MillePedeFileConverter_cfg::e, moduleDescription_, alignCSCRings::s, selectors_, edm::OccurrenceForOutput::setConsumer(), and wantAllEvents_.

255  {
256  if(wantAllEvents_) return true;
257  auto& s = selectors_[id.value()];
259  e.setConsumer(this);
260  return s.wantEvent(e);
261  }
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
ModuleDescription moduleDescription_
void OutputModuleBase::prevalidate ( ConfigurationDescriptions )
static

Definition at line 406 of file OutputModuleBase.cc.

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

406  {
407  }
std::string const& edm::limited::OutputModuleBase::processName ( ) const
inline

Definition at line 88 of file OutputModuleBase.h.

std::vector< ProductResolverIndexAndSkipBit > OutputModuleBase::productsUsedBySelection ( ) const
private

Definition at line 243 of file OutputModuleBase.cc.

References mps_fire::i, gen::n, alignCSCRings::s, selectors_, and edm::EDConsumerBase::uncheckedIndexFrom().

243  {
244  std::vector<ProductResolverIndexAndSkipBit> returnValue;
245  auto const& s = selectors_[0];
246  auto const n = s.numberOfTokens();
247  returnValue.reserve(n);
248 
249  for(unsigned int i=0; i< n;++i) {
250  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
251  }
252  return returnValue;
253  }
ProductResolverIndexAndSkipBit uncheckedIndexFrom(EDGetToken) const
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
LimitedTaskQueue& edm::limited::OutputModuleBase::queue ( )
inline

Definition at line 115 of file OutputModuleBase.h.

References heppy_report::description.

115  {
116  return queue_;
117  }
void OutputModuleBase::reallyCloseFile ( )
privatevirtual

Definition at line 365 of file OutputModuleBase.cc.

Referenced by doCloseFile().

365  {
366  }
void edm::limited::OutputModuleBase::registerProductsAndCallbacks ( OutputModuleBase const *  ,
ProductRegistry const *   
)
inlineprivate

Definition at line 236 of file OutputModuleBase.h.

236 {}
int edm::limited::OutputModuleBase::remainingEvents ( ) const
inline

Accessor for remaining number of events to be written. -1 is used for unlimited.

Definition at line 83 of file OutputModuleBase.h.

Referenced by doEvent().

83 {return remainingEvents_;}
std::atomic< int > remainingEvents_
bool OutputModuleBase::selected ( BranchDescription const &  desc) const

Definition at line 387 of file OutputModuleBase.cc.

References productSelector_, and edm::ProductSelector::selected().

Referenced by selectProducts().

387  {
388  return productSelector_.selected(desc);
389  }
bool selected(BranchDescription const &desc) const
ParameterSetID edm::limited::OutputModuleBase::selectorConfig ( ) const
inlineprotected

Definition at line 122 of file OutputModuleBase.h.

References EnergyCorrector::c.

122 { return selector_config_id_; }
void OutputModuleBase::selectProducts ( ProductRegistry const &  preg,
ThinnedAssociationsHelper const &  thinnedAssociationsHelper 
)

Definition at line 89 of file OutputModuleBase.cc.

References edm::ProductRegistry::allBranchDescriptions(), TrackValidation_cff::association, edm::BranchDescription::branchType(), droppedBranchIDToKeptBranchID_, edm::ProductSelector::fillDroppedToKept(), hasNewlyDroppedBranch_, edm::ProductSelector::initialize(), edm::ProductSelector::initialized(), edm::insertSelectedProcesses(), keepAssociation_, keepThisBranch(), edm::BranchDescription::present(), edm::BranchDescription::produced(), edm::ProductRegistry::productList(), productSelector_, productSelectorRules_, edm::ThinnedAssociationsHelper::selectAssociationProducts(), selected(), setProcessesWithSelectedMergeableRunProducts(), thinnedAssociationsHelper_, edm::BranchDescription::transient(), and edm::BranchDescription::unwrappedType().

90  {
91  if(productSelector_.initialized()) return;
92  productSelector_.initialize(productSelectorRules_, preg.allBranchDescriptions());
93 
94  // TODO: See if we can collapse keptProducts_ and productSelector_ into a
95  // single object. See the notes in the header for ProductSelector
96  // for more information.
97 
98  std::map<BranchID, BranchDescription const*> trueBranchIDToKeptBranchDesc;
99  std::vector<BranchDescription const*> associationDescriptions;
100  std::set<BranchID> keptProductsInEvent;
101  std::set<std::string> processesWithSelectedMergeableRunProducts;
102 
103  for(auto const& it : preg.productList()) {
104  BranchDescription const& desc = it.second;
105  if(desc.transient()) {
106  // if the class of the branch is marked transient, output nothing
107  } else if(!desc.present() && !desc.produced()) {
108  // else if the branch containing the product has been previously dropped,
109  // output nothing
110  } else if(desc.unwrappedType() == typeid(ThinnedAssociation)) {
111  associationDescriptions.push_back(&desc);
112  } else if(selected(desc)) {
113  keepThisBranch(desc, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
115  processesWithSelectedMergeableRunProducts);
116  } else {
117  // otherwise, output nothing,
118  // and mark the fact that there is a newly dropped branch of this type.
119  hasNewlyDroppedBranch_[desc.branchType()] = true;
120  }
121  }
122 
123  setProcessesWithSelectedMergeableRunProducts(processesWithSelectedMergeableRunProducts);
124 
126  keptProductsInEvent,
128 
129  for(auto association : associationDescriptions) {
130  if(keepAssociation_[association->branchID()]) {
131  keepThisBranch(*association, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
132  } else {
133  hasNewlyDroppedBranch_[association->branchType()] = true;
134  }
135  }
136 
137  // Now fill in a mapping needed in the case that a branch was dropped while its EDAlias was kept.
138  ProductSelector::fillDroppedToKept(preg, trueBranchIDToKeptBranchDesc, droppedBranchIDToKeptBranchID_);
139 
141  }
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
std::map< BranchID, bool > keepAssociation_
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
static void fillDroppedToKept(ProductRegistry const &preg, std::map< BranchID, BranchDescription const * > const &trueBranchIDToKeptBranchDesc, std::map< BranchID::value_type, BranchID::value_type > &droppedBranchIDToKeptBranchID_)
bool selected(BranchDescription const &desc) const
void selectAssociationProducts(std::vector< BranchDescription const * > const &associationDescriptions, std::set< BranchID > const &keptProductsInEvent, std::map< BranchID, bool > &keepAssociation) const
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
ProductSelectorRules productSelectorRules_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
bool initialized() const
void initialize(ProductSelectorRules const &rules, std::vector< BranchDescription const * > const &branchDescriptions)
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes)
void OutputModuleBase::setEventSelectionInfo ( std::map< std::string, std::vector< std::pair< std::string, int > > > const &  outputModulePathPositions,
bool  anyProductProduced 
)
protected

Definition at line 417 of file OutputModuleBase.cc.

References description(), edm::getParameterSet(), edm::detail::registerProperSelectionInfo(), and selector_config_id_.

418  {
420  description().moduleLabel(),
421  outputModulePathPositions,
422  anyProductProduced);
423  }
ParameterSet const & getParameterSet(ParameterSetID const &id)
ModuleDescription const & description() const
ParameterSetID registerProperSelectionInfo(edm::ParameterSet const &iInitial, std::string const &iLabel, std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
void edm::limited::OutputModuleBase::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 290 of file OutputModuleBase.h.

290  {
291  moduleDescription_ = md;
292  }
ModuleDescription moduleDescription_
virtual void edm::limited::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts ( std::set< std::string > const &  )
inlineprivatevirtual

Definition at line 281 of file OutputModuleBase.h.

Referenced by selectProducts().

281 {}
virtual bool edm::limited::OutputModuleBase::shouldWeCloseFile ( ) const
inlineprivatevirtual

Ask the OutputModule if we should end the current file.

Definition at line 248 of file OutputModuleBase.h.

References TriggerAnalyzer::write().

248 {return false;}
ThinnedAssociationsHelper const * OutputModuleBase::thinnedAssociationsHelper ( ) const

Definition at line 377 of file OutputModuleBase.cc.

References thinnedAssociationsHelper_.

377  {
378  return thinnedAssociationsHelper_.get();
379  }
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
void OutputModuleBase::updateBranchIDListsWithKeptAliases ( )
private

Definition at line 143 of file OutputModuleBase.cc.

References branchIDLists_, droppedBranchIDToKeptBranchID_, and origBranchIDLists_.

Referenced by doRespondToOpenInputFile().

143  {
144  if(!droppedBranchIDToKeptBranchID_.empty()) {
145  // Make a private copy of the BranchIDLists.
147  // Check for branches dropped while an EDAlias was kept.
148  for(BranchIDList& branchIDList : *branchIDLists_) {
149  for(BranchID::value_type& branchID : branchIDList) {
150  // Replace BranchID of each dropped branch with that of the kept
151  // alias, so the alias branch will have the product ID of the original branch.
152  std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter = droppedBranchIDToKeptBranchID_.find(branchID);
153  if(iter != droppedBranchIDToKeptBranchID_.end()) {
154  branchID = iter->second;
155  }
156  }
157  }
158  }
159  }
BranchIDLists const * origBranchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
unsigned int value_type
Definition: BranchID.h:16
std::vector< BranchID::value_type > BranchIDList
Definition: BranchIDList.h:18
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
bool edm::limited::OutputModuleBase::wantAllEvents ( ) const
inline

Definition at line 97 of file OutputModuleBase.h.

bool edm::limited::OutputModuleBase::wantsGlobalLuminosityBlocks ( ) const
inline

Definition at line 109 of file OutputModuleBase.h.

109 {return true;}
bool edm::limited::OutputModuleBase::wantsGlobalRuns ( ) const
inline

Definition at line 108 of file OutputModuleBase.h.

108 {return true;}
virtual bool edm::limited::OutputModuleBase::wantsStreamLuminosityBlocks ( ) const
pure virtual
virtual bool edm::limited::OutputModuleBase::wantsStreamRuns ( ) const
pure virtual
std::string edm::limited::OutputModuleBase::workerType ( ) const
inlineprivate

Definition at line 231 of file OutputModuleBase.h.

231 {return "WorkerT<edm::limited::OutputModuleBase>";}
virtual void edm::limited::OutputModuleBase::write ( EventForOutput const &  )
privatepure virtual
virtual void edm::limited::OutputModuleBase::writeLuminosityBlock ( LuminosityBlockForOutput const &  )
privatepure virtual

Referenced by doWriteLuminosityBlock().

virtual void edm::limited::OutputModuleBase::writeRun ( RunForOutput const &  )
privatepure virtual

Referenced by doWriteRun().

Friends And Related Function Documentation

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

Definition at line 68 of file OutputModuleBase.h.

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

Definition at line 67 of file OutputModuleBase.h.

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

Definition at line 66 of file OutputModuleBase.h.

Member Data Documentation

edm::propagate_const<std::unique_ptr<BranchIDLists> > edm::limited::OutputModuleBase::branchIDLists_
private

Definition at line 210 of file OutputModuleBase.h.

Referenced by branchIDLists(), and updateBranchIDListsWithKeptAliases().

std::map<BranchID::value_type, BranchID::value_type> edm::limited::OutputModuleBase::droppedBranchIDToKeptBranchID_
private
std::array<bool, NumBranchTypes> edm::limited::OutputModuleBase::hasNewlyDroppedBranch_
private

Definition at line 193 of file OutputModuleBase.h.

Referenced by OutputModuleBase(), and selectProducts().

std::map<BranchID, bool> edm::limited::OutputModuleBase::keepAssociation_
private

Definition at line 214 of file OutputModuleBase.h.

Referenced by selectProducts().

SelectedProductsForBranchType edm::limited::OutputModuleBase::keptProducts_
private

Definition at line 192 of file OutputModuleBase.h.

Referenced by keepThisBranch().

int edm::limited::OutputModuleBase::maxEvents_
private

Definition at line 174 of file OutputModuleBase.h.

Referenced by configure().

ModuleDescription edm::limited::OutputModuleBase::moduleDescription_
private
BranchIDLists const* edm::limited::OutputModuleBase::origBranchIDLists_
private
std::string edm::limited::OutputModuleBase::process_name_
private

Definition at line 195 of file OutputModuleBase.h.

Referenced by doPreallocate(), and OutputModuleBase().

ProductSelector edm::limited::OutputModuleBase::productSelector_
private

Definition at line 197 of file OutputModuleBase.h.

Referenced by selected(), and selectProducts().

ProductSelectorRules edm::limited::OutputModuleBase::productSelectorRules_
private

Definition at line 196 of file OutputModuleBase.h.

Referenced by selectProducts().

LimitedTaskQueue edm::limited::OutputModuleBase::queue_
private

Definition at line 215 of file OutputModuleBase.h.

std::atomic<int> edm::limited::OutputModuleBase::remainingEvents_
private

Definition at line 175 of file OutputModuleBase.h.

Referenced by configure(), and doEvent().

ParameterSet edm::limited::OutputModuleBase::selectEvents_
private

Definition at line 202 of file OutputModuleBase.h.

Referenced by doPreallocate(), and OutputModuleBase().

ParameterSetID edm::limited::OutputModuleBase::selector_config_id_
private

Definition at line 205 of file OutputModuleBase.h.

Referenced by OutputModuleBase(), and setEventSelectionInfo().

std::vector<detail::TriggerResultsBasedEventSelector> edm::limited::OutputModuleBase::selectors_
private
edm::propagate_const<std::unique_ptr<ThinnedAssociationsHelper> > edm::limited::OutputModuleBase::thinnedAssociationsHelper_
private

Definition at line 213 of file OutputModuleBase.h.

Referenced by selectProducts(), and thinnedAssociationsHelper().

bool edm::limited::OutputModuleBase::wantAllEvents_
private

Definition at line 200 of file OutputModuleBase.h.

Referenced by needToRunSelection(), OutputModuleBase(), and prePrefetchSelection().