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 global {
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  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 
78  remainingEvents_ = maxEvents_ = desc.maxEvents_;
79  origBranchIDLists_ = desc.branchIDLists_;
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 
162  std::vector<std::string> missingDictionaries;
163  if (!checkDictionary(missingDictionaries, desc.className(), desc.unwrappedType())) {
164  std::string context("Calling OutputModuleBase::keepThisBranch, checking dictionaries for kept types");
165  throwMissingDictionariesException(missingDictionaries, context);
166  }
167 
168  switch (desc.branchType()) {
169  case InEvent: {
170  if (desc.produced()) {
171  keptProductsInEvent.insert(desc.originalBranchID());
172  } else {
173  keptProductsInEvent.insert(desc.branchID());
174  }
175  token = consumes(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
176  InputTag{desc.moduleLabel(), desc.productInstanceName(), desc.processName()});
177  break;
178  }
179  case InLumi: {
180  token = consumes<InLumi>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
181  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
182  break;
183  }
184  case InRun: {
185  token = consumes<InRun>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
186  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
187  break;
188  }
189  case InProcess: {
190  token = consumes<InProcess>(TypeToGet{desc.unwrappedTypeID(), PRODUCT_TYPE},
191  InputTag(desc.moduleLabel(), desc.productInstanceName(), desc.processName()));
192  break;
193  }
194  default:
195  assert(false);
196  break;
197  }
198  // Now put it in the list of selected branches.
199  keptProducts_[desc.branchType()].push_back(std::make_pair(&desc, token));
200  }
201 
203 
205  auto nstreams = iPC.numberOfStreams();
206  selectors_.resize(nstreams);
207 
208  bool seenFirst = false;
209  for (auto& s : selectors_) {
210  if (seenFirst) {
212  } else {
213  seenFirst = true;
214  }
215  }
216  preallocStreams(nstreams);
218  preallocate(iPC);
219  }
220 
222 
224 
226 
227  std::vector<ProductResolverIndexAndSkipBit> OutputModuleBase::productsUsedBySelection() const {
228  std::vector<ProductResolverIndexAndSkipBit> returnValue;
229  auto const& s = selectors_[0];
230  auto const n = s.numberOfTokens();
231  returnValue.reserve(n);
232 
233  for (unsigned int i = 0; i < n; ++i) {
234  returnValue.emplace_back(uncheckedIndexFrom(s.token(i)));
235  }
236  return returnValue;
237  }
238 
240  EventPrincipal const& ep,
241  ModuleCallingContext const* mcc) {
242  if (wantAllEvents_)
243  return true;
244  auto& s = selectors_[id.value()];
246  e.setConsumer(this);
247  return s.wantEvent(e);
248  }
249 
251  ActivityRegistry* act,
252  ModuleCallingContext const* mcc) {
253  {
255  e.setConsumer(this);
256  EventSignalsSentry sentry(act, mcc);
257  write(e);
258  }
259 
260  auto remainingEvents = remainingEvents_.load();
261  bool keepTrying = remainingEvents > 0;
262  while (keepTrying) {
263  auto newValue = remainingEvents - 1;
264  keepTrying = !remainingEvents_.compare_exchange_strong(remainingEvents, newValue);
265  if (keepTrying) {
266  // the exchange failed because the value was changed by another thread.
267  // remainingEvents was changed to be the new value of remainingEvents_;
268  keepTrying = remainingEvents > 0;
269  }
270  }
271  return true;
272  }
273 
275  RunForOutput r(info, moduleDescription_, mcc, false);
276  r.setConsumer(this);
277  doBeginRun_(r);
278  return true;
279  }
280 
282  RunForOutput r(info, moduleDescription_, mcc, true);
283  r.setConsumer(this);
284  doEndRun_(r);
285  return true;
286  }
287 
289  ModuleCallingContext const* mcc,
290  MergeableRunProductMetadata const* mrpm) {
291  RunForOutput r(rp, moduleDescription_, mcc, true, mrpm);
292  r.setConsumer(this);
293  writeRun(r);
294  }
295 
298  lb.setConsumer(this);
300  return true;
301  }
302 
305  lb.setConsumer(this);
307  return true;
308  }
309 
311  ModuleCallingContext const* mcc) {
312  LuminosityBlockForOutput lb(lbp, moduleDescription_, mcc, true);
313  lb.setConsumer(this);
315  }
316 
318 
322  }
323 
325 
327  if (isFileOpen()) {
328  reallyCloseFile();
329  }
330  }
331 
333 
335  if (!droppedBranchIDToKeptBranchID_.empty()) {
336  return branchIDLists_.get();
337  }
338  return origBranchIDLists_;
339  }
340 
342  return thinnedAssociationsHelper_.get();
343  }
344 
346 
348 
351  desc.setUnknown();
352  descriptions.addDefault(desc);
353  }
354 
356  ProductSelectorRules::fillDescription(desc, "outputCommands");
358  }
359 
361 
362  static const std::string kBaseType("OutputModule");
364 
366  std::map<std::string, std::vector<std::pair<std::string, int> > > const& outputModulePathPositions,
367  bool anyProductProduced) {
370  outputModulePathPositions,
371  anyProductProduced);
372  }
373  } // namespace global
374 } // namespace edm
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition: ParameterSet.cc:113
ConfigurationDescriptions.h
edm::EventTransitionInfo
Definition: TransitionInfoTypes.h:26
edm::global::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::StreamID
Definition: StreamID.h:30
ThinnedAssociationsHelper.h
edm::global::OutputModuleBase::doBeginRun_
virtual void doBeginRun_(RunForOutput const &)
Definition: OutputModuleBase.h:249
edm::global::OutputModuleBase::branchIDLists
BranchIDLists const * branchIDLists() const
Definition: OutputModuleBase.cc:334
Handle.h
mps_fire.i
i
Definition: mps_fire.py:428
edm::throwMissingDictionariesException
void throwMissingDictionariesException(std::vector< std::string > &missingDictionaries, std::string const &context)
Definition: DictionaryTools.cc:193
edm::getAllTriggerNames
std::vector< std::string > const & getAllTriggerNames()
Definition: getAllTriggerNames.cc:22
edm::global::OutputModuleBase::productSelectorRules_
ProductSelectorRules productSelectorRules_
Definition: OutputModuleBase.h:177
edm::global::OutputModuleBase::doEndLuminosityBlock
bool doEndLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:303
funct::false
false
Definition: Factorize.h:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::global::OutputModuleBase::setProcessesWithSelectedMergeableRunProducts
virtual void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &)
Definition: OutputModuleBase.h:260
edm::PRODUCT_TYPE
Definition: ProductKindOfType.h:5
edm::global::OutputModuleBase::needToRunSelection
bool needToRunSelection() const
Definition: OutputModuleBase.cc:225
edm::global::OutputModuleBase::updateBranchIDListsWithKeptAliases
void updateBranchIDListsWithKeptAliases()
Definition: OutputModuleBase.cc:136
edm::LumiTransitionInfo
Definition: TransitionInfoTypes.h:42
edm::global::OutputModuleBase::reallyCloseFile
virtual void reallyCloseFile()
Definition: OutputModuleBase.cc:332
edm::global::OutputModuleBase::description
ModuleDescription const & description() const
Definition: OutputModuleBase.cc:345
edm::global::OutputModuleBase::selector_config_id_
ParameterSetID selector_config_id_
Definition: OutputModuleBase.h:186
TriggerNamesService.h
edm::global::OutputModuleBase::prePrefetchSelection
bool prePrefetchSelection(StreamID id, EventPrincipal const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:239
edm::global::OutputModuleBase::configure
void configure(OutputModuleDescription const &desc)
Definition: OutputModuleBase.cc:77
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::global::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:86
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
cms::cuda::assert
assert(be >=bs)
edm::propagate_const::get
constexpr element_type const * get() const
Definition: propagate_const.h:64
edm::global::OutputModuleBase::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: OutputModuleBase.cc:349
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
edm::ProductSelector::selected
bool selected(BranchDescription const &desc) const
Definition: ProductSelector.cc:55
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
PreallocationConfiguration.h
ProductRegistry.h
edm::ParameterSet::id
ParameterSetID id() const
Definition: ParameterSet.cc:189
EventForOutput.h
edm::RunTransitionInfo
Definition: TransitionInfoTypes.h:64
EventSignalsSentry.h
edm::InRun
Definition: BranchType.h:11
edm::global::OutputModuleBase::doEndLuminosityBlock_
virtual void doEndLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:255
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::global::OutputModuleBase::~OutputModuleBase
~OutputModuleBase() override
Definition: OutputModuleBase.cc:202
edm::global::OutputModuleBase::doEndRun
bool doEndRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:281
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::ProductRegistry
Definition: ProductRegistry.h:37
edm::FileBlock
Definition: FileBlock.h:20
edm::global::OutputModuleBase::preallocate
virtual void preallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.h:239
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:39
edm::InProcess
Definition: BranchType.h:11
edm::global::OutputModuleBase::moduleDescription_
ModuleDescription moduleDescription_
Definition: OutputModuleBase.h:179
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::global::OutputModuleBase::endJob
virtual void endJob()
Definition: OutputModuleBase.h:231
edm::global::OutputModuleBase::origBranchIDLists_
BranchIDLists const * origBranchIDLists_
Definition: OutputModuleBase.h:192
edm::EventPrincipal
Definition: EventPrincipal.h:46
OutputModuleDescription.h
edm::ProductSelector::initialized
bool initialized() const
Definition: ProductSelector.h:38
edm::BranchIDList
std::vector< BranchID::value_type > BranchIDList
Definition: BranchIDList.h:18
EventPrincipal.h
Service.h
edm::global::OutputModuleBase::productsUsedBySelection
std::vector< ProductResolverIndexAndSkipBit > productsUsedBySelection() const
Definition: OutputModuleBase.cc:227
edm::ProductSelector::checkForDuplicateKeptBranch
static void checkForDuplicateKeptBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc)
Definition: ProductSelector.cc:71
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::ThinnedAssociationsHelper::selectAssociationProducts
void selectAssociationProducts(std::vector< BranchDescription const * > const &associationDescriptions, std::set< BranchID > const &keptProductsInEvent, std::map< BranchID, bool > &keepAssociation) const
Definition: ThinnedAssociationsHelper.cc:189
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::global::OutputModuleBase::keptProducts_
SelectedProductsForBranchType keptProducts_
Definition: OutputModuleBase.h:173
edm::global::OutputModuleBase::beginJob
virtual void beginJob()
Definition: OutputModuleBase.h:230
edm::global::OutputModuleBase::doPreallocate
void doPreallocate(PreallocationConfiguration const &)
Definition: OutputModuleBase.cc:204
insertSelectedProcesses.h
edm::InEvent
Definition: BranchType.h:11
ParameterSetDescription.h
edm::global::OutputModuleBase::preallocStreams
virtual void preallocStreams(unsigned int)
Definition: OutputModuleBase.h:237
edm::ProductSelector::fillDroppedToKept
static void fillDroppedToKept(ProductRegistry const &preg, std::map< BranchID, BranchDescription const * > const &trueBranchIDToKeptBranchDesc, std::map< BranchID::value_type, BranchID::value_type > &droppedBranchIDToKeptBranchID_)
Definition: ProductSelector.cc:99
edm::BranchIDLists
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
edm::BranchID::value_type
unsigned int value_type
Definition: BranchID.h:16
edm::global::OutputModuleBase::openFile
virtual void openFile(FileBlock const &)
Definition: OutputModuleBase.h:234
edm::global::OutputModuleBase::keepThisBranch
void keepThisBranch(BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc, std::set< BranchID > &keptProductsInEvent)
Definition: OutputModuleBase.cc:155
edm::global::OutputModuleBase::doEndRun_
virtual void doEndRun_(RunForOutput const &)
Definition: OutputModuleBase.h:251
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::global::OutputModuleBase::doOpenFile
void doOpenFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:317
edm::ThinnedAssociationsHelper
Definition: ThinnedAssociationsHelper.h:37
BranchDescription.h
edm::ParameterSet
Definition: ParameterSet.h:47
edm::InLumi
Definition: BranchType.h:11
edm::ProductSelectorRules::fillDescription
static void fillDescription(ParameterSetDescription &desc, char const *parameterName, std::vector< std::string > const &defaultStrings=defaultSelectionStrings())
Definition: ProductSelectorRules.cc:202
edm::global::OutputModuleBase::doRespondToCloseInputFile_
virtual void doRespondToCloseInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:258
edm::Service
Definition: Service.h:30
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::global::OutputModuleBase::setEventSelectionInfo
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
edm::global::OutputModuleBase::keepAssociation_
std::map< BranchID, bool > keepAssociation_
Definition: OutputModuleBase.h:195
edm::ProductRegistry::allBranchDescriptions
std::vector< BranchDescription const * > allBranchDescriptions() const
Definition: ProductRegistry.cc:199
edm::global::OutputModuleBase::selectProducts
void selectProducts(ProductRegistry const &preg, ThinnedAssociationsHelper const &)
Definition: OutputModuleBase.cc:82
edm::EDGetToken
Definition: EDGetToken.h:35
edm::global::OutputModuleBase::process_name_
std::string process_name_
Definition: OutputModuleBase.h:176
edm::global::OutputModuleBase::doRespondToOpenInputFile_
virtual void doRespondToOpenInputFile_(FileBlock const &)
Definition: OutputModuleBase.h:257
edm::global::OutputModuleBase::maxEvents_
int maxEvents_
Definition: OutputModuleBase.h:155
edm::global::OutputModuleBase::doWriteRun
void doWriteRun(RunPrincipal const &rp, ModuleCallingContext const *, MergeableRunProductMetadata const *)
Definition: OutputModuleBase.cc:288
edm::detail::configureEventSelector
bool configureEventSelector(edm::ParameterSet const &iPSet, std::string const &iProcessName, std::vector< std::string > const &iAllTriggerNames, edm::detail::TriggerResultsBasedEventSelector &oSelector, ConsumesCollector &&iC)
Definition: TriggerResultsBasedEventSelector.cc:80
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::global::OutputModuleBase::baseType
static const std::string & baseType()
Definition: OutputModuleBase.cc:363
edm::global::OutputModuleBase::selectEvents_
ParameterSet selectEvents_
Definition: OutputModuleBase.h:183
edm::EventForOutput
Definition: EventForOutput.h:50
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventSignalsSentry
Definition: EventSignalsSentry.h:29
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:862
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::detail::registerProperSelectionInfo
ParameterSetID registerProperSelectionInfo(edm::ParameterSet const &iInitial, std::string const &iLabel, std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
Definition: TriggerResultsBasedEventSelector.cc:163
edm::ProductRegistry::productList
ProductList const & productList() const
Definition: ProductRegistry.h:76
edm::global::OutputModuleBase::doRespondToOpenInputFile
void doRespondToOpenInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:319
hgcal::association
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
Definition: LayerClusterAssociatorByEnergyScoreImpl.h:44
edm::global::OutputModuleBase::droppedBranchIDToKeptBranchID_
std::map< BranchID::value_type, BranchID::value_type > droppedBranchIDToKeptBranchID_
Definition: OutputModuleBase.h:190
edm::EventSelector::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSelector.cc:992
edm::global::OutputModuleBase::doBeginLuminosityBlock
bool doBeginLuminosityBlock(LumiTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:296
edm::global::OutputModuleBase::productSelector_
ProductSelector productSelector_
Definition: OutputModuleBase.h:178
edm::global::OutputModuleBase::doCloseFile
void doCloseFile()
Tell the OutputModule that is must end the current file.
Definition: OutputModuleBase.cc:326
edm::global::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: OutputModuleBase.cc:355
BranchKey.h
ThinnedAssociation.h
edm::global::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:43
edm::global::OutputModuleBase::thinnedAssociationsHelper_
edm::propagate_const< std::unique_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: OutputModuleBase.h:194
edm::global::OutputModuleBase::writeRun
virtual void writeRun(RunForOutput const &)=0
edm::OccurrenceForOutput::setConsumer
void setConsumer(EDConsumerBase const *iConsumer)
Definition: OccurrenceForOutput.cc:22
edm::global::OutputModuleBase::writeLuminosityBlock
virtual void writeLuminosityBlock(LuminosityBlockForOutput const &)=0
edm::PreallocationConfiguration::numberOfStreams
unsigned int numberOfStreams() const
Definition: PreallocationConfiguration.h:35
edm::global::OutputModuleBase::hasNewlyDroppedBranch_
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: OutputModuleBase.h:174
edm::global::OutputModuleBase::remainingEvents_
std::atomic< int > remainingEvents_
Definition: OutputModuleBase.h:156
edm::global::OutputModuleBase::doEndJob
void doEndJob()
Definition: OutputModuleBase.cc:223
edm::BranchDescription
Definition: BranchDescription.h:32
edm::global::OutputModuleBase::selected
bool selected(BranchDescription const &desc) const
Definition: OutputModuleBase.cc:347
edm::checkDictionary
bool checkDictionary(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
Definition: DictionaryTools.cc:67
DebugMacros.h
edm::global::OutputModuleBase::isFileOpen
virtual bool isFileOpen() const
Definition: OutputModuleBase.h:235
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::OutputModuleDescription
Definition: OutputModuleDescription.h:17
edm::global::OutputModuleBase::doBeginJob
void doBeginJob()
Definition: OutputModuleBase.cc:221
ParameterSet.h
edm::insertSelectedProcesses
void insertSelectedProcesses(BranchDescription const &desc, std::set< std::string > &processes)
Definition: insertSelectedProcesses.cc:15
OutputModuleBase.h
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
LuminosityBlockForOutput.h
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:155
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::global::OutputModuleBase::branchIDLists_
edm::propagate_const< std::unique_ptr< BranchIDLists > > branchIDLists_
Definition: OutputModuleBase.h:191
edm::TypeToGet
Definition: TypeToGet.h:32
edm::global::OutputModuleBase::prevalidate
static void prevalidate(ConfigurationDescriptions &)
Definition: OutputModuleBase.cc:360
DictionaryTools.h
edm::global::OutputModuleBase::doBeginLuminosityBlock_
virtual void doBeginLuminosityBlock_(LuminosityBlockForOutput const &)
Definition: OutputModuleBase.h:253
edm::global::OutputModuleBase::wantAllEvents_
bool wantAllEvents_
Definition: OutputModuleBase.h:181
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
edm::global::OutputModuleBase::doRespondToCloseInputFile
void doRespondToCloseInputFile(FileBlock const &fb)
Definition: OutputModuleBase.cc:324
edm::global::OutputModuleBase::thinnedAssociationsHelper
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
Definition: OutputModuleBase.cc:341
edm::global::OutputModuleBase::doBeginRun
bool doBeginRun(RunTransitionInfo const &, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:274
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::InputTag
Definition: InputTag.h:15
edm::global::OutputModuleBase::preallocLumis
virtual void preallocLumis(unsigned int)
Definition: OutputModuleBase.h:238
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
edm::global::OutputModuleBase::selectors_
std::vector< detail::TriggerResultsBasedEventSelector > selectors_
Definition: OutputModuleBase.h:182
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::global::OutputModuleBase::doWriteLuminosityBlock
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:310
edm::global::OutputModuleBase::write
virtual void write(EventForOutput const &)=0
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316
edm::global::OutputModuleBase::doEvent
bool doEvent(EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
Definition: OutputModuleBase.cc:250