CMS 3D CMS Logo

OutputModuleBase.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_global_OutputModuleBase_h
2 #define FWCore_Framework_global_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 
46 
47 // forward declarations
48 namespace edm {
49 
50  class MergeableRunProductMetadata;
51  class ModuleCallingContext;
52  class PreallocationConfiguration;
53  class ActivityRegistry;
54  class ThinnedAssociationsHelper;
55 
56  template <typename T>
58 
59  namespace maker {
60  template <typename T>
61  class ModuleHolderT;
62  }
63 
64  namespace global {
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 
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 
111 
112  //Output modules always need writeRun and writeLumi to be called
113  bool wantsGlobalRuns() const { return true; }
114  bool wantsGlobalLuminosityBlocks() const { return true; }
115 
116  virtual bool wantsProcessBlocks() const = 0;
117  virtual bool wantsInputProcessBlocks() const = 0;
118  virtual bool wantsStreamRuns() const = 0;
119  virtual bool wantsStreamLuminosityBlocks() const = 0;
120 
121  protected:
122  ModuleDescription const& description() const;
123 
125 
127 
128  void doBeginJob();
129  void doEndJob();
130 
133 
135  void doAcquire(EventTransitionInfo const&,
137  ModuleCallingContext const*,
139  //For now this is a placeholder
141  ModuleCallingContext const& iModuleCallingContext,
142  Principal const& iPrincipal) const {}
143 
148  bool doEndRun(RunTransitionInfo const&, ModuleCallingContext const*);
151 
153  std::map<std::string, std::vector<std::pair<std::string, int>>> const& outputModulePathPositions,
154  bool anyProductProduced);
155 
157 
158  std::map<BranchID::value_type, BranchID::value_type> const& droppedBranchIDToKeptBranchID() {
160  }
161 
162  private:
164  std::atomic<int> remainingEvents_;
165 
166  // TODO: Give OutputModule
167  // an interface (protected?) that supplies client code with the
168  // needed functionality *without* giving away implementation
169  // details ... don't just return a reference to keptProducts_, because
170  // we are looking to have the flexibility to change the
171  // implementation of keptProducts_ without modifying clients. When this
172  // change is made, we'll have a one-time-only task of modifying
173  // clients (classes derived from OutputModule) to use the
174  // newly-introduced interface.
175  // TODO: Consider using shared pointers here?
176 
177  // keptProducts_ are pointers to the BranchDescription objects describing
178  // the branches we are to write.
179  //
180  // We do not own the BranchDescriptions to which we point.
182  std::array<bool, NumBranchTypes> hasNewlyDroppedBranch_;
183 
188 
190  std::vector<detail::TriggerResultsBasedEventSelector> selectors_;
192  // ID of the ParameterSet that configured the event selector
193  // subsystem.
195 
196  // needed because of possible EDAliases.
197  // filled in only if key and value are different.
198  std::map<BranchID::value_type, BranchID::value_type> droppedBranchIDToKeptBranchID_;
201 
203  std::map<BranchID, bool> keepAssociation_;
204 
206 
207  //------------------------------------------------------------------
208  // private member functions
209  //------------------------------------------------------------------
210 
212 
216  void doOpenFile(FileBlock const& fb);
217  void doRespondToOpenInputFile(FileBlock const& fb);
218  void doRespondToCloseInputFile(FileBlock const& fb);
221 
222  std::string workerType() const { return "WorkerT<edm::global::OutputModuleBase>"; }
223 
225  void doCloseFile();
226 
228 
229  bool needToRunSelection() const;
230  std::vector<ProductResolverIndexAndSkipBit> productsUsedBySelection() const;
232 
233  // Do the end-of-file tasks; this is only called internally, after
234  // the appropriate tests have been done.
235  virtual void reallyCloseFile();
236 
238  virtual bool shouldWeCloseFile() const { return false; }
239 
240  virtual void write(EventForOutput const&) = 0;
241  virtual void beginJob() {}
242  virtual void endJob() {}
243  virtual void writeLuminosityBlock(LuminosityBlockForOutput const&) = 0;
244  virtual void writeRun(RunForOutput const&) = 0;
245  virtual void writeProcessBlock(ProcessBlockForOutput const&) {}
246  virtual void openFile(FileBlock const&) {}
247  virtual bool isFileOpen() const { return true; }
248 
249  virtual void preallocStreams(unsigned int) {}
250  virtual void preallocLumis(unsigned int) {}
251  virtual void preallocate(PreallocationConfiguration const&) {}
252  virtual void doBeginStream_(StreamID) {}
253  virtual void doEndStream_(StreamID) {}
254  virtual void doStreamBeginRun_(StreamID, RunForOutput const&, EventSetup const&) {}
255  virtual void doStreamEndRun_(StreamID, RunForOutput const&, EventSetup const&) {}
256  virtual void doStreamEndRunSummary_(StreamID, RunForOutput const&, EventSetup const&) {}
260 
261  virtual void doBeginRun_(RunForOutput const&) {}
262  virtual void doBeginRunSummary_(RunForOutput const&, EventSetup const&) {}
263  virtual void doEndRun_(RunForOutput const&) {}
264  virtual void doEndRunSummary_(RunForOutput const&, EventSetup const&) {}
269  virtual void doRespondToOpenInputFile_(FileBlock const&) {}
270  virtual void doRespondToCloseInputFile_(FileBlock const&) {}
272 
273  virtual void setProcessesWithSelectedMergeableRunProducts(std::set<std::string> const&) {}
274 
275  virtual bool hasAcquire() const { return false; }
276  bool hasAccumulator() const { return false; }
277 
279  std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
280  std::set<BranchID>& keptProductsInEvent);
281 
283 
284  bool limitReached() const { return remainingEvents_ == 0; }
285  };
286  } // namespace global
287 } // namespace edm
288 #endif
edm::EventTransitionInfo
Definition: TransitionInfoTypes.h:26
edm::global::OutputModuleBase::doRegisterThinnedAssociations
void doRegisterThinnedAssociations(ProductRegistry const &, ThinnedAssociationsHelper &)
Definition: OutputModuleBase.h:220
edm::StreamID
Definition: StreamID.h:30
edm::OutputProcessBlockHelper
Definition: OutputProcessBlockHelper.h:20
edm::global::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:261
edm::global::OutputModuleBase::branchIDLists
BranchIDLists const * branchIDLists() const
Definition: OutputModuleBase.cc:356
edm::global::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:185
edm::global::OutputModuleBase::doEndLuminosityBlock
bool doEndLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:325
edm::global::OutputModuleBase::doEndProcessBlock
void doEndProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.h:146
edm::global::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:273
edm::global::OutputModuleBase::doStreamEndRun_
virtual void doStreamEndRun_(StreamID, RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:255
edm::global::OutputModuleBase::needToRunSelection
bool needToRunSelection() const
Definition: OutputModuleBase.cc:231
edm::global::OutputModuleBase::updateBranchIDListsWithKeptAliases
void updateBranchIDListsWithKeptAliases()
Definition: OutputModuleBase.cc:142
ActivityRegistry
edm::LumiTransitionInfo
Definition: TransitionInfoTypes.h:42
edm::global::OutputModuleBase::doAccessInputProcessBlock
void doAccessInputProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.h:145
edm::global::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:354
propagate_const.h
edm::global::OutputModuleBase::description
ModuleDescription const & description() const
Definition: OutputModuleBase.cc:367
edm::global::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:194
WaitingTaskHolder.h
edm::global::OutputModuleBase::prePrefetchSelection
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:245
edm::global::OutputModuleBase::configure
void configure(OutputModuleDescription const &desc)
Definition: OutputModuleBase.cc:79
edm::global::OutputModuleBase
Definition: OutputModuleBase.h:66
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::global::OutputModuleBase::selectorConfig
ParameterSetID selectorConfig() const
Definition: OutputModuleBase.h:124
edm::global::OutputModuleBase::doBeginRunSummary_
virtual void doBeginRunSummary_(RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:262
edm::global::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:88
edm::global::OutputModuleBase::shouldWeCloseFile
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
Definition: OutputModuleBase.h:238
BranchID.h
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::global::OutputModuleBase::doAcquire
void doAcquire(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
Definition: OutputModuleBase.cc:280
edm::global::OutputModuleBase::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: OutputModuleBase.cc:371
edm::Principal
Definition: Principal.h:56
edm::global::OutputModuleBase::doStreamBeginRun_
virtual void doStreamBeginRun_(StreamID, RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:254
edm::RunTransitionInfo
Definition: TransitionInfoTypes.h:64
edm::global::OutputModuleBase::doBeginProcessBlock
void doBeginProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.h:144
edm::global::OutputModuleBase::droppedBranchIDToKeptBranchID
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID()
Definition: OutputModuleBase.h:158
getAllTriggerNames.h
edm::ProcessBlockPrincipal
Definition: ProcessBlockPrincipal.h:22
edm::global::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:267
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::global::OutputModuleBase::~OutputModuleBase
~OutputModuleBase() override
Definition: OutputModuleBase.cc:208
edm::global::OutputModuleBase::doEndRun
bool doEndRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:297
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::ProductRegistry
Definition: ProductRegistry.h:37
ModuleDescription.h
edm::FileBlock
Definition: FileBlock.h:22
edm::global::OutputModuleBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.h:251
edm::global::OutputModuleBase::wantsProcessBlocks
virtual bool wantsProcessBlocks() const =0
edm::RunForOutput
Definition: RunForOutput.h:40
edm::WaitingTaskWithArenaHolder
Definition: WaitingTaskWithArenaHolder.h:34
edm::EDConsumerBase
Definition: EDConsumerBase.h:71
edm::global::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:187
edm::propagate_const
Definition: propagate_const.h:32
edm::global::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:242
edm::global::OutputModuleBase::doEndLuminosityBlockSummary_
virtual void doEndLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:268
edm::global::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:200
edm::EventPrincipal
Definition: EventPrincipal.h:48
edm::global::OutputModuleBase::hasAccumulator
bool hasAccumulator() const
Definition: OutputModuleBase.h:276
edm::global::OutputModuleBase::productsUsedBySelection
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
Definition: OutputModuleBase.cc:233
edm::global::OutputModuleBase::writeProcessBlock
virtual void writeProcessBlock(ProcessBlockForOutput const &)
Definition: OutputModuleBase.h:245
edm::global::OutputModuleBase::maxEvents
int maxEvents() const
Definition: OutputModuleBase.h:84
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::global::OutputModuleBase::hasAcquire
virtual bool hasAcquire() const
Definition: OutputModuleBase.h:275
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::global::OutputModuleBase::moduleDescription
const ModuleDescription & moduleDescription() const
Definition: OutputModuleBase.h:110
edm::global::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:181
edm::global::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:241
edm::global::OutputModuleBase::operator=
OutputModuleBase & operator=(OutputModuleBase const &)=delete
edm::global::OutputModuleBase::doPreallocate
void doPreallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.cc:210
edm::Hash< ParameterSetType >
edm::global::OutputModuleBase::doBeginStream
void doBeginStream(StreamID id)
Definition: OutputModuleBase.h:131
edm::global::OutputModuleBase::workerType
std::string workerType() const
Definition: OutputModuleBase.h:222
edm::maker::ModuleHolderT
Definition: EDAnalyzer.h:25
edm::global::OutputModuleBase::doBeginLuminosityBlockSummary_
virtual void doBeginLuminosityBlockSummary_(LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:266
edm::global::OutputModuleBase::doEndStream
void doEndStream(StreamID id)
Definition: OutputModuleBase.h:132
edm::global::OutputModuleBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: OutputModuleBase.h:249
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
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::wantsInputProcessBlocks
virtual bool wantsInputProcessBlocks() const =0
edm::global::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:263
edm::ProductSelector
Definition: ProductSelector.h:26
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ProductSelectorRules
Definition: ProductSelectorRules.h:24
edm::global::OutputModuleBase::doOpenFile
void doOpenFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:339
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:37
edm::ProcessBlockHelperBase
Definition: ProcessBlockHelperBase.h:18
edm::ParameterSet
Definition: ParameterSet.h:47
edm::global::OutputModuleBase::doBeginStream_
virtual void doBeginStream_(StreamID)
Definition: OutputModuleBase.h:252
EDConsumerBase.h
edm::WaitingTaskHolder
Definition: WaitingTaskHolder.h:32
edm::global::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:270
edm::global::OutputModuleBase::selectProducts
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase const &)
Definition: OutputModuleBase.cc:84
ProductSelector.h
edm::global::OutputModuleBase::limitReached
bool limitReached() const
Definition: OutputModuleBase.h:284
edm::global::OutputModuleBase::doStreamBeginLuminosityBlock_
virtual void doStreamBeginLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:257
edm::global::OutputModuleBase::doEndRunSummary_
virtual void doEndRunSummary_(RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:264
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::global::OutputModuleBase::setEventSelectionInfo
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
edm::global::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:203
edm::global::OutputModuleBase::preActionBeforeRunEventAsync
void preActionBeforeRunEventAsync(WaitingTaskHolder iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const
Definition: OutputModuleBase.h:140
edm::EventSetup
Definition: EventSetup.h:58
BranchIDList.h
edm::global::OutputModuleBase::processName
std::string const & processName() const
Definition: OutputModuleBase.h:93
edm::global::OutputModuleBase::doRespondToCloseOutputFile
void doRespondToCloseOutputFile()
Definition: OutputModuleBase.h:219
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::global::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:163
edm::global::OutputModuleBase::doWriteRun
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
Definition: OutputModuleBase.cc:310
edm::global::OutputModuleBase::outputProcessBlockHelper
OutputProcessBlockHelper const & outputProcessBlockHelper() const
Definition: OutputModuleBase.h:106
edm::global::OutputModuleBase::baseType
static const std::string & baseType()
Definition: OutputModuleBase.cc:385
edm::global::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:191
edm::ProcessBlockForOutput
Definition: ProcessBlockForOutput.h:27
edm::global::OutputModuleBase::wantAllEvents
bool wantAllEvents() const
Definition: OutputModuleBase.h:102
edm::EventForOutput
Definition: EventForOutput.h:50
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::global::OutputModuleBase::registerProductsAndCallbacks
void registerProductsAndCallbacks(OutputModuleBase const *, ProductRegistry const *)
Definition: OutputModuleBase.h:227
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::SelectedProductsForBranchType
std::array< SelectedProducts, NumBranchTypes > SelectedProductsForBranchType
Definition: SelectedProducts.h:13
edm::global::OutputModuleBase::doRespondToOpenInputFile
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:341
edm::global::OutputModuleBase::wantsGlobalRuns
bool wantsGlobalRuns() const
Definition: OutputModuleBase.h:113
edm::global::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:198
edm::global::OutputModuleBase::wantsGlobalLuminosityBlocks
bool wantsGlobalLuminosityBlocks() const
Definition: OutputModuleBase.h:114
Frameworkfwd.h
edm::global::OutputModuleBase::doBeginLuminosityBlock
bool doBeginLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:318
edm::global::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:186
edm::global::OutputModuleBase::doCloseFile
void doCloseFile()
Tell the OutputModule that is must end the current file.
Definition: OutputModuleBase.cc:348
edm::global::OutputModuleBase::doWriteProcessBlock
void doWriteProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:304
edm::global::OutputModuleBase::ModuleType
OutputModuleBase ModuleType
Definition: OutputModuleBase.h:74
edm::global::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: OutputModuleBase.cc:377
ParameterSetfwd.h
edm::global::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:45
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::doEndJob
void doEndJob()
Definition: OutputModuleBase.cc:229
edm::global::OutputModuleBase::doStreamEndLuminosityBlock_
virtual void doStreamEndLuminosityBlock_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:258
edm::BranchDescription
Definition: BranchDescription.h:32
edm::global::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:369
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
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::OutputModuleDescription
Definition: OutputModuleDescription.h:17
edm::global::OutputModuleBase::doBeginJob
void doBeginJob()
Definition: OutputModuleBase.cc:227
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::global::OutputModuleBase::doStreamEndLuminosityBlockSummary_
virtual void doStreamEndLuminosityBlockSummary_(StreamID, LuminosityBlockForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:259
edm::global::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:199
edm::global::OutputModuleBase::keptProducts
SelectedProductsForBranchType const & keptProducts() const
Definition: OutputModuleBase.h:94
edm::global::OutputModuleBase::prevalidate
static void prevalidate(ConfigurationDescriptions &)
Definition: OutputModuleBase.cc:382
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::wantsStreamRuns
virtual bool wantsStreamRuns() const =0
edm::global::OutputModuleBase::doRespondToCloseInputFile
void doRespondToCloseInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:346
edm::global::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:363
edm::global::OutputModuleBase::doBeginRun
bool doBeginRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:290
edm::global::OutputModuleBase::hasNewlyDroppedBranch
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
Definition: OutputModuleBase.h:95
edm::global::OutputModuleBase::setModuleDescription
void setModuleDescription(ModuleDescription const &md)
Definition: OutputModuleBase.h:282
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
OutputProcessBlockHelper.h
SelectedProducts.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
TriggerResultsBasedEventSelector.h
edm::global::OutputModuleBase::wantsStreamLuminosityBlocks
virtual bool wantsStreamLuminosityBlocks() const =0
edm::global::OutputModuleBase::doWriteLuminosityBlock
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:332
ProductSelectorRules.h
edm::global::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
edm::OutputModuleCommunicatorT
Definition: OutputModuleBase.h:57
FWCoreCommonFwd.h
edm::global::OutputModuleBase::doStreamEndRunSummary_
virtual void doStreamEndRunSummary_(StreamID, RunForOutput const &, EventSetup const &)
Definition: OutputModuleBase.h:256
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
edm::global::OutputModuleBase::doEvent
bool doEvent(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:256