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 (OutputModuleBase const &)=delete
 
 OutputModuleBase (ParameterSet const &pset)
 
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 wantsInputProcessBlocks () const =0
 
virtual bool wantsProcessBlocks () const =0
 
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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
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 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 doAccessInputProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
void doBeginJob ()
 
bool doBeginLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doBeginRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
void doBeginStream (StreamID id)
 
void doEndJob ()
 
bool doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doEndRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
void doEndStream (StreamID id)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID ()
 
void preActionBeforeRunEventAsync (WaitingTaskHolder, ModuleCallingContext const &, Principal const &) 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
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

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 doWriteProcessBlock (ProcessBlockPrincipal const &, 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 65 of file OutputModuleBase.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 73 of file OutputModuleBase.h.

Constructor & Destructor Documentation

◆ OutputModuleBase() [1/2]

OutputModuleBase::OutputModuleBase ( ParameterSet const &  pset)
explicit

Definition at line 43 of file OutputModuleBase.cc.

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  hasNewlyDroppedBranch_.fill(false);
61 
63  process_name_ = tns->getProcessName();
64 
65  selectEvents_ = pset.getUntrackedParameterSet("SelectEvents", ParameterSet());
66 
67  selectEvents_.registerIt(); // Just in case this PSet is not registered
68 
70 
71  //need to set wantAllEvents_ in constructor
72  // we will make the remaining selectors once we know how many streams
73  selectors_.resize(1);
76  }

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

◆ ~OutputModuleBase()

OutputModuleBase::~OutputModuleBase ( )
override

Definition at line 203 of file OutputModuleBase.cc.

203 {}

◆ OutputModuleBase() [2/2]

edm::limited::OutputModuleBase::OutputModuleBase ( OutputModuleBase const &  )
delete

Member Function Documentation

◆ baseType()

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

Definition at line 365 of file OutputModuleBase.cc.

365 { return kBaseType; }

References edm::limited::kBaseType().

◆ beginJob()

virtual void edm::limited::OutputModuleBase::beginJob ( void  )
inlineprivatevirtual

Definition at line 235 of file OutputModuleBase.h.

235 {}

Referenced by doBeginJob().

◆ branchIDLists()

BranchIDLists const * OutputModuleBase::branchIDLists ( ) const

Definition at line 335 of file OutputModuleBase.cc.

335  {
336  if (!droppedBranchIDToKeptBranchID_.empty()) {
337  return branchIDLists_.get();
338  }
339  return origBranchIDLists_;
340  }

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

◆ concurrencyLimit()

unsigned int edm::limited::OutputModuleBase::concurrencyLimit ( ) const
inline

Definition at line 117 of file OutputModuleBase.h.

117 { return queue_.concurrencyLimit(); }

References edm::LimitedTaskQueue::concurrencyLimit(), and queue_.

◆ configure()

void OutputModuleBase::configure ( OutputModuleDescription const &  desc)
protected

Definition at line 78 of file OutputModuleBase.cc.

78  {
79  remainingEvents_ = maxEvents_ = desc.maxEvents_;
80  origBranchIDLists_ = desc.branchIDLists_;
81  }

References submitPVResolutionJobs::desc, maxEvents_, origBranchIDLists_, and remainingEvents_.

◆ description()

ModuleDescription const & OutputModuleBase::description ( ) const
protected

Definition at line 346 of file OutputModuleBase.cc.

346 { return moduleDescription_; }

References moduleDescription_.

◆ doAccessInputProcessBlock()

void edm::limited::OutputModuleBase::doAccessInputProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprotected

Definition at line 141 of file OutputModuleBase.h.

141 {}

◆ doBeginJob()

void OutputModuleBase::doBeginJob ( )
protected

Definition at line 222 of file OutputModuleBase.cc.

222 { this->beginJob(); }

References beginJob().

◆ doBeginLuminosityBlock()

bool OutputModuleBase::doBeginLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 297 of file OutputModuleBase.cc.

297  {
299  lb.setConsumer(this);
301  return true;
302  }

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

◆ doBeginLuminosityBlock_()

virtual void edm::limited::OutputModuleBase::doBeginLuminosityBlock_ ( LuminosityBlockForOutput const &  )
inlineprivatevirtual

Definition at line 258 of file OutputModuleBase.h.

258 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginLuminosityBlockSummary_()

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

Definition at line 259 of file OutputModuleBase.h.

259 {}

◆ doBeginProcessBlock()

void edm::limited::OutputModuleBase::doBeginProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprotected

Definition at line 140 of file OutputModuleBase.h.

140 {}

◆ doBeginRun()

bool OutputModuleBase::doBeginRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 275 of file OutputModuleBase.cc.

275  {
276  RunForOutput r(info, moduleDescription_, mcc, false);
277  r.setConsumer(this);
278  doBeginRun_(r);
279  return true;
280  }

References doBeginRun_(), info(), moduleDescription_, and alignCSCRings::r.

◆ doBeginRun_()

virtual void edm::limited::OutputModuleBase::doBeginRun_ ( RunForOutput const &  )
inlineprivatevirtual

Definition at line 254 of file OutputModuleBase.h.

254 {}

Referenced by doBeginRun().

◆ doBeginRunSummary_()

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

Definition at line 255 of file OutputModuleBase.h.

255 {}

◆ doBeginStream()

void edm::limited::OutputModuleBase::doBeginStream ( StreamID  id)
protected

◆ doBeginStream_()

virtual void edm::limited::OutputModuleBase::doBeginStream_ ( StreamID  )
inlineprivatevirtual

Definition at line 245 of file OutputModuleBase.h.

245 {}

◆ doCloseFile()

void OutputModuleBase::doCloseFile ( )
private

Tell the OutputModule that is must end the current file.

Definition at line 327 of file OutputModuleBase.cc.

327  {
328  if (isFileOpen()) {
329  reallyCloseFile();
330  }
331  }

References isFileOpen(), and reallyCloseFile().

◆ doEndJob()

void OutputModuleBase::doEndJob ( )
protected

Definition at line 224 of file OutputModuleBase.cc.

224 { endJob(); }

References endJob().

◆ doEndLuminosityBlock()

bool OutputModuleBase::doEndLuminosityBlock ( LumiTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 304 of file OutputModuleBase.cc.

304  {
306  lb.setConsumer(this);
308  return true;
309  }

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

◆ doEndLuminosityBlock_()

virtual void edm::limited::OutputModuleBase::doEndLuminosityBlock_ ( LuminosityBlockForOutput const &  )
inlineprivatevirtual

Definition at line 260 of file OutputModuleBase.h.

260 {}

Referenced by doEndLuminosityBlock().

◆ doEndLuminosityBlockSummary_()

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

Definition at line 261 of file OutputModuleBase.h.

261 {}

◆ doEndProcessBlock()

void edm::limited::OutputModuleBase::doEndProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprotected

Definition at line 142 of file OutputModuleBase.h.

142 {}

◆ doEndRun()

bool OutputModuleBase::doEndRun ( RunTransitionInfo const &  info,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 282 of file OutputModuleBase.cc.

282  {
283  RunForOutput r(info, moduleDescription_, mcc, true);
284  r.setConsumer(this);
285  doEndRun_(r);
286  return true;
287  }

References doEndRun_(), info(), moduleDescription_, and alignCSCRings::r.

◆ doEndRun_()

virtual void edm::limited::OutputModuleBase::doEndRun_ ( RunForOutput const &  )
inlineprivatevirtual

Definition at line 256 of file OutputModuleBase.h.

256 {}

Referenced by doEndRun().

◆ doEndRunSummary_()

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

Definition at line 257 of file OutputModuleBase.h.

257 {}

◆ doEndStream()

void edm::limited::OutputModuleBase::doEndStream ( StreamID  id)
protected

◆ doEndStream_()

virtual void edm::limited::OutputModuleBase::doEndStream_ ( StreamID  )
inlineprivatevirtual

Definition at line 246 of file OutputModuleBase.h.

246 {}

◆ doEvent()

bool OutputModuleBase::doEvent ( EventTransitionInfo const &  info,
ActivityRegistry act,
ModuleCallingContext const *  mcc 
)
protected

Definition at line 251 of file OutputModuleBase.cc.

253  {
254  {
255  EventForOutput e(info, moduleDescription_, mcc);
256  e.setConsumer(this);
257  EventSignalsSentry sentry(act, mcc);
258  write(e);
259  }
260 
261  auto remainingEvents = remainingEvents_.load();
262  bool keepTrying = remainingEvents > 0;
263  while (keepTrying) {
264  auto newValue = remainingEvents - 1;
265  keepTrying = !remainingEvents_.compare_exchange_strong(remainingEvents, newValue);
266  if (keepTrying) {
267  // the exchange failed because the value was changed by another thread.
268  // remainingEvents was changed to be the new value of remainingEvents_;
269  keepTrying = remainingEvents > 0;
270  }
271  }
272  return true;
273  }

References MillePedeFileConverter_cfg::e, info(), moduleDescription_, remainingEvents(), remainingEvents_, and write().

◆ doOpenFile()

void OutputModuleBase::doOpenFile ( FileBlock const &  fb)
private

Definition at line 318 of file OutputModuleBase.cc.

318 { openFile(fb); }

References benchmark_cfg::fb, and openFile().

◆ doPreallocate()

void OutputModuleBase::doPreallocate ( PreallocationConfiguration const &  iPC)
protected

Definition at line 205 of file OutputModuleBase.cc.

205  {
206  auto nstreams = iPC.numberOfStreams();
207  selectors_.resize(nstreams);
208 
209  bool seenFirst = false;
210  for (auto& s : selectors_) {
211  if (seenFirst) {
213  } else {
214  seenFirst = true;
215  }
216  }
217  preallocStreams(nstreams);
218  preallocLumis(iPC.numberOfLuminosityBlocks());
219  preallocate(iPC);
220  }

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_.

◆ doRegisterThinnedAssociations()

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

Definition at line 214 of file OutputModuleBase.h.

214 {}

◆ doRespondToCloseInputFile()

void OutputModuleBase::doRespondToCloseInputFile ( FileBlock const &  fb)
private

◆ doRespondToCloseInputFile_()

virtual void edm::limited::OutputModuleBase::doRespondToCloseInputFile_ ( FileBlock const &  )
inlineprivatevirtual

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

Definition at line 263 of file OutputModuleBase.h.

263 {}

Referenced by doRespondToCloseInputFile().

◆ doRespondToOpenInputFile()

void OutputModuleBase::doRespondToOpenInputFile ( FileBlock const &  fb)
private

◆ doRespondToOpenInputFile_()

virtual void edm::limited::OutputModuleBase::doRespondToOpenInputFile_ ( FileBlock const &  )
inlineprivatevirtual

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

Definition at line 262 of file OutputModuleBase.h.

262 {}

Referenced by doRespondToOpenInputFile().

◆ doStreamBeginLuminosityBlock_()

virtual void edm::limited::OutputModuleBase::doStreamBeginLuminosityBlock_ ( StreamID  ,
LuminosityBlockForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 250 of file OutputModuleBase.h.

250 {}

◆ doStreamBeginRun_()

virtual void edm::limited::OutputModuleBase::doStreamBeginRun_ ( StreamID  ,
RunForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 247 of file OutputModuleBase.h.

247 {}

◆ doStreamEndLuminosityBlock_()

virtual void edm::limited::OutputModuleBase::doStreamEndLuminosityBlock_ ( StreamID  ,
LuminosityBlockForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 251 of file OutputModuleBase.h.

251 {}

◆ doStreamEndLuminosityBlockSummary_()

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

Definition at line 252 of file OutputModuleBase.h.

252 {}

◆ doStreamEndRun_()

virtual void edm::limited::OutputModuleBase::doStreamEndRun_ ( StreamID  ,
RunForOutput const &  ,
EventSetup const &   
)
inlineprivatevirtual

Definition at line 248 of file OutputModuleBase.h.

248 {}

◆ doStreamEndRunSummary_()

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

Definition at line 249 of file OutputModuleBase.h.

249 {}

◆ doWriteLuminosityBlock()

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

Definition at line 311 of file OutputModuleBase.cc.

312  {
313  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
314  lb.setConsumer(this);
316  }

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

◆ doWriteProcessBlock()

void edm::limited::OutputModuleBase::doWriteProcessBlock ( ProcessBlockPrincipal const &  ,
ModuleCallingContext const *   
)
inlineprivate

Definition at line 208 of file OutputModuleBase.h.

208 {}

◆ doWriteRun()

void OutputModuleBase::doWriteRun ( RunPrincipal const &  rp,
ModuleCallingContext const *  mcc,
MergeableRunProductMetadata const *  mrpm 
)
private

Definition at line 289 of file OutputModuleBase.cc.

291  {
292  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
293  r.setConsumer(this);
294  writeRun(r);
295  }

References moduleDescription_, alignCSCRings::r, and writeRun().

◆ droppedBranchIDToKeptBranchID()

std::map<BranchID::value_type, BranchID::value_type> const& edm::limited::OutputModuleBase::droppedBranchIDToKeptBranchID ( )
inlineprotected

Definition at line 154 of file OutputModuleBase.h.

154  {
156  }

References droppedBranchIDToKeptBranchID_.

◆ endJob()

virtual void edm::limited::OutputModuleBase::endJob ( void  )
inlineprivatevirtual

Definition at line 236 of file OutputModuleBase.h.

236 {}

Referenced by doEndJob().

◆ fillDescription()

void OutputModuleBase::fillDescription ( ParameterSetDescription desc)
static

Definition at line 356 of file OutputModuleBase.cc.

356  {
357  ProductSelectorRules::fillDescription(desc, "outputCommands");
359  desc.addUntracked<unsigned int>("concurrencyLimit", 1);
360  }

References submitPVResolutionJobs::desc, edm::ProductSelectorRules::fillDescription(), and edm::EventSelector::fillDescription().

◆ fillDescriptions()

void OutputModuleBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 350 of file OutputModuleBase.cc.

350  {
352  desc.setUnknown();
353  descriptions.addDefault(desc);
354  }

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

◆ hasAccumulator()

bool edm::limited::OutputModuleBase::hasAccumulator ( ) const
inlineprivate

Definition at line 268 of file OutputModuleBase.h.

268 { return false; }

◆ hasAcquire()

bool edm::limited::OutputModuleBase::hasAcquire ( ) const
inlineprivate

Definition at line 267 of file OutputModuleBase.h.

267 { return false; }

◆ hasNewlyDroppedBranch()

std::array<bool, NumBranchTypes> const& edm::limited::OutputModuleBase::hasNewlyDroppedBranch ( ) const
inline

Definition at line 94 of file OutputModuleBase.h.

94 { return hasNewlyDroppedBranch_; }

References hasNewlyDroppedBranch_.

◆ isFileOpen()

virtual bool edm::limited::OutputModuleBase::isFileOpen ( ) const
inlineprivatevirtual

Definition at line 240 of file OutputModuleBase.h.

240 { return true; }

Referenced by doCloseFile().

◆ keepThisBranch()

void OutputModuleBase::keepThisBranch ( BranchDescription const &  desc,
std::map< BranchID, BranchDescription const * > &  trueBranchIDToKeptBranchDesc,
std::set< BranchID > &  keptProductsInEvent 
)
private

Definition at line 156 of file OutputModuleBase.cc.

158  {
159  ProductSelector::checkForDuplicateKeptBranch(desc, trueBranchIDToKeptBranchDesc);
160 
162 
163  std::vector<std::string> missingDictionaries;
164  if (!checkDictionary(missingDictionaries, desc.className(), desc.unwrappedType())) {
165  std::string context("Calling OutputModuleBase::keepThisBranch, checking dictionaries for kept types");
166  throwMissingDictionariesException(missingDictionaries, context);
167  }
168 
169  switch (desc.branchType()) {
170  case InEvent: {
171  if (desc.produced()) {
172  keptProductsInEvent.insert(desc.originalBranchID());
173  } else {
174  keptProductsInEvent.insert(desc.branchID());
175  }
176  token = consumes(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
177  InputTag{desc.moduleLabel(), desc.productInstanceName(), desc.processName()});
178  break;
179  }
180  case InLumi: {
181  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
182  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
183  break;
184  }
185  case InRun: {
186  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
187  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
188  break;
189  }
190  case InProcess: {
191  token = consumes<InProcess>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
192  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
193  break;
194  }
195  default:
196  assert(false);
197  break;
198  }
199  // Now put it in the list of selected branches.
200  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
201  }

References cms::cuda::assert(), edm::checkDictionary(), edm::ProductSelector::checkForDuplicateKeptBranch(), edm::EDConsumerBase::consumes(), submitPVResolutionJobs::desc, edm::InEvent, edm::InLumi, edm::InProcess, HLT_FULL_cff::InputTag, edm::InRun, keptProducts_, edm::PRODUCT_TYPE, AlCaHLTBitMon_QueryRunRegistry::string, edm::throwMissingDictionariesException(), and unpackBuffers-CaloStage2::token.

Referenced by selectProducts().

◆ keptProducts()

SelectedProductsForBranchType const& edm::limited::OutputModuleBase::keptProducts ( ) const
inline

Definition at line 93 of file OutputModuleBase.h.

93 { return keptProducts_; }

References keptProducts_.

◆ limitReached()

bool edm::limited::OutputModuleBase::limitReached ( ) const
inlineprivate

Definition at line 276 of file OutputModuleBase.h.

276 { return remainingEvents_ == 0; }

References remainingEvents_.

◆ maxEvents()

int edm::limited::OutputModuleBase::maxEvents ( ) const
inline

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

Definition at line 83 of file OutputModuleBase.h.

83 { return maxEvents_; }

References maxEvents_.

◆ moduleDescription()

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

Definition at line 107 of file OutputModuleBase.h.

107 { return moduleDescription_; }

References moduleDescription_.

◆ needToRunSelection()

bool OutputModuleBase::needToRunSelection ( ) const
private

Definition at line 226 of file OutputModuleBase.cc.

226 { return !wantAllEvents_; }

References wantAllEvents_.

◆ openFile()

virtual void edm::limited::OutputModuleBase::openFile ( FileBlock const &  ) const
inlineprivatevirtual

Definition at line 239 of file OutputModuleBase.h.

239 {}

Referenced by doOpenFile().

◆ operator=()

OutputModuleBase& edm::limited::OutputModuleBase::operator= ( OutputModuleBase const &  )
delete

◆ preActionBeforeRunEventAsync()

void edm::limited::OutputModuleBase::preActionBeforeRunEventAsync ( WaitingTaskHolder  ,
ModuleCallingContext const &  ,
Principal const &   
) const
inlineprotected

Definition at line 136 of file OutputModuleBase.h.

138  {}

◆ preallocate()

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

Definition at line 244 of file OutputModuleBase.h.

244 {}

Referenced by doPreallocate().

◆ preallocLumis()

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

Definition at line 243 of file OutputModuleBase.h.

243 {}

Referenced by doPreallocate().

◆ preallocStreams()

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

Definition at line 242 of file OutputModuleBase.h.

242 {}

Referenced by doPreallocate().

◆ prePrefetchSelection()

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

Definition at line 240 of file OutputModuleBase.cc.

242  {
243  if (wantAllEvents_)
244  return true;
245  auto& s = selectors_[id.value()];
246  EventForOutput e(ep, moduleDescription_, mcc);
247  e.setConsumer(this);
248  return s.wantEvent(e);
249  }

References MillePedeFileConverter_cfg::e, SiStripBadComponentsDQMServiceTemplate_cfg::ep, moduleDescription_, alignCSCRings::s, selectors_, and wantAllEvents_.

◆ prevalidate()

void OutputModuleBase::prevalidate ( ConfigurationDescriptions )
static

Definition at line 362 of file OutputModuleBase.cc.

362 {}

◆ processName()

std::string const& edm::limited::OutputModuleBase::processName ( ) const
inline

Definition at line 92 of file OutputModuleBase.h.

92 { return process_name_; }

References process_name_.

◆ productsUsedBySelection()

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

Definition at line 228 of file OutputModuleBase.cc.

228  {
229  std::vector<ProductResolverIndexAndSkipBit> returnValue;
230  auto const& s = selectors_[0];
231  auto const n = s.numberOfTokens();
232  returnValue.reserve(n);
233 
234  for (unsigned int i = 0; i < n; ++i) {
235  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
236  }
237  return returnValue;
238  }

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

◆ queue()

LimitedTaskQueue& edm::limited::OutputModuleBase::queue ( )
inline

Definition at line 119 of file OutputModuleBase.h.

119 { return queue_; }

References queue_.

◆ reallyCloseFile()

void OutputModuleBase::reallyCloseFile ( )
privatevirtual

Definition at line 333 of file OutputModuleBase.cc.

333 {}

Referenced by doCloseFile().

◆ registerProductsAndCallbacks()

void edm::limited::OutputModuleBase::registerProductsAndCallbacks ( OutputModuleBase const *  ,
ProductRegistry const *   
)
inlineprivate

Definition at line 221 of file OutputModuleBase.h.

221 {}

◆ remainingEvents()

int edm::limited::OutputModuleBase::remainingEvents ( ) const
inline

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

Definition at line 87 of file OutputModuleBase.h.

87 { return remainingEvents_; }

References remainingEvents_.

Referenced by doEvent().

◆ selected()

bool OutputModuleBase::selected ( BranchDescription const &  desc) const

◆ selectorConfig()

ParameterSetID edm::limited::OutputModuleBase::selectorConfig ( ) const
inlineprotected

Definition at line 124 of file OutputModuleBase.h.

124 { return selector_config_id_; }

References selector_config_id_.

◆ selectProducts()

void OutputModuleBase::selectProducts ( ProductRegistry const &  preg,
ThinnedAssociationsHelper const &  thinnedAssociationsHelper 
)

Definition at line 83 of file OutputModuleBase.cc.

84  {
86  return;
87  productSelector_.initialize(productSelectorRules_, preg.allBranchDescriptions());
88 
89  // TODO: See if we can collapse keptProducts_ and productSelector_ into a
90  // single object. See the notes in the header for ProductSelector
91  // for more information.
92 
93  std::map<BranchID, BranchDescription const*> trueBranchIDToKeptBranchDesc;
94  std::vector<BranchDescription const*> associationDescriptions;
95  std::set<BranchID> keptProductsInEvent;
96  std::set<std::string> processesWithSelectedMergeableRunProducts;
97 
98  for (auto const& it : preg.productList()) {
99  BranchDescription const& desc = it.second;
100  if (desc.transient()) {
101  // if the class of the branch is marked transient, output nothing
102  } else if (!desc.present() && !desc.produced()) {
103  // else if the branch containing the product has been previously dropped,
104  // output nothing
105  } else if (desc.unwrappedType() == typeid(ThinnedAssociation)) {
106  associationDescriptions.push_back(&desc);
107  } else if (selected(desc)) {
108  keepThisBranch(desc, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
109  insertSelectedProcesses(desc, processesWithSelectedMergeableRunProducts);
110  } else {
111  // otherwise, output nothing,
112  // and mark the fact that there is a newly dropped branch of this type.
113  hasNewlyDroppedBranch_[desc.branchType()] = true;
114  }
115  }
116 
117  setProcessesWithSelectedMergeableRunProducts(processesWithSelectedMergeableRunProducts);
118 
120  associationDescriptions, keptProductsInEvent, keepAssociation_);
121 
122  for (auto association : associationDescriptions) {
123  if (keepAssociation_[association->branchID()]) {
124  keepThisBranch(*association, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
125  } else {
126  hasNewlyDroppedBranch_[association->branchType()] = true;
127  }
128  }
129 
130  // Now fill in a mapping needed in the case that a branch was dropped while its EDAlias was kept.
131  ProductSelector::fillDroppedToKept(preg, trueBranchIDToKeptBranchDesc, droppedBranchIDToKeptBranchID_);
132 
133  thinnedAssociationsHelper_->updateFromParentProcess(
135  }

References edm::ProductRegistry::allBranchDescriptions(), submitPVResolutionJobs::desc, droppedBranchIDToKeptBranchID_, edm::ProductSelector::fillDroppedToKept(), hasNewlyDroppedBranch_, edm::ProductSelector::initialize(), edm::ProductSelector::initialized(), edm::insertSelectedProcesses(), keepAssociation_, keepThisBranch(), edm::ProductRegistry::productList(), productSelector_, productSelectorRules_, edm::ThinnedAssociationsHelper::selectAssociationProducts(), selected(), setProcessesWithSelectedMergeableRunProducts(), thinnedAssociationsHelper(), and thinnedAssociationsHelper_.

◆ setEventSelectionInfo()

void edm::limited::OutputModuleBase::setEventSelectionInfo ( std::map< std::string, std::vector< std::pair< std::string, int >>> const &  outputModulePathPositions,
bool  anyProductProduced 
)
protected

◆ setModuleDescription()

void edm::limited::OutputModuleBase::setModuleDescription ( ModuleDescription const &  md)
inlineprivate

Definition at line 274 of file OutputModuleBase.h.

274 { moduleDescription_ = md; }

References moduleDescription_.

◆ setProcessesWithSelectedMergeableRunProducts()

virtual void edm::limited::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts ( std::set< std::string > const &  )
inlineprivatevirtual

Definition at line 265 of file OutputModuleBase.h.

265 {}

Referenced by selectProducts().

◆ shouldWeCloseFile()

virtual bool edm::limited::OutputModuleBase::shouldWeCloseFile ( ) const
inlineprivatevirtual

Ask the OutputModule if we should end the current file.

Definition at line 232 of file OutputModuleBase.h.

232 { return false; }

◆ thinnedAssociationsHelper()

ThinnedAssociationsHelper const * OutputModuleBase::thinnedAssociationsHelper ( ) const

Definition at line 342 of file OutputModuleBase.cc.

342  {
343  return thinnedAssociationsHelper_.get();
344  }

References thinnedAssociationsHelper_.

Referenced by selectProducts().

◆ updateBranchIDListsWithKeptAliases()

void OutputModuleBase::updateBranchIDListsWithKeptAliases ( )
private

Definition at line 137 of file OutputModuleBase.cc.

137  {
138  if (!droppedBranchIDToKeptBranchID_.empty()) {
139  // Make a private copy of the BranchIDLists.
141  // Check for branches dropped while an EDAlias was kept.
142  for (BranchIDList& branchIDList : *branchIDLists_) {
143  for (BranchID::value_type& branchID : branchIDList) {
144  // Replace BranchID of each dropped branch with that of the kept
145  // alias, so the alias branch will have the product ID of the original branch.
146  std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter =
147  droppedBranchIDToKeptBranchID_.find(branchID);
148  if (iter != droppedBranchIDToKeptBranchID_.end()) {
149  branchID = iter->second;
150  }
151  }
152  }
153  }
154  }

References branchIDLists_, droppedBranchIDToKeptBranchID_, and origBranchIDLists_.

Referenced by doRespondToOpenInputFile().

◆ wantAllEvents()

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

Definition at line 101 of file OutputModuleBase.h.

101 { return wantAllEvents_; }

References wantAllEvents_.

◆ wantsGlobalLuminosityBlocks()

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

Definition at line 111 of file OutputModuleBase.h.

111 { return true; }

◆ wantsGlobalRuns()

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

Definition at line 110 of file OutputModuleBase.h.

110 { return true; }

◆ wantsInputProcessBlocks()

virtual bool edm::limited::OutputModuleBase::wantsInputProcessBlocks ( ) const
pure virtual

◆ wantsProcessBlocks()

virtual bool edm::limited::OutputModuleBase::wantsProcessBlocks ( ) const
pure virtual

◆ wantsStreamLuminosityBlocks()

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

◆ wantsStreamRuns()

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

◆ workerType()

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

Definition at line 216 of file OutputModuleBase.h.

216 { return "WorkerT<edm::limited::OutputModuleBase>"; }

◆ write()

virtual void edm::limited::OutputModuleBase::write ( EventForOutput const &  )
privatepure virtual

◆ writeLuminosityBlock()

virtual void edm::limited::OutputModuleBase::writeLuminosityBlock ( LuminosityBlockForOutput const &  )
privatepure virtual

Referenced by doWriteLuminosityBlock().

◆ writeRun()

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

Referenced by doWriteRun().

Friends And Related Function Documentation

◆ ::edm::OutputModuleCommunicatorT

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

Definition at line 72 of file OutputModuleBase.h.

◆ ::edm::WorkerT

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

Definition at line 70 of file OutputModuleBase.h.

◆ edm::maker::ModuleHolderT

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

Definition at line 68 of file OutputModuleBase.h.

Member Data Documentation

◆ branchIDLists_

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

Definition at line 195 of file OutputModuleBase.h.

Referenced by branchIDLists(), and updateBranchIDListsWithKeptAliases().

◆ droppedBranchIDToKeptBranchID_

std::map<BranchID::value_type, BranchID::value_type> edm::limited::OutputModuleBase::droppedBranchIDToKeptBranchID_
private

◆ hasNewlyDroppedBranch_

std::array<bool, NumBranchTypes> edm::limited::OutputModuleBase::hasNewlyDroppedBranch_
private

Definition at line 178 of file OutputModuleBase.h.

Referenced by hasNewlyDroppedBranch(), OutputModuleBase(), and selectProducts().

◆ keepAssociation_

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

Definition at line 199 of file OutputModuleBase.h.

Referenced by selectProducts().

◆ keptProducts_

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

Definition at line 177 of file OutputModuleBase.h.

Referenced by keepThisBranch(), and keptProducts().

◆ maxEvents_

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

Definition at line 159 of file OutputModuleBase.h.

Referenced by configure(), and maxEvents().

◆ moduleDescription_

ModuleDescription edm::limited::OutputModuleBase::moduleDescription_
private

◆ origBranchIDLists_

BranchIDLists const* edm::limited::OutputModuleBase::origBranchIDLists_
private

◆ process_name_

std::string edm::limited::OutputModuleBase::process_name_
private

Definition at line 180 of file OutputModuleBase.h.

Referenced by doPreallocate(), OutputModuleBase(), and processName().

◆ productSelector_

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

Definition at line 182 of file OutputModuleBase.h.

Referenced by selected(), and selectProducts().

◆ productSelectorRules_

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

Definition at line 181 of file OutputModuleBase.h.

Referenced by selectProducts().

◆ queue_

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

Definition at line 200 of file OutputModuleBase.h.

Referenced by concurrencyLimit(), and queue().

◆ remainingEvents_

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

Definition at line 160 of file OutputModuleBase.h.

Referenced by configure(), doEvent(), limitReached(), and remainingEvents().

◆ selectEvents_

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

Definition at line 187 of file OutputModuleBase.h.

Referenced by doPreallocate(), and OutputModuleBase().

◆ selector_config_id_

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

Definition at line 190 of file OutputModuleBase.h.

Referenced by OutputModuleBase(), and selectorConfig().

◆ selectors_

std::vector<detail::TriggerResultsBasedEventSelector> edm::limited::OutputModuleBase::selectors_
private

◆ thinnedAssociationsHelper_

edm::propagate_const<std::unique_ptr<ThinnedAssociationsHelper> > edm::limited::OutputModuleBase::thinnedAssociationsHelper_
private

Definition at line 198 of file OutputModuleBase.h.

Referenced by selectProducts(), and thinnedAssociationsHelper().

◆ wantAllEvents_

bool edm::limited::OutputModuleBase::wantAllEvents_
private
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:113
edm::limited::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:235
mps_fire.i
i
Definition: mps_fire.py:428
TypeToGet
edm::limited::OutputModuleBase::queue_
LimitedTaskQueue queue_
Definition: OutputModuleBase.h:200
edm::throwMissingDictionariesException
void throwMissingDictionariesException(std::vector< std::string > &missingDictionaries, std::string const &context)
Definition: DictionaryTools.cc:193
edm::getAllTriggerNames
std::vector< std::string > const & getAllTriggerNames()
Definition: getAllTriggerNames.cc:22
edm::limited::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.h:243
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::limited::OutputModuleBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.h:244
edm::limited::OutputModuleBase::isFileOpen
virtual bool isFileOpen() const
Definition: OutputModuleBase.h:240
edm::ProductSelector::initialize
void initialize(ProductSelectorRules const &rules, std::vector< BranchDescription const * > const &branchDescriptions)
Definition: ProductSelector.cc:20
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
cms::cuda::assert
assert(be >=bs)
edm::propagate_const::get
constexpr element_type const * get() const
Definition: propagate_const.h:64
edm::limited::OutputModuleBase::writeRun
virtual void writeRun(RunForOutput const &)=0
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
edm::ProductSelector::selected
bool selected(BranchDescription const &desc) const
Definition: ProductSelector.cc:55
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::ParameterSet::id
ParameterSetID id() const
Definition: ParameterSet.cc:189
edm::limited::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:260
edm::limited::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:186
edm::limited::OutputModuleBase::openFile
virtual void openFile(FileBlock const &) const
Definition: OutputModuleBase.h:239
edm::InRun
Definition: BranchType.h:11
edm::limited::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:178
LuminosityBlockForOutput
edm::limited::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:187
edm::EDConsumerBase::uncheckedIndexFrom
ProductResolverIndexAndSkipBit uncheckedIndexFrom(EDGetToken) const
Definition: EDConsumerBase.cc:270
edm::InProcess
Definition: BranchType.h:11
edm::limited::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:183
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::limited::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:181
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
edm::limited::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:333
RunForOutput
edm::BranchIDList
std::vector< BranchID::value_type > BranchIDList
Definition: BranchIDList.h:18
edm::limited::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:185
edm::ProductSelector::checkForDuplicateKeptBranch
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
Definition: ProductSelector.cc:71
edm::limited::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:177
edm::ThinnedAssociationsHelper::selectAssociationProducts
void selectAssociationProducts(std::vector< BranchDescription const * > const &associationDescriptions, std::set< BranchID > const &keptProductsInEvent, std::map< BranchID, bool > &keepAssociation) const
Definition: ThinnedAssociationsHelper.cc:189
Service
edm::InEvent
Definition: BranchType.h:11
edm::ProductSelector::fillDroppedToKept
static void fillDroppedToKept(ProductRegistry const &preg, std::map< BranchID, BranchDescription const * > const &trueBranchIDToKeptBranchDesc, std::map< BranchID::value_type, BranchID::value_type > &droppedBranchIDToKeptBranchID_)
Definition: ProductSelector.cc:99
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
edm::BranchID::value_type
unsigned int value_type
Definition: BranchID.h:16
edm::limited::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:195
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LimitedTaskQueue::concurrencyLimit
unsigned int concurrencyLimit() const
Definition: LimitedTaskQueue.h:107
edm::limited::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::limited::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:194
ParameterSet
Definition: Functions.h:16
edm::InLumi
Definition: BranchType.h:11
edm::ProductSelectorRules::fillDescription
static void fillDescription(ParameterSetDescription &desc, char const *parameterName, std::vector< std::string > const &defaultStrings=defaultSelectionStrings())
Definition: ProductSelectorRules.cc:202
edm::limited::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:342
edm::limited::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:190
edm::limited::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:198
edm::limited::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
edm::limited::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:159
edm::limited::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
edm::limited::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:262
edm::limited::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:182
edm::limited::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:87
edm::limited::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:196
edm::detail::configureEventSelector
bool configureEventSelector(edm::ParameterSet const &iPSet, std::string const &iProcessName, std::vector< std::string > const &iAllTriggerNames, edm::detail::TriggerResultsBasedEventSelector &oSelector, ConsumesCollector &&iC)
Definition: TriggerResultsBasedEventSelector.cc:80
alignCSCRings.r
r
Definition: alignCSCRings.py:93
EDGetToken
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LayerClusterAssociatorByEnergyScoreImpl.h:44
edm::EventSelector::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSelector.cc:992
edm::limited::OutputModuleBase::remainingEvents_
std::atomic< int > remainingEvents_
Definition: OutputModuleBase.h:160
edm::limited::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:180
edm::limited::OutputModuleBase::updateBranchIDListsWithKeptAliases
void updateBranchIDListsWithKeptAliases()
Definition: OutputModuleBase.cc:137
edm::limited::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:348
edm::limited::OutputModuleBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: OutputModuleBase.h:242
edm::limited::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:236
ParameterSetDescription
edm::limited::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:258
edm::checkDictionary
bool checkDictionary(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
Definition: DictionaryTools.cc:67
edm::limited::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:265
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes)
Definition: insertSelectedProcesses.cc:15
edm::limited::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:199
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:155
edm::limited::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:256
edm::limited::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:156
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
edm::limited::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:263
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::limited::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:254
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316