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 
40 
41 namespace edm {
42  namespace global {
43 
44  // -------------------------------------------------------
46  : maxEvents_(-1),
47  remainingEvents_(maxEvents_),
48  keptProducts_(),
49  hasNewlyDroppedBranch_(),
50  process_name_(),
51  productSelectorRules_(pset, "outputCommands", "OutputModule"),
52  productSelector_(),
53  moduleDescription_(),
54  wantAllEvents_(false),
55  selectors_(),
56  selector_config_id_(),
57  droppedBranchIDToKeptBranchID_(),
58  branchIDLists_(new BranchIDLists),
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  }
78 
80  remainingEvents_ = maxEvents_ = desc.maxEvents_;
81  origBranchIDLists_ = desc.branchIDLists_;
82  }
83 
85  ThinnedAssociationsHelper const& thinnedAssociationsHelper,
86  ProcessBlockHelperBase const& processBlockHelper) {
88  return;
90 
91  // TODO: See if we can collapse keptProducts_ and productSelector_ into a
92  // single object. See the notes in the header for ProductSelector
93  // for more information.
94 
95  std::map<BranchID, BranchDescription const*> trueBranchIDToKeptBranchDesc;
96  std::vector<BranchDescription const*> associationDescriptions;
97  std::set<BranchID> keptProductsInEvent;
98  std::set<std::string> processesWithSelectedMergeableRunProducts;
99  std::set<std::string> processesWithKeptProcessBlockProducts;
100 
101  for (auto const& it : preg.productList()) {
102  BranchDescription const& desc = it.second;
103  if (desc.transient()) {
104  // if the class of the branch is marked transient, output nothing
105  } else if (!desc.present() && !desc.produced()) {
106  // else if the branch containing the product has been previously dropped,
107  // output nothing
108  } else if (desc.unwrappedType() == typeid(ThinnedAssociation)) {
109  associationDescriptions.push_back(&desc);
110  } else if (selected(desc)) {
111  keepThisBranch(desc, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
113  desc, processesWithSelectedMergeableRunProducts, processesWithKeptProcessBlockProducts);
114  } else {
115  // otherwise, output nothing,
116  // and mark the fact that there is a newly dropped branch of this type.
117  hasNewlyDroppedBranch_[desc.branchType()] = true;
118  }
119  }
120 
121  setProcessesWithSelectedMergeableRunProducts(processesWithSelectedMergeableRunProducts);
122 
124  associationDescriptions, keptProductsInEvent, keepAssociation_);
125 
126  for (auto association : associationDescriptions) {
127  if (keepAssociation_[association->branchID()]) {
128  keepThisBranch(*association, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
129  } else {
130  hasNewlyDroppedBranch_[association->branchType()] = true;
131  }
132  }
133 
134  // Now fill in a mapping needed in the case that a branch was dropped while its EDAlias was kept.
135  ProductSelector::fillDroppedToKept(preg, trueBranchIDToKeptBranchDesc, droppedBranchIDToKeptBranchID_);
136 
137  thinnedAssociationsHelper_->updateFromParentProcess(
139  outputProcessBlockHelper_.updateAfterProductSelection(processesWithKeptProcessBlockProducts, processBlockHelper);
140  }
141 
143  if (!droppedBranchIDToKeptBranchID_.empty()) {
144  // Make a private copy of the BranchIDLists.
146  // Check for branches dropped while an EDAlias was kept.
147  for (BranchIDList& branchIDList : *branchIDLists_) {
148  for (BranchID::value_type& branchID : branchIDList) {
149  // Replace BranchID of each dropped branch with that of the kept
150  // alias, so the alias branch will have the product ID of the original branch.
151  std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter =
152  droppedBranchIDToKeptBranchID_.find(branchID);
153  if (iter != droppedBranchIDToKeptBranchID_.end()) {
154  branchID = iter->second;
155  }
156  }
157  }
158  }
159  }
160 
162  std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
163  std::set<BranchID>& keptProductsInEvent) {
164  ProductSelector::checkForDuplicateKeptBranch(desc, trueBranchIDToKeptBranchDesc);
165 
167 
168  std::vector<std::string> missingDictionaries;
169  if (!checkDictionary(missingDictionaries, desc.className(), desc.unwrappedType())) {
170  std::string context("Calling OutputModuleBase::keepThisBranch, checking dictionaries for kept types");
171  throwMissingDictionariesException(missingDictionaries, context);
172  }
173 
174  switch (desc.branchType()) {
175  case InEvent: {
176  if (desc.produced()) {
177  keptProductsInEvent.insert(desc.originalBranchID());
178  } else {
179  keptProductsInEvent.insert(desc.branchID());
180  }
181  token = consumes(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
182  InputTag{desc.moduleLabel(), desc.productInstanceName(), desc.processName()});
183  break;
184  }
185  case InLumi: {
186  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
187  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
188  break;
189  }
190  case InRun: {
191  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
192  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
193  break;
194  }
195  case InProcess: {
196  token = consumes<InProcess>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
197  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
198  break;
199  }
200  default:
201  assert(false);
202  break;
203  }
204  // Now put it in the list of selected branches.
205  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
206  }
207 
209 
211  auto nstreams = iPC.numberOfStreams();
212  selectors_.resize(nstreams);
213 
214  bool seenFirst = false;
215  for (auto& s : selectors_) {
216  if (seenFirst) {
218  } else {
219  seenFirst = true;
220  }
221  }
222  preallocStreams(nstreams);
224  preallocate(iPC);
225  }
226 
228 
230 
232 
233  std::vector<ProductResolverIndexAndSkipBit> OutputModuleBase::productsUsedBySelection() const {
234  std::vector<ProductResolverIndexAndSkipBit> returnValue;
235  auto const& s = selectors_[0];
236  auto const n = s.numberOfTokens();
237  returnValue.reserve(n);
238 
239  for (unsigned int i = 0; i < n; ++i) {
240  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
241  }
242  return returnValue;
243  }
244 
246  EventPrincipal const& ep,
247  ModuleCallingContext const* mcc) {
248  if (wantAllEvents_)
249  return true;
250  auto& s = selectors_[id.value()];
252  e.setConsumer(this);
253  return s.wantEvent(e);
254  }
255 
257  ActivityRegistry* act,
258  ModuleCallingContext const* mcc) {
259  {
261  e.setConsumer(this);
262  EventSignalsSentry sentry(act, mcc);
263  write(e);
264  }
265 
266  auto remainingEvents = remainingEvents_.load();
267  bool keepTrying = remainingEvents > 0;
268  while (keepTrying) {
269  auto newValue = remainingEvents - 1;
270  keepTrying = !remainingEvents_.compare_exchange_strong(remainingEvents, newValue);
271  if (keepTrying) {
272  // the exchange failed because the value was changed by another thread.
273  // remainingEvents was changed to be the new value of remainingEvents_;
274  keepTrying = remainingEvents > 0;
275  }
276  }
277  return true;
278  }
279 
281  ActivityRegistry* act,
282  ModuleCallingContext const* mcc,
283  WaitingTaskWithArenaHolder& holder) {
285  e.setConsumer(this);
286  EventAcquireSignalsSentry sentry(act, mcc);
287  this->doAcquire_(e.streamID(), e, holder);
288  }
289 
291  RunForOutput r(info, moduleDescription_, mcc, false);
292  r.setConsumer(this);
293  doBeginRun_(r);
294  return true;
295  }
296 
298  RunForOutput r(info, moduleDescription_, mcc, true);
299  r.setConsumer(this);
300  doEndRun_(r);
301  return true;
302  }
303 
305  ProcessBlockForOutput pb(pbp, moduleDescription_, mcc, true);
306  pb.setConsumer(this);
307  writeProcessBlock(pb);
308  }
309 
311  ModuleCallingContext const* mcc,
312  MergeableRunProductMetadata const* mrpm) {
313  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
314  r.setConsumer(this);
315  writeRun(r);
316  }
317 
320  lb.setConsumer(this);
322  return true;
323  }
324 
327  lb.setConsumer(this);
329  return true;
330  }
331 
333  ModuleCallingContext const* mcc) {
334  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
335  lb.setConsumer(this);
337  }
338 
340 
344  }
345 
347 
349  if (isFileOpen()) {
350  reallyCloseFile();
351  }
352  }
353 
355 
357  if (!droppedBranchIDToKeptBranchID_.empty()) {
358  return branchIDLists_.get();
359  }
360  return origBranchIDLists_;
361  }
362 
364  return thinnedAssociationsHelper_.get();
365  }
366 
368 
370 
373  desc.setUnknown();
374  descriptions.addDefault(desc);
375  }
376 
378  ProductSelectorRules::fillDescription(desc, "outputCommands");
380  }
381 
383 
384  static const std::string kBaseType("OutputModule");
386 
388  std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
389  bool anyProductProduced) {
392  outputModulePathPositions,
393  anyProductProduced);
394  }
395  } // namespace global
396 } // namespace edm
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:113
ConfigurationDescriptions.h
edm::EventTransitionInfo
Definition: TransitionInfoTypes.h:26
edm::global::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::StreamID
Definition: StreamID.h:30
ThinnedAssociationsHelper.h
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
Handle.h
mps_fire.i
i
Definition: mps_fire.py:428
edm::throwMissingDictionariesException
void throwMissingDictionariesException(std::vector< std::string > &missingDictionaries, std::string const &context)
Definition: DictionaryTools.cc:193
edm::getAllTriggerNames
std::vector< std::string > const & getAllTriggerNames()
Definition: getAllTriggerNames.cc:22
edm::global::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:185
edm::global::OutputModuleBase::doEndLuminosityBlock
bool doEndLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:325
funct::false
false
Definition: Factorize.h:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::global::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:273
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::global::OutputModuleBase::needToRunSelection
bool needToRunSelection() const
Definition: OutputModuleBase.cc:231
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes, std::set< std::string > &processesWithKeptProcessBlockProducts)
Definition: insertSelectedProcesses.cc:15
edm::global::OutputModuleBase::updateBranchIDListsWithKeptAliases
void updateBranchIDListsWithKeptAliases()
Definition: OutputModuleBase.cc:142
edm::LumiTransitionInfo
Definition: TransitionInfoTypes.h:42
edm::global::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:354
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
TriggerNamesService.h
edm::OccurrenceForOutput::setConsumer
void setConsumer(EDConsumerBase const *iConsumer)
Definition: OccurrenceForOutput.cc:22
edm::EventForOutput::streamID
StreamID streamID() const
Definition: EventForOutput.h:63
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
HLT enums.
Definition: AlignableModifier.h:19
edm::global::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:88
edm::ProductSelector::initialize
void initialize(ProductSelectorRules const &rules, std::vector< BranchDescription const * > const &branchDescriptions)
Definition: ProductSelector.cc:20
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
RunForOutput.h
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::global::OutputModuleBase::doAcquire
void doAcquire(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *, WaitingTaskWithArenaHolder &)
Definition: OutputModuleBase.cc:280
edm::ThinnedAssociation
Definition: ThinnedAssociation.h:15
cms::cuda::assert
assert(be >=bs)
edm::propagate_const::get
constexpr element_type const * get() const
Definition: propagate_const.h:64
edm::global::OutputModuleBase::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: OutputModuleBase.cc:371
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
PreallocationConfiguration.h
ProductRegistry.h
edm::ParameterSet::id
ParameterSetID id() const
Definition: ParameterSet.cc:189
EventForOutput.h
edm::RunTransitionInfo
Definition: TransitionInfoTypes.h:64
EventSignalsSentry.h
edm::InRun
Definition: BranchType.h:11
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
visDQMUpload.context
context
Definition: visDQMUpload.py:37
edm::FileBlock
Definition: FileBlock.h:22
edm::global::OutputModuleBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.h:251
edm::PreallocationConfiguration::numberOfLuminosityBlocks
unsigned int numberOfLuminosityBlocks() const
Definition: PreallocationConfiguration.h:36
edm::EDConsumerBase::uncheckedIndexFrom
ProductResolverIndexAndSkipBit uncheckedIndexFrom(EDGetToken) const
Definition: EDConsumerBase.cc:270
edm::RunForOutput
Definition: RunForOutput.h:40
edm::InProcess
Definition: BranchType.h:11
edm::WaitingTaskWithArenaHolder
Definition: WaitingTaskWithArenaHolder.h:34
edm::global::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:187
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::global::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:242
edm::global::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:200
edm::EventPrincipal
Definition: EventPrincipal.h:48
OutputModuleDescription.h
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
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:233
edm::global::OutputModuleBase::writeProcessBlock
virtual void writeProcessBlock(ProcessBlockForOutput const &)
Definition: OutputModuleBase.h:245
edm::ProductSelector::checkForDuplicateKeptBranch
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
Definition: ProductSelector.cc:71
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::ThinnedAssociationsHelper::selectAssociationProducts
void selectAssociationProducts(std::vector< BranchDescription const * > const &associationDescriptions, std::set< BranchID > const &keptProductsInEvent, std::map< BranchID, bool > &keepAssociation) const
Definition: ThinnedAssociationsHelper.cc:189
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::global::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:181
edm::global::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:241
edm::global::OutputModuleBase::doPreallocate
void doPreallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.cc:210
insertSelectedProcesses.h
edm::InEvent
Definition: BranchType.h:11
ParameterSetDescription.h
edm::global::OutputModuleBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: OutputModuleBase.h:249
edm::ProductSelector::fillDroppedToKept
static void fillDroppedToKept(ProductRegistry const &preg, std::map< BranchID, BranchDescription const * > const &trueBranchIDToKeptBranchDesc, std::map< BranchID::value_type, BranchID::value_type > &droppedBranchIDToKeptBranchID_)
Definition: ProductSelector.cc:99
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
edm::BranchID::value_type
unsigned int value_type
Definition: BranchID.h:16
edm::global::OutputModuleBase::openFile
virtual void openFile(FileBlock const &)
Definition: OutputModuleBase.h:246
edm::global::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:161
edm::global::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:263
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::global::OutputModuleBase::doOpenFile
void doOpenFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:339
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:37
BranchDescription.h
edm::ProcessBlockHelperBase
Definition: ProcessBlockHelperBase.h:18
edm::ParameterSet
Definition: ParameterSet.h:47
edm::InLumi
Definition: BranchType.h:11
edm::ProductSelectorRules::fillDescription
static void fillDescription(ParameterSetDescription &desc, char const *parameterName, std::vector< std::string > const &defaultStrings=defaultSelectionStrings())
Definition: ProductSelectorRules.cc:202
edm::global::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:270
edm::global::OutputModuleBase::selectProducts
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase const &)
Definition: OutputModuleBase.cc:84
edm::Service
Definition: Service.h:30
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::EventAcquireSignalsSentry
Definition: EventAcquireSignalsSentry.h:29
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::ProductRegistry::allBranchDescriptions
std::vector< BranchDescription const * > allBranchDescriptions() const
Definition: ProductRegistry.cc:199
edm::EDGetToken
Definition: EDGetToken.h:35
edm::global::OutputModuleBase::outputProcessBlockHelper_
OutputProcessBlockHelper outputProcessBlockHelper_
Definition: OutputModuleBase.h:205
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::global::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:184
edm::global::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:269
edm::OutputProcessBlockHelper::updateAfterProductSelection
void updateAfterProductSelection(std::set< std::string > const &processesWithKeptProcessBlockProducts, ProcessBlockHelperBase const &)
Definition: OutputProcessBlockHelper.cc:12
edm::global::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:163
edm::global::OutputModuleBase::doWriteRun
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
Definition: OutputModuleBase.cc:310
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:385
edm::global::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:191
edm::ProcessBlockForOutput
Definition: ProcessBlockForOutput.h:27
edm::EventForOutput
Definition: EventForOutput.h:50
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventSignalsSentry
Definition: EventSignalsSentry.h:29
ProcessBlockForOutput.h
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:862
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
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:76
edm::global::OutputModuleBase::doRespondToOpenInputFile
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:341
edm::global::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:198
edm::EventSelector::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSelector.cc:992
edm::global::OutputModuleBase::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
EventAcquireSignalsSentry.h
edm::global::OutputModuleBase::doWriteProcessBlock
void doWriteProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:304
edm::global::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: OutputModuleBase.cc:377
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LCToCPAssociatorByEnergyScoreImpl.h:44
BranchKey.h
ThinnedAssociation.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::PreallocationConfiguration::numberOfStreams
unsigned int numberOfStreams() const
Definition: PreallocationConfiguration.h:35
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::BranchDescription
Definition: BranchDescription.h:32
edm::global::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:369
edm::checkDictionary
bool checkDictionary(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
Definition: DictionaryTools.cc:67
DebugMacros.h
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
ParameterSet.h
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:159
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::global::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:199
edm::TypeToGet
Definition: TypeToGet.h:32
edm::global::OutputModuleBase::prevalidate
static void prevalidate(ConfigurationDescriptions &)
Definition: OutputModuleBase.cc:382
DictionaryTools.h
edm::global::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:265
edm::global::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:189
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
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
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:250
edm::global::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:190
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::global::OutputModuleBase::doWriteLuminosityBlock
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:332
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
edm::global::OutputModuleBase::doEvent
bool doEvent(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:256