CMS 3D CMS Logo

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