CMS 3D CMS Logo

OutputModuleBase.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FWCore/Framework
4 // Class : OutputModuleBase
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 //
10 
11 // system include files
12 #include <cassert>
13 
14 // user include files
16 
37 
38 namespace edm {
39  namespace global {
40 
41  // -------------------------------------------------------
43  : maxEvents_(-1),
44  remainingEvents_(maxEvents_),
45  keptProducts_(),
46  hasNewlyDroppedBranch_(),
47  process_name_(),
48  productSelectorRules_(pset, "outputCommands", "OutputModule"),
49  productSelector_(),
50  moduleDescription_(),
51  wantAllEvents_(false),
52  selectors_(),
53  selector_config_id_(),
54  droppedBranchIDToKeptBranchID_(),
55  branchIDLists_(new BranchIDLists),
56  origBranchIDLists_(nullptr),
57  thinnedAssociationsHelper_(new ThinnedAssociationsHelper) {
58  hasNewlyDroppedBranch_.fill(false);
59 
61  process_name_ = tns->getProcessName();
62 
63  selectEvents_ = pset.getUntrackedParameterSet("SelectEvents", ParameterSet());
64 
65  selectEvents_.registerIt(); // Just in case this PSet is not registered
66 
68 
69  //need to set wantAllEvents_ in constructor
70  // we will make the remaining selectors once we know how many streams
71  selectors_.resize(1);
74  }
75 
79  }
80 
82  ThinnedAssociationsHelper const& thinnedAssociationsHelper) {
84  return;
86 
87  // TODO: See if we can collapse keptProducts_ and productSelector_ into a
88  // single object. See the notes in the header for ProductSelector
89  // for more information.
90 
91  std::map<BranchID, BranchDescription const*> trueBranchIDToKeptBranchDesc;
92  std::vector<BranchDescription const*> associationDescriptions;
93  std::set<BranchID> keptProductsInEvent;
94  std::set<std::string> processesWithSelectedMergeableRunProducts;
95 
96  for (auto const& it : preg.productList()) {
97  BranchDescription const& desc = it.second;
98  if (desc.transient()) {
99  // if the class of the branch is marked transient, output nothing
100  } else if (!desc.present() && !desc.produced()) {
101  // else if the branch containing the product has been previously dropped,
102  // output nothing
103  } else if (desc.unwrappedType() == typeid(ThinnedAssociation)) {
104  associationDescriptions.push_back(&desc);
105  } else if (selected(desc)) {
106  keepThisBranch(desc, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
107  insertSelectedProcesses(desc, processesWithSelectedMergeableRunProducts);
108  } else {
109  // otherwise, output nothing,
110  // and mark the fact that there is a newly dropped branch of this type.
111  hasNewlyDroppedBranch_[desc.branchType()] = true;
112  }
113  }
114 
115  setProcessesWithSelectedMergeableRunProducts(processesWithSelectedMergeableRunProducts);
116 
118  associationDescriptions, keptProductsInEvent, keepAssociation_);
119 
120  for (auto association : associationDescriptions) {
121  if (keepAssociation_[association->branchID()]) {
122  keepThisBranch(*association, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
123  } else {
124  hasNewlyDroppedBranch_[association->branchType()] = true;
125  }
126  }
127 
128  // Now fill in a mapping needed in the case that a branch was dropped while its EDAlias was kept.
129  ProductSelector::fillDroppedToKept(preg, trueBranchIDToKeptBranchDesc, droppedBranchIDToKeptBranchID_);
130 
131  thinnedAssociationsHelper_->updateFromParentProcess(
133  }
134 
136  if (!droppedBranchIDToKeptBranchID_.empty()) {
137  // Make a private copy of the BranchIDLists.
139  // Check for branches dropped while an EDAlias was kept.
140  for (BranchIDList& branchIDList : *branchIDLists_) {
141  for (BranchID::value_type& branchID : branchIDList) {
142  // Replace BranchID of each dropped branch with that of the kept
143  // alias, so the alias branch will have the product ID of the original branch.
144  std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter =
145  droppedBranchIDToKeptBranchID_.find(branchID);
146  if (iter != droppedBranchIDToKeptBranchID_.end()) {
147  branchID = iter->second;
148  }
149  }
150  }
151  }
152  }
153 
155  std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
156  std::set<BranchID>& keptProductsInEvent) {
157  ProductSelector::checkForDuplicateKeptBranch(desc, trueBranchIDToKeptBranchDesc);
158 
160  switch (desc.branchType()) {
161  case InEvent: {
162  if (desc.produced()) {
163  keptProductsInEvent.insert(desc.originalBranchID());
164  } else {
165  keptProductsInEvent.insert(desc.branchID());
166  }
168  InputTag{desc.moduleLabel(), desc.productInstanceName(), desc.processName()});
169  break;
170  }
171  case InLumi: {
172  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
173  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
174  break;
175  }
176  case InRun: {
177  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
178  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
179  break;
180  }
181  default:
182  assert(false);
183  break;
184  }
185  // Now put it in the list of selected branches.
186  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
187  }
188 
190 
192  auto nstreams = iPC.numberOfStreams();
193  selectors_.resize(nstreams);
194 
195  bool seenFirst = false;
196  for (auto& s : selectors_) {
197  if (seenFirst) {
199  } else {
200  seenFirst = true;
201  }
202  }
203  preallocStreams(nstreams);
205  preallocate(iPC);
206  }
207 
209 
211 
213 
214  std::vector<ProductResolverIndexAndSkipBit> OutputModuleBase::productsUsedBySelection() const {
215  std::vector<ProductResolverIndexAndSkipBit> returnValue;
216  auto const& s = selectors_[0];
217  auto const n = s.numberOfTokens();
218  returnValue.reserve(n);
219 
220  for (unsigned int i = 0; i < n; ++i) {
221  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
222  }
223  return returnValue;
224  }
225 
227  EventPrincipal const& ep,
228  ModuleCallingContext const* mcc) {
229  if (wantAllEvents_)
230  return true;
231  auto& s = selectors_[id.value()];
233  e.setConsumer(this);
234  return s.wantEvent(e);
235  }
236 
238  EventSetupImpl const&,
239  ActivityRegistry* act,
240  ModuleCallingContext const* mcc) {
241  {
243  e.setConsumer(this);
244  EventSignalsSentry sentry(act, mcc);
245  write(e);
246  }
247 
248  auto remainingEvents = remainingEvents_.load();
249  bool keepTrying = remainingEvents > 0;
250  while (keepTrying) {
251  auto newValue = remainingEvents - 1;
252  keepTrying = !remainingEvents_.compare_exchange_strong(remainingEvents, newValue);
253  if (keepTrying) {
254  // the exchange failed because the value was changed by another thread.
255  // remainingEvents was changed to be the new value of remainingEvents_;
256  keepTrying = remainingEvents > 0;
257  }
258  }
259  return true;
260  }
261 
263  RunForOutput r(rp, moduleDescription_, mcc, false);
264  r.setConsumer(this);
265  doBeginRun_(r);
266  return true;
267  }
268 
270  RunForOutput r(rp, moduleDescription_, mcc, true);
271  r.setConsumer(this);
272  doEndRun_(r);
273  return true;
274  }
275 
277  ModuleCallingContext const* mcc,
278  MergeableRunProductMetadata const* mrpm) {
279  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
280  r.setConsumer(this);
281  writeRun(r);
282  }
283 
285  EventSetupImpl const&,
286  ModuleCallingContext const* mcc) {
287  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, false);
288  lb.setConsumer(this);
290  return true;
291  }
292 
294  EventSetupImpl const&,
295  ModuleCallingContext const* mcc) {
296  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
297  lb.setConsumer(this);
299  return true;
300  }
301 
303  ModuleCallingContext const* mcc) {
304  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
305  lb.setConsumer(this);
307  }
308 
310 
314  }
315 
317 
319  if (isFileOpen()) {
320  reallyCloseFile();
321  }
322  }
323 
325 
327  if (!droppedBranchIDToKeptBranchID_.empty()) {
328  return branchIDLists_.get();
329  }
330  return origBranchIDLists_;
331  }
332 
334  return thinnedAssociationsHelper_.get();
335  }
336 
338 
339  bool OutputModuleBase::selected(BranchDescription const& desc) const { return productSelector_.selected(desc); }
340 
343  desc.setUnknown();
344  descriptions.addDefault(desc);
345  }
346 
348  ProductSelectorRules::fillDescription(desc, "outputCommands");
350  }
351 
353 
354  static const std::string kBaseType("OutputModule");
356 
358  std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
359  bool anyProductProduced) {
362  outputModulePathPositions,
363  anyProductProduced);
364  }
365  } // namespace global
366 } // namespace edm
edm::OutputModuleDescription::maxEvents_
int maxEvents_
Definition: OutputModuleDescription.h:26
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:106
ConfigurationDescriptions.h
edm::global::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::StreamID
Definition: StreamID.h:30
edm::global::OutputModuleBase::doBeginRun
bool doBeginRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:262
ThinnedAssociationsHelper.h
edm::global::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:258
edm::global::OutputModuleBase::branchIDLists
BranchIDLists const * branchIDLists() const
Definition: OutputModuleBase.cc:326
Handle.h
edm::BranchDescription::productInstanceName
std::string const & productInstanceName() const
Definition: BranchDescription.h:81
mps_fire.i
i
Definition: mps_fire.py:355
edm::getAllTriggerNames
std::vector< std::string > const & getAllTriggerNames()
Definition: getAllTriggerNames.cc:22
edm::global::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:187
funct::false
false
Definition: Factorize.h:34
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::global::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:269
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::global::OutputModuleBase::needToRunSelection
bool needToRunSelection() const
Definition: OutputModuleBase.cc:212
edm::global::OutputModuleBase::updateBranchIDListsWithKeptAliases
void updateBranchIDListsWithKeptAliases()
Definition: OutputModuleBase.cc:135
edm::OutputModuleDescription::branchIDLists_
BranchIDLists const * branchIDLists_
Definition: OutputModuleDescription.h:25
edm::global::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:324
edm::EventSetupImpl
Definition: EventSetupImpl.h:44
edm::global::OutputModuleBase::description
ModuleDescription const & description() const
Definition: OutputModuleBase.cc:337
edm::global::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:196
TriggerNamesService.h
edm::BranchDescription::unwrappedType
TypeWithDict const & unwrappedType() const
Definition: BranchDescription.h:94
edm::global::OutputModuleBase::prePrefetchSelection
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:226
edm::global::OutputModuleBase::configure
void configure(OutputModuleDescription const &desc)
Definition: OutputModuleBase.cc:76
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::global::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:87
edm::ProductSelector::initialize
void initialize(ProductSelectorRules const &rules, std::vector< BranchDescription const * > const &branchDescriptions)
Definition: ProductSelector.cc:20
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
RunForOutput.h
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::ThinnedAssociation
Definition: ThinnedAssociation.h:14
cms::cuda::assert
assert(be >=bs)
edm::global::OutputModuleBase::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: OutputModuleBase.cc:341
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:71
edm::ProductSelector::selected
bool selected(BranchDescription const &desc) const
Definition: ProductSelector.cc:55
PreallocationConfiguration.h
ProductRegistry.h
edm::ParameterSet::id
ParameterSetID id() const
Definition: ParameterSet.cc:182
EventForOutput.h
EventSignalsSentry.h
edm::InRun
Definition: BranchType.h:11
edm::global::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:264
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::global::OutputModuleBase::~OutputModuleBase
~OutputModuleBase() override
Definition: OutputModuleBase.cc:189
edm::global::OutputModuleBase::doBeginLuminosityBlock
bool doBeginLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:284
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::ProductRegistry
Definition: ProductRegistry.h:34
edm::BranchDescription::present
bool present() const
Definition: BranchDescription.h:84
edm::FileBlock
Definition: FileBlock.h:20
edm::global::OutputModuleBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.h:248
edm::PreallocationConfiguration::numberOfLuminosityBlocks
unsigned int numberOfLuminosityBlocks() const
Definition: PreallocationConfiguration.h:36
edm::EDConsumerBase::uncheckedIndexFrom
ProductResolverIndexAndSkipBit uncheckedIndexFrom(EDGetToken) const
Definition: EDConsumerBase.cc:279
edm::RunForOutput
Definition: RunForOutput.h:39
edm::global::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:189
edm::propagate_const::get
element_type const * get() const
Definition: propagate_const.h:64
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::global::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:240
edm::global::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:202
edm::EventPrincipal
Definition: EventPrincipal.h:46
OutputModuleDescription.h
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
edm::BranchDescription::processName
std::string const & processName() const
Definition: BranchDescription.h:73
edm::BranchIDList
std::vector< BranchID::value_type > BranchIDList
Definition: BranchIDList.h:18
EventPrincipal.h
Service.h
edm::global::OutputModuleBase::productsUsedBySelection
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
Definition: OutputModuleBase.cc:214
edm::ProductSelector::checkForDuplicateKeptBranch
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
Definition: ProductSelector.cc:71
edm::ActivityRegistry
Definition: ActivityRegistry.h:132
edm::BranchDescription::originalBranchID
BranchID const & originalBranchID() const
Definition: BranchDescription.h:77
edm::BranchDescription::transient
bool transient() const
Definition: BranchDescription.h:90
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:79
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::global::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:183
edm::global::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:239
edm::BranchDescription::unwrappedTypeID
TypeID unwrappedTypeID() const
Definition: BranchDescription.h:97
edm::global::OutputModuleBase::doPreallocate
void doPreallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.cc:191
insertSelectedProcesses.h
edm::InEvent
Definition: BranchType.h:11
ParameterSetDescription.h
edm::global::OutputModuleBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: OutputModuleBase.h:246
edm::ProductSelector::fillDroppedToKept
static void fillDroppedToKept(ProductRegistry const &preg, std::map< BranchID, BranchDescription const * > const &trueBranchIDToKeptBranchDesc, std::map< BranchID::value_type, BranchID::value_type > &droppedBranchIDToKeptBranchID_)
Definition: ProductSelector.cc:99
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
edm::BranchID::value_type
unsigned int value_type
Definition: BranchID.h:16
edm::global::OutputModuleBase::openFile
virtual void openFile(FileBlock const &)
Definition: OutputModuleBase.h:243
edm::global::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:154
edm::global::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:260
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::global::OutputModuleBase::doOpenFile
void doOpenFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:309
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:35
BranchDescription.h
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
edm::InLumi
Definition: BranchType.h:11
edm::ProductSelectorRules::fillDescription
static void fillDescription(ParameterSetDescription &desc, char const *parameterName, std::vector< std::string > const &defaultStrings=defaultSelectionStrings())
Definition: ProductSelectorRules.cc:202
edm::global::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:267
edm::Service
Definition: Service.h:30
edm::global::OutputModuleBase::setEventSelectionInfo
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
edm::ParameterSetDescription::setUnknown
void setUnknown()
Definition: ParameterSetDescription.cc:39
edm::global::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:205
edm::ProductRegistry::allBranchDescriptions
std::vector< BranchDescription const * > allBranchDescriptions() const
Definition: ProductRegistry.cc:211
edm::BranchDescription::branchType
BranchType const & branchType() const
Definition: BranchDescription.h:121
edm::global::OutputModuleBase::selectProducts
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)
Definition: OutputModuleBase.cc:81
edm::EDGetToken
Definition: EDGetToken.h:35
edm::BranchDescription::produced
bool produced() const
Definition: BranchDescription.h:82
TrackValidation_cff.association
association
Definition: TrackValidation_cff.py:286
edm::global::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:186
edm::global::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:266
edm::global::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:165
edm::global::OutputModuleBase::doWriteRun
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
Definition: OutputModuleBase.cc:276
edm::detail::configureEventSelector
bool configureEventSelector(edm::ParameterSet const &iPSet, std::string const &iProcessName, std::vector< std::string > const &iAllTriggerNames, edm::detail::TriggerResultsBasedEventSelector &oSelector, ConsumesCollector &&iC)
Definition: TriggerResultsBasedEventSelector.cc:80
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::global::OutputModuleBase::baseType
static const std::string & baseType()
Definition: OutputModuleBase.cc:355
edm::global::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:193
edm::EventForOutput
Definition: EventForOutput.h:50
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventSignalsSentry
Definition: EventSignalsSentry.h:29
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:855
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
edm::ProductRegistry::productList
ProductList const & productList() const
Definition: ProductRegistry.h:73
edm::global::OutputModuleBase::doRespondToOpenInputFile
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:311
edm::global::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:200
edm::EventSelector::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSelector.cc:992
edm::BranchDescription::moduleLabel
std::string const & moduleLabel() const
Definition: BranchDescription.h:72
edm::global::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:188
edm::global::OutputModuleBase::doCloseFile
void doCloseFile()
Tell the OutputModule that is must end the current file.
Definition: OutputModuleBase.cc:318
edm::global::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: OutputModuleBase.cc:347
BranchKey.h
ThinnedAssociation.h
edm::global::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:42
edm::global::OutputModuleBase::doEndLuminosityBlock
bool doEndLuminosityBlock(LuminosityBlockPrincipal const &lbp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:293
edm::global::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:204
edm::global::OutputModuleBase::writeRun
virtual void writeRun(RunForOutput const &)=0
edm::OccurrenceForOutput::setConsumer
void setConsumer(EDConsumerBase const *iConsumer)
Definition: OccurrenceForOutput.cc:22
edm::global::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
edm::PreallocationConfiguration::numberOfStreams
unsigned int numberOfStreams() const
Definition: PreallocationConfiguration.h:35
edm::global::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:184
edm::global::OutputModuleBase::remainingEvents_
std::atomic< int > remainingEvents_
Definition: OutputModuleBase.h:166
edm::global::OutputModuleBase::doEndJob
void doEndJob()
Definition: OutputModuleBase.cc:210
edm::BranchDescription
Definition: BranchDescription.h:32
edm::global::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:339
DebugMacros.h
edm::global::OutputModuleBase::isFileOpen
virtual bool isFileOpen() const
Definition: OutputModuleBase.h:244
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::global::OutputModuleBase::doEndRun
bool doEndRun(RunPrincipal const &rp, EventSetupImpl const &c, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:269
edm::OutputModuleDescription
Definition: OutputModuleDescription.h:17
edm::global::OutputModuleBase::doBeginJob
void doBeginJob()
Definition: OutputModuleBase.cc:208
ParameterSet.h
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes)
Definition: insertSelectedProcesses.cc:15
OutputModuleBase.h
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
LuminosityBlockForOutput.h
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:126
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::global::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:201
edm::TypeToGet
Definition: TypeToGet.h:32
edm::global::OutputModuleBase::doEvent
bool doEvent(EventPrincipal const &ep, EventSetupImpl const &c, ActivityRegistry *, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:237
edm::global::OutputModuleBase::prevalidate
static void prevalidate(ConfigurationDescriptions &)
Definition: OutputModuleBase.cc:352
edm::global::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:262
edm::global::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:191
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
edm::BranchDescription::branchID
BranchID const & branchID() const
Definition: BranchDescription.h:74
edm::global::OutputModuleBase::doRespondToCloseInputFile
void doRespondToCloseInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:316
edm::global::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:333
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::InputTag
Definition: InputTag.h:15
edm::global::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.h:247
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
edm::global::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:192
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::global::OutputModuleBase::doWriteLuminosityBlock
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:302
edm::global::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316