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