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  eventAuxBasketSize_(pset.getUntrackedParameter<int>("eventAuxiliaryBasketSize")),
50  eventAutoFlushSize_(pset.getUntrackedParameter<int>("eventAutoFlushCompressedSize")),
51  splitLevel_(std::min<int>(pset.getUntrackedParameter<int>("splitLevel") + 1, 99)),
52  basketOrder_(pset.getUntrackedParameter<std::string>("sortBaskets")),
53  treeMaxVirtualSize_(pset.getUntrackedParameter<int>("treeMaxVirtualSize")),
54  whyNotFastClonable_(pset.getUntrackedParameter<bool>("fastCloning") ? FileBlock::CanFastClone
55  : FileBlock::DisabledInConfigFile),
56  dropMetaData_(DropNone),
57  moduleLabel_(pset.getParameter<std::string>("@module_label")),
58  initializedFromInput_(false),
59  outputFileCount_(0),
60  inputFileCount_(0),
61  branchParents_(),
62  branchChildren_(),
63  overrideInputFileSplitLevels_(pset.getUntrackedParameter<bool>("overrideInputFileSplitLevels")),
64  compactEventAuxiliary_(pset.getUntrackedParameter<bool>("compactEventAuxiliary")),
65  mergeJob_(pset.getUntrackedParameter<bool>("mergeJob")),
66  rootOutputFile_(),
67  statusFileName_(),
68  overrideGUID_(pset.getUntrackedParameter<std::string>("overrideGUID")) {
69  if (pset.getUntrackedParameter<bool>("writeStatusFile")) {
70  std::ostringstream statusfilename;
71  statusfilename << moduleLabel_ << '_' << getpid();
72  statusFileName_ = statusfilename.str();
73  }
74 
75  std::string dropMetaData(pset.getUntrackedParameter<std::string>("dropMetaData"));
76  if (dropMetaData.empty())
78  else if (dropMetaData == std::string("NONE"))
80  else if (dropMetaData == std::string("DROPPED"))
82  else if (dropMetaData == std::string("PRIOR"))
84  else if (dropMetaData == std::string("ALL"))
86  else {
87  throw edm::Exception(errors::Configuration, "Illegal dropMetaData parameter value: ")
88  << dropMetaData << ".\n"
89  << "Legal values are 'NONE', 'DROPPED', 'PRIOR', and 'ALL'.\n";
90  }
91 
92  if (!wantAllEvents()) {
94  }
95 
96  auto const& specialSplit{pset.getUntrackedParameterSetVector("overrideBranchesSplitLevel")};
97 
98  specialSplitLevelForBranches_.reserve(specialSplit.size());
99  for (auto const& s : specialSplit) {
100  specialSplitLevelForBranches_.emplace_back(s.getUntrackedParameter<std::string>("branch"),
101  s.getUntrackedParameter<int>("splitLevel"));
102  }
103 
104  // We don't use this next parameter, but we read it anyway because it is part
105  // of the configuration of this module. An external parser creates the
106  // configuration by reading this source code.
107  pset.getUntrackedParameterSet("dataset");
108  }
109 
112  for (auto const& prod : reg->productList()) {
113  BranchDescription const& desc = prod.second;
114  if (desc.produced() && desc.branchType() == InEvent && !desc.isAlias()) {
115  producedBranches_.emplace_back(desc.branchID());
116  }
117  }
118  }
119 
120  std::string const& PoolOutputModule::currentFileName() const { return rootOutputFile_->fileName(); }
121 
122  PoolOutputModule::AuxItem::AuxItem() : basketSize_(BranchDescription::invalidBasketSize) {}
123 
125  EDGetToken const& token,
126  int splitLevel,
127  int basketSize)
128  : branchDescription_(bd), token_(token), product_(nullptr), splitLevel_(splitLevel), basketSize_(basketSize) {}
129 
131  // Fill a map mapping branch names to an index specifying the order in the tree.
132  if (tree != nullptr) {
133  TObjArray* branches = tree->GetListOfBranches();
134  for (int i = 0; i < branches->GetEntries(); ++i) {
135  TBranchElement* br = (TBranchElement*)branches->At(i);
136  treeMap_->insert(std::make_pair(std::string(br->GetName()), i));
137  }
138  }
139  }
140 
142  // Provides a comparison for sorting branches according to the index values in treeMap_.
143  // Branches not found are always put at the end (i.e. not found > found).
144  if (treeMap_->empty())
145  return lh < rh;
146  std::string const& lstring = lh.branchDescription_->branchName();
147  std::string const& rstring = rh.branchDescription_->branchName();
148  std::map<std::string, int>::const_iterator lit = treeMap_->find(lstring);
149  std::map<std::string, int>::const_iterator rit = treeMap_->find(rstring);
150  bool lfound = (lit != treeMap_->end());
151  bool rfound = (rit != treeMap_->end());
152  if (lfound && rfound) {
153  return lit->second < rit->second;
154  } else if (lfound) {
155  return true;
156  } else if (rfound) {
157  return false;
158  }
159  return lh < rh;
160  }
161 
162  inline bool PoolOutputModule::SpecialSplitLevelForBranch::match(std::string const& iBranchName) const {
163  return std::regex_match(iBranchName, branch_);
164  }
165 
166  std::regex PoolOutputModule::SpecialSplitLevelForBranch::convert(std::string const& iGlobBranchExpression) const {
167  std::string tmp(iGlobBranchExpression);
168  boost::replace_all(tmp, "*", ".*");
169  boost::replace_all(tmp, "?", ".");
170  return std::regex(tmp);
171  }
172 
174  std::string const& processName,
175  TTree* theInputTree,
176  OutputItemList& outputItemList) {
177  SelectedProducts const& keptVector = keptProducts()[branchType];
178 
179  if (branchType != InProcess) {
180  AuxItem& auxItem = auxItems_[branchType];
181 
182  auto basketSize = (InEvent == branchType) ? eventAuxBasketSize_ : basketSize_;
183 
184  // Fill AuxItem
185  if (theInputTree != nullptr && !overrideInputFileSplitLevels_) {
186  TBranch* auxBranch = theInputTree->GetBranch(BranchTypeToAuxiliaryBranchName(branchType).c_str());
187  if (auxBranch) {
188  auxItem.basketSize_ = auxBranch->GetBasketSize();
189  } else {
190  auxItem.basketSize_ = basketSize;
191  }
192  } else {
193  auxItem.basketSize_ = basketSize;
194  }
195  }
196 
197  // Fill outputItemList with an entry for each branch.
198  for (auto const& kept : keptVector) {
201 
202  BranchDescription const& prod = *kept.first;
203  if (branchType == InProcess && processName != prod.processName()) {
204  continue;
205  }
206  TBranch* theBranch = ((!prod.produced() && theInputTree != nullptr && !overrideInputFileSplitLevels_)
207  ? theInputTree->GetBranch(prod.branchName().c_str())
208  : nullptr);
209 
210  if (theBranch != nullptr) {
211  splitLevel = theBranch->GetSplitLevel();
212  basketSize = theBranch->GetBasketSize();
213  } else {
214  splitLevel = (prod.splitLevel() == BranchDescription::invalidSplitLevel ? splitLevel_ : prod.splitLevel());
215  for (auto const& b : specialSplitLevelForBranches_) {
216  if (b.match(prod.branchName())) {
217  splitLevel = b.splitLevel_;
218  }
219  }
220  basketSize = (prod.basketSize() == BranchDescription::invalidBasketSize ? basketSize_ : prod.basketSize());
221  }
222  outputItemList.emplace_back(&prod, kept.second, splitLevel, basketSize);
223  }
224 
225  // Sort outputItemList to allow fast copying.
226  // The branches in outputItemList must be in the same order as in the input tree, with all new branches at the end.
227  sort_all(outputItemList, OutputItem::Sorter(theInputTree));
228  }
229 
231  if (isFileOpen()) {
232  //Faster to read ChildrenBranches directly from input
233  // file than to build it every event
234  auto const& branchToChildMap = fb.branchChildren().childLookup();
235  for (auto const& parentToChildren : branchToChildMap) {
236  for (auto const& child : parentToChildren.second) {
237  branchChildren_.insertChild(parentToChildren.first, child);
238  }
239  }
240  rootOutputFile_->beginInputFile(fb, remainingEvents());
241  }
242  }
243 
245  if (!isFileOpen()) {
246  reallyOpenFile();
247  beginInputFile(fb);
248  }
249  }
250 
252  if (!initializedFromInput_) {
253  std::vector<std::string> const& processesWithProcessBlockProducts =
255  unsigned int numberOfProcessesWithProcessBlockProducts = processesWithProcessBlockProducts.size();
256  unsigned int numberOfTTrees = numberOfRunLumiEventProductTrees + numberOfProcessesWithProcessBlockProducts;
257  selectedOutputItemList_.resize(numberOfTTrees);
258 
259  for (unsigned int i = InEvent; i < NumBranchTypes; ++i) {
260  BranchType branchType = static_cast<BranchType>(i);
261  if (branchType != InProcess) {
263  TTree* theInputTree =
264  (branchType == InEvent ? fb.tree() : (branchType == InLumi ? fb.lumiTree() : fb.runTree()));
265  OutputItemList& outputItemList = selectedOutputItemList_[branchType];
266  fillSelectedItemList(branchType, processName, theInputTree, outputItemList);
267  } else {
268  // Handle output items in ProcessBlocks
269  for (unsigned int k = InProcess; k < numberOfTTrees; ++k) {
270  OutputItemList& outputItemList = selectedOutputItemList_[k];
271  std::string const& processName = processesWithProcessBlockProducts[k - InProcess];
272  TTree* theInputTree = fb.processBlockTree(processName);
273  fillSelectedItemList(branchType, processName, theInputTree, outputItemList);
274  }
275  }
276  }
277  initializedFromInput_ = true;
278  }
279  ++inputFileCount_;
280  beginInputFile(fb);
281  }
282 
284  if (rootOutputFile_)
285  rootOutputFile_->respondToCloseInputFile(fb);
286  }
287 
290  }
291 
293 
296  rootOutputFile_->writeOne(e);
297  if (!statusFileName_.empty()) {
298  std::ofstream statusFile(statusFileName_.c_str());
299  statusFile << e.id() << " time: " << std::setprecision(3) << TimeOfDay() << '\n';
300  statusFile.close();
301  }
302  }
303 
305  rootOutputFile_->writeLuminosityBlock(lb);
306  }
307 
308  void PoolOutputModule::writeRun(RunForOutput const& r) { rootOutputFile_->writeRun(r); }
309 
311 
315  branchParents_.clear();
316  startEndFile();
327  writeProductDependencies(); //branchChildren used here
330  finishEndFile();
331 
333  }
334 
335  // At some later date, we may move functionality from finishEndFile() to here.
337 
338  void PoolOutputModule::writeFileFormatVersion() { rootOutputFile_->writeFileFormatVersion(); }
339  void PoolOutputModule::writeFileIdentifier() { rootOutputFile_->writeFileIdentifier(); }
340  void PoolOutputModule::writeIndexIntoFile() { rootOutputFile_->writeIndexIntoFile(); }
342  rootOutputFile_->writeStoredMergeableRunProductMetadata();
343  }
344  void PoolOutputModule::writeProcessHistoryRegistry() { rootOutputFile_->writeProcessHistoryRegistry(); }
345  void PoolOutputModule::writeParameterSetRegistry() { rootOutputFile_->writeParameterSetRegistry(); }
346  void PoolOutputModule::writeProductDescriptionRegistry() { rootOutputFile_->writeProductDescriptionRegistry(); }
347  void PoolOutputModule::writeParentageRegistry() { rootOutputFile_->writeParentageRegistry(); }
348  void PoolOutputModule::writeBranchIDListRegistry() { rootOutputFile_->writeBranchIDListRegistry(); }
349  void PoolOutputModule::writeThinnedAssociationsHelper() { rootOutputFile_->writeThinnedAssociationsHelper(); }
350  void PoolOutputModule::writeProductDependencies() { rootOutputFile_->writeProductDependencies(); }
351  void PoolOutputModule::writeEventAuxiliary() { rootOutputFile_->writeEventAuxiliary(); }
352  void PoolOutputModule::writeProcessBlockHelper() { rootOutputFile_->writeProcessBlockHelper(); }
354  rootOutputFile_->finishEndFile();
355  rootOutputFile_ = nullptr;
356  } // propagate_const<T> has no reset() function
358  bool PoolOutputModule::isFileOpen() const { return rootOutputFile_.get() != nullptr; }
359  bool PoolOutputModule::shouldWeCloseFile() const { return rootOutputFile_->shouldWeCloseFile(); }
360 
361  std::pair<std::string, std::string> PoolOutputModule::physicalAndLogicalNameForNewFile() {
362  if (inputFileCount_ == 0) {
363  throw edm::Exception(errors::LogicError) << "Attempt to open output file before input file. "
364  << "Please report this to the core framework developers.\n";
365  }
366  std::string suffix(".root");
368  bool ext = (offset == fileName().size() - suffix.size());
369  if (!ext)
370  suffix.clear();
371  std::string fileBase(ext ? fileName().substr(0, offset) : fileName());
372  std::ostringstream ofilename;
373  std::ostringstream lfilename;
374  ofilename << fileBase;
375  lfilename << logicalFileName();
376  if (outputFileCount_) {
377  ofilename << std::setw(3) << std::setfill('0') << outputFileCount_;
378  if (!logicalFileName().empty()) {
379  lfilename << std::setw(3) << std::setfill('0') << outputFileCount_;
380  }
381  }
382  ofilename << suffix;
384 
385  return std::make_pair(ofilename.str(), lfilename.str());
386  }
387 
390  rootOutputFile_ = std::make_unique<RootOutputFile>(this,
391  names.first,
392  names.second,
394  overrideGUID_); // propagate_const<T> has no reset() function
395  // Override the GUID of the first file only, in order to avoid two
396  // output files from one Output Module to have identical GUID.
397  overrideGUID_.clear();
398  }
399 
401  BranchID const& branchID) {
402  ProductProvenance const* provenance = provRetriever->branchIDToProvenanceForProducedOnly(branchID);
403  if (provenance != nullptr) {
404  BranchParents::iterator it = branchParents_.find(branchID);
405  if (it == branchParents_.end()) {
406  it = branchParents_.insert(std::make_pair(branchID, std::set<ParentageID>())).first;
407  }
408  it->second.insert(provenance->parentageID());
409  }
410  }
411 
413  ProductProvenanceRetriever const* provRetriever = e.productProvenanceRetrieverPtr();
414  for (auto const& bid : producedBranches_) {
415  updateBranchParentsForOneBranch(provRetriever, bid);
416  }
418  if (helper) {
419  for (auto const& bid : subProcessParentageHelper()->producedProducts()) {
420  updateBranchParentsForOneBranch(provRetriever, bid);
421  }
422  }
423  }
424 
426  ModuleCallingContext const& iModuleCallingContext,
427  Principal const& iPrincipal) const {
428  if (DropAll != dropMetaData_) {
429  auto const* ep = dynamic_cast<EventPrincipal const*>(&iPrincipal);
430  if (ep) {
431  auto pr = ep->productProvenanceRetrieverPtr();
432  if (pr) {
433  pr->readProvenanceAsync(iTask, &iModuleCallingContext);
434  }
435  }
436  }
437  }
438 
440  for (auto const& branchParent : branchParents_) {
441  BranchID const& child = branchParent.first;
442  std::set<ParentageID> const& eIds = branchParent.second;
443  for (auto const& eId : eIds) {
444  Parentage entryDesc;
445  ParentageRegistry::instance()->getMapped(eId, entryDesc);
446  std::vector<BranchID> const& parents = entryDesc.parents();
447  for (auto const& parent : parents) {
449  }
450  }
451  }
452  }
453 
455  std::string defaultString;
456 
457  desc.setComment("Writes runs, lumis, and events into EDM/ROOT files.");
458  desc.addUntracked<std::string>("fileName")->setComment("Name of output file.");
459  desc.addUntracked<std::string>("logicalFileName", defaultString)
460  ->setComment("Passed to job report. Otherwise unused by module.");
461  desc.addUntracked<std::string>("catalog", defaultString)
462  ->setComment("Passed to job report. Otherwise unused by module.");
463  desc.addUntracked<int>("maxSize", 0x7f000000)
464  ->setComment(
465  "Maximum output file size, in kB.\n"
466  "If over maximum, new output file will be started at next input file transition.");
467  desc.addUntracked<int>("compressionLevel", 4)->setComment("ROOT compression level of output file.");
468  desc.addUntracked<std::string>("compressionAlgorithm", "ZSTD")
469  ->setComment(
470  "Algorithm used to compress data in the ROOT output file, allowed values are ZLIB, LZMA, LZ4, and ZSTD");
471  desc.addUntracked<int>("basketSize", 16384)->setComment("Default ROOT basket size in output file.");
472  desc.addUntracked<int>("eventAuxiliaryBasketSize", 16384)
473  ->setComment("Default ROOT basket size in output file for EventAuxiliary branch.");
474  desc.addUntracked<int>("eventAutoFlushCompressedSize", 20 * 1024 * 1024)
475  ->setComment(
476  "Set ROOT auto flush stored data size (in bytes) for event TTree. The value sets how large the compressed "
477  "buffer is allowed to get. The uncompressed buffer can be quite a bit larger than this depending on the "
478  "average compression ratio. The value of -1 just uses ROOT's default value. The value of 0 turns off this "
479  "feature.");
480  desc.addUntracked<int>("splitLevel", 99)->setComment("Default ROOT branch split level in output file.");
481  desc.addUntracked<std::string>("sortBaskets", std::string("sortbasketsbyoffset"))
482  ->setComment(
483  "Legal values: 'sortbasketsbyoffset', 'sortbasketsbybranch', 'sortbasketsbyentry'.\n"
484  "Used by ROOT when fast copying. Affects performance.");
485  desc.addUntracked<int>("treeMaxVirtualSize", -1)
486  ->setComment("Size of ROOT TTree TBasket cache. Affects performance.");
487  desc.addUntracked<bool>("fastCloning", true)
488  ->setComment(
489  "True: Allow fast copying, if possible.\n"
490  "False: Disable fast copying.");
491  desc.addUntracked("mergeJob", false)
492  ->setComment(
493  "If set to true and fast copying is disabled, copy input file compression and basket sizes to the output "
494  "file.");
495  desc.addUntracked<bool>("compactEventAuxiliary", false)
496  ->setComment(
497  "False: Write EventAuxiliary as we go like any other event metadata branch.\n"
498  "True: Optimize the file layout by deferring writing the EventAuxiliary branch until the output file is "
499  "closed.");
500  desc.addUntracked<bool>("overrideInputFileSplitLevels", false)
501  ->setComment(
502  "False: Use branch split levels and basket sizes from input file, if possible.\n"
503  "True: Always use specified or default split levels and basket sizes.");
504  desc.addUntracked<bool>("writeStatusFile", false)
505  ->setComment("Write a status file. Intended for use by workflow management.");
506  desc.addUntracked<std::string>("dropMetaData", defaultString)
507  ->setComment(
508  "Determines handling of per product per event metadata. Options are:\n"
509  "'NONE': Keep all of it.\n"
510  "'DROPPED': Keep it for products produced in current process and all kept products. Drop it for dropped "
511  "products produced in prior processes.\n"
512  "'PRIOR': Keep it for products produced in current process. Drop it for products produced in prior "
513  "processes.\n"
514  "'ALL': Drop all of it.");
515  desc.addUntracked<std::string>("overrideGUID", defaultString)
516  ->setComment(
517  "Allows to override the GUID of the file. Intended to be used only in Tier0 for re-creating files.\n"
518  "The GUID needs to be of the proper format. If a new output file is started (see maxSize), the GUID of\n"
519  "the first file only is overridden, i.e. the subsequent output files have different, generated GUID.");
520  {
522  dataSet.setAllowAnything();
523  desc.addUntracked<ParameterSetDescription>("dataset", dataSet)
524  ->setComment("PSet is only used by Data Operations and not by this module.");
525  }
526  {
527  ParameterSetDescription specialSplit;
528  specialSplit.addUntracked<std::string>("branch")->setComment(
529  "Name of branch needing a special split level. The name can contain wildcards '*' and '?'");
530  specialSplit.addUntracked<int>("splitLevel")->setComment("The special split level for the branch");
531  desc.addVPSetUntracked("overrideBranchesSplitLevel", specialSplit, std::vector<ParameterSet>());
532  }
533  OutputModule::fillDescription(desc);
534  }
535 
539  descriptions.add("edmOutput", desc);
540  }
541 } // namespace edm
void openFile(FileBlock const &fb) override
virtual std::pair< std::string, std::string > physicalAndLogicalNameForNewFile()
BranchDescription const * branchDescription_
TPRegexp parents
Definition: eve_filter.cc:21
ParentageID const & parentageID() const
Definition: helper.py:1
void write(EventForOutput const &e) override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
BranchChildren const & branchChildren() const
Definition: FileBlock.h:135
static int const invalidSplitLevel
std::vector< SpecialSplitLevelForBranch > specialSplitLevelForBranches_
OutputProcessBlockHelper const & outputProcessBlockHelper() const
static int const invalidBasketSize
void setProcessesWithSelectedMergeableRunProducts(std::set< std::string > const &) override
void updateBranchParents(EventForOutput const &e)
constexpr unsigned int numberOfRunLumiEventProductTrees
Definition: BranchType.h:15
BranchChildren branchChildren_
TTree * processBlockTree(std::string const &processName) const
Definition: FileBlock.cc:24
void writeRun(RunForOutput const &) override
TTree * lumiTree() const
Definition: FileBlock.h:119
void insertChild(BranchID parent, BranchID child)
std::string const moduleLabel_
std::vector< BranchID > const & parents() const
Definition: Parentage.h:44
bool int lh
Definition: SIMDVec.h:20
std::vector< std::string > const & processesWithProcessBlockProducts() const
uint16_t size_type
virtual void doExtrasAfterCloseFile()
const std::string names[nVars_]
std::string const & currentFileName() const
BranchType
Definition: BranchType.h:11
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
bool getMapped(key_type const &k, value_type &result) const
PoolOutputModule(ParameterSet const &ps)
void updateBranchParentsForOneBranch(ProductProvenanceRetriever const *provRetriever, BranchID const &branchID)
void preActionBeforeRunEventAsync(WaitingTaskHolder iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const override
TTree * tree() const
Definition: FileBlock.h:117
std::string const & branchName() const
std::vector< BranchID > producedBranches_
std::vector< OutputItemList > selectedOutputItemList_
std::regex convert(std::string const &iGlobBranchExpression) const
ProductProvenance const * branchIDToProvenanceForProducedOnly(BranchID const &bid) const
OutputItem(BranchDescription const *bd, EDGetToken const &token, int splitLevel, int basketSize)
map_t const & childLookup() const
void writeStoredMergeableRunProductMetadata()
EventID const & min(EventID const &lh, EventID const &rh)
Definition: EventID.h:116
BranchParents branchParents_
DropMetaData const & dropMetaData() const
bool operator()(OutputItem const &lh, OutputItem const &rh) const
SelectedProductsForBranchType const & keptProducts() const
void sort_all(RandomAccessSequence &s)
wrappers for std::sort
Definition: Algorithms.h:92
SubProcessParentageHelper const * subProcessParentageHelper() const
bool shouldWeCloseFile() const override
allow inheriting classes to override but still be able to call this method in the overridden version ...
void respondToCloseInputFile(FileBlock const &fb) override
bool isFileOpen() const override
void beginJob() override
void reallyCloseFile() override
double b
Definition: hdecay.h:118
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string const & processName() const
bool match(std::string const &iBranchName) const
HLT enums.
std::shared_ptr< std::map< std::string, int > > treeMap_
std::string const & logicalFileName() const
void beginInputFile(FileBlock const &fb)
std::string const & fileName() const
Definition: tree.py:1
std::vector< OutputItem > OutputItemList
void respondToOpenInputFile(FileBlock const &fb) override
void writeProcessBlock(ProcessBlockForOutput const &) override
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:116
void fillSelectedItemList(BranchType branchtype, std::string const &processName, TTree *theInputTree, OutputItemList &)
Definition: memstream.h:15
static void fillDescriptions(ConfigurationDescriptions &descriptions)
tmp
align.sh
Definition: createJobs.py:716
static void fillDescription(ParameterSetDescription &desc)
static ParentageRegistry * instance()
std::vector< std::string > processesWithSelectedMergeableRunProducts_
TTree * runTree() const
Definition: FileBlock.h:121
void writeLuminosityBlock(LuminosityBlockForOutput const &) override