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