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::global::OutputModuleBase Class Referenceabstract

#include <OutputModuleBase.h>

Inheritance diagram for edm::global::OutputModuleBase:
edm::EDConsumerBase edm::global::OutputModule< T > edm::global::outputmodule::InputFileWatcher edm::global::OutputModule<> evf::GlobalEvFOutputModule edm::AsciiOutputModule

Public Types

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

Public Member Functions

BranchIDLists const * branchIDLists () 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)
 
OutputProcessBlockHelper const & outputProcessBlockHelper () const
 
std::string const & processName () const
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static const std::string & baseType ()
 
static void 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 doAcquire (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
 
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 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
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 doAcquire_ (StreamID, EventForOutput const &, WaitingTaskWithArenaHolder &)
 
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 doRespondToCloseOutputFile ()
 
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
 
virtual 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 &)
 
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 writeProcessBlock (ProcessBlockForOutput const &)
 
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_
 
OutputProcessBlockHelper outputProcessBlockHelper_
 
std::string process_name_
 
ProductSelector productSelector_
 
ProductSelectorRules productSelectorRules_
 
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 66 of file OutputModuleBase.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 74 of file OutputModuleBase.h.

Constructor & Destructor Documentation

◆ OutputModuleBase() [1/2]

OutputModuleBase::OutputModuleBase ( ParameterSet const &  pset)
explicit

Definition at line 45 of file OutputModuleBase.cc.

46  : maxEvents_(-1),
48  keptProducts_(),
50  process_name_(),
51  productSelectorRules_(pset, "outputCommands", "OutputModule"),
54  wantAllEvents_(false),
55  selectors_(),
59  origBranchIDLists_(nullptr),
60  thinnedAssociationsHelper_(new ThinnedAssociationsHelper) {
61  hasNewlyDroppedBranch_.fill(false);
62 
64  process_name_ = tns->getProcessName();
65 
66  selectEvents_ = pset.getUntrackedParameterSet("SelectEvents", ParameterSet());
67 
68  selectEvents_.registerIt(); // Just in case this PSet is not registered
69 
71 
72  //need to set wantAllEvents_ in constructor
73  // we will make the remaining selectors once we know how many streams
74  selectors_.resize(1);
77  }

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 208 of file OutputModuleBase.cc.

208 {}

◆ OutputModuleBase() [2/2]

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

Member Function Documentation

◆ baseType()

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

Definition at line 385 of file OutputModuleBase.cc.

385 { return kBaseType; }

References edm::global::kBaseType().

◆ beginJob()

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

Definition at line 241 of file OutputModuleBase.h.

241 {}

Referenced by doBeginJob().

◆ branchIDLists()

BranchIDLists const * OutputModuleBase::branchIDLists ( ) const

Definition at line 356 of file OutputModuleBase.cc.

356  {
357  if (!droppedBranchIDToKeptBranchID_.empty()) {
358  return branchIDLists_.get();
359  }
360  return origBranchIDLists_;
361  }

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

Referenced by evf::GlobalEvFOutputModule::globalBeginRun().

◆ configure()

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

Definition at line 79 of file OutputModuleBase.cc.

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

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

◆ description()

ModuleDescription const & OutputModuleBase::description ( ) const
protected

Definition at line 367 of file OutputModuleBase.cc.

367 { return moduleDescription_; }

References moduleDescription_.

Referenced by evf::GlobalEvFOutputModule::globalBeginRun().

◆ doAccessInputProcessBlock()

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

Definition at line 145 of file OutputModuleBase.h.

145 {}

◆ doAcquire()

void OutputModuleBase::doAcquire ( EventTransitionInfo const &  info,
ActivityRegistry act,
ModuleCallingContext const *  mcc,
WaitingTaskWithArenaHolder holder 
)
protected

Definition at line 280 of file OutputModuleBase.cc.

283  {
284  EventForOutput e(info, moduleDescription_, mcc);
285  e.setConsumer(this);
286  EventAcquireSignalsSentry sentry(act, mcc);
287  this->doAcquire_(e.streamID(), e, holder);
288  }

References doAcquire_(), MillePedeFileConverter_cfg::e, info(), moduleDescription_, and edm::EventForOutput::streamID().

◆ doAcquire_()

virtual void edm::global::OutputModuleBase::doAcquire_ ( StreamID  ,
EventForOutput const &  ,
WaitingTaskWithArenaHolder  
)
inlineprivatevirtual

Definition at line 271 of file OutputModuleBase.h.

271 {}

Referenced by doAcquire().

◆ doBeginJob()

void OutputModuleBase::doBeginJob ( )
protected

Definition at line 227 of file OutputModuleBase.cc.

227 { this->beginJob(); }

References beginJob().

◆ doBeginLuminosityBlock()

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

Definition at line 318 of file OutputModuleBase.cc.

318  {
320  lb.setConsumer(this);
322  return true;
323  }

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

◆ doBeginLuminosityBlock_()

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

Definition at line 265 of file OutputModuleBase.h.

265 {}

Referenced by doBeginLuminosityBlock().

◆ doBeginLuminosityBlockSummary_()

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

Definition at line 266 of file OutputModuleBase.h.

266 {}

◆ doBeginProcessBlock()

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

Definition at line 144 of file OutputModuleBase.h.

144 {}

◆ doBeginRun()

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

Definition at line 290 of file OutputModuleBase.cc.

290  {
291  RunForOutput r(info, moduleDescription_, mcc, false);
292  r.setConsumer(this);
293  doBeginRun_(r);
294  return true;
295  }

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

◆ doBeginRun_()

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

Definition at line 261 of file OutputModuleBase.h.

261 {}

Referenced by doBeginRun().

◆ doBeginRunSummary_()

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

Definition at line 262 of file OutputModuleBase.h.

262 {}

◆ doBeginStream()

void edm::global::OutputModuleBase::doBeginStream ( StreamID  id)
inlineprotected

Definition at line 131 of file OutputModuleBase.h.

131 { doBeginStream_(id); }

References doBeginStream_().

◆ doBeginStream_()

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

Definition at line 252 of file OutputModuleBase.h.

252 {}

Referenced by doBeginStream().

◆ doCloseFile()

void OutputModuleBase::doCloseFile ( )
private

Tell the OutputModule that is must end the current file.

Definition at line 348 of file OutputModuleBase.cc.

348  {
349  if (isFileOpen()) {
350  reallyCloseFile();
351  }
352  }

References isFileOpen(), and reallyCloseFile().

◆ doEndJob()

void OutputModuleBase::doEndJob ( )
protected

Definition at line 229 of file OutputModuleBase.cc.

229 { endJob(); }

References endJob().

◆ doEndLuminosityBlock()

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

Definition at line 325 of file OutputModuleBase.cc.

325  {
327  lb.setConsumer(this);
329  return true;
330  }

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

◆ doEndLuminosityBlock_()

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

Definition at line 267 of file OutputModuleBase.h.

267 {}

Referenced by doEndLuminosityBlock().

◆ doEndLuminosityBlockSummary_()

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

Definition at line 268 of file OutputModuleBase.h.

268 {}

◆ doEndProcessBlock()

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

Definition at line 146 of file OutputModuleBase.h.

146 {}

◆ doEndRun()

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

Definition at line 297 of file OutputModuleBase.cc.

297  {
298  RunForOutput r(info, moduleDescription_, mcc, true);
299  r.setConsumer(this);
300  doEndRun_(r);
301  return true;
302  }

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

◆ doEndRun_()

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

Definition at line 263 of file OutputModuleBase.h.

263 {}

Referenced by doEndRun().

◆ doEndRunSummary_()

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

Definition at line 264 of file OutputModuleBase.h.

264 {}

◆ doEndStream()

void edm::global::OutputModuleBase::doEndStream ( StreamID  id)
inlineprotected

Definition at line 132 of file OutputModuleBase.h.

132 { doEndStream_(id); }

References doEndStream_().

◆ doEndStream_()

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

Definition at line 253 of file OutputModuleBase.h.

253 {}

Referenced by doEndStream().

◆ doEvent()

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

Definition at line 256 of file OutputModuleBase.cc.

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

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

◆ doOpenFile()

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

Definition at line 339 of file OutputModuleBase.cc.

339 { openFile(fb); }

References openFile().

◆ doPreallocate()

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

Definition at line 210 of file OutputModuleBase.cc.

210  {
211  auto nstreams = iPC.numberOfStreams();
212  selectors_.resize(nstreams);
213 
214  bool seenFirst = false;
215  for (auto& s : selectors_) {
216  if (seenFirst) {
218  } else {
219  seenFirst = true;
220  }
221  }
222  preallocStreams(nstreams);
223  preallocLumis(iPC.numberOfLuminosityBlocks());
224  preallocate(iPC);
225  }

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::global::OutputModuleBase::doRegisterThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivate

Definition at line 220 of file OutputModuleBase.h.

220 {}

◆ doRespondToCloseInputFile()

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

Definition at line 346 of file OutputModuleBase.cc.

References doRespondToCloseInputFile_().

◆ doRespondToCloseInputFile_()

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

Reimplemented in edm::global::outputmodule::InputFileWatcher.

Definition at line 270 of file OutputModuleBase.h.

270 {}

Referenced by doRespondToCloseInputFile().

◆ doRespondToCloseOutputFile()

void edm::global::OutputModuleBase::doRespondToCloseOutputFile ( )
inlineprivate

Definition at line 219 of file OutputModuleBase.h.

219 {}

◆ doRespondToOpenInputFile()

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

◆ doRespondToOpenInputFile_()

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

Reimplemented in edm::global::outputmodule::InputFileWatcher.

Definition at line 269 of file OutputModuleBase.h.

269 {}

Referenced by doRespondToOpenInputFile().

◆ doStreamBeginLuminosityBlock_()

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

Definition at line 257 of file OutputModuleBase.h.

257 {}

◆ doStreamBeginRun_()

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

Definition at line 254 of file OutputModuleBase.h.

254 {}

◆ doStreamEndLuminosityBlock_()

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

Definition at line 258 of file OutputModuleBase.h.

258 {}

◆ doStreamEndLuminosityBlockSummary_()

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

Definition at line 259 of file OutputModuleBase.h.

259 {}

◆ doStreamEndRun_()

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

Definition at line 255 of file OutputModuleBase.h.

255 {}

◆ doStreamEndRunSummary_()

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

Definition at line 256 of file OutputModuleBase.h.

256 {}

◆ doWriteLuminosityBlock()

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

Definition at line 332 of file OutputModuleBase.cc.

333  {
334  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
335  lb.setConsumer(this);
337  }

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

◆ doWriteProcessBlock()

void OutputModuleBase::doWriteProcessBlock ( ProcessBlockPrincipal const &  pbp,
ModuleCallingContext const *  mcc 
)
private

Definition at line 304 of file OutputModuleBase.cc.

304  {
305  ProcessBlockForOutput pb(pbp, moduleDescription_, mcc, true);
306  pb.setConsumer(this);
307  writeProcessBlock(pb);
308  }

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

◆ doWriteRun()

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

Definition at line 310 of file OutputModuleBase.cc.

312  {
313  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
314  r.setConsumer(this);
315  writeRun(r);
316  }

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

◆ droppedBranchIDToKeptBranchID()

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

Definition at line 158 of file OutputModuleBase.h.

158  {
160  }

References droppedBranchIDToKeptBranchID_.

◆ endJob()

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

Definition at line 242 of file OutputModuleBase.h.

242 {}

Referenced by doEndJob().

◆ fillDescription()

void OutputModuleBase::fillDescription ( ParameterSetDescription desc)
static

◆ fillDescriptions()

void OutputModuleBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 371 of file OutputModuleBase.cc.

371  {
373  desc.setUnknown();
374  descriptions.addDefault(desc);
375  }

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

◆ hasAccumulator()

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

Definition at line 276 of file OutputModuleBase.h.

276 { return false; }

◆ hasAcquire()

virtual bool edm::global::OutputModuleBase::hasAcquire ( ) const
inlineprivatevirtual

Definition at line 275 of file OutputModuleBase.h.

275 { return false; }

◆ hasNewlyDroppedBranch()

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

Definition at line 95 of file OutputModuleBase.h.

95 { return hasNewlyDroppedBranch_; }

References hasNewlyDroppedBranch_.

◆ isFileOpen()

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

Definition at line 247 of file OutputModuleBase.h.

247 { 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 161 of file OutputModuleBase.cc.

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

References cms::cuda::assert(), edm::checkDictionary(), edm::ProductSelector::checkForDuplicateKeptBranch(), edm::EDConsumerBase::consumes(), visDQMUpload::context, 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::global::OutputModuleBase::keptProducts ( ) const
inline

◆ limitReached()

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

Definition at line 284 of file OutputModuleBase.h.

284 { return remainingEvents_ == 0; }

References remainingEvents_.

◆ maxEvents()

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

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

Definition at line 84 of file OutputModuleBase.h.

84 { return maxEvents_; }

References maxEvents_.

◆ moduleDescription()

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

Definition at line 110 of file OutputModuleBase.h.

110 { return moduleDescription_; }

References moduleDescription_.

Referenced by evf::GlobalEvFOutputModule::globalBeginRun().

◆ needToRunSelection()

bool OutputModuleBase::needToRunSelection ( ) const
private

Definition at line 231 of file OutputModuleBase.cc.

231 { return !wantAllEvents_; }

References wantAllEvents_.

◆ openFile()

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

Definition at line 246 of file OutputModuleBase.h.

246 {}

Referenced by doOpenFile().

◆ operator=()

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

◆ outputProcessBlockHelper()

OutputProcessBlockHelper const& edm::global::OutputModuleBase::outputProcessBlockHelper ( ) const
inline

Definition at line 106 of file OutputModuleBase.h.

106 { return outputProcessBlockHelper_; }

References outputProcessBlockHelper_.

◆ preActionBeforeRunEventAsync()

void edm::global::OutputModuleBase::preActionBeforeRunEventAsync ( WaitingTaskHolder  iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprotected

Definition at line 140 of file OutputModuleBase.h.

142  {}

◆ preallocate()

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

Definition at line 251 of file OutputModuleBase.h.

251 {}

Referenced by doPreallocate().

◆ preallocLumis()

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

Definition at line 250 of file OutputModuleBase.h.

250 {}

Referenced by doPreallocate().

◆ preallocStreams()

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

Definition at line 249 of file OutputModuleBase.h.

249 {}

Referenced by doPreallocate().

◆ prePrefetchSelection()

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

Definition at line 245 of file OutputModuleBase.cc.

247  {
248  if (wantAllEvents_)
249  return true;
250  auto& s = selectors_[id.value()];
251  EventForOutput e(ep, moduleDescription_, mcc);
252  e.setConsumer(this);
253  return s.wantEvent(e);
254  }

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

◆ prevalidate()

void OutputModuleBase::prevalidate ( ConfigurationDescriptions )
static

Definition at line 382 of file OutputModuleBase.cc.

382 {}

◆ processName()

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

Definition at line 93 of file OutputModuleBase.h.

93 { return process_name_; }

References process_name_.

◆ productsUsedBySelection()

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

Definition at line 233 of file OutputModuleBase.cc.

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

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

◆ reallyCloseFile()

void OutputModuleBase::reallyCloseFile ( )
privatevirtual

Definition at line 354 of file OutputModuleBase.cc.

354 {}

Referenced by doCloseFile().

◆ registerProductsAndCallbacks()

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

Definition at line 227 of file OutputModuleBase.h.

227 {}

◆ remainingEvents()

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

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

Definition at line 88 of file OutputModuleBase.h.

88 { return remainingEvents_; }

References remainingEvents_.

Referenced by doEvent().

◆ selected()

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

◆ selectorConfig()

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

Definition at line 124 of file OutputModuleBase.h.

124 { return selector_config_id_; }

References selector_config_id_.

Referenced by evf::GlobalEvFOutputModule::acquire().

◆ selectProducts()

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

Definition at line 84 of file OutputModuleBase.cc.

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

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

◆ setEventSelectionInfo()

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

◆ setModuleDescription()

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

Definition at line 282 of file OutputModuleBase.h.

282 { moduleDescription_ = md; }

References moduleDescription_.

◆ setProcessesWithSelectedMergeableRunProducts()

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

Definition at line 273 of file OutputModuleBase.h.

273 {}

Referenced by selectProducts().

◆ shouldWeCloseFile()

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

Ask the OutputModule if we should end the current file.

Definition at line 238 of file OutputModuleBase.h.

238 { return false; }

◆ thinnedAssociationsHelper()

ThinnedAssociationsHelper const * OutputModuleBase::thinnedAssociationsHelper ( ) const

Definition at line 363 of file OutputModuleBase.cc.

363  {
364  return thinnedAssociationsHelper_.get();
365  }

References thinnedAssociationsHelper_.

Referenced by evf::GlobalEvFOutputModule::globalBeginRun(), and selectProducts().

◆ updateBranchIDListsWithKeptAliases()

void OutputModuleBase::updateBranchIDListsWithKeptAliases ( )
private

Definition at line 142 of file OutputModuleBase.cc.

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

References branchIDLists_, droppedBranchIDToKeptBranchID_, and origBranchIDLists_.

Referenced by doRespondToOpenInputFile().

◆ wantAllEvents()

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

Definition at line 102 of file OutputModuleBase.h.

102 { return wantAllEvents_; }

References wantAllEvents_.

◆ wantsGlobalLuminosityBlocks()

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

Definition at line 114 of file OutputModuleBase.h.

114 { return true; }

◆ wantsGlobalRuns()

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

Definition at line 113 of file OutputModuleBase.h.

113 { return true; }

◆ wantsInputProcessBlocks()

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

◆ wantsProcessBlocks()

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

◆ wantsStreamLuminosityBlocks()

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

◆ wantsStreamRuns()

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

◆ workerType()

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

Definition at line 222 of file OutputModuleBase.h.

222 { return "WorkerT<edm::global::OutputModuleBase>"; }

◆ write()

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

◆ writeLuminosityBlock()

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

◆ writeProcessBlock()

virtual void edm::global::OutputModuleBase::writeProcessBlock ( ProcessBlockForOutput const &  )
inlineprivatevirtual

Definition at line 245 of file OutputModuleBase.h.

245 {}

Referenced by doWriteProcessBlock().

◆ writeRun()

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

Implemented in edm::AsciiOutputModule, and evf::GlobalEvFOutputModule.

Referenced by doWriteRun().

Friends And Related Function Documentation

◆ ::edm::OutputModuleCommunicatorT

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

Definition at line 73 of file OutputModuleBase.h.

◆ ::edm::WorkerT

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

Definition at line 71 of file OutputModuleBase.h.

◆ edm::maker::ModuleHolderT

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

Definition at line 69 of file OutputModuleBase.h.

Member Data Documentation

◆ branchIDLists_

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

Definition at line 199 of file OutputModuleBase.h.

Referenced by branchIDLists(), and updateBranchIDListsWithKeptAliases().

◆ droppedBranchIDToKeptBranchID_

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

◆ hasNewlyDroppedBranch_

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

Definition at line 182 of file OutputModuleBase.h.

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

◆ keepAssociation_

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

Definition at line 203 of file OutputModuleBase.h.

Referenced by selectProducts().

◆ keptProducts_

SelectedProductsForBranchType edm::global::OutputModuleBase::keptProducts_
private

Definition at line 181 of file OutputModuleBase.h.

Referenced by keepThisBranch(), and keptProducts().

◆ maxEvents_

int edm::global::OutputModuleBase::maxEvents_
private

Definition at line 163 of file OutputModuleBase.h.

Referenced by configure(), and maxEvents().

◆ moduleDescription_

ModuleDescription edm::global::OutputModuleBase::moduleDescription_
private

◆ origBranchIDLists_

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

◆ outputProcessBlockHelper_

OutputProcessBlockHelper edm::global::OutputModuleBase::outputProcessBlockHelper_
private

Definition at line 205 of file OutputModuleBase.h.

Referenced by outputProcessBlockHelper(), and selectProducts().

◆ process_name_

std::string edm::global::OutputModuleBase::process_name_
private

Definition at line 184 of file OutputModuleBase.h.

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

◆ productSelector_

ProductSelector edm::global::OutputModuleBase::productSelector_
private

Definition at line 186 of file OutputModuleBase.h.

Referenced by selected(), and selectProducts().

◆ productSelectorRules_

ProductSelectorRules edm::global::OutputModuleBase::productSelectorRules_
private

Definition at line 185 of file OutputModuleBase.h.

Referenced by selectProducts().

◆ remainingEvents_

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

Definition at line 164 of file OutputModuleBase.h.

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

◆ selectEvents_

ParameterSet edm::global::OutputModuleBase::selectEvents_
private

Definition at line 191 of file OutputModuleBase.h.

Referenced by doPreallocate(), and OutputModuleBase().

◆ selector_config_id_

ParameterSetID edm::global::OutputModuleBase::selector_config_id_
private

Definition at line 194 of file OutputModuleBase.h.

Referenced by OutputModuleBase(), and selectorConfig().

◆ selectors_

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

◆ thinnedAssociationsHelper_

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

Definition at line 202 of file OutputModuleBase.h.

Referenced by selectProducts(), and thinnedAssociationsHelper().

◆ wantAllEvents_

bool edm::global::OutputModuleBase::wantAllEvents_
private
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:113
edm::global::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::global::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:261
mps_fire.i
i
Definition: mps_fire.py:428
TypeToGet
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::global::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:185
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::global::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:273
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes, std::set< std::string > &processesWithKeptProcessBlockProducts)
Definition: insertSelectedProcesses.cc:15
edm::global::OutputModuleBase::updateBranchIDListsWithKeptAliases
void updateBranchIDListsWithKeptAliases()
Definition: OutputModuleBase.cc:142
edm::global::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:354
edm::global::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:194
edm::global::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:88
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:89301
cms::cuda::assert
assert(be >=bs)
edm::propagate_const::get
constexpr element_type const * get() const
Definition: propagate_const.h:64
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::InRun
Definition: BranchType.h:11
edm::global::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:267
visDQMUpload.context
context
Definition: visDQMUpload.py:37
LuminosityBlockForOutput
edm::global::OutputModuleBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.h:251
edm::EDConsumerBase::uncheckedIndexFrom
ProductResolverIndexAndSkipBit uncheckedIndexFrom(EDGetToken) const
Definition: EDConsumerBase.cc:270
edm::InProcess
Definition: BranchType.h:11
edm::global::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:187
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::global::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:242
edm::global::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:200
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
RunForOutput
edm::BranchIDList
std::vector< BranchID::value_type > BranchIDList
Definition: BranchIDList.h:18
edm::global::OutputModuleBase::writeProcessBlock
virtual void writeProcessBlock(ProcessBlockForOutput const &)
Definition: OutputModuleBase.h:245
edm::ProductSelector::checkForDuplicateKeptBranch
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
Definition: ProductSelector.cc:71
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
edm::global::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:181
edm::global::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:241
Service
edm::InEvent
Definition: BranchType.h:11
edm::global::OutputModuleBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: OutputModuleBase.h:249
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::global::OutputModuleBase::openFile
virtual void openFile(FileBlock const &)
Definition: OutputModuleBase.h:246
edm::global::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:161
edm::global::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:263
edm::global::OutputModuleBase::doBeginStream_
virtual void doBeginStream_(StreamID)
Definition: OutputModuleBase.h:252
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::global::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:270
edm::global::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:203
edm::global::OutputModuleBase::outputProcessBlockHelper_
OutputProcessBlockHelper outputProcessBlockHelper_
Definition: OutputModuleBase.h:205
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::global::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:184
edm::global::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:269
edm::OutputProcessBlockHelper::updateAfterProductSelection
void updateAfterProductSelection(std::set< std::string > const &processesWithKeptProcessBlockProducts, ProcessBlockHelperBase const &)
Definition: OutputProcessBlockHelper.cc:12
edm::global::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:163
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
edm::global::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:191
EDGetToken
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::global::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:198
edm::EventSelector::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSelector.cc:992
edm::global::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:186
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LCToCPAssociatorByEnergyScoreImpl.h:44
ParameterSetDescription
edm::global::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:202
edm::global::OutputModuleBase::writeRun
virtual void writeRun(RunForOutput const &)=0
edm::global::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
edm::global::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:182
edm::global::OutputModuleBase::remainingEvents_
std::atomic< int > remainingEvents_
Definition: OutputModuleBase.h:164
edm::global::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:369
edm::checkDictionary
bool checkDictionary(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
Definition: DictionaryTools.cc:67
edm::global::OutputModuleBase::doEndStream_
virtual void doEndStream_(StreamID)
Definition: OutputModuleBase.h:253
edm::global::OutputModuleBase::doAcquire_
virtual void doAcquire_(StreamID, EventForOutput const &, WaitingTaskWithArenaHolder &)
Definition: OutputModuleBase.h:271
edm::global::OutputModuleBase::isFileOpen
virtual bool isFileOpen() const
Definition: OutputModuleBase.h:247
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:159
edm::global::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:199
edm::global::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:265
edm::global::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:189
edm::global::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:363
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::global::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.h:250
edm::global::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:190
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::global::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316