CMS 3D CMS Logo

PoolOutputModule.cc
Go to the documentation of this file.
2 
4 
24 
25 #include "TTree.h"
26 #include "TBranchElement.h"
27 #include "TObjArray.h"
28 #include "RVersion.h"
29 
30 #include <fstream>
31 #include <iomanip>
32 #include <sstream>
33 #include "boost/algorithm/string.hpp"
34 
35 namespace edm {
38  one::OutputModule<WatchInputFiles>(pset),
39  rootServiceChecker_(),
40  auxItems_(),
41  selectedOutputItemList_(),
42  fileName_(pset.getUntrackedParameter<std::string>("fileName")),
43  logicalFileName_(pset.getUntrackedParameter<std::string>("logicalFileName")),
44  catalog_(pset.getUntrackedParameter<std::string>("catalog")),
45  maxFileSize_(pset.getUntrackedParameter<int>("maxSize")),
46  compressionLevel_(pset.getUntrackedParameter<int>("compressionLevel")),
47  compressionAlgorithm_(pset.getUntrackedParameter<std::string>("compressionAlgorithm")),
48  basketSize_(pset.getUntrackedParameter<int>("basketSize")),
49  eventAutoFlushSize_(pset.getUntrackedParameter<int>("eventAutoFlushCompressedSize")),
50  splitLevel_(std::min<int>(pset.getUntrackedParameter<int>("splitLevel") + 1, 99)),
51  basketOrder_(pset.getUntrackedParameter<std::string>("sortBaskets")),
52  treeMaxVirtualSize_(pset.getUntrackedParameter<int>("treeMaxVirtualSize")),
53  whyNotFastClonable_(pset.getUntrackedParameter<bool>("fastCloning") ? FileBlock::CanFastClone
54  : FileBlock::DisabledInConfigFile),
55  dropMetaData_(DropNone),
56  moduleLabel_(pset.getParameter<std::string>("@module_label")),
57  initializedFromInput_(false),
58  outputFileCount_(0),
59  inputFileCount_(0),
60  branchParents_(),
61  branchChildren_(),
62  overrideInputFileSplitLevels_(pset.getUntrackedParameter<bool>("overrideInputFileSplitLevels")),
63  rootOutputFile_(),
64  statusFileName_() {
65  if (pset.getUntrackedParameter<bool>("writeStatusFile")) {
66  std::ostringstream statusfilename;
67  statusfilename << moduleLabel_ << '_' << getpid();
68  statusFileName_ = statusfilename.str();
69  }
70 
71  std::string dropMetaData(pset.getUntrackedParameter<std::string>("dropMetaData"));
72  if (dropMetaData.empty())
74  else if (dropMetaData == std::string("NONE"))
76  else if (dropMetaData == std::string("DROPPED"))
78  else if (dropMetaData == std::string("PRIOR"))
80  else if (dropMetaData == std::string("ALL"))
82  else {
83  throw edm::Exception(errors::Configuration, "Illegal dropMetaData parameter value: ")
84  << dropMetaData << ".\n"
85  << "Legal values are 'NONE', 'DROPPED', 'PRIOR', and 'ALL'.\n";
86  }
87 
88  if (!wantAllEvents()) {
90  }
91 
92  auto const& specialSplit{pset.getUntrackedParameterSetVector("overrideBranchesSplitLevel")};
93 
94  specialSplitLevelForBranches_.reserve(specialSplit.size());
95  for (auto const& s : specialSplit) {
96  specialSplitLevelForBranches_.emplace_back(s.getUntrackedParameter<std::string>("branch"),
97  s.getUntrackedParameter<int>("splitLevel"));
98  }
99 
100  // We don't use this next parameter, but we read it anyway because it is part
101  // of the configuration of this module. An external parser creates the
102  // configuration by reading this source code.
103  pset.getUntrackedParameterSet("dataset");
104  }
105 
108  for (auto const& prod : reg->productList()) {
109  BranchDescription const& desc = prod.second;
110  if (desc.produced() && desc.branchType() == InEvent && !desc.isAlias()) {
111  producedBranches_.emplace_back(desc.branchID());
112  }
113  }
114  }
115 
116  std::string const& PoolOutputModule::currentFileName() const { return rootOutputFile_->fileName(); }
117 
118  PoolOutputModule::AuxItem::AuxItem() : basketSize_(BranchDescription::invalidBasketSize) {}
119 
121  : branchDescription_(nullptr),
122  token_(),
123  product_(nullptr),
124  splitLevel_(BranchDescription::invalidSplitLevel),
125  basketSize_(BranchDescription::invalidBasketSize) {}
126 
128  EDGetToken const& token,
129  int splitLevel,
130  int basketSize)
131  : branchDescription_(bd), token_(token), product_(nullptr), splitLevel_(splitLevel), basketSize_(basketSize) {}
132 
134  // Fill a map mapping branch names to an index specifying the order in the tree.
135  if (tree != nullptr) {
136  TObjArray* branches = tree->GetListOfBranches();
137  for (int i = 0; i < branches->GetEntries(); ++i) {
138  TBranchElement* br = (TBranchElement*)branches->At(i);
139  treeMap_->insert(std::make_pair(std::string(br->GetName()), i));
140  }
141  }
142  }
143 
145  // Provides a comparison for sorting branches according to the index values in treeMap_.
146  // Branches not found are always put at the end (i.e. not found > found).
147  if (treeMap_->empty())
148  return lh < rh;
149  std::string const& lstring = lh.branchDescription_->branchName();
150  std::string const& rstring = rh.branchDescription_->branchName();
151  std::map<std::string, int>::const_iterator lit = treeMap_->find(lstring);
152  std::map<std::string, int>::const_iterator rit = treeMap_->find(rstring);
153  bool lfound = (lit != treeMap_->end());
154  bool rfound = (rit != treeMap_->end());
155  if (lfound && rfound) {
156  return lit->second < rit->second;
157  } else if (lfound) {
158  return true;
159  } else if (rfound) {
160  return false;
161  }
162  return lh < rh;
163  }
164 
165  inline bool PoolOutputModule::SpecialSplitLevelForBranch::match(std::string const& iBranchName) const {
166  return std::regex_match(iBranchName, branch_);
167  }
168 
169  std::regex PoolOutputModule::SpecialSplitLevelForBranch::convert(std::string const& iGlobBranchExpression) const {
170  std::string tmp(iGlobBranchExpression);
171  boost::replace_all(tmp, "*", ".*");
172  boost::replace_all(tmp, "?", ".");
173  return std::regex(tmp);
174  }
175 
176  void PoolOutputModule::fillSelectedItemList(BranchType branchType, TTree* theInputTree) {
177  SelectedProducts const& keptVector = keptProducts()[branchType];
178  OutputItemList& outputItemList = selectedOutputItemList_[branchType];
179  AuxItem& auxItem = auxItems_[branchType];
180 
181  // Fill AuxItem
182  if (theInputTree != nullptr && !overrideInputFileSplitLevels_) {
183  TBranch* auxBranch = theInputTree->GetBranch(BranchTypeToAuxiliaryBranchName(branchType).c_str());
184  if (auxBranch) {
185  auxItem.basketSize_ = auxBranch->GetBasketSize();
186  } else {
187  auxItem.basketSize_ = basketSize_;
188  }
189  } else {
190  auxItem.basketSize_ = basketSize_;
191  }
192 
193  // Fill outputItemList with an entry for each branch.
194  for (auto const& kept : keptVector) {
197 
198  BranchDescription const& prod = *kept.first;
199  TBranch* theBranch = ((!prod.produced() && theInputTree != nullptr && !overrideInputFileSplitLevels_)
200  ? theInputTree->GetBranch(prod.branchName().c_str())
201  : nullptr);
202 
203  if (theBranch != nullptr) {
204  splitLevel = theBranch->GetSplitLevel();
205  basketSize = theBranch->GetBasketSize();
206  } else {
207  splitLevel = (prod.splitLevel() == BranchDescription::invalidSplitLevel ? splitLevel_ : prod.splitLevel());
208  for (auto const& b : specialSplitLevelForBranches_) {
209  if (b.match(prod.branchName())) {
210  splitLevel = b.splitLevel_;
211  }
212  }
213  basketSize = (prod.basketSize() == BranchDescription::invalidBasketSize ? basketSize_ : prod.basketSize());
214  }
215  outputItemList.emplace_back(&prod, kept.second, splitLevel, basketSize);
216  }
217 
218  // Sort outputItemList to allow fast copying.
219  // The branches in outputItemList must be in the same order as in the input tree, with all new branches at the end.
220  sort_all(outputItemList, OutputItem::Sorter(theInputTree));
221  }
222 
224  if (isFileOpen()) {
225  //Faster to read ChildrenBranches directly from input
226  // file than to build it every event
227  auto const& branchToChildMap = fb.branchChildren().childLookup();
228  for (auto const& parentToChildren : branchToChildMap) {
229  for (auto const& child : parentToChildren.second) {
230  branchChildren_.insertChild(parentToChildren.first, child);
231  }
232  }
233  rootOutputFile_->beginInputFile(fb, remainingEvents());
234  }
235  }
236 
238  if (!isFileOpen()) {
239  reallyOpenFile();
241  }
242  }
243 
245  if (!initializedFromInput_) {
246  for (int i = InEvent; i < NumBranchTypes; ++i) {
247  if (i == InProcess) {
248  // ProcessBlock output not implemented yet
249  continue;
250  }
251  BranchType branchType = static_cast<BranchType>(i);
252  TTree* theInputTree =
253  (branchType == InEvent ? fb.tree() : (branchType == InLumi ? fb.lumiTree() : fb.runTree()));
254  fillSelectedItemList(branchType, theInputTree);
255  }
256  initializedFromInput_ = true;
257  }
258  ++inputFileCount_;
260  }
261 
263  if (rootOutputFile_)
264  rootOutputFile_->respondToCloseInputFile(fb);
265  }
266 
269  }
270 
272 
275  rootOutputFile_->writeOne(e);
276  if (!statusFileName_.empty()) {
277  std::ofstream statusFile(statusFileName_.c_str());
278  statusFile << e.id() << " time: " << std::setprecision(3) << TimeOfDay() << '\n';
279  statusFile.close();
280  }
281  }
282 
284  rootOutputFile_->writeLuminosityBlock(lb);
285  }
286 
288 
291  branchParents_.clear();
292  startEndFile();
303  writeProductDependencies(); //branchChildren used here
305  finishEndFile();
306 
308  }
309 
310  // At some later date, we may move functionality from finishEndFile() to here.
312 
313  void PoolOutputModule::writeFileFormatVersion() { rootOutputFile_->writeFileFormatVersion(); }
314  void PoolOutputModule::writeFileIdentifier() { rootOutputFile_->writeFileIdentifier(); }
315  void PoolOutputModule::writeIndexIntoFile() { rootOutputFile_->writeIndexIntoFile(); }
317  rootOutputFile_->writeStoredMergeableRunProductMetadata();
318  }
319  void PoolOutputModule::writeProcessHistoryRegistry() { rootOutputFile_->writeProcessHistoryRegistry(); }
320  void PoolOutputModule::writeParameterSetRegistry() { rootOutputFile_->writeParameterSetRegistry(); }
321  void PoolOutputModule::writeProductDescriptionRegistry() { rootOutputFile_->writeProductDescriptionRegistry(); }
322  void PoolOutputModule::writeParentageRegistry() { rootOutputFile_->writeParentageRegistry(); }
323  void PoolOutputModule::writeBranchIDListRegistry() { rootOutputFile_->writeBranchIDListRegistry(); }
324  void PoolOutputModule::writeThinnedAssociationsHelper() { rootOutputFile_->writeThinnedAssociationsHelper(); }
325  void PoolOutputModule::writeProductDependencies() { rootOutputFile_->writeProductDependencies(); }
327  rootOutputFile_->finishEndFile();
328  rootOutputFile_ = nullptr;
329  } // propagate_const<T> has no reset() function
331  bool PoolOutputModule::isFileOpen() const { return rootOutputFile_.get() != nullptr; }
332  bool PoolOutputModule::shouldWeCloseFile() const { return rootOutputFile_->shouldWeCloseFile(); }
333 
334  std::pair<std::string, std::string> PoolOutputModule::physicalAndLogicalNameForNewFile() {
335  if (inputFileCount_ == 0) {
336  throw edm::Exception(errors::LogicError) << "Attempt to open output file before input file. "
337  << "Please report this to the core framework developers.\n";
338  }
339  std::string suffix(".root");
341  bool ext = (offset == fileName().size() - suffix.size());
342  if (!ext)
343  suffix.clear();
344  std::string fileBase(ext ? fileName().substr(0, offset) : fileName());
345  std::ostringstream ofilename;
346  std::ostringstream lfilename;
347  ofilename << fileBase;
348  lfilename << logicalFileName();
349  if (outputFileCount_) {
350  ofilename << std::setw(3) << std::setfill('0') << outputFileCount_;
351  if (!logicalFileName().empty()) {
352  lfilename << std::setw(3) << std::setfill('0') << outputFileCount_;
353  }
354  }
355  ofilename << suffix;
357 
358  return std::make_pair(ofilename.str(), lfilename.str());
359  }
360 
363  rootOutputFile_ = std::make_unique<RootOutputFile>(
364  this,
365  names.first,
366  names.second,
367  processesWithSelectedMergeableRunProducts_); // propagate_const<T> has no reset() function
368  }
369 
371  BranchID const& branchID) {
372  ProductProvenance const* provenance = provRetriever->branchIDToProvenanceForProducedOnly(branchID);
373  if (provenance != nullptr) {
374  BranchParents::iterator it = branchParents_.find(branchID);
375  if (it == branchParents_.end()) {
376  it = branchParents_.insert(std::make_pair(branchID, std::set<ParentageID>())).first;
377  }
378  it->second.insert(provenance->parentageID());
379  }
380  }
381 
383  ProductProvenanceRetriever const* provRetriever = e.productProvenanceRetrieverPtr();
384  for (auto const& bid : producedBranches_) {
385  updateBranchParentsForOneBranch(provRetriever, bid);
386  }
388  if (helper) {
389  for (auto const& bid : subProcessParentageHelper()->producedProducts()) {
390  updateBranchParentsForOneBranch(provRetriever, bid);
391  }
392  }
393  }
394 
396  ModuleCallingContext const& iModuleCallingContext,
397  Principal const& iPrincipal) const {
398  if (DropAll != dropMetaData_) {
399  auto const* ep = dynamic_cast<EventPrincipal const*>(&iPrincipal);
400  if (ep) {
401  auto pr = ep->productProvenanceRetrieverPtr();
402  if (pr) {
403  pr->readProvenanceAsync(iTask, &iModuleCallingContext);
404  }
405  }
406  }
407  }
408 
410  for (auto const& branchParent : branchParents_) {
411  BranchID const& child = branchParent.first;
412  std::set<ParentageID> const& eIds = branchParent.second;
413  for (auto const& eId : eIds) {
414  Parentage entryDesc;
415  ParentageRegistry::instance()->getMapped(eId, entryDesc);
416  std::vector<BranchID> const& parents = entryDesc.parents();
417  for (auto const& parent : parents) {
419  }
420  }
421  }
422  }
423 
425  std::string defaultString;
426 
427  desc.setComment("Writes runs, lumis, and events into EDM/ROOT files.");
428  desc.addUntracked<std::string>("fileName")->setComment("Name of output file.");
429  desc.addUntracked<std::string>("logicalFileName", defaultString)
430  ->setComment("Passed to job report. Otherwise unused by module.");
431  desc.addUntracked<std::string>("catalog", defaultString)
432  ->setComment("Passed to job report. Otherwise unused by module.");
433  desc.addUntracked<int>("maxSize", 0x7f000000)
434  ->setComment(
435  "Maximum output file size, in kB.\n"
436  "If over maximum, new output file will be started at next input file transition.");
437  desc.addUntracked<int>("compressionLevel", 9)->setComment("ROOT compression level of output file.");
438  desc.addUntracked<std::string>("compressionAlgorithm", "ZLIB")
439  ->setComment("Algorithm used to compress data in the ROOT output file, allowed values are ZLIB and LZMA");
440  desc.addUntracked<int>("basketSize", 16384)->setComment("Default ROOT basket size in output file.");
441  desc.addUntracked<int>("eventAutoFlushCompressedSize", 20 * 1024 * 1024)
442  ->setComment(
443  "Set ROOT auto flush stored data size (in bytes) for event TTree. The value sets how large the compressed "
444  "buffer is allowed to get. The uncompressed buffer can be quite a bit larger than this depending on the "
445  "average compression ratio. The value of -1 just uses ROOT's default value. The value of 0 turns off this "
446  "feature.");
447  desc.addUntracked<int>("splitLevel", 99)->setComment("Default ROOT branch split level in output file.");
448  desc.addUntracked<std::string>("sortBaskets", std::string("sortbasketsbyoffset"))
449  ->setComment(
450  "Legal values: 'sortbasketsbyoffset', 'sortbasketsbybranch', 'sortbasketsbyentry'.\n"
451  "Used by ROOT when fast copying. Affects performance.");
452  desc.addUntracked<int>("treeMaxVirtualSize", -1)
453  ->setComment("Size of ROOT TTree TBasket cache. Affects performance.");
454  desc.addUntracked<bool>("fastCloning", true)
455  ->setComment(
456  "True: Allow fast copying, if possible.\n"
457  "False: Disable fast copying.");
458  desc.addUntracked<bool>("overrideInputFileSplitLevels", false)
459  ->setComment(
460  "False: Use branch split levels and basket sizes from input file, if possible.\n"
461  "True: Always use specified or default split levels and basket sizes.");
462  desc.addUntracked<bool>("writeStatusFile", false)
463  ->setComment("Write a status file. Intended for use by workflow management.");
464  desc.addUntracked<std::string>("dropMetaData", defaultString)
465  ->setComment(
466  "Determines handling of per product per event metadata. Options are:\n"
467  "'NONE': Keep all of it.\n"
468  "'DROPPED': Keep it for products produced in current process and all kept products. Drop it for dropped "
469  "products produced in prior processes.\n"
470  "'PRIOR': Keep it for products produced in current process. Drop it for products produced in prior "
471  "processes.\n"
472  "'ALL': Drop all of it.");
473  {
475  dataSet.setAllowAnything();
476  desc.addUntracked<ParameterSetDescription>("dataset", dataSet)
477  ->setComment("PSet is only used by Data Operations and not by this module.");
478  }
479  {
480  ParameterSetDescription specialSplit;
481  specialSplit.addUntracked<std::string>("branch")->setComment(
482  "Name of branch needing a special split level. The name can contain wildcards '*' and '?'");
483  specialSplit.addUntracked<int>("splitLevel")->setComment("The special split level for the branch");
484  desc.addVPSetUntracked("overrideBranchesSplitLevel", specialSplit, std::vector<ParameterSet>());
485  }
486  OutputModule::fillDescription(desc);
487  }
488 
492  descriptions.add("edmOutput", desc);
493  }
494 } // namespace edm
edm::PoolOutputModule::~PoolOutputModule
~PoolOutputModule() override
Definition: PoolOutputModule.cc:271
ConfigurationDescriptions.h
ConstProductRegistry.h
edm::one::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:89
edm::Parentage::parents
std::vector< BranchID > const & parents() const
Definition: Parentage.h:44
edm::PoolOutputModule::updateBranchParents
void updateBranchParents(EventForOutput const &e)
Definition: PoolOutputModule.cc:382
ext
Definition: memstream.h:15
edm::PoolOutputModule::branchChildren_
BranchChildren branchChildren_
Definition: PoolOutputModule.h:206
edm::PoolOutputModule::respondToOpenInputFile
void respondToOpenInputFile(FileBlock const &fb) override
Definition: PoolOutputModule.cc:244
PoolOutputModule.h
electrons_cff.bool
bool
Definition: electrons_cff.py:393
mps_fire.i
i
Definition: mps_fire.py:428
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
edm::one::OutputModuleBase::subProcessParentageHelper
SubProcessParentageHelper const * subProcessParentageHelper() const
Definition: OutputModuleBase.h:123
edm::SubProcessParentageHelper
Definition: SubProcessParentageHelper.h:21
edm::PoolOutputModule::OutputItem::branchID
BranchID branchID() const
Definition: PoolOutputModule.h:94
funct::false
false
Definition: Factorize.h:29
edm::PoolOutputModule::OutputItem
Definition: PoolOutputModule.h:78
edm::PoolOutputModule::SpecialSplitLevelForBranch::convert
std::regex convert(std::string const &iGlobBranchExpression) const
Definition: PoolOutputModule.cc:169
edm::TimeOfDay
Definition: TimeOfDay.h:9
edm::PoolOutputModule::processesWithSelectedMergeableRunProducts_
std::vector< std::string > processesWithSelectedMergeableRunProducts_
Definition: PoolOutputModule.h:211
edm::PoolOutputModule::AuxItem::AuxItem
AuxItem()
Definition: PoolOutputModule.cc:118
edm::sort_all
void sort_all(RandomAccessSequence &s)
wrappers for std::sort
Definition: Algorithms.h:92
edm::errors::LogicError
Definition: EDMException.h:37
edm
HLT enums.
Definition: AlignableModifier.h:19
tree
Definition: tree.py:1
edm::PoolOutputModule::OutputItemList
std::vector< OutputItem > OutputItemList
Definition: PoolOutputModule.h:115
edm::min
EventID const & min(EventID const &lh, EventID const &rh)
Definition: EventID.h:116
deep_tau::DeepTauBase::BasicDiscriminator
BasicDiscriminator
Definition: DeepTauBase.h:115
edm::PoolOutputModule::rootOutputFile_
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
Definition: PoolOutputModule.h:209
edm::PoolOutputModule::openFile
void openFile(FileBlock const &fb) override
Definition: PoolOutputModule.cc:237
edm::PoolOutputModule::writeParameterSetRegistry
void writeParameterSetRegistry()
Definition: PoolOutputModule.cc:320
edm::ParentageRegistry::instance
static ParentageRegistry * instance()
Definition: ParentageRegistry.cc:4
EgammaPostProcessor_cfi.dataSet
dataSet
Definition: EgammaPostProcessor_cfi.py:6
edm::PoolOutputModule::currentFileName
std::string const & currentFileName() const
Definition: PoolOutputModule.cc:116
edm::PoolOutputModule::initializedFromInput_
bool initializedFromInput_
Definition: PoolOutputModule.h:202
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
RunForOutput.h
edm::PoolOutputModule::whyNotFastClonable_
int whyNotFastClonable_
Definition: PoolOutputModule.h:199
edm::BranchChildren::clear
void clear()
Definition: BranchChildren.cc:36
Algorithms.h
edm::PoolOutputModule::preActionBeforeRunEventAsync
void preActionBeforeRunEventAsync(WaitingTask *iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const override
Definition: PoolOutputModule.cc:395
edm::PoolOutputModule::fillSelectedItemList
void fillSelectedItemList(BranchType branchtype, TTree *theInputTree)
Definition: PoolOutputModule.cc:176
edm::Principal
Definition: Principal.h:57
edm::PoolOutputModule::SpecialSplitLevelForBranch::match
bool match(std::string const &iBranchName) const
Definition: PoolOutputModule.cc:165
edm::PoolOutputModule::setProcessesWithSelectedMergeableRunProducts
void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &) override
Definition: PoolOutputModule.cc:267
mathSSE::lh
bool int lh
Definition: SIMDVec.h:20
edm::PoolOutputModule::updateBranchParentsForOneBranch
void updateBranchParentsForOneBranch(ProductProvenanceRetriever const *provRetriever, BranchID const &branchID)
Definition: PoolOutputModule.cc:370
EventForOutput.h
edm::WatchInputFiles
Definition: moduleAbilities.h:112
edm::PoolOutputModule::OutputItem::branchDescription_
BranchDescription const * branchDescription_
Definition: PoolOutputModule.h:108
edm::PoolOutputModule::doExtrasAfterCloseFile
virtual void doExtrasAfterCloseFile()
Definition: PoolOutputModule.cc:330
edm::PoolOutputModule::inputFileCount_
int inputFileCount_
Definition: PoolOutputModule.h:204
Parentage.h
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
edm::BranchType
BranchType
Definition: BranchType.h:11
edm::BranchTypeToAuxiliaryBranchName
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:109
edm::PoolOutputModule::OutputItem::Sorter::Sorter
Sorter(TTree *tree)
Definition: PoolOutputModule.cc:133
createPayload.suffix
suffix
Definition: createPayload.py:281
edm::NumBranchTypes
Definition: BranchType.h:11
edm::PoolOutputModule::specialSplitLevelForBranches_
std::vector< SpecialSplitLevelForBranch > specialSplitLevelForBranches_
Definition: PoolOutputModule.h:187
edm::SelectedProducts
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
Definition: SelectedProducts.h:11
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::PoolOutputModule::OutputItem::Sorter
Definition: PoolOutputModule.h:79
edm::FileBlock
Definition: FileBlock.h:20
edm::PoolOutputModule::PoolOutputModule
PoolOutputModule(ParameterSet const &ps)
Definition: PoolOutputModule.cc:36
EDMException.h
edm::RunForOutput
Definition: RunForOutput.h:39
edm::InProcess
Definition: BranchType.h:11
ParentageRegistry.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::PoolOutputModule::basketSize
int const & basketSize() const
Definition: PoolOutputModule.h:50
edm::PoolOutputModule::basketSize_
const int basketSize_
Definition: PoolOutputModule.h:194
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
edm::PoolOutputModule::moduleLabel_
const std::string moduleLabel_
Definition: PoolOutputModule.h:201
edm::ProductProvenance
Definition: ProductProvenance.h:24
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::PoolOutputModule::writeFileFormatVersion
void writeFileFormatVersion()
Definition: PoolOutputModule.cc:313
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
edm::PoolOutputModule::OutputItem::Sorter::operator()
bool operator()(OutputItem const &lh, OutputItem const &rh) const
Definition: PoolOutputModule.cc:144
edm::PoolOutputModule::selectedOutputItemList_
OutputItemListArray selectedOutputItemList_
Definition: PoolOutputModule.h:186
ProductProvenance.h
Service.h
edm::PoolOutputModule::splitLevel_
const int splitLevel_
Definition: PoolOutputModule.h:196
edm::PoolOutputModule::producedBranches_
std::vector< BranchID > producedBranches_
Definition: PoolOutputModule.h:207
edm::PoolOutputModule::branchParents_
BranchParents branchParents_
Definition: PoolOutputModule.h:205
edm::BranchDescription::invalidSplitLevel
static const int invalidSplitLevel
Definition: BranchDescription.h:34
SubProcessParentageHelper.h
edm::BranchID
Definition: BranchID.h:14
edm::PoolOutputModule::dropMetaData
DropMetaData const & dropMetaData() const
Definition: PoolOutputModule.h:56
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
edm::PoolOutputModule::OutputItem::OutputItem
OutputItem()
Definition: PoolOutputModule.cc:120
edm::one::OutputModuleBase::wantAllEvents
bool wantAllEvents() const
Definition: OutputModuleBase.h:117
edm::PoolOutputModule::OutputItem::Sorter::treeMap_
std::shared_ptr< std::map< std::string, int > > treeMap_
Definition: PoolOutputModule.h:85
edm::InEvent
Definition: BranchType.h:11
edm::PoolOutputModule::overrideInputFileSplitLevels_
bool overrideInputFileSplitLevels_
Definition: PoolOutputModule.h:208
edm::PoolOutputModule::writeThinnedAssociationsHelper
void writeThinnedAssociationsHelper()
Definition: PoolOutputModule.cc:324
ParameterSetDescription.h
b
double b
Definition: hdecay.h:118
edm::PoolOutputModule::auxItems_
AuxItemArray auxItems_
Definition: PoolOutputModule.h:185
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::Parentage
Definition: Parentage.h:25
OutputModuleBase
edm::ParameterSetDescription::addUntracked
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:100
BranchDescription.h
edm::ParameterSet
Definition: ParameterSet.h:47
edm::PoolOutputModule::reallyOpenFile
void reallyOpenFile()
Definition: PoolOutputModule.cc:361
edm::PoolOutputModule::writeIndexIntoFile
void writeIndexIntoFile()
Definition: PoolOutputModule.cc:315
sipixeldigitoraw
Definition: SiPixelDigiToRaw.cc:39
edm::InLumi
Definition: BranchType.h:11
edm::PoolOutputModule::OutputItem::splitLevel_
int splitLevel_
Definition: PoolOutputModule.h:111
edm::ParentageRegistry::getMapped
bool getMapped(key_type const &k, value_type &result) const
Definition: ParentageRegistry.cc:9
edm::one::OutputModuleBase::keptProducts
SelectedProductsForBranchType const & keptProducts() const
Definition: OutputModuleBase.h:95
helper
Definition: helper.py:1
edm::PoolOutputModule::writeProductDependencies
void writeProductDependencies()
Definition: PoolOutputModule.cc:325
beamvalidation.br
br
Definition: beamvalidation.py:398
edm::Service
Definition: Service.h:30
createfilelist.int
int
Definition: createfilelist.py:10
edm::PoolOutputModule::DropDroppedPrior
Definition: PoolOutputModule.h:41
edm::BranchDescription::branchName
std::string const & branchName() const
Definition: BranchDescription.h:119
edm::ProductProvenance::parentageID
ParentageID const & parentageID() const
Definition: ProductProvenance.h:39
edm::PoolOutputModule::OutputItem::basketSize_
int basketSize_
Definition: PoolOutputModule.h:112
edm::PoolOutputModule::isFileOpen
bool isFileOpen() const override
Definition: PoolOutputModule.cc:331
edm::EDGetToken
Definition: EDGetToken.h:35
edm::PoolOutputModule::writeStoredMergeableRunProductMetadata
void writeStoredMergeableRunProductMetadata()
Definition: PoolOutputModule.cc:316
edm::PoolOutputModule::OutputItem::splitLevel
int splitLevel() const
Definition: PoolOutputModule.h:104
edm::PoolOutputModule::AuxItem::basketSize_
int basketSize_
Definition: PoolOutputModule.h:73
edm::PoolOutputModule::outputFileCount_
int outputFileCount_
Definition: PoolOutputModule.h:203
FileBlock.h
edm::PoolOutputModule::writeRun
void writeRun(RunForOutput const &r) override
Definition: PoolOutputModule.cc:287
edm::PoolOutputModule::beginInputFile
void beginInputFile(FileBlock const &fb)
Definition: PoolOutputModule.cc:223
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::PoolOutputModule::DropPrior
Definition: PoolOutputModule.h:41
edm::PoolOutputModule::fileName
std::string const & fileName() const
Definition: PoolOutputModule.h:46
ProductProvenanceRetriever.h
edm::PoolOutputModule::writeProductDescriptionRegistry
void writeProductDescriptionRegistry()
Definition: PoolOutputModule.cc:321
edm::EventForOutput
Definition: EventForOutput.h:50
edm::ProductProvenanceRetriever
Definition: ProductProvenanceRetriever.h:56
WrappedClassName.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::WaitingTask
Definition: WaitingTask.h:36
edm::PoolOutputModule::writeBranchIDListRegistry
void writeBranchIDListRegistry()
Definition: PoolOutputModule.cc:323
std
Definition: JetResolutionObject.h:76
edm::FileBlock::EventSelectionUsed
Definition: FileBlock.h:49
edm::PoolOutputModule::fillDependencyGraph
void fillDependencyGraph()
Definition: PoolOutputModule.cc:409
edm::PoolOutputModule::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: PoolOutputModule.cc:489
edm::PoolOutputModule::shouldWeCloseFile
bool shouldWeCloseFile() const override
allow inheriting classes to override but still be able to call this method in the overridden version
Definition: PoolOutputModule.cc:332
edm::PoolOutputModule::AuxItem
Definition: PoolOutputModule.h:70
edm::PoolOutputModule::beginJob
void beginJob() override
Definition: PoolOutputModule.cc:106
RootOutputFile.h
edm::PoolOutputModule::reallyCloseFile
void reallyCloseFile() override
Definition: PoolOutputModule.cc:289
edm::PoolOutputModule::statusFileName_
std::string statusFileName_
Definition: PoolOutputModule.h:210
edm::PoolOutputModule::logicalFileName
std::string const & logicalFileName() const
Definition: PoolOutputModule.h:47
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
Exception
Definition: hltDiff.cc:246
edm::PoolOutputModule::OutputItem::basketSize
int basketSize() const
Definition: PoolOutputModule.h:105
edm::PoolOutputModule::startEndFile
void startEndFile()
Definition: PoolOutputModule.cc:311
edm::BranchDescription::invalidBasketSize
static const int invalidBasketSize
Definition: BranchDescription.h:35
edm::ProductProvenanceRetriever::branchIDToProvenanceForProducedOnly
ProductProvenance const * branchIDToProvenanceForProducedOnly(BranchID const &bid) const
Definition: ProductProvenanceRetriever.cc:177
dqmiodatasetharvest.processes
processes
Definition: dqmiodatasetharvest.py:190
edm::PoolOutputModule::DropNone
Definition: PoolOutputModule.h:41
edm::PoolOutputModule::writeLuminosityBlock
void writeLuminosityBlock(LuminosityBlockForOutput const &lb) override
Definition: PoolOutputModule.cc:283
edm::PoolOutputModule::writeProcessHistoryRegistry
void writeProcessHistoryRegistry()
Definition: PoolOutputModule.cc:319
edm::BranchDescription
Definition: BranchDescription.h:32
edm::PoolOutputModule::respondToCloseInputFile
void respondToCloseInputFile(FileBlock const &fb) override
Definition: PoolOutputModule.cc:262
edm::PoolOutputModule::dropMetaData_
DropMetaData dropMetaData_
Definition: PoolOutputModule.h:200
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ParameterSet.h
LuminosityBlockForOutput.h
TimeOfDay.h
parents
TPRegexp parents
Definition: eve_filter.cc:21
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
edm::PoolOutputModule::writeFileIdentifier
void writeFileIdentifier()
Definition: PoolOutputModule.cc:314
child
Definition: simpleInheritance.h:11
edm::PoolOutputModule::finishEndFile
void finishEndFile()
Definition: PoolOutputModule.cc:326
edm::PoolOutputModule::write
void write(EventForOutput const &e) override
Definition: PoolOutputModule.cc:273
edm::PoolOutputModule::DropAll
Definition: PoolOutputModule.h:41
edm::errors::Configuration
Definition: EDMException.h:36
class-composition.parent
parent
Definition: class-composition.py:88
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
edm::PoolOutputModule::writeParentageRegistry
void writeParentageRegistry()
Definition: PoolOutputModule.cc:322
edm::PoolOutputModule::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: PoolOutputModule.cc:424
edm::BranchChildren::insertChild
void insertChild(BranchID parent, BranchID child)
Definition: BranchChildren.cc:40
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::PoolOutputModule::physicalAndLogicalNameForNewFile
virtual std::pair< std::string, std::string > physicalAndLogicalNameForNewFile()
Definition: PoolOutputModule.cc:334
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::PoolOutputModule::splitLevel
int const & splitLevel() const
Definition: PoolOutputModule.h:52
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318