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 
40 
41 namespace edm {
42  namespace one {
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  subProcessParentageHelper_ = desc.subProcessParentageHelper_;
83  }
84 
86  ThinnedAssociationsHelper const& thinnedAssociationsHelper) {
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 
100  for (auto const& it : preg.productList()) {
101  BranchDescription const& desc = it.second;
102  if (desc.transient()) {
103  // if the class of the branch is marked transient, output nothing
104  } else if (!desc.present() && !desc.produced()) {
105  // else if the branch containing the product has been previously dropped,
106  // output nothing
107  } else if (desc.unwrappedType() == typeid(ThinnedAssociation)) {
108  associationDescriptions.push_back(&desc);
109  } else if (selected(desc)) {
110  keepThisBranch(desc, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
111  insertSelectedProcesses(desc, processesWithSelectedMergeableRunProducts);
112  } else {
113  // otherwise, output nothing,
114  // and mark the fact that there is a newly dropped branch of this type.
115  hasNewlyDroppedBranch_[desc.branchType()] = true;
116  }
117  }
118 
119  setProcessesWithSelectedMergeableRunProducts(processesWithSelectedMergeableRunProducts);
120 
122  associationDescriptions, keptProductsInEvent, keepAssociation_);
123 
124  for (auto association : associationDescriptions) {
125  if (keepAssociation_[association->branchID()]) {
126  keepThisBranch(*association, trueBranchIDToKeptBranchDesc, keptProductsInEvent);
127  } else {
128  hasNewlyDroppedBranch_[association->branchType()] = true;
129  }
130  }
131 
132  // Now fill in a mapping needed in the case that a branch was dropped while its EDAlias was kept.
133  ProductSelector::fillDroppedToKept(preg, trueBranchIDToKeptBranchDesc, droppedBranchIDToKeptBranchID_);
134 
135  thinnedAssociationsHelper_->updateFromParentProcess(
137  }
138 
140  std::map<BranchID, BranchDescription const*>& trueBranchIDToKeptBranchDesc,
141  std::set<BranchID>& keptProductsInEvent) {
142  ProductSelector::checkForDuplicateKeptBranch(desc, trueBranchIDToKeptBranchDesc);
143 
145 
146  std::vector<std::string> missingDictionaries;
147  if (!checkDictionary(missingDictionaries, desc.className(), desc.unwrappedType())) {
148  std::string context("Calling OutputModuleBase::keepThisBranch, checking dictionaries for kept types");
149  throwMissingDictionariesException(missingDictionaries, context);
150  }
151 
152  switch (desc.branchType()) {
153  case InEvent: {
154  if (desc.produced()) {
155  keptProductsInEvent.insert(desc.originalBranchID());
156  } else {
157  keptProductsInEvent.insert(desc.branchID());
158  }
159  token = consumes(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
160  InputTag{desc.moduleLabel(), desc.productInstanceName(), desc.processName()});
161  break;
162  }
163  case InLumi: {
164  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
165  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
166  break;
167  }
168  case InRun: {
169  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
170  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
171  break;
172  }
173  case InProcess: {
174  token = consumes<InProcess>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
175  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
176  break;
177  }
178  default:
179  assert(false);
180  break;
181  }
182  // Now put it in the list of selected branches.
183  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
184  }
185 
187 
190  std::vector<std::shared_ptr<SerialTaskQueue>>(1, std::make_shared<SerialTaskQueue>())};
191  }
192 
194  auto nstreams = iPC.numberOfStreams();
195  selectors_.resize(nstreams);
196 
198 
199  bool seenFirst = false;
200  for (auto& s : selectors_) {
201  if (seenFirst) {
203  } else {
204  seenFirst = true;
205  }
206  }
207  }
208 
209  void OutputModuleBase::preallocLumis(unsigned int) {}
210 
213  this->beginJob();
214  }
215 
217 
219 
220  std::vector<ProductResolverIndexAndSkipBit> OutputModuleBase::productsUsedBySelection() const {
221  std::vector<ProductResolverIndexAndSkipBit> returnValue;
222  auto const& s = selectors_[0];
223  auto const n = s.numberOfTokens();
224  returnValue.reserve(n);
225 
226  for (unsigned int i = 0; i < n; ++i) {
227  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
228  }
229  return returnValue;
230  }
231 
233  EventPrincipal const& ep,
234  ModuleCallingContext const* mcc) {
235  if (wantAllEvents_)
236  return true;
237  auto& s = selectors_[id.value()];
239  e.setConsumer(this);
240  return s.wantEvent(e);
241  }
242 
244  ActivityRegistry* act,
245  ModuleCallingContext const* mcc) {
246  {
248  e.setConsumer(this);
249  EventSignalsSentry sentry(act, mcc);
250  write(e);
251  }
252  if (remainingEvents_ > 0) {
254  }
255  return true;
256  }
257 
259  RunForOutput r(info, moduleDescription_, mcc, false);
260  r.setConsumer(this);
261  doBeginRun_(r);
262  return true;
263  }
264 
266  RunForOutput r(info, moduleDescription_, mcc, true);
267  r.setConsumer(this);
268  doEndRun_(r);
269  return true;
270  }
271 
273  ModuleCallingContext const* mcc,
274  MergeableRunProductMetadata const* mrpm) {
275  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
276  r.setConsumer(this);
277  writeRun(r);
278  }
279 
282  lb.setConsumer(this);
284  return true;
285  }
286 
289  lb.setConsumer(this);
291 
292  return true;
293  }
294 
296  ModuleCallingContext const* mcc) {
297  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
298  lb.setConsumer(this);
300  }
301 
303 
305 
307 
309  if (isFileOpen()) {
310  reallyCloseFile();
311  }
312  }
313 
315 
317  if (!droppedBranchIDToKeptBranchID_.empty()) {
318  // Make a private copy of the BranchIDLists.
320  // Check for branches dropped while an EDAlias was kept.
321  for (BranchIDList& branchIDList : *branchIDLists_) {
322  for (BranchID::value_type& branchID : branchIDList) {
323  // 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.
324  std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter =
325  droppedBranchIDToKeptBranchID_.find(branchID);
326  if (iter != droppedBranchIDToKeptBranchID_.end()) {
327  branchID = iter->second;
328  }
329  }
330  }
331  return branchIDLists_.get();
332  }
333  return origBranchIDLists_;
334  }
335 
337  return thinnedAssociationsHelper_.get();
338  }
339 
341 
343 
346  desc.setUnknown();
347  descriptions.addDefault(desc);
348  }
349 
351  std::vector<std::string> const& defaultOutputCommands) {
352  ProductSelectorRules::fillDescription(desc, "outputCommands", defaultOutputCommands);
354  }
355 
357 
358  static const std::string kBaseType("OutputModule");
360 
362  std::map<std::string, std::vector<std::pair<std::string, int>>> const& outputModulePathPositions,
363  bool anyProductProduced) {
366  outputModulePathPositions,
367  anyProductProduced);
368  }
369  } // namespace one
370 } // namespace edm
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:113
ConfigurationDescriptions.h
edm::one::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:175
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:249
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:211
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:247
edm::getAllTriggerNames
std::vector< std::string > const & getAllTriggerNames()
Definition: getAllTriggerNames.cc:22
edm::one::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:181
funct::false
false
Definition: Factorize.h:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::one::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:180
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::one::OutputModuleBase::doBeginLuminosityBlock
bool doBeginLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:280
edm::one::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:252
edm::one::OutputModuleBase::doEvent
bool doEvent(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:243
edm::LumiTransitionInfo
Definition: TransitionInfoTypes.h:42
TriggerNamesService.h
edm::one::OutputModuleBase::prevalidate
static void prevalidate(ConfigurationDescriptions &)
Definition: OutputModuleBase.cc:356
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::one::OutputModuleBase::needToRunSelection
bool needToRunSelection() const
Definition: OutputModuleBase.cc:218
edm::one::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:157
edm::one::OutputModuleBase::doRespondToOpenInputFile
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:304
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:158
edm::one::OutputModuleBase::selectProducts
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)
Definition: OutputModuleBase.cc:85
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LayerClusterAssociatorByEnergyScoreImpl.h:44
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:46
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:344
edm::ParameterSet::id
ParameterSetID id() const
Definition: ParameterSet.cc:189
EventForOutput.h
edm::one::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:251
edm::one::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:336
edm::RunTransitionInfo
Definition: TransitionInfoTypes.h:64
EventSignalsSentry.h
edm::InRun
Definition: BranchType.h:11
edm::one::OutputModuleBase::baseType
static const std::string & baseType()
Definition: OutputModuleBase.cc:359
edm::one::OutputModuleBase::doBeginRun
bool doBeginRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:258
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::one::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:45
edm::one::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:254
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::ProductRegistry
Definition: ProductRegistry.h:37
edm::one::OutputModuleBase::doEndJob
void doEndJob()
Definition: OutputModuleBase.cc:216
edm::FileBlock
Definition: FileBlock.h:20
edm::PreallocationConfiguration::numberOfLuminosityBlocks
unsigned int numberOfLuminosityBlocks() const
Definition: PreallocationConfiguration.h:36
edm::EDConsumerBase::uncheckedIndexFrom
ProductResolverIndexAndSkipBit uncheckedIndexFrom(EDGetToken) const
Definition: EDConsumerBase.cc:269
edm::RunForOutput
Definition: RunForOutput.h:39
edm::InProcess
Definition: BranchType.h:11
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::one::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:242
edm::EventPrincipal
Definition: EventPrincipal.h:46
OutputModuleDescription.h
edm::one::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:243
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
edm::one::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:199
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::subProcessParentageHelper_
SubProcessParentageHelper const * subProcessParentageHelper_
Definition: OutputModuleBase.h:196
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:179
edm::ActivityRegistry
Definition: ActivityRegistry.h:133
edm::one::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:192
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:193
edm::InEvent
Definition: BranchType.h:11
edm::one::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:256
edm::one::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
Definition: OutputModuleBase.cc:350
ParameterSetDescription.h
edm::one::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:253
edm::one::OutputModuleBase::doCloseFile
void doCloseFile()
Tell the OutputModule that is must end the current file.
Definition: OutputModuleBase.cc:308
edm::one::OutputModuleBase::~OutputModuleBase
~OutputModuleBase() override
Definition: OutputModuleBase.cc:186
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:295
edm::one::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:194
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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::one::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:178
edm::one::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:185
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:37
BranchDescription.h
edm::one::OutputModuleBase::doEndLuminosityBlock
bool doEndLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:287
edm::ParameterSet
Definition: ParameterSet.h:47
edm::one::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:193
edm::one::OutputModuleBase::resourcesAcquirer_
SharedResourcesAcquirer resourcesAcquirer_
Definition: OutputModuleBase.h:201
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:246
edm::one::OutputModuleBase::branchIDLists
BranchIDLists const * branchIDLists()
Definition: OutputModuleBase.cc:316
edm::Service
Definition: Service.h:30
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::one::OutputModuleBase::doOpenFile
void doOpenFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:302
edm::ProductRegistry::allBranchDescriptions
std::vector< BranchDescription const * > allBranchDescriptions() const
Definition: ProductRegistry.cc:199
edm::EDGetToken
Definition: EDGetToken.h:35
edm::one::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:188
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:139
edm::one::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.cc:209
edm::EventForOutput
Definition: EventForOutput.h:50
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventSignalsSentry
Definition: EventSignalsSentry.h:29
OutputModuleBase.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:340
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:272
edm::one::OutputModuleBase::createAcquirer
virtual SharedResourcesAcquirer createAcquirer()
Definition: OutputModuleBase.cc:188
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:184
edm::one::OutputModuleBase::configure
void configure(OutputModuleDescription const &desc)
Definition: OutputModuleBase.cc:79
edm::one::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
edm::one::OutputModuleBase::productsUsedBySelection
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
Definition: OutputModuleBase.cc:220
BranchKey.h
edm::one::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:183
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::one::OutputModuleBase::prePrefetchSelection
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:232
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:250
edm::one::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
edm::one::OutputModuleBase::doEndRun
bool doEndRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:265
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::OutputModuleDescription
Definition: OutputModuleDescription.h:17
ParameterSet.h
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes)
Definition: insertSelectedProcesses.cc:15
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
LuminosityBlockForOutput.h
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:153
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::TypeToGet
Definition: TypeToGet.h:32
DictionaryTools.h
edm::one::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:314
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:342
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
edm::one::OutputModuleBase::doRespondToCloseInputFile
void doRespondToCloseInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:306
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::one::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:198
edm::one::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:176
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318
edm::one::OutputModuleBase::setEventSelectionInfo
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
Definition: OutputModuleBase.cc:361