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

#include <OutputModuleBase.h>

Inheritance diagram for edm::one::OutputModuleBase:
edm::EDConsumerBase edm::one::OutputModule< T > edm::one::outputmodule::InputFileWatcher edm::one::outputmodule::LuminosityBlockCacheHolder< C > edm::one::outputmodule::LuminosityBlockWatcher edm::one::outputmodule::RunCacheHolder< C > edm::one::outputmodule::RunWatcher edm::one::OutputModule< edm::one::WatchLuminosityBlocks > edm::one::OutputModule< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks > edm::one::OutputModule< one::WatchRuns, one::WatchLuminosityBlocks > edm::one::OutputModule< WatchInputFiles > edm::one::OutputModule<>

Public Types

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

Public Member Functions

BranchIDLists const * branchIDLists ()
 
virtual SerialTaskQueueglobalLuminosityBlocksQueue ()
 
virtual SerialTaskQueueglobalRunsQueue ()
 
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
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &)
 
SharedResourcesAcquirersharedResourcesAcquirer ()
 
SubProcessParentageHelper const * subProcessParentageHelper () const
 
ThinnedAssociationsHelper const * thinnedAssociationsHelper () const
 
bool wantAllEvents () const
 
virtual bool wantsGlobalLuminosityBlocks () const =0
 
virtual bool wantsGlobalRuns () const =0
 
virtual bool wantsInputProcessBlocks () const =0
 
virtual bool wantsProcessBlocks () const =0
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~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, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
 
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 doEndJob ()
 
bool doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doEndRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID ()
 
virtual void preallocLumis (unsigned int)
 
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 SharedResourcesAcquirer createAcquirer ()
 
virtual void doBeginLuminosityBlock_ (LuminosityBlockForOutput const &)
 
virtual void doBeginRun_ (RunForOutput const &)
 
void doCloseFile ()
 Tell the OutputModule that is must end the current file. More...
 
virtual void doEndLuminosityBlock_ (LuminosityBlockForOutput const &)
 
virtual void doEndRun_ (RunForOutput const &)
 
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 &)
 
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 &)
 
virtual void preActionBeforeRunEventAsync (WaitingTaskHolder iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
 
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...
 
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_
 
SerialTaskQueue luminosityBlockQueue_
 
int maxEvents_
 
ModuleDescription moduleDescription_
 
BranchIDLists const * origBranchIDLists_
 
std::string process_name_
 
ProductSelector productSelector_
 
ProductSelectorRules productSelectorRules_
 
std::atomic< int > remainingEvents_
 
SharedResourcesAcquirer resourcesAcquirer_
 
SerialTaskQueue runQueue_
 
ParameterSet selectEvents_
 
ParameterSetID selector_config_id_
 
std::vector< detail::TriggerResultsBasedEventSelectorselectors_
 
SubProcessParentageHelper const * subProcessParentageHelper_
 
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 67 of file OutputModuleBase.h.

Member Typedef Documentation

◆ ModuleType

Definition at line 75 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 186 of file OutputModuleBase.cc.

186 {}

◆ OutputModuleBase() [2/2]

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

Member Function Documentation

◆ baseType()

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

Definition at line 359 of file OutputModuleBase.cc.

359 { return kBaseType; }

References edm::one::kBaseType().

◆ beginJob()

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

◆ branchIDLists()

BranchIDLists const * OutputModuleBase::branchIDLists ( )

Definition at line 316 of file OutputModuleBase.cc.

316  {
317  if (!droppedBranchIDToKeptBranchID_.empty()) {
318  // Make a private copy of the BranchIDLists.
320  // Check for branches dropped while an EDAlias was kept.
321  for (BranchIDList& branchIDList : *branchIDLists_) {
322  for (BranchID::value_type& branchID : branchIDList) {
323  // Replace BranchID of each dropped branch with that of the kept alias, so the alias branch will have the product ID of the original branch.
324  std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter =
325  droppedBranchIDToKeptBranchID_.find(branchID);
326  if (iter != droppedBranchIDToKeptBranchID_.end()) {
327  branchID = iter->second;
328  }
329  }
330  }
331  return branchIDLists_.get();
332  }
333  return origBranchIDLists_;
334  }

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

Referenced by edm::StreamerOutputModuleBase::beginRun(), and evf::EvFOutputModule::beginRun().

◆ 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  subProcessParentageHelper_ = desc.subProcessParentageHelper_;
83  }

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

◆ createAcquirer()

SharedResourcesAcquirer OutputModuleBase::createAcquirer ( )
privatevirtual

Definition at line 188 of file OutputModuleBase.cc.

188  {
190  std::vector<std::shared_ptr<SerialTaskQueue>>(1, std::make_shared<SerialTaskQueue>())};
191  }

Referenced by doBeginJob().

◆ description()

ModuleDescription const & OutputModuleBase::description ( ) const
protected

◆ doAccessInputProcessBlock()

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

Definition at line 139 of file OutputModuleBase.h.

139 {}

◆ doBeginJob()

void OutputModuleBase::doBeginJob ( )
protected

Definition at line 211 of file OutputModuleBase.cc.

211  {
213  this->beginJob();
214  }

References beginJob(), createAcquirer(), and resourcesAcquirer_.

◆ doBeginLuminosityBlock()

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

Definition at line 280 of file OutputModuleBase.cc.

280  {
282  lb.setConsumer(this);
284  return true;
285  }

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

◆ doBeginLuminosityBlock_()

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

◆ doBeginProcessBlock()

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

Definition at line 138 of file OutputModuleBase.h.

138 {}

◆ doBeginRun()

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

Definition at line 258 of file OutputModuleBase.cc.

258  {
259  RunForOutput r(info, moduleDescription_, mcc, false);
260  r.setConsumer(this);
261  doBeginRun_(r);
262  return true;
263  }

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

◆ doBeginRun_()

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

Reimplemented in edm::one::outputmodule::RunWatcher, and edm::one::outputmodule::RunCacheHolder< C >.

Definition at line 249 of file OutputModuleBase.h.

249 {}

Referenced by doBeginRun().

◆ doCloseFile()

void OutputModuleBase::doCloseFile ( )
private

Tell the OutputModule that is must end the current file.

Definition at line 308 of file OutputModuleBase.cc.

308  {
309  if (isFileOpen()) {
310  reallyCloseFile();
311  }
312  }

References isFileOpen(), and reallyCloseFile().

◆ doEndJob()

void OutputModuleBase::doEndJob ( )
protected

Definition at line 216 of file OutputModuleBase.cc.

216 { endJob(); }

References endJob().

◆ doEndLuminosityBlock()

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

Definition at line 287 of file OutputModuleBase.cc.

287  {
289  lb.setConsumer(this);
291 
292  return true;
293  }

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

◆ doEndLuminosityBlock_()

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

◆ doEndProcessBlock()

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

Definition at line 140 of file OutputModuleBase.h.

140 {}

◆ doEndRun()

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

Definition at line 265 of file OutputModuleBase.cc.

265  {
266  RunForOutput r(info, moduleDescription_, mcc, true);
267  r.setConsumer(this);
268  doEndRun_(r);
269  return true;
270  }

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

◆ doEndRun_()

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

Reimplemented in edm::one::outputmodule::RunWatcher, and edm::one::outputmodule::RunCacheHolder< C >.

Definition at line 250 of file OutputModuleBase.h.

250 {}

Referenced by doEndRun().

◆ doEvent()

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

Definition at line 243 of file OutputModuleBase.cc.

245  {
246  {
247  EventForOutput e(info, moduleDescription_, mcc);
248  e.setConsumer(this);
249  EventSignalsSentry sentry(act, mcc);
250  write(e);
251  }
252  if (remainingEvents_ > 0) {
254  }
255  return true;
256  }

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

◆ doOpenFile()

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

Definition at line 302 of file OutputModuleBase.cc.

302 { openFile(fb); }

References benchmark_cfg::fb, and openFile().

◆ doPreallocate()

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

Definition at line 193 of file OutputModuleBase.cc.

193  {
194  auto nstreams = iPC.numberOfStreams();
195  selectors_.resize(nstreams);
196 
197  preallocLumis(iPC.numberOfLuminosityBlocks());
198 
199  bool seenFirst = false;
200  for (auto& s : selectors_) {
201  if (seenFirst) {
203  } else {
204  seenFirst = true;
205  }
206  }
207  }

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

◆ doRegisterThinnedAssociations()

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

Definition at line 217 of file OutputModuleBase.h.

217 {}

◆ doRespondToCloseInputFile()

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

◆ doRespondToCloseInputFile_()

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

Reimplemented in edm::one::outputmodule::InputFileWatcher.

Definition at line 254 of file OutputModuleBase.h.

254 {}

Referenced by doRespondToCloseInputFile().

◆ doRespondToOpenInputFile()

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

Definition at line 304 of file OutputModuleBase.cc.

References doRespondToOpenInputFile_(), and benchmark_cfg::fb.

◆ doRespondToOpenInputFile_()

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

Reimplemented in edm::one::outputmodule::InputFileWatcher.

Definition at line 253 of file OutputModuleBase.h.

253 {}

Referenced by doRespondToOpenInputFile().

◆ doWriteLuminosityBlock()

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

Definition at line 295 of file OutputModuleBase.cc.

296  {
297  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
298  lb.setConsumer(this);
300  }

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

◆ doWriteProcessBlock()

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

Definition at line 211 of file OutputModuleBase.h.

211 {}

◆ doWriteRun()

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

Definition at line 272 of file OutputModuleBase.cc.

274  {
275  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
276  r.setConsumer(this);
277  writeRun(r);
278  }

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

◆ droppedBranchIDToKeptBranchID()

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

Definition at line 152 of file OutputModuleBase.h.

152  {
154  }

References droppedBranchIDToKeptBranchID_.

◆ endJob()

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

Reimplemented in edm::StreamerOutputModuleBase.

Definition at line 243 of file OutputModuleBase.h.

243 {}

Referenced by doEndJob().

◆ fillDescription()

void OutputModuleBase::fillDescription ( ParameterSetDescription desc,
std::vector< std::string > const &  iDefaultOutputCommands = ProductSelectorRules::defaultSelectionStrings() 
)
static

◆ fillDescriptions()

void OutputModuleBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 344 of file OutputModuleBase.cc.

344  {
346  desc.setUnknown();
347  descriptions.addDefault(desc);
348  }

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

◆ globalLuminosityBlocksQueue()

virtual SerialTaskQueue* edm::one::OutputModuleBase::globalLuminosityBlocksQueue ( )
inlinevirtual

◆ globalRunsQueue()

virtual SerialTaskQueue* edm::one::OutputModuleBase::globalRunsQueue ( )
inlinevirtual

◆ hasAccumulator()

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

Definition at line 259 of file OutputModuleBase.h.

259 { return false; }

◆ hasAcquire()

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

Definition at line 258 of file OutputModuleBase.h.

258 { return false; }

◆ hasNewlyDroppedBranch()

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

Definition at line 96 of file OutputModuleBase.h.

96 { return hasNewlyDroppedBranch_; }

References hasNewlyDroppedBranch_.

◆ isFileOpen()

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

Reimplemented in DQMRootOutputModule, edm::PoolOutputModule, and NanoAODOutputModule.

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

141  {
142  ProductSelector::checkForDuplicateKeptBranch(desc, trueBranchIDToKeptBranchDesc);
143 
145 
146  std::vector<std::string> missingDictionaries;
147  if (!checkDictionary(missingDictionaries, desc.className(), desc.unwrappedType())) {
148  std::string context("Calling OutputModuleBase::keepThisBranch, checking dictionaries for kept types");
149  throwMissingDictionariesException(missingDictionaries, context);
150  }
151 
152  switch (desc.branchType()) {
153  case InEvent: {
154  if (desc.produced()) {
155  keptProductsInEvent.insert(desc.originalBranchID());
156  } else {
157  keptProductsInEvent.insert(desc.branchID());
158  }
159  token = consumes(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
160  InputTag{desc.moduleLabel(), desc.productInstanceName(), desc.processName()});
161  break;
162  }
163  case InLumi: {
164  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
165  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
166  break;
167  }
168  case InRun: {
169  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
170  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
171  break;
172  }
173  case InProcess: {
174  token = consumes<InProcess>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
175  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
176  break;
177  }
178  default:
179  assert(false);
180  break;
181  }
182  // Now put it in the list of selected branches.
183  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
184  }

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::one::OutputModuleBase::keptProducts ( ) const
inline

◆ limitReached()

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

Definition at line 267 of file OutputModuleBase.h.

267 { return remainingEvents_ == 0; }

References remainingEvents_.

◆ maxEvents()

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

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

Definition at line 85 of file OutputModuleBase.h.

85 { return maxEvents_; }

References maxEvents_.

◆ moduleDescription()

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

◆ needToRunSelection()

bool OutputModuleBase::needToRunSelection ( ) const
private

Definition at line 218 of file OutputModuleBase.cc.

218 { return !wantAllEvents_; }

References wantAllEvents_.

◆ openFile()

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

Reimplemented in edm::PoolOutputModule, DQMRootOutputModule, and NanoAODOutputModule.

Definition at line 246 of file OutputModuleBase.h.

246 {}

Referenced by doOpenFile().

◆ operator=()

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

◆ preActionBeforeRunEventAsync()

virtual void edm::one::OutputModuleBase::preActionBeforeRunEventAsync ( WaitingTaskHolder  iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
inlineprivatevirtual

Reimplemented in edm::PoolOutputModule.

Definition at line 238 of file OutputModuleBase.h.

240  {}

◆ preallocLumis()

void OutputModuleBase::preallocLumis ( unsigned int  )
protectedvirtual

Reimplemented in edm::one::outputmodule::LuminosityBlockCacheHolder< C >.

Definition at line 209 of file OutputModuleBase.cc.

209 {}

Referenced by doPreallocate().

◆ prePrefetchSelection()

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

Definition at line 232 of file OutputModuleBase.cc.

234  {
235  if (wantAllEvents_)
236  return true;
237  auto& s = selectors_[id.value()];
238  EventForOutput e(ep, moduleDescription_, mcc);
239  e.setConsumer(this);
240  return s.wantEvent(e);
241  }

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

◆ prevalidate()

void OutputModuleBase::prevalidate ( ConfigurationDescriptions )
static

Definition at line 356 of file OutputModuleBase.cc.

356 {}

◆ processName()

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

Definition at line 94 of file OutputModuleBase.h.

94 { return process_name_; }

References process_name_.

Referenced by DQMRootOutputModule::startEndFile().

◆ productsUsedBySelection()

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

Definition at line 220 of file OutputModuleBase.cc.

220  {
221  std::vector<ProductResolverIndexAndSkipBit> returnValue;
222  auto const& s = selectors_[0];
223  auto const n = s.numberOfTokens();
224  returnValue.reserve(n);
225 
226  for (unsigned int i = 0; i < n; ++i) {
227  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
228  }
229  return returnValue;
230  }

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

◆ reallyCloseFile()

void OutputModuleBase::reallyCloseFile ( )
privatevirtual

Reimplemented in DQMRootOutputModule, edm::PoolOutputModule, and NanoAODOutputModule.

Definition at line 314 of file OutputModuleBase.cc.

314 {}

Referenced by doCloseFile().

◆ registerProductsAndCallbacks()

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

Definition at line 224 of file OutputModuleBase.h.

224 {}

◆ remainingEvents()

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

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

Definition at line 89 of file OutputModuleBase.h.

89 { return remainingEvents_; }

References remainingEvents_.

Referenced by edm::PoolOutputModule::beginInputFile().

◆ selected()

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

◆ selectorConfig()

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

Definition at line 130 of file OutputModuleBase.h.

130 { return selector_config_id_; }

References selector_config_id_.

Referenced by edm::StreamerOutputModuleBase::write(), and evf::EvFOutputModule::write().

◆ selectProducts()

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

Definition at line 85 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 
100  for (auto const& it : preg.productList()) {
101  BranchDescription const& desc = it.second;
102  if (desc.transient()) {
103  // if the class of the branch is marked transient, output nothing
104  } else if (!desc.present() && !desc.produced()) {
105  // else if the branch containing the product has been previously dropped,
106  // output nothing
107  } else if (desc.unwrappedType() == typeid(ThinnedAssociation)) {
108  associationDescriptions.push_back(&desc);
109  } else if (selected(desc)) {
110  keepThisBranch(desc, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
111  insertSelectedProcesses(desc, processesWithSelectedMergeableRunProducts);
112  } else {
113  // otherwise, output nothing,
114  // and mark the fact that there is a newly dropped branch of this type.
115  hasNewlyDroppedBranch_[desc.branchType()] = true;
116  }
117  }
118 
119  setProcessesWithSelectedMergeableRunProducts(processesWithSelectedMergeableRunProducts);
120 
122  associationDescriptions, keptProductsInEvent, keepAssociation_);
123 
124  for (auto association : associationDescriptions) {
125  if (keepAssociation_[association->branchID()]) {
126  keepThisBranch(*association, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
127  } else {
128  hasNewlyDroppedBranch_[association->branchType()] = true;
129  }
130  }
131 
132  // Now fill in a mapping needed in the case that a branch was dropped while its EDAlias was kept.
133  ProductSelector::fillDroppedToKept(preg, trueBranchIDToKeptBranchDesc, droppedBranchIDToKeptBranchID_);
134 
135  thinnedAssociationsHelper_->updateFromParentProcess(
137  }

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 OutputModuleBase::setEventSelectionInfo ( std::map< std::string, std::vector< std::pair< std::string, int >>> const &  outputModulePathPositions,
bool  anyProductProduced 
)
protected

◆ setModuleDescription()

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

Definition at line 265 of file OutputModuleBase.h.

265 { moduleDescription_ = md; }

References moduleDescription_.

◆ setProcessesWithSelectedMergeableRunProducts()

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

Reimplemented in edm::PoolOutputModule.

Definition at line 256 of file OutputModuleBase.h.

256 {}

Referenced by selectProducts().

◆ sharedResourcesAcquirer()

SharedResourcesAcquirer& edm::one::OutputModuleBase::sharedResourcesAcquirer ( )
inline

Definition at line 115 of file OutputModuleBase.h.

115 { return resourcesAcquirer_; }

References resourcesAcquirer_.

◆ shouldWeCloseFile()

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

Ask the OutputModule if we should end the current file.

Reimplemented in edm::PoolOutputModule, and edm::TimeoutPoolOutputModule.

Definition at line 235 of file OutputModuleBase.h.

235 { return false; }

◆ subProcessParentageHelper()

SubProcessParentageHelper const* edm::one::OutputModuleBase::subProcessParentageHelper ( ) const
inline

Definition at line 123 of file OutputModuleBase.h.

123 { return subProcessParentageHelper_; }

References subProcessParentageHelper_.

Referenced by edm::PoolOutputModule::updateBranchParents().

◆ thinnedAssociationsHelper()

ThinnedAssociationsHelper const * OutputModuleBase::thinnedAssociationsHelper ( ) const

◆ wantAllEvents()

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

Definition at line 117 of file OutputModuleBase.h.

117 { return wantAllEvents_; }

References wantAllEvents_.

Referenced by edm::PoolOutputModule::PoolOutputModule().

◆ wantsGlobalLuminosityBlocks()

virtual bool edm::one::OutputModuleBase::wantsGlobalLuminosityBlocks ( ) const
pure virtual

◆ wantsGlobalRuns()

virtual bool edm::one::OutputModuleBase::wantsGlobalRuns ( ) const
pure virtual

◆ wantsInputProcessBlocks()

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

◆ wantsProcessBlocks()

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

◆ wantsStreamLuminosityBlocks()

bool edm::one::OutputModuleBase::wantsStreamLuminosityBlocks ( ) const
inline

Definition at line 111 of file OutputModuleBase.h.

111 { return false; };

◆ wantsStreamRuns()

bool edm::one::OutputModuleBase::wantsStreamRuns ( ) const
inline

Definition at line 110 of file OutputModuleBase.h.

110 { return false; }

◆ workerType()

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

Definition at line 219 of file OutputModuleBase.h.

219 { return "WorkerT<edm::one::OutputModuleBase>"; }

◆ write()

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

◆ writeLuminosityBlock()

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

◆ writeRun()

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

Friends And Related Function Documentation

◆ ::edm::OutputModuleCommunicatorT

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

Definition at line 74 of file OutputModuleBase.h.

◆ ::edm::WorkerT

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

Definition at line 72 of file OutputModuleBase.h.

◆ edm::maker::ModuleHolderT

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

Definition at line 70 of file OutputModuleBase.h.

Member Data Documentation

◆ branchIDLists_

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

Definition at line 193 of file OutputModuleBase.h.

Referenced by branchIDLists().

◆ droppedBranchIDToKeptBranchID_

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

◆ hasNewlyDroppedBranch_

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

Definition at line 176 of file OutputModuleBase.h.

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

◆ keepAssociation_

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

Definition at line 199 of file OutputModuleBase.h.

Referenced by selectProducts().

◆ keptProducts_

SelectedProductsForBranchType edm::one::OutputModuleBase::keptProducts_
private

Definition at line 175 of file OutputModuleBase.h.

Referenced by keepThisBranch(), and keptProducts().

◆ luminosityBlockQueue_

SerialTaskQueue edm::one::OutputModuleBase::luminosityBlockQueue_
private

Definition at line 203 of file OutputModuleBase.h.

◆ maxEvents_

int edm::one::OutputModuleBase::maxEvents_
private

Definition at line 157 of file OutputModuleBase.h.

Referenced by configure(), and maxEvents().

◆ moduleDescription_

ModuleDescription edm::one::OutputModuleBase::moduleDescription_
private

◆ origBranchIDLists_

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

Definition at line 194 of file OutputModuleBase.h.

Referenced by branchIDLists(), and configure().

◆ process_name_

std::string edm::one::OutputModuleBase::process_name_
private

Definition at line 178 of file OutputModuleBase.h.

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

◆ productSelector_

ProductSelector edm::one::OutputModuleBase::productSelector_
private

Definition at line 180 of file OutputModuleBase.h.

Referenced by selected(), and selectProducts().

◆ productSelectorRules_

ProductSelectorRules edm::one::OutputModuleBase::productSelectorRules_
private

Definition at line 179 of file OutputModuleBase.h.

Referenced by selectProducts().

◆ remainingEvents_

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

Definition at line 158 of file OutputModuleBase.h.

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

◆ resourcesAcquirer_

SharedResourcesAcquirer edm::one::OutputModuleBase::resourcesAcquirer_
private

Definition at line 201 of file OutputModuleBase.h.

Referenced by doBeginJob(), and sharedResourcesAcquirer().

◆ runQueue_

SerialTaskQueue edm::one::OutputModuleBase::runQueue_
private

Definition at line 202 of file OutputModuleBase.h.

◆ selectEvents_

ParameterSet edm::one::OutputModuleBase::selectEvents_
private

Definition at line 185 of file OutputModuleBase.h.

Referenced by doPreallocate(), and OutputModuleBase().

◆ selector_config_id_

ParameterSetID edm::one::OutputModuleBase::selector_config_id_
private

Definition at line 188 of file OutputModuleBase.h.

Referenced by OutputModuleBase(), selectorConfig(), and setEventSelectionInfo().

◆ selectors_

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

◆ subProcessParentageHelper_

SubProcessParentageHelper const* edm::one::OutputModuleBase::subProcessParentageHelper_
private

Definition at line 196 of file OutputModuleBase.h.

Referenced by configure(), and subProcessParentageHelper().

◆ thinnedAssociationsHelper_

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

Definition at line 198 of file OutputModuleBase.h.

Referenced by selectProducts(), and thinnedAssociationsHelper().

◆ wantAllEvents_

bool edm::one::OutputModuleBase::wantAllEvents_
private
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:113
edm::one::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:175
edm::one::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:249
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::one::OutputModuleBase::isFileOpen
virtual bool isFileOpen() const
Definition: OutputModuleBase.h:247
edm::getAllTriggerNames
std::vector< std::string > const & getAllTriggerNames()
Definition: getAllTriggerNames.cc:22
edm::one::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:181
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::one::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:180
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::one::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:252
edm::one::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:157
edm::ProductSelector::initialize
void initialize(ProductSelectorRules const &rules, std::vector< BranchDescription const * > const &branchDescriptions)
Definition: ProductSelector.cc:20
edm::one::OutputModuleBase::remainingEvents_
std::atomic< int > remainingEvents_
Definition: OutputModuleBase.h:158
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89281
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::one::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:251
edm::one::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:336
edm::InRun
Definition: BranchType.h:11
edm::one::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:254
LuminosityBlockForOutput
edm::EDConsumerBase::uncheckedIndexFrom
ProductResolverIndexAndSkipBit uncheckedIndexFrom(EDGetToken) const
Definition: EDConsumerBase.cc:270
edm::InProcess
Definition: BranchType.h:11
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::one::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:242
edm::one::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:243
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
edm::one::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:199
RunForOutput
edm::one::OutputModuleBase::writeRun
virtual void writeRun(RunForOutput const &)=0
edm::BranchIDList
std::vector< BranchID::value_type > BranchIDList
Definition: BranchIDList.h:18
edm::one::OutputModuleBase::subProcessParentageHelper_
SubProcessParentageHelper const * subProcessParentageHelper_
Definition: OutputModuleBase.h:196
edm::ProductSelector::checkForDuplicateKeptBranch
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
Definition: ProductSelector.cc:71
edm::one::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:179
edm::one::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:192
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::one::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:256
edm::one::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:253
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::one::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:194
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
edm::BranchID::value_type
unsigned int value_type
Definition: BranchID.h:16
SharedResourcesAcquirer
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::one::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:178
edm::one::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:185
edm::one::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:193
ParameterSet
Definition: Functions.h:16
edm::one::OutputModuleBase::resourcesAcquirer_
SharedResourcesAcquirer resourcesAcquirer_
Definition: OutputModuleBase.h:201
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::one::OutputModuleBase::openFile
virtual void openFile(FileBlock const &)
Definition: OutputModuleBase.h:246
edm::one::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:188
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::one::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:139
edm::one::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.cc:209
EDGetToken
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:862
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::one::OutputModuleBase::description
ModuleDescription const & description() const
Definition: OutputModuleBase.cc:340
edm::detail::registerProperSelectionInfo
ParameterSetID registerProperSelectionInfo(edm::ParameterSet const &iInitial, std::string const &iLabel, std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
Definition: TriggerResultsBasedEventSelector.cc:163
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LayerClusterAssociatorByEnergyScoreImpl.h:44
edm::one::OutputModuleBase::createAcquirer
virtual SharedResourcesAcquirer createAcquirer()
Definition: OutputModuleBase.cc:188
edm::EventSelector::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSelector.cc:992
edm::one::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::one::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:184
edm::one::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
ParameterSetDescription
edm::one::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:183
edm::checkDictionary
bool checkDictionary(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
Definition: DictionaryTools.cc:67
edm::one::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:250
edm::one::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes)
Definition: insertSelectedProcesses.cc:15
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:155
edm::one::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:314
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::one::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:342
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::one::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:198
edm::one::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:176
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316