CMS 3D CMS Logo

OutputModuleBase.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_limited_OutputModuleBase_h
2 #define FWCore_Framework_limited_OutputModuleBase_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : OutputModuleBase
7 //
16 //
17 //
18 
19 // system include files
20 #include <array>
21 #include <memory>
22 #include <string>
23 #include <vector>
24 #include <map>
25 #include <atomic>
26 #include <mutex>
27 #include <set>
28 
29 // user include files
34 
44 
45 // forward declarations
46 namespace edm {
47 
48  class MergeableRunProductMetadata;
49  class ModuleCallingContext;
50  class PreallocationConfiguration;
51  class ActivityRegistry;
52  class ProductRegistry;
53  class ThinnedAssociationsHelper;
54  class WaitingTask;
55 
56  template <typename T>
57  class OutputModuleCommunicatorT;
58 
59  namespace maker {
60  template <typename T>
61  class ModuleHolderT;
62  }
63 
64  namespace limited {
65 
67  public:
68  template <typename U>
70  template <typename T>
71  friend class ::edm::WorkerT;
72  template <typename T>
73  friend class ::edm::OutputModuleCommunicatorT;
75 
76  explicit OutputModuleBase(ParameterSet const& pset);
77  ~OutputModuleBase() override;
78 
79  OutputModuleBase(OutputModuleBase const&) = delete; // Disallow copying and moving
80  OutputModuleBase& operator=(OutputModuleBase const&) = delete; // Disallow copying and moving
81 
84  int maxEvents() const { return maxEvents_; }
85 
88  int remainingEvents() const { return remainingEvents_; }
89 
90  bool selected(BranchDescription const& desc) const;
91 
93  std::string const& processName() const { return process_name_; }
95  std::array<bool, NumBranchTypes> const& hasNewlyDroppedBranch() const { return hasNewlyDroppedBranch_; }
96 
97  static void fillDescription(ParameterSetDescription& desc);
98  static void fillDescriptions(ConfigurationDescriptions& descriptions);
99  static const std::string& baseType();
101 
102  bool wantAllEvents() const { return wantAllEvents_; }
103 
104  BranchIDLists const* branchIDLists() const;
105 
107 
109 
110  //Output modules always need writeRun and writeLumi to be called
111  bool wantsGlobalRuns() const { return true; }
112  bool wantsGlobalLuminosityBlocks() const { return true; }
113  virtual bool wantsStreamRuns() const = 0;
114  virtual bool wantsStreamLuminosityBlocks() const = 0;
115 
116  unsigned int concurrencyLimit() const { return queue_.concurrencyLimit(); }
117 
119 
120  protected:
121  ModuleDescription const& description() const;
122 
124 
126 
127  void doBeginJob();
128  void doEndJob();
129 
130  void doBeginStream(StreamID id);
131  void doEndStream(StreamID id);
136  EventSetupImpl const& c,
137  ModuleCallingContext const*);
140  EventSetupImpl const& c,
141  ModuleCallingContext const*);
142 
144  //For now this is a placeholder
145  /*virtual*/ void preActionBeforeRunEventAsync(WaitingTask* iTask,
146  ModuleCallingContext const& iModuleCallingContext,
147  Principal const& iPrincipal) const {}
148 
149  bool doBeginRun(RunPrincipal const& rp, EventSetupImpl const& c, ModuleCallingContext const*);
150  bool doEndRun(RunPrincipal const& rp, EventSetupImpl const& c, ModuleCallingContext const*);
152  EventSetupImpl const& c,
153  ModuleCallingContext const*);
155  EventSetupImpl const& c,
156  ModuleCallingContext const*);
157 
159  std::map<std::string, std::vector<std::pair<std::string, int>>> const& outputModulePathPositions,
160  bool anyProductProduced);
161 
162  void configure(OutputModuleDescription const& desc);
163 
164  std::map<BranchID::value_type, BranchID::value_type> const& droppedBranchIDToKeptBranchID() {
166  }
167 
168  private:
170  std::atomic<int> remainingEvents_;
171 
172  // TODO: Give OutputModule
173  // an interface (protected?) that supplies client code with the
174  // needed functionality *without* giving away implementation
175  // details ... don't just return a reference to keptProducts_, because
176  // we are looking to have the flexibility to change the
177  // implementation of keptProducts_ without modifying clients. When this
178  // change is made, we'll have a one-time-only task of modifying
179  // clients (classes derived from OutputModule) to use the
180  // newly-introduced interface.
181  // TODO: Consider using shared pointers here?
182 
183  // keptProducts_ are pointers to the BranchDescription objects describing
184  // the branches we are to write.
185  //
186  // We do not own the BranchDescriptions to which we point.
188  std::array<bool, NumBranchTypes> hasNewlyDroppedBranch_;
189 
194 
196  std::vector<detail::TriggerResultsBasedEventSelector> selectors_;
198  // ID of the ParameterSet that configured the event selector
199  // subsystem.
201 
202  // needed because of possible EDAliases.
203  // filled in only if key and value are different.
204  std::map<BranchID::value_type, BranchID::value_type> droppedBranchIDToKeptBranchID_;
207 
209  std::map<BranchID, bool> keepAssociation_;
211 
212  //------------------------------------------------------------------
213  // private member functions
214  //------------------------------------------------------------------
215 
217 
220  void doOpenFile(FileBlock const& fb);
224 
225  std::string workerType() const { return "WorkerT<edm::limited::OutputModuleBase>"; }
226 
228  void doCloseFile();
229 
231 
232  bool needToRunSelection() const;
233  std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection() const;
235 
236  // Do the end-of-file tasks; this is only called internally, after
237  // the appropriate tests have been done.
238  virtual void reallyCloseFile();
239 
241  virtual bool shouldWeCloseFile() const { return false; }
242 
243  virtual void write(EventForOutput const&) = 0;
244  virtual void beginJob() {}
245  virtual void endJob() {}
246  virtual void writeLuminosityBlock(LuminosityBlockForOutput const&) = 0;
247  virtual void writeRun(RunForOutput const&) = 0;
248  virtual void openFile(FileBlock const&) const {}
249  virtual bool isFileOpen() const { return true; }
250 
251  virtual void preallocStreams(unsigned int) {}
252  virtual void preallocLumis(unsigned int) {}
253  virtual void preallocate(PreallocationConfiguration const&) {}
254  virtual void doBeginStream_(StreamID) {}
255  virtual void doEndStream_(StreamID) {}
256  virtual void doStreamBeginRun_(StreamID, RunForOutput const&, EventSetup const&) {}
257  virtual void doStreamEndRun_(StreamID, RunForOutput const&, EventSetup const&) {}
258  virtual void doStreamEndRunSummary_(StreamID, RunForOutput const&, EventSetup const&) {}
262 
263  virtual void doBeginRun_(RunForOutput const&) {}
264  virtual void doBeginRunSummary_(RunForOutput const&, EventSetup const&) {}
265  virtual void doEndRun_(RunForOutput const&) {}
266  virtual void doEndRunSummary_(RunForOutput const&, EventSetup const&) {}
271  virtual void doRespondToOpenInputFile_(FileBlock const&) {}
272  virtual void doRespondToCloseInputFile_(FileBlock const&) {}
273 
274  virtual void setProcessesWithSelectedMergeableRunProducts(std::set<std::string> const&) {}
275 
276  bool hasAcquire() const { return false; }
277  bool hasAccumulator() const { return false; }
278 
279  void keepThisBranch(BranchDescription const& desc,
280  std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
281  std::set<BranchID>& keptProductsInEvent);
282 
284 
285  bool limitReached() const { return remainingEvents_ == 0; }
286  };
287  } // namespace limited
288 } // namespace edm
289 #endif
edm::limited::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:244
edm::limited::OutputModuleBase::queue
LimitedTaskQueue & queue()
Definition: OutputModuleBase.h:118
edm::StreamID
Definition: StreamID.h:30
edm::limited::OutputModuleBase::wantAllEvents
bool wantAllEvents() const
Definition: OutputModuleBase.h:102
edm::limited::OutputModuleBase::doOpenFile
void doOpenFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:310
edm::limited::OutputModuleBase::concurrencyLimit
unsigned int concurrencyLimit() const
Definition: OutputModuleBase.h:116
edm::limited::OutputModuleBase::doEndRun
bool doEndRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:270
edm::limited::OutputModuleBase::queue_
LimitedTaskQueue queue_
Definition: OutputModuleBase.h:210
edm::limited::OutputModuleBase::wantsStreamLuminosityBlocks
virtual bool wantsStreamLuminosityBlocks() const =0
edm::limited::OutputModuleBase::hasAcquire
bool hasAcquire() const
Definition: OutputModuleBase.h:276
edm::limited::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.h:252
edm::limited::OutputModuleBase::doBeginRun
bool doBeginRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:263
edm::limited::OutputModuleBase::doStreamEndRunSummary_
virtual void doStreamEndRunSummary_(StreamID, RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:258
edm::limited::OutputModuleBase::droppedBranchIDToKeptBranchID
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
Definition: OutputModuleBase.h:164
ActivityRegistry
edm::limited::OutputModuleBase::doStreamEndLuminosityBlockSummary_
virtual void doStreamEndLuminosityBlockSummary_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:261
propagate_const.h
edm::EventSetupImpl
Definition: EventSetupImpl.h:44
edm::limited::OutputModuleBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.h:253
edm::limited::OutputModuleBase::ModuleType
OutputModuleBase ModuleType
Definition: OutputModuleBase.h:74
edm::limited::OutputModuleBase::doBeginLuminosityBlockSummary_
virtual void doBeginLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:268
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::limited::OutputModuleBase::isFileOpen
virtual bool isFileOpen() const
Definition: OutputModuleBase.h:249
edm::limited::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: OutputModuleBase.cc:348
BranchID.h
edm::limited::OutputModuleBase::workerType
std::string workerType() const
Definition: OutputModuleBase.h:225
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::limited::OutputModuleBase::doEvent
bool doEvent(EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:238
edm::limited::OutputModuleBase::selectorConfig
ParameterSetID selectorConfig() const
Definition: OutputModuleBase.h:123
edm::limited::OutputModuleBase::branchIDLists
BranchIDLists const * branchIDLists() const
Definition: OutputModuleBase.cc:327
edm::Principal
Definition: Principal.h:57
edm::limited::OutputModuleBase::writeRun
virtual void writeRun(RunForOutput const &)=0
edm::limited::OutputModuleBase::doRespondToCloseInputFile
void doRespondToCloseInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:317
edm::limited::OutputModuleBase::description
ModuleDescription const & description() const
Definition: OutputModuleBase.cc:338
edm::limited::OutputModuleBase::moduleDescription
const ModuleDescription & moduleDescription() const
Definition: OutputModuleBase.h:108
edm::limited::OutputModuleBase::doStreamBeginRun
void doStreamBeginRun(StreamID id, RunPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
edm::limited::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:269
edm::limited::OutputModuleBase::needToRunSelection
bool needToRunSelection() const
Definition: OutputModuleBase.cc:213
edm::limited::OutputModuleBase::doEndLuminosityBlockSummary_
virtual void doEndLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:270
edm::limited::OutputModuleBase::wantsGlobalRuns
bool wantsGlobalRuns() const
Definition: OutputModuleBase.h:111
edm::limited::OutputModuleBase::doStreamEndLuminosityBlock_
virtual void doStreamEndLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:260
edm::limited::OutputModuleBase::doBeginRunSummary_
virtual void doBeginRunSummary_(RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:264
edm::limited::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:196
getAllTriggerNames.h
edm::limited::OutputModuleBase::shouldWeCloseFile
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
Definition: OutputModuleBase.h:241
edm::limited::OutputModuleBase::openFile
virtual void openFile(FileBlock const &) const
Definition: OutputModuleBase.h:248
edm::limited::OutputModuleBase::baseType
static const std::string & baseType()
Definition: OutputModuleBase.cc:357
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::limited::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:188
edm::limited::OutputModuleBase::selectProducts
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)
Definition: OutputModuleBase.cc:82
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::ProductRegistry
Definition: ProductRegistry.h:34
ModuleDescription.h
edm::limited::OutputModuleBase::doBeginLuminosityBlock
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:285
edm::limited::OutputModuleBase::wantsStreamRuns
virtual bool wantsStreamRuns() const =0
edm::FileBlock
Definition: FileBlock.h:20
edm::limited::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:197
edm::limited::OutputModuleBase::doBeginJob
void doBeginJob()
Definition: OutputModuleBase.cc:209
edm::RunForOutput
Definition: RunForOutput.h:39
edm::EDConsumerBase
Definition: EDConsumerBase.h:62
edm::limited::OutputModuleBase::doStreamEndRun_
virtual void doStreamEndRun_(StreamID, RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:257
edm::limited::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:193
edm::propagate_const
Definition: propagate_const.h:32
edm::LimitedTaskQueue
Definition: LimitedTaskQueue.h:39
edm::EventPrincipal
Definition: EventPrincipal.h:46
edm::limited::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:191
edm::limited::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:325
WaitingTask
edm::limited::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:42
edm::limited::OutputModuleBase::productsUsedBySelection
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
Definition: OutputModuleBase.cc:215
edm::limited::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:195
edm::limited::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:187
edm::ActivityRegistry
Definition: ActivityRegistry.h:132
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::limited::OutputModuleBase::doEndLuminosityBlock
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:294
edm::Hash< ParameterSetType >
edm::limited::OutputModuleBase::registerProductsAndCallbacks
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
Definition: OutputModuleBase.h:230
edm::maker::ModuleHolderT
Definition: EDAnalyzer.h:26
edm::limited::OutputModuleBase::preActionBeforeRunEventAsync
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
Definition: OutputModuleBase.h:145
LimitedTaskQueue.h
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
edm::limited::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:205
edm::ProductSelector
Definition: ProductSelector.h:26
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ProductSelectorRules
Definition: ProductSelectorRules.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LimitedTaskQueue::concurrencyLimit
unsigned int concurrencyLimit() const
Definition: LimitedTaskQueue.h:116
edm::limited::OutputModuleBase::prevalidate
static void prevalidate(ConfigurationDescriptions &)
Definition: OutputModuleBase.cc:354
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:35
edm::limited::OutputModuleBase::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: OutputModuleBase.cc:342
edm::limited::OutputModuleBase::~OutputModuleBase
~OutputModuleBase() override
Definition: OutputModuleBase.cc:190
edm::ParameterSet
Definition: ParameterSet.h:36
EDConsumerBase.h
edm::limited::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:204
edm::limited::OutputModuleBase::doStreamBeginRun_
virtual void doStreamBeginRun_(StreamID, RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:256
edm::limited::OutputModuleBase::doEndRunSummary_
virtual void doEndRunSummary_(RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:266
edm::limited::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:334
edm::limited::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:200
edm::limited::OutputModuleBase::doStreamEndRun
void doStreamEndRun(StreamID id, RunPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
edm::limited::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:208
ProductSelector.h
edm::limited::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
edm::limited::OutputModuleBase
Definition: OutputModuleBase.h:66
edm::limited::OutputModuleBase::keptProducts
SelectedProductsForBranchType const & keptProducts() const
Definition: OutputModuleBase.h:94
edm::limited::OutputModuleBase::doRegisterThinnedAssociations
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
Definition: OutputModuleBase.h:223
edm::limited::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:169
edm::limited::OutputModuleBase::doStreamBeginLuminosityBlock_
virtual void doStreamBeginLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:259
edm::limited::OutputModuleBase::doCloseFile
void doCloseFile()
Tell the OutputModule that is must end the current file.
Definition: OutputModuleBase.cc:319
edm::limited::OutputModuleBase::wantsGlobalLuminosityBlocks
bool wantsGlobalLuminosityBlocks() const
Definition: OutputModuleBase.h:112
edm::EventSetup
Definition: EventSetup.h:57
edm::limited::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
edm::limited::OutputModuleBase::configure
void configure(OutputModuleDescription const &desc)
Definition: OutputModuleBase.cc:77
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
BranchIDList.h
edm::limited::OutputModuleBase::prePrefetchSelection
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:227
edm::limited::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:271
edm::limited::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:192
edm::limited::OutputModuleBase::processName
std::string const & processName() const
Definition: OutputModuleBase.h:93
edm::limited::OutputModuleBase::hasNewlyDroppedBranch
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
Definition: OutputModuleBase.h:95
edm::limited::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:88
edm::limited::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:206
edm::limited::OutputModuleBase::doBeginStream_
virtual void doBeginStream_(StreamID)
Definition: OutputModuleBase.h:254
edm::limited::OutputModuleBase::doStreamBeginLuminosityBlock
void doStreamBeginLuminosityBlock(StreamID id, LuminosityBlockPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
edm::EventForOutput
Definition: EventForOutput.h:50
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::limited::OutputModuleBase::doWriteLuminosityBlock
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:303
edm::WaitingTask
Definition: WaitingTask.h:36
edm::limited::OutputModuleBase::doPreallocate
void doPreallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.cc:192
edm::SelectedProductsForBranchType
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
Definition: SelectedProducts.h:13
edm::limited::OutputModuleBase::doEndStream_
virtual void doEndStream_(StreamID)
Definition: OutputModuleBase.h:255
edm::limited::OutputModuleBase::operator=
OutputModuleBase & operator=(OutputModuleBase const &)=delete
edm::limited::OutputModuleBase::remainingEvents_
std::atomic< int > remainingEvents_
Definition: OutputModuleBase.h:170
edm::limited::OutputModuleBase::limitReached
bool limitReached() const
Definition: OutputModuleBase.h:285
edm::limited::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:190
Frameworkfwd.h
edm::limited::OutputModuleBase::doRespondToOpenInputFile
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:312
edm::limited::OutputModuleBase::setModuleDescription
void setModuleDescription(ModuleDescription const &md)
Definition: OutputModuleBase.h:283
edm::limited::OutputModuleBase::doEndJob
void doEndJob()
Definition: OutputModuleBase.cc:211
edm::limited::OutputModuleBase::updateBranchIDListsWithKeptAliases
void updateBranchIDListsWithKeptAliases()
Definition: OutputModuleBase.cc:136
edm::limited::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:340
edm::limited::OutputModuleBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: OutputModuleBase.h:251
edm::limited::OutputModuleBase::doBeginStream
void doBeginStream(StreamID id)
edm::limited::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:245
ParameterSetfwd.h
edm::limited::OutputModuleBase::maxEvents
int maxEvents() const
Definition: OutputModuleBase.h:84
edm::limited::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:267
edm::BranchDescription
Definition: BranchDescription.h:32
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::OutputModuleDescription
Definition: OutputModuleDescription.h:17
edm::limited::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:274
edm::limited::OutputModuleBase::doStreamEndLuminosityBlock
void doStreamEndLuminosityBlock(StreamID id, LuminosityBlockPrincipal &ep, EventSetupImpl const &c, ModuleCallingContext const *)
edm::limited::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:209
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::limited::OutputModuleBase::hasAccumulator
bool hasAccumulator() const
Definition: OutputModuleBase.h:277
edm::limited::OutputModuleBase::doWriteRun
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
Definition: OutputModuleBase.cc:277
edm::limited::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:265
edm::limited::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:155
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
edm::limited::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:272
SelectedProducts.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
TriggerResultsBasedEventSelector.h
edm::limited::OutputModuleBase::setEventSelectionInfo
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
ProductSelectorRules.h
edm::limited::OutputModuleBase::doEndStream
void doEndStream(StreamID id)
edm::limited::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:263
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29