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 // Original Author: Chris Jones
10 // Created: Wed, 31 Jul 2013 15:59:19 GMT
11 //
12 
13 // system include files
14 #include <cassert>
15 
16 // user include files
18 
41 
42 namespace edm {
43  namespace one {
44 
45  // -------------------------------------------------------
47  : maxEvents_(-1),
48  remainingEvents_(maxEvents_),
49  keptProducts_(),
50  hasNewlyDroppedBranch_(),
51  process_name_(),
52  productSelectorRules_(pset, "outputCommands", "OutputModule"),
53  productSelector_(),
54  moduleDescription_(),
55  wantAllEvents_(false),
56  selectors_(),
57  selector_config_id_(),
58  droppedBranchIDToKeptBranchID_(),
59  branchIDLists_(new BranchIDLists),
60  origBranchIDLists_(nullptr),
61  thinnedAssociationsHelper_(new ThinnedAssociationsHelper) {
62  hasNewlyDroppedBranch_.fill(false);
63 
65  process_name_ = tns->getProcessName();
66 
67  selectEvents_ = pset.getUntrackedParameterSet("SelectEvents", ParameterSet());
68 
69  selectEvents_.registerIt(); // Just in case this PSet is not registered
70 
72 
73  //need to set wantAllEvents_ in constructor
74  // we will make the remaining selectors once we know how many streams
75  selectors_.resize(1);
78  }
79 
81  remainingEvents_ = maxEvents_ = desc.maxEvents_;
82  origBranchIDLists_ = desc.branchIDLists_;
83  subProcessParentageHelper_ = desc.subProcessParentageHelper_;
84  }
85 
87  ThinnedAssociationsHelper const& thinnedAssociationsHelper,
88  ProcessBlockHelperBase const& processBlockHelper) {
90  return;
92 
93  // TODO: See if we can collapse keptProducts_ and productSelector_ into a
94  // single object. See the notes in the header for ProductSelector
95  // for more information.
96 
97  std::map<BranchID, BranchDescription const*> trueBranchIDToKeptBranchDesc;
98  std::vector<BranchDescription const*> associationDescriptions;
99  std::set<BranchID> keptProductsInEvent;
100  std::set<std::string> processesWithSelectedMergeableRunProducts;
101  std::set<std::string> processesWithKeptProcessBlockProducts;
102 
103  for (auto const& it : preg.productList()) {
104  BranchDescription const& desc = it.second;
105  if (desc.transient()) {
106  // if the class of the branch is marked transient, output nothing
107  } else if (!desc.present() && !desc.produced()) {
108  // else if the branch containing the product has been previously dropped,
109  // output nothing
110  } else if (desc.unwrappedType() == typeid(ThinnedAssociation)) {
111  associationDescriptions.push_back(&desc);
112  } else if (selected(desc)) {
113  keepThisBranch(desc, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
115  desc, processesWithSelectedMergeableRunProducts, processesWithKeptProcessBlockProducts);
116  } else {
117  // otherwise, output nothing,
118  // and mark the fact that there is a newly dropped branch of this type.
119  hasNewlyDroppedBranch_[desc.branchType()] = true;
120  }
121  }
122 
123  setProcessesWithSelectedMergeableRunProducts(processesWithSelectedMergeableRunProducts);
124 
126  associationDescriptions, keptProductsInEvent, keepAssociation_);
127 
128  for (auto association : associationDescriptions) {
129  if (keepAssociation_[association->branchID()]) {
130  keepThisBranch(*association, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
131  } else {
132  hasNewlyDroppedBranch_[association->branchType()] = true;
133  }
134  }
135 
136  // Now fill in a mapping needed in the case that a branch was dropped while its EDAlias was kept.
137  ProductSelector::fillDroppedToKept(preg, trueBranchIDToKeptBranchDesc, droppedBranchIDToKeptBranchID_);
138 
139  thinnedAssociationsHelper_->updateFromParentProcess(
141  outputProcessBlockHelper_.updateAfterProductSelection(processesWithKeptProcessBlockProducts, processBlockHelper);
142  }
143 
145  std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
146  std::set<BranchID>& keptProductsInEvent) {
147  ProductSelector::checkForDuplicateKeptBranch(desc, trueBranchIDToKeptBranchDesc);
148 
150 
151  std::vector<std::string> missingDictionaries;
152  if (!checkDictionary(missingDictionaries, desc.className(), desc.unwrappedType())) {
153  std::string context("Calling OutputModuleBase::keepThisBranch, checking dictionaries for kept types");
154  throwMissingDictionariesException(missingDictionaries, context);
155  }
156 
157  switch (desc.branchType()) {
158  case InEvent: {
159  if (desc.produced()) {
160  keptProductsInEvent.insert(desc.originalBranchID());
161  } else {
162  keptProductsInEvent.insert(desc.branchID());
163  }
164  token = consumes(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
165  InputTag{desc.moduleLabel(), desc.productInstanceName(), desc.processName()});
166  break;
167  }
168  case InLumi: {
169  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
170  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
171  break;
172  }
173  case InRun: {
174  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
175  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
176  break;
177  }
178  case InProcess: {
179  token = consumes<InProcess>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
180  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
181  break;
182  }
183  default:
184  assert(false);
185  break;
186  }
187  // Now put it in the list of selected branches.
188  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
189  }
190 
192 
195  std::vector<std::shared_ptr<SerialTaskQueue>>(1, std::make_shared<SerialTaskQueue>())};
196  }
197 
199  auto nstreams = iPC.numberOfStreams();
200  selectors_.resize(nstreams);
201 
203 
204  bool seenFirst = false;
205  for (auto& s : selectors_) {
206  if (seenFirst) {
208  } else {
209  seenFirst = true;
210  }
211  }
212  }
213 
214  void OutputModuleBase::preallocLumis(unsigned int) {}
215 
218  this->beginJob();
219  }
220 
222 
224 
225  std::vector<ProductResolverIndexAndSkipBit> OutputModuleBase::productsUsedBySelection() const {
226  std::vector<ProductResolverIndexAndSkipBit> returnValue;
227  auto const& s = selectors_[0];
228  auto const n = s.numberOfTokens();
229  returnValue.reserve(n);
230 
231  for (unsigned int i = 0; i < n; ++i) {
232  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
233  }
234  return returnValue;
235  }
236 
238  EventPrincipal const& ep,
239  ModuleCallingContext const* mcc) {
240  if (wantAllEvents_)
241  return true;
242  auto& s = selectors_[id.value()];
244  e.setConsumer(this);
245  return s.wantEvent(e);
246  }
247 
249  ActivityRegistry* act,
250  ModuleCallingContext const* mcc) {
251  {
253  e.setConsumer(this);
254  EventSignalsSentry sentry(act, mcc);
255  write(e);
256  }
257  if (remainingEvents_ > 0) {
259  }
260  return true;
261  }
262 
264  RunForOutput r(info, moduleDescription_, mcc, false);
265  r.setConsumer(this);
266  doBeginRun_(r);
267  return true;
268  }
269 
271  RunForOutput r(info, moduleDescription_, mcc, true);
272  r.setConsumer(this);
273  doEndRun_(r);
274  return true;
275  }
276 
278  ProcessBlockForOutput pb(pbp, moduleDescription_, mcc, true);
279  pb.setConsumer(this);
280  writeProcessBlock(pb);
281  }
282 
284  ModuleCallingContext const* mcc,
285  MergeableRunProductMetadata const* mrpm) {
286  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
287  r.setConsumer(this);
288  writeRun(r);
289  }
290 
293  lb.setConsumer(this);
295  return true;
296  }
297 
300  lb.setConsumer(this);
302 
303  return true;
304  }
305 
307  ModuleCallingContext const* mcc) {
308  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
309  lb.setConsumer(this);
311  }
312 
314 
316 
318 
320  if (isFileOpen()) {
321  reallyCloseFile();
322  }
323  }
324 
326 
328  if (!droppedBranchIDToKeptBranchID_.empty()) {
329  // Make a private copy of the BranchIDLists.
331  // Check for branches dropped while an EDAlias was kept.
332  for (BranchIDList& branchIDList : *branchIDLists_) {
333  for (BranchID::value_type& branchID : branchIDList) {
334  // Replace BranchID of each dropped branch with that of the kept alias, so the alias branch will have the product ID of the original branch.
335  std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter =
336  droppedBranchIDToKeptBranchID_.find(branchID);
337  if (iter != droppedBranchIDToKeptBranchID_.end()) {
338  branchID = iter->second;
339  }
340  }
341  }
342  return branchIDLists_.get();
343  }
344  return origBranchIDLists_;
345  }
346 
348  return thinnedAssociationsHelper_.get();
349  }
350 
352 
354 
357  desc.setUnknown();
358  descriptions.addDefault(desc);
359  }
360 
362  std::vector<std::string> const& defaultOutputCommands) {
363  ProductSelectorRules::fillDescription(desc, "outputCommands", defaultOutputCommands);
365  }
366 
368 
369  static const std::string kBaseType("OutputModule");
371 
373  std::map<std::string, std::vector<std::pair<std::string, int>>> const& outputModulePathPositions,
374  bool anyProductProduced) {
377  outputModulePathPositions,
378  anyProductProduced);
379  }
380  } // namespace one
381 } // namespace edm
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:113
ConfigurationDescriptions.h
edm::one::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:179
edm::EventTransitionInfo
Definition: TransitionInfoTypes.h:26
edm::StreamID
Definition: StreamID.h:30
edm::SharedResourcesAcquirer
Definition: SharedResourcesAcquirer.h:34
ThinnedAssociationsHelper.h
edm::one::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:257
Handle.h
mps_fire.i
i
Definition: mps_fire.py:428
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
edm::one::OutputModuleBase::doBeginJob
void doBeginJob()
Definition: OutputModuleBase.cc:216
edm::throwMissingDictionariesException
void throwMissingDictionariesException(std::vector< std::string > &missingDictionaries, std::string const &context)
Definition: DictionaryTools.cc:193
edm::one::OutputModuleBase::isFileOpen
virtual bool isFileOpen() const
Definition: OutputModuleBase.h:255
edm::getAllTriggerNames
std::vector< std::string > const & getAllTriggerNames()
Definition: getAllTriggerNames.cc:22
edm::one::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:185
funct::false
false
Definition: Factorize.h:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::one::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:184
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::one::OutputModuleBase::doBeginLuminosityBlock
bool doBeginLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:291
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes, std::set< std::string > &processesWithKeptProcessBlockProducts)
Definition: insertSelectedProcesses.cc:15
edm::one::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:260
edm::one::OutputModuleBase::doEvent
bool doEvent(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:248
edm::LumiTransitionInfo
Definition: TransitionInfoTypes.h:42
TriggerNamesService.h
edm::OccurrenceForOutput::setConsumer
void setConsumer(EDConsumerBase const *iConsumer)
Definition: OccurrenceForOutput.cc:22
edm::one::OutputModuleBase::prevalidate
static void prevalidate(ConfigurationDescriptions &)
Definition: OutputModuleBase.cc:367
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::one::OutputModuleBase::needToRunSelection
bool needToRunSelection() const
Definition: OutputModuleBase.cc:223
edm::one::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:161
edm::one::OutputModuleBase::doRespondToOpenInputFile
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:315
edm::ProductSelector::initialize
void initialize(ProductSelectorRules const &rules, std::vector< BranchDescription const * > const &branchDescriptions)
Definition: ProductSelector.cc:20
edm::one::OutputModuleBase::remainingEvents_
std::atomic< int > remainingEvents_
Definition: OutputModuleBase.h:162
edm::one::OutputModuleBase::outputProcessBlockHelper_
OutputProcessBlockHelper outputProcessBlockHelper_
Definition: OutputModuleBase.h:205
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::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::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::one::OutputModuleBase::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: OutputModuleBase.cc:355
edm::ParameterSet::id
ParameterSetID id() const
Definition: ParameterSet.cc:189
EventForOutput.h
edm::one::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:259
edm::one::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:347
edm::RunTransitionInfo
Definition: TransitionInfoTypes.h:64
edm::one::OutputModuleBase::doWriteProcessBlock
void doWriteProcessBlock(ProcessBlockPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:277
EventSignalsSentry.h
edm::InRun
Definition: BranchType.h:11
edm::ProcessBlockPrincipal
Definition: ProcessBlockPrincipal.h:22
edm::one::OutputModuleBase::baseType
static const std::string & baseType()
Definition: OutputModuleBase.cc:370
edm::one::OutputModuleBase::doBeginRun
bool doBeginRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:263
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::one::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:46
edm::one::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:262
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::ProductRegistry
Definition: ProductRegistry.h:37
visDQMUpload.context
context
Definition: visDQMUpload.py:37
edm::one::OutputModuleBase::selectProducts
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase const &)
Definition: OutputModuleBase.cc:86
edm::one::OutputModuleBase::doEndJob
void doEndJob()
Definition: OutputModuleBase.cc:221
edm::FileBlock
Definition: FileBlock.h:22
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
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::one::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:249
edm::EventPrincipal
Definition: EventPrincipal.h:48
OutputModuleDescription.h
edm::one::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:250
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
edm::one::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:203
edm::one::OutputModuleBase::writeRun
virtual void writeRun(RunForOutput const &)=0
edm::BranchIDList
std::vector< BranchID::value_type > BranchIDList
Definition: BranchIDList.h:18
EventPrincipal.h
Service.h
edm::one::OutputModuleBase::writeProcessBlock
virtual void writeProcessBlock(ProcessBlockForOutput const &)
Definition: OutputModuleBase.h:253
edm::one::OutputModuleBase::subProcessParentageHelper_
SubProcessParentageHelper const * subProcessParentageHelper_
Definition: OutputModuleBase.h:200
edm::ProductSelector::checkForDuplicateKeptBranch
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
Definition: ProductSelector.cc:71
edm::one::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:183
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::one::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:196
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
insertSelectedProcesses.h
edm::one::OutputModuleBase::doPreallocate
void doPreallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.cc:198
edm::InEvent
Definition: BranchType.h:11
edm::one::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:264
edm::one::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
Definition: OutputModuleBase.cc:361
ParameterSetDescription.h
edm::one::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:261
edm::one::OutputModuleBase::doCloseFile
void doCloseFile()
Tell the OutputModule that is must end the current file.
Definition: OutputModuleBase.cc:319
edm::one::OutputModuleBase::~OutputModuleBase
~OutputModuleBase() override
Definition: OutputModuleBase.cc:191
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::one::OutputModuleBase::doWriteLuminosityBlock
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:306
edm::one::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:198
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
edm::BranchID::value_type
unsigned int value_type
Definition: BranchID.h:16
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::one::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:182
edm::one::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:189
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:37
BranchDescription.h
edm::one::OutputModuleBase::doEndLuminosityBlock
bool doEndLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:298
edm::ProcessBlockHelperBase
Definition: ProcessBlockHelperBase.h:18
edm::ParameterSet
Definition: ParameterSet.h:47
edm::one::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:197
edm::one::OutputModuleBase::resourcesAcquirer_
SharedResourcesAcquirer resourcesAcquirer_
Definition: OutputModuleBase.h:207
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::one::OutputModuleBase::openFile
virtual void openFile(FileBlock const &)
Definition: OutputModuleBase.h:254
edm::one::OutputModuleBase::branchIDLists
BranchIDLists const * branchIDLists()
Definition: OutputModuleBase.cc:327
edm::Service
Definition: Service.h:30
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::one::OutputModuleBase::doOpenFile
void doOpenFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:313
edm::ProductRegistry::allBranchDescriptions
std::vector< BranchDescription const * > allBranchDescriptions() const
Definition: ProductRegistry.cc:199
edm::EDGetToken
Definition: EDGetToken.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::one::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:192
edm::OutputProcessBlockHelper::updateAfterProductSelection
void updateAfterProductSelection(std::set< std::string > const &processesWithKeptProcessBlockProducts, ProcessBlockHelperBase const &)
Definition: OutputProcessBlockHelper.cc:12
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::one::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:144
edm::one::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.cc:214
edm::ProcessBlockForOutput
Definition: ProcessBlockForOutput.h:27
edm::EventForOutput
Definition: EventForOutput.h:50
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventSignalsSentry
Definition: EventSignalsSentry.h:29
OutputModuleBase.h
ProcessBlockForOutput.h
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:862
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::one::OutputModuleBase::description
ModuleDescription const & description() const
Definition: OutputModuleBase.cc:351
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::one::OutputModuleBase::doWriteRun
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
Definition: OutputModuleBase.cc:283
edm::one::OutputModuleBase::createAcquirer
virtual SharedResourcesAcquirer createAcquirer()
Definition: OutputModuleBase.cc:193
edm::EventSelector::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSelector.cc:992
edm::one::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::one::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:188
edm::one::OutputModuleBase::configure
void configure(OutputModuleDescription const &desc)
Definition: OutputModuleBase.cc:80
edm::one::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LCToCPAssociatorByEnergyScoreImpl.h:44
edm::one::OutputModuleBase::productsUsedBySelection
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
Definition: OutputModuleBase.cc:225
BranchKey.h
edm::one::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:187
ThinnedAssociation.h
edm::PreallocationConfiguration::numberOfStreams
unsigned int numberOfStreams() const
Definition: PreallocationConfiguration.h:35
edm::one::OutputModuleBase::prePrefetchSelection
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:237
edm::BranchDescription
Definition: BranchDescription.h:32
edm::checkDictionary
bool checkDictionary(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
Definition: DictionaryTools.cc:67
DebugMacros.h
edm::one::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:258
edm::one::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
edm::one::OutputModuleBase::doEndRun
bool doEndRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:270
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::OutputModuleDescription
Definition: OutputModuleDescription.h:17
ParameterSet.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::TypeToGet
Definition: TypeToGet.h:32
DictionaryTools.h
edm::one::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:325
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::InputTag
Definition: InputTag.h:15
edm::one::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:353
edm::one::OutputModuleBase::doRespondToCloseInputFile
void doRespondToCloseInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:317
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::one::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:202
edm::one::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:180
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::one::OutputModuleBase::setEventSelectionInfo
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
Definition: OutputModuleBase.cc:372