CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
edm::PoolOutputModule Class Reference

#include <PoolOutputModule.h>

Inheritance diagram for edm::PoolOutputModule:
edm::one::OutputModule< WatchInputFiles > edm::one::OutputModuleBase edm::EDConsumerBase edm::TimeoutPoolOutputModule dqmservices::JsonWritingTimeoutPoolOutputModule

Classes

struct  AuxItem
 
struct  OutputItem
 
struct  SpecialSplitLevelForBranch
 

Public Types

typedef std::array< AuxItem, NumBranchTypesAuxItemArray
 
enum  DropMetaData { DropNone, DropDroppedPrior, DropPrior, DropAll }
 
typedef std::vector< OutputItemOutputItemList
 
typedef std::array< OutputItemList, NumBranchTypesOutputItemListArray
 
- Public Types inherited from edm::one::OutputModuleBase
typedef OutputModuleBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

AuxItemArray const & auxItems () const
 
std::string const & basketOrder () const
 
int basketSize () const
 
BranchChildren const & branchChildren () const
 
std::string const & catalog () const
 
bool compactEventAuxiliary () const
 
std::string const & compressionAlgorithm () const
 
int compressionLevel () const
 
std::string const & currentFileName () const
 
DropMetaData const & dropMetaData () const
 
int eventAutoFlushSize () const
 
int eventAuxiliaryBasketSize () const
 
std::string const & fileName () const
 
int inputFileCount () const
 
std::string const & logicalFileName () const
 
unsigned int maxFileSize () const
 
std::string const & moduleLabel () const
 
PoolOutputModuleoperator= (PoolOutputModule const &)=delete
 
bool overrideInputFileSplitLevels () const
 
 PoolOutputModule (ParameterSet const &ps)
 
 PoolOutputModule (PoolOutputModule const &)=delete
 
OutputItemListArrayselectedOutputItemList ()
 
OutputItemListArray const & selectedOutputItemList () const
 
int splitLevel () const
 
int treeMaxVirtualSize () const
 
int whyNotFastClonable () const
 
 ~PoolOutputModule () override
 
- Public Member Functions inherited from edm::one::OutputModule< WatchInputFiles >
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
 OutputModule (edm::ParameterSet const &iPSet)
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::OutputModuleBase
BranchIDLists const * branchIDLists ()
 
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch () const
 
SelectedProductsForBranchType const & keptProducts () const
 
int maxEvents () const
 
const ModuleDescriptionmoduleDescription () const
 
OutputModuleBaseoperator= (OutputModuleBase const &)=delete
 
 OutputModuleBase (OutputModuleBase const &)=delete
 
 OutputModuleBase (ParameterSet const &pset)
 
std::string const & processName () const
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &)
 
SharedResourcesAcquirersharedResourcesAcquirer ()
 
SubProcessParentageHelper const * subProcessParentageHelper () const
 
ThinnedAssociationsHelper const * thinnedAssociationsHelper () const
 
bool wantAllEvents () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~OutputModuleBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::OutputModuleBase
static const std::string & baseType ()
 
static void fillDescription (ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Protected Member Functions

virtual void doExtrasAfterCloseFile ()
 
virtual std::pair< std::string, std::string > physicalAndLogicalNameForNewFile ()
 
bool shouldWeCloseFile () const override
 allow inheriting classes to override but still be able to call this method in the overridden version More...
 
void write (EventForOutput const &e) override
 
- Protected Member Functions inherited from edm::one::OutputModuleBase
void configure (OutputModuleDescription const &desc)
 
ModuleDescription const & description () const
 
void doAccessInputProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
void doBeginJob ()
 
bool doBeginLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doBeginProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doBeginRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
void doEndJob ()
 
bool doEndLuminosityBlock (LumiTransitionInfo const &, ModuleCallingContext const *)
 
void doEndProcessBlock (ProcessBlockPrincipal const &, ModuleCallingContext const *)
 
bool doEndRun (RunTransitionInfo const &, ModuleCallingContext const *)
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
std::map< BranchID::value_type, BranchID::value_type > const & droppedBranchIDToKeptBranchID ()
 
virtual void preallocLumis (unsigned int)
 
ParameterSetID selectorConfig () const
 
void setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int >>> const &outputModulePathPositions, bool anyProductProduced)
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Types

typedef std::map< BranchID, std::set< ParentageID > > BranchParents
 

Private Member Functions

void beginInputFile (FileBlock const &fb)
 
void beginJob () override
 
void fillDependencyGraph ()
 
void fillSelectedItemList (BranchType branchtype, TTree *theInputTree)
 
void finishEndFile ()
 
bool isFileOpen () const override
 
void openFile (FileBlock const &fb) override
 
void preActionBeforeRunEventAsync (WaitingTaskHolder iTask, ModuleCallingContext const &iModuleCallingContext, Principal const &iPrincipal) const override
 
void reallyCloseFile () override
 
void reallyOpenFile ()
 
void respondToCloseInputFile (FileBlock const &fb) override
 
void respondToOpenInputFile (FileBlock const &fb) override
 
void setProcessesWithSelectedMergeableRunProducts (std::set< std::string > const &) override
 
void startEndFile ()
 
void updateBranchParents (EventForOutput const &e)
 
void updateBranchParentsForOneBranch (ProductProvenanceRetriever const *provRetriever, BranchID const &branchID)
 
void writeBranchIDListRegistry ()
 
void writeEventAuxiliary ()
 
void writeFileFormatVersion ()
 
void writeFileIdentifier ()
 
void writeIndexIntoFile ()
 
void writeLuminosityBlock (LuminosityBlockForOutput const &lb) override
 
void writeParameterSetRegistry ()
 
void writeParentageRegistry ()
 
void writeProcessHistoryRegistry ()
 
void writeProductDependencies ()
 
void writeProductDescriptionRegistry ()
 
void writeRun (RunForOutput const &r) override
 
void writeStoredMergeableRunProductMetadata ()
 
void writeThinnedAssociationsHelper ()
 

Private Attributes

AuxItemArray auxItems_
 
std::string basketOrder_
 
const int basketSize_
 
BranchChildren branchChildren_
 
BranchParents branchParents_
 
const std::string catalog_
 
bool compactEventAuxiliary_
 
const std::string compressionAlgorithm_
 
const int compressionLevel_
 
DropMetaData dropMetaData_
 
const int eventAutoFlushSize_
 
const int eventAuxBasketSize_
 
const std::string fileName_
 
bool initializedFromInput_
 
int inputFileCount_
 
const std::string logicalFileName_
 
unsigned const int maxFileSize_
 
const std::string moduleLabel_
 
int outputFileCount_
 
bool overrideInputFileSplitLevels_
 
std::vector< std::string > processesWithSelectedMergeableRunProducts_
 
std::vector< BranchIDproducedBranches_
 
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
 
RootServiceChecker rootServiceChecker_
 
OutputItemListArray selectedOutputItemList_
 
std::vector< SpecialSplitLevelForBranchspecialSplitLevelForBranches_
 
const int splitLevel_
 
std::string statusFileName_
 
const int treeMaxVirtualSize_
 
int whyNotFastClonable_
 

Detailed Description

Definition at line 39 of file PoolOutputModule.h.

Member Typedef Documentation

◆ AuxItemArray

Definition at line 77 of file PoolOutputModule.h.

◆ BranchParents

typedef std::map<BranchID, std::set<ParentageID> > edm::PoolOutputModule::BranchParents
private

Definition at line 164 of file PoolOutputModule.h.

◆ OutputItemList

Definition at line 117 of file PoolOutputModule.h.

◆ OutputItemListArray

Definition at line 119 of file PoolOutputModule.h.

Member Enumeration Documentation

◆ DropMetaData

Enumerator
DropNone 
DropDroppedPrior 
DropPrior 
DropAll 

Definition at line 41 of file PoolOutputModule.h.

Constructor & Destructor Documentation

◆ PoolOutputModule() [1/2]

edm::PoolOutputModule::PoolOutputModule ( ParameterSet const &  ps)
explicit

Definition at line 36 of file PoolOutputModule.cc.

38  one::OutputModule<WatchInputFiles>(pset),
40  auxItems_(),
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
57  moduleLabel_(pset.getParameter<std::string>("@module_label")),
58  initializedFromInput_(false),
60  inputFileCount_(0),
63  overrideInputFileSplitLevels_(pset.getUntrackedParameter<bool>("overrideInputFileSplitLevels")),
64  compactEventAuxiliary_(pset.getUntrackedParameter<bool>("compactEventAuxiliary")),
66  statusFileName_() {
67  if (pset.getUntrackedParameter<bool>("writeStatusFile")) {
68  std::ostringstream statusfilename;
69  statusfilename << moduleLabel_ << '_' << getpid();
70  statusFileName_ = statusfilename.str();
71  }
72 
73  std::string dropMetaData(pset.getUntrackedParameter<std::string>("dropMetaData"));
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  }

References edm::errors::Configuration, DropAll, DropDroppedPrior, dropMetaData(), dropMetaData_, DropNone, DropPrior, edm::FileBlock::EventSelectionUsed, Exception, moduleLabel_, muonDTDigis_cfi::pset, alignCSCRings::s, specialSplitLevelForBranches_, statusFileName_, AlCaHLTBitMon_QueryRunRegistry::string, edm::one::OutputModuleBase::wantAllEvents(), and whyNotFastClonable_.

◆ ~PoolOutputModule()

edm::PoolOutputModule::~PoolOutputModule ( )
override

Definition at line 275 of file PoolOutputModule.cc.

275 {}

◆ PoolOutputModule() [2/2]

edm::PoolOutputModule::PoolOutputModule ( PoolOutputModule const &  )
delete

Member Function Documentation

◆ auxItems()

AuxItemArray const& edm::PoolOutputModule::auxItems ( ) const
inline

Definition at line 78 of file PoolOutputModule.h.

78 { return auxItems_; }

References auxItems_.

◆ basketOrder()

std::string const& edm::PoolOutputModule::basketOrder ( ) const
inline

Definition at line 54 of file PoolOutputModule.h.

54 { return basketOrder_; }

References basketOrder_.

◆ basketSize()

int edm::PoolOutputModule::basketSize ( ) const
inline

Definition at line 50 of file PoolOutputModule.h.

50 { return basketSize_; }

References basketSize_.

◆ beginInputFile()

void edm::PoolOutputModule::beginInputFile ( FileBlock const &  fb)
private

Definition at line 227 of file PoolOutputModule.cc.

227  {
228  if (isFileOpen()) {
229  //Faster to read ChildrenBranches directly from input
230  // file than to build it every event
231  auto const& branchToChildMap = fb.branchChildren().childLookup();
232  for (auto const& parentToChildren : branchToChildMap) {
233  for (auto const& child : parentToChildren.second) {
234  branchChildren_.insertChild(parentToChildren.first, child);
235  }
236  }
237  rootOutputFile_->beginInputFile(fb, remainingEvents());
238  }
239  }

References branchChildren_, benchmark_cfg::fb, edm::BranchChildren::insertChild(), isFileOpen(), edm::one::OutputModuleBase::remainingEvents(), and rootOutputFile_.

Referenced by openFile(), and respondToOpenInputFile().

◆ beginJob()

void edm::PoolOutputModule::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Definition at line 108 of file PoolOutputModule.cc.

108  {
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  }

References submitPVResolutionJobs::desc, edm::InEvent, dumpMFGeometry_cfg::prod, and producedBranches_.

◆ branchChildren()

BranchChildren const& edm::PoolOutputModule::branchChildren ( ) const
inline

Definition at line 137 of file PoolOutputModule.h.

137 { return branchChildren_; }

References branchChildren_.

◆ catalog()

std::string const& edm::PoolOutputModule::catalog ( ) const
inline

Definition at line 59 of file PoolOutputModule.h.

59 { return catalog_; }

References catalog_.

◆ compactEventAuxiliary()

bool edm::PoolOutputModule::compactEventAuxiliary ( ) const
inline

Definition at line 57 of file PoolOutputModule.h.

57 { return compactEventAuxiliary_; }

References compactEventAuxiliary_.

◆ compressionAlgorithm()

std::string const& edm::PoolOutputModule::compressionAlgorithm ( ) const
inline

Definition at line 49 of file PoolOutputModule.h.

49 { return compressionAlgorithm_; }

References compressionAlgorithm_.

◆ compressionLevel()

int edm::PoolOutputModule::compressionLevel ( ) const
inline

Definition at line 48 of file PoolOutputModule.h.

48 { return compressionLevel_; }

References compressionLevel_.

◆ currentFileName()

std::string const & edm::PoolOutputModule::currentFileName ( ) const

Definition at line 118 of file PoolOutputModule.cc.

118 { return rootOutputFile_->fileName(); }

References rootOutputFile_.

Referenced by edm::TimeoutPoolOutputModule::shouldWeCloseFile().

◆ doExtrasAfterCloseFile()

void edm::PoolOutputModule::doExtrasAfterCloseFile ( )
protectedvirtual

Reimplemented in dqmservices::JsonWritingTimeoutPoolOutputModule.

Definition at line 336 of file PoolOutputModule.cc.

336 {}

Referenced by reallyCloseFile().

◆ dropMetaData()

DropMetaData const& edm::PoolOutputModule::dropMetaData ( ) const
inline

Definition at line 58 of file PoolOutputModule.h.

58 { return dropMetaData_; }

References dropMetaData_.

Referenced by PoolOutputModule().

◆ eventAutoFlushSize()

int edm::PoolOutputModule::eventAutoFlushSize ( ) const
inline

Definition at line 52 of file PoolOutputModule.h.

52 { return eventAutoFlushSize_; }

References eventAutoFlushSize_.

Referenced by edm::RootOutputFile::RootOutputFile().

◆ eventAuxiliaryBasketSize()

int edm::PoolOutputModule::eventAuxiliaryBasketSize ( ) const
inline

Definition at line 51 of file PoolOutputModule.h.

51 { return eventAuxBasketSize_; }

References eventAuxBasketSize_.

◆ fileName()

std::string const& edm::PoolOutputModule::fileName ( ) const
inline

Definition at line 46 of file PoolOutputModule.h.

46 { return fileName_; }

References fileName_.

Referenced by physicalAndLogicalNameForNewFile().

◆ fillDependencyGraph()

void edm::PoolOutputModule::fillDependencyGraph ( )
private

Definition at line 415 of file PoolOutputModule.cc.

415  {
416  for (auto const& branchParent : branchParents_) {
417  BranchID const& child = branchParent.first;
418  std::set<ParentageID> const& eIds = branchParent.second;
419  for (auto const& eId : eIds) {
420  Parentage entryDesc;
421  ParentageRegistry::instance()->getMapped(eId, entryDesc);
422  std::vector<BranchID> const& parents = entryDesc.parents();
423  for (auto const& parent : parents) {
425  }
426  }
427  }
428  }

References branchChildren_, branchParents_, edm::ParentageRegistry::getMapped(), edm::BranchChildren::insertChild(), edm::ParentageRegistry::instance(), class-composition::parent, parents, and edm::Parentage::parents().

Referenced by reallyCloseFile().

◆ fillDescription()

void edm::PoolOutputModule::fillDescription ( ParameterSetDescription desc)
static

Definition at line 430 of file PoolOutputModule.cc.

430  {
431  std::string defaultString;
432 
433  desc.setComment("Writes runs, lumis, and events into EDM/ROOT files.");
434  desc.addUntracked<std::string>("fileName")->setComment("Name of output file.");
435  desc.addUntracked<std::string>("logicalFileName", defaultString)
436  ->setComment("Passed to job report. Otherwise unused by module.");
437  desc.addUntracked<std::string>("catalog", defaultString)
438  ->setComment("Passed to job report. Otherwise unused by module.");
439  desc.addUntracked<int>("maxSize", 0x7f000000)
440  ->setComment(
441  "Maximum output file size, in kB.\n"
442  "If over maximum, new output file will be started at next input file transition.");
443  desc.addUntracked<int>("compressionLevel", 9)->setComment("ROOT compression level of output file.");
444  desc.addUntracked<std::string>("compressionAlgorithm", "ZLIB")
445  ->setComment("Algorithm used to compress data in the ROOT output file, allowed values are ZLIB and LZMA");
446  desc.addUntracked<int>("basketSize", 16384)->setComment("Default ROOT basket size in output file.");
447  desc.addUntracked<int>("eventAuxiliaryBasketSize", 16384)
448  ->setComment("Default ROOT basket size in output file for EventAuxiliary branch.");
449  desc.addUntracked<int>("eventAutoFlushCompressedSize", 20 * 1024 * 1024)
450  ->setComment(
451  "Set ROOT auto flush stored data size (in bytes) for event TTree. The value sets how large the compressed "
452  "buffer is allowed to get. The uncompressed buffer can be quite a bit larger than this depending on the "
453  "average compression ratio. The value of -1 just uses ROOT's default value. The value of 0 turns off this "
454  "feature.");
455  desc.addUntracked<int>("splitLevel", 99)->setComment("Default ROOT branch split level in output file.");
456  desc.addUntracked<std::string>("sortBaskets", std::string("sortbasketsbyoffset"))
457  ->setComment(
458  "Legal values: 'sortbasketsbyoffset', 'sortbasketsbybranch', 'sortbasketsbyentry'.\n"
459  "Used by ROOT when fast copying. Affects performance.");
460  desc.addUntracked<int>("treeMaxVirtualSize", -1)
461  ->setComment("Size of ROOT TTree TBasket cache. Affects performance.");
462  desc.addUntracked<bool>("fastCloning", true)
463  ->setComment(
464  "True: Allow fast copying, if possible.\n"
465  "False: Disable fast copying.");
466  desc.addUntracked<bool>("compactEventAuxiliary", false)
467  ->setComment(
468  "False: Write EventAuxiliary as we go like any other event metadata branch.\n"
469  "True: Optimize the file layout be deferring writing the EventAuxiliary branch until the output file is "
470  "closed.");
471  desc.addUntracked<bool>("overrideInputFileSplitLevels", false)
472  ->setComment(
473  "False: Use branch split levels and basket sizes from input file, if possible.\n"
474  "True: Always use specified or default split levels and basket sizes.");
475  desc.addUntracked<bool>("writeStatusFile", false)
476  ->setComment("Write a status file. Intended for use by workflow management.");
477  desc.addUntracked<std::string>("dropMetaData", defaultString)
478  ->setComment(
479  "Determines handling of per product per event metadata. Options are:\n"
480  "'NONE': Keep all of it.\n"
481  "'DROPPED': Keep it for products produced in current process and all kept products. Drop it for dropped "
482  "products produced in prior processes.\n"
483  "'PRIOR': Keep it for products produced in current process. Drop it for products produced in prior "
484  "processes.\n"
485  "'ALL': Drop all of it.");
486  {
488  dataSet.setAllowAnything();
489  desc.addUntracked<ParameterSetDescription>("dataset", dataSet)
490  ->setComment("PSet is only used by Data Operations and not by this module.");
491  }
492  {
493  ParameterSetDescription specialSplit;
494  specialSplit.addUntracked<std::string>("branch")->setComment(
495  "Name of branch needing a special split level. The name can contain wildcards '*' and '?'");
496  specialSplit.addUntracked<int>("splitLevel")->setComment("The special split level for the branch");
497  desc.addVPSetUntracked("overrideBranchesSplitLevel", specialSplit, std::vector<ParameterSet>());
498  }
499  OutputModule::fillDescription(desc);
500  }

References edm::ParameterSetDescription::addUntracked(), EgammaPostProcessor_cfi::dataSet, submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::TimeoutPoolOutputModule::fillDescriptions(), and fillDescriptions().

◆ fillDescriptions()

void edm::PoolOutputModule::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 502 of file PoolOutputModule.cc.

502  {
505  descriptions.add("edmOutput", desc);
506  }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and fillDescription().

◆ fillSelectedItemList()

void edm::PoolOutputModule::fillSelectedItemList ( BranchType  branchtype,
TTree *  theInputTree 
)
private

Definition at line 178 of file PoolOutputModule.cc.

178  {
179  SelectedProducts const& keptVector = keptProducts()[branchType];
180  OutputItemList& outputItemList = selectedOutputItemList_[branchType];
181  AuxItem& auxItem = auxItems_[branchType];
182 
183  auto basketSize = (InEvent == branchType) ? eventAuxBasketSize_ : basketSize_;
184 
185  // Fill AuxItem
186  if (theInputTree != nullptr && !overrideInputFileSplitLevels_) {
187  TBranch* auxBranch = theInputTree->GetBranch(BranchTypeToAuxiliaryBranchName(branchType).c_str());
188  if (auxBranch) {
189  auxItem.basketSize_ = auxBranch->GetBasketSize();
190  } else {
191  auxItem.basketSize_ = basketSize;
192  }
193  } else {
194  auxItem.basketSize_ = basketSize;
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  TBranch* theBranch = ((!prod.produced() && theInputTree != nullptr && !overrideInputFileSplitLevels_)
204  ? theInputTree->GetBranch(prod.branchName().c_str())
205  : nullptr);
206 
207  if (theBranch != nullptr) {
208  splitLevel = theBranch->GetSplitLevel();
209  basketSize = theBranch->GetBasketSize();
210  } else {
211  splitLevel = (prod.splitLevel() == BranchDescription::invalidSplitLevel ? splitLevel_ : prod.splitLevel());
212  for (auto const& b : specialSplitLevelForBranches_) {
213  if (b.match(prod.branchName())) {
214  splitLevel = b.splitLevel_;
215  }
216  }
217  basketSize = (prod.basketSize() == BranchDescription::invalidBasketSize ? basketSize_ : prod.basketSize());
218  }
219  outputItemList.emplace_back(&prod, kept.second, splitLevel, basketSize);
220  }
221 
222  // Sort outputItemList to allow fast copying.
223  // The branches in outputItemList must be in the same order as in the input tree, with all new branches at the end.
224  sort_all(outputItemList, OutputItem::Sorter(theInputTree));
225  }

References auxItems_, b, edm::PoolOutputModule::OutputItem::basketSize(), edm::PoolOutputModule::AuxItem::basketSize_, edm::PoolOutputModule::OutputItem::basketSize_, edm::BranchTypeToAuxiliaryBranchName(), eventAuxBasketSize_, edm::InEvent, edm::BranchDescription::invalidBasketSize, edm::BranchDescription::invalidSplitLevel, edm::one::OutputModuleBase::keptProducts(), overrideInputFileSplitLevels_, dumpMFGeometry_cfg::prod, selectedOutputItemList_, edm::sort_all(), specialSplitLevelForBranches_, edm::PoolOutputModule::OutputItem::splitLevel(), and edm::PoolOutputModule::OutputItem::splitLevel_.

Referenced by respondToOpenInputFile().

◆ finishEndFile()

void edm::PoolOutputModule::finishEndFile ( )
private

Definition at line 332 of file PoolOutputModule.cc.

332  {
333  rootOutputFile_->finishEndFile();
334  rootOutputFile_ = nullptr;
335  } // propagate_const<T> has no reset() function

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ inputFileCount()

int edm::PoolOutputModule::inputFileCount ( ) const
inline

Definition at line 62 of file PoolOutputModule.h.

62 { return inputFileCount_; }

References inputFileCount_.

◆ isFileOpen()

bool edm::PoolOutputModule::isFileOpen ( ) const
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Definition at line 337 of file PoolOutputModule.cc.

337 { return rootOutputFile_.get() != nullptr; }

References rootOutputFile_.

Referenced by beginInputFile(), and openFile().

◆ logicalFileName()

std::string const& edm::PoolOutputModule::logicalFileName ( ) const
inline

Definition at line 47 of file PoolOutputModule.h.

47 { return logicalFileName_; }

References logicalFileName_.

Referenced by physicalAndLogicalNameForNewFile().

◆ maxFileSize()

unsigned int edm::PoolOutputModule::maxFileSize ( ) const
inline

Definition at line 61 of file PoolOutputModule.h.

61 { return maxFileSize_; }

References maxFileSize_.

◆ moduleLabel()

std::string const& edm::PoolOutputModule::moduleLabel ( ) const
inline

Definition at line 60 of file PoolOutputModule.h.

60 { return moduleLabel_; }

References moduleLabel_.

◆ openFile()

void edm::PoolOutputModule::openFile ( FileBlock const &  fb)
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Definition at line 241 of file PoolOutputModule.cc.

241  {
242  if (!isFileOpen()) {
243  reallyOpenFile();
245  }
246  }

References beginInputFile(), benchmark_cfg::fb, isFileOpen(), and reallyOpenFile().

◆ operator=()

PoolOutputModule& edm::PoolOutputModule::operator= ( PoolOutputModule const &  )
delete

◆ overrideInputFileSplitLevels()

bool edm::PoolOutputModule::overrideInputFileSplitLevels ( ) const
inline

Definition at line 56 of file PoolOutputModule.h.

References overrideInputFileSplitLevels_.

◆ physicalAndLogicalNameForNewFile()

std::pair< std::string, std::string > edm::PoolOutputModule::physicalAndLogicalNameForNewFile ( )
protectedvirtual

Reimplemented in dqmservices::JsonWritingTimeoutPoolOutputModule.

Definition at line 340 of file PoolOutputModule.cc.

340  {
341  if (inputFileCount_ == 0) {
342  throw edm::Exception(errors::LogicError) << "Attempt to open output file before input file. "
343  << "Please report this to the core framework developers.\n";
344  }
345  std::string suffix(".root");
347  bool ext = (offset == fileName().size() - suffix.size());
348  if (!ext)
349  suffix.clear();
350  std::string fileBase(ext ? fileName().substr(0, offset) : fileName());
351  std::ostringstream ofilename;
352  std::ostringstream lfilename;
353  ofilename << fileBase;
354  lfilename << logicalFileName();
355  if (outputFileCount_) {
356  ofilename << std::setw(3) << std::setfill('0') << outputFileCount_;
357  if (!logicalFileName().empty()) {
358  lfilename << std::setw(3) << std::setfill('0') << outputFileCount_;
359  }
360  }
361  ofilename << suffix;
363 
364  return std::make_pair(ofilename.str(), lfilename.str());
365  }

References relativeConstraints::empty, Exception, fileName(), inputFileCount_, logicalFileName(), edm::errors::LogicError, hltrates_dqm_sourceclient-live_cfg::offset, outputFileCount_, AlCaHLTBitMon_QueryRunRegistry::string, and createPayload::suffix.

Referenced by reallyOpenFile().

◆ preActionBeforeRunEventAsync()

void edm::PoolOutputModule::preActionBeforeRunEventAsync ( WaitingTaskHolder  iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Definition at line 401 of file PoolOutputModule.cc.

403  {
404  if (DropAll != dropMetaData_) {
405  auto const* ep = dynamic_cast<EventPrincipal const*>(&iPrincipal);
406  if (ep) {
407  auto pr = ep->productProvenanceRetrieverPtr();
408  if (pr) {
409  pr->readProvenanceAsync(iTask, &iModuleCallingContext);
410  }
411  }
412  }
413  }

References DropAll, dropMetaData_, and SiStripBadComponentsDQMServiceTemplate_cfg::ep.

◆ reallyCloseFile()

void edm::PoolOutputModule::reallyCloseFile ( )
overrideprivatevirtual

◆ reallyOpenFile()

void edm::PoolOutputModule::reallyOpenFile ( )
private

Definition at line 367 of file PoolOutputModule.cc.

367  {
369  rootOutputFile_ = std::make_unique<RootOutputFile>(
370  this,
371  names.first,
372  names.second,
373  processesWithSelectedMergeableRunProducts_); // propagate_const<T> has no reset() function
374  }

References names, physicalAndLogicalNameForNewFile(), processesWithSelectedMergeableRunProducts_, and rootOutputFile_.

Referenced by openFile().

◆ respondToCloseInputFile()

void edm::PoolOutputModule::respondToCloseInputFile ( FileBlock const &  fb)
overrideprivate

Definition at line 266 of file PoolOutputModule.cc.

266  {
267  if (rootOutputFile_)
268  rootOutputFile_->respondToCloseInputFile(fb);
269  }

References benchmark_cfg::fb, and rootOutputFile_.

◆ respondToOpenInputFile()

void edm::PoolOutputModule::respondToOpenInputFile ( FileBlock const &  fb)
overrideprivate

Definition at line 248 of file PoolOutputModule.cc.

248  {
249  if (!initializedFromInput_) {
250  for (int i = InEvent; i < NumBranchTypes; ++i) {
251  if (i == InProcess) {
252  // ProcessBlock output not implemented yet
253  continue;
254  }
255  BranchType branchType = static_cast<BranchType>(i);
256  TTree* theInputTree =
257  (branchType == InEvent ? fb.tree() : (branchType == InLumi ? fb.lumiTree() : fb.runTree()));
258  fillSelectedItemList(branchType, theInputTree);
259  }
260  initializedFromInput_ = true;
261  }
262  ++inputFileCount_;
264  }

References beginInputFile(), benchmark_cfg::fb, fillSelectedItemList(), mps_fire::i, edm::InEvent, initializedFromInput_, edm::InLumi, edm::InProcess, inputFileCount_, and edm::NumBranchTypes.

◆ selectedOutputItemList() [1/2]

OutputItemListArray& edm::PoolOutputModule::selectedOutputItemList ( )
inline

Definition at line 135 of file PoolOutputModule.h.

135 { return selectedOutputItemList_; }

References selectedOutputItemList_.

◆ selectedOutputItemList() [2/2]

OutputItemListArray const& edm::PoolOutputModule::selectedOutputItemList ( ) const
inline

Definition at line 133 of file PoolOutputModule.h.

133 { return selectedOutputItemList_; }

References selectedOutputItemList_.

Referenced by edm::RootOutputFile::RootOutputFile().

◆ setProcessesWithSelectedMergeableRunProducts()

void edm::PoolOutputModule::setProcessesWithSelectedMergeableRunProducts ( std::set< std::string > const &  processes)
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Definition at line 271 of file PoolOutputModule.cc.

271  {
273  }

References dqmiodatasetharvest::processes, and processesWithSelectedMergeableRunProducts_.

◆ shouldWeCloseFile()

bool edm::PoolOutputModule::shouldWeCloseFile ( ) const
overrideprotectedvirtual

allow inheriting classes to override but still be able to call this method in the overridden version

Reimplemented from edm::one::OutputModuleBase.

Reimplemented in edm::TimeoutPoolOutputModule.

Definition at line 338 of file PoolOutputModule.cc.

338 { return rootOutputFile_->shouldWeCloseFile(); }

References rootOutputFile_.

Referenced by edm::TimeoutPoolOutputModule::shouldWeCloseFile().

◆ splitLevel()

int edm::PoolOutputModule::splitLevel ( ) const
inline

Definition at line 53 of file PoolOutputModule.h.

53 { return splitLevel_; }

References splitLevel_.

◆ startEndFile()

void edm::PoolOutputModule::startEndFile ( )
private

Definition at line 316 of file PoolOutputModule.cc.

316 {}

Referenced by reallyCloseFile().

◆ treeMaxVirtualSize()

int edm::PoolOutputModule::treeMaxVirtualSize ( ) const
inline

Definition at line 55 of file PoolOutputModule.h.

55 { return treeMaxVirtualSize_; }

References treeMaxVirtualSize_.

◆ updateBranchParents()

void edm::PoolOutputModule::updateBranchParents ( EventForOutput const &  e)
private

Definition at line 388 of file PoolOutputModule.cc.

388  {
389  ProductProvenanceRetriever const* provRetriever = e.productProvenanceRetrieverPtr();
390  for (auto const& bid : producedBranches_) {
391  updateBranchParentsForOneBranch(provRetriever, bid);
392  }
393  SubProcessParentageHelper const* helper = subProcessParentageHelper();
394  if (helper) {
395  for (auto const& bid : subProcessParentageHelper()->producedProducts()) {
396  updateBranchParentsForOneBranch(provRetriever, bid);
397  }
398  }
399  }

References MillePedeFileConverter_cfg::e, producedBranches_, edm::one::OutputModuleBase::subProcessParentageHelper(), and updateBranchParentsForOneBranch().

Referenced by write().

◆ updateBranchParentsForOneBranch()

void edm::PoolOutputModule::updateBranchParentsForOneBranch ( ProductProvenanceRetriever const *  provRetriever,
BranchID const &  branchID 
)
private

Definition at line 376 of file PoolOutputModule.cc.

377  {
378  ProductProvenance const* provenance = provRetriever->branchIDToProvenanceForProducedOnly(branchID);
379  if (provenance != nullptr) {
380  BranchParents::iterator it = branchParents_.find(branchID);
381  if (it == branchParents_.end()) {
382  it = branchParents_.insert(std::make_pair(branchID, std::set<ParentageID>())).first;
383  }
384  it->second.insert(provenance->parentageID());
385  }
386  }

References edm::PoolOutputModule::OutputItem::branchID(), edm::ProductProvenanceRetriever::branchIDToProvenanceForProducedOnly(), branchParents_, and edm::ProductProvenance::parentageID().

Referenced by updateBranchParents().

◆ whyNotFastClonable()

int edm::PoolOutputModule::whyNotFastClonable ( ) const
inline

Definition at line 63 of file PoolOutputModule.h.

63 { return whyNotFastClonable_; }

References whyNotFastClonable_.

◆ write()

void edm::PoolOutputModule::write ( EventForOutput const &  e)
overrideprotectedvirtual

Implements edm::one::OutputModuleBase.

Reimplemented in edm::TimeoutPoolOutputModule.

Definition at line 277 of file PoolOutputModule.cc.

277  {
279  rootOutputFile_->writeOne(e);
280  if (!statusFileName_.empty()) {
281  std::ofstream statusFile(statusFileName_.c_str());
282  statusFile << e.id() << " time: " << std::setprecision(3) << TimeOfDay() << '\n';
283  statusFile.close();
284  }
285  }

References MillePedeFileConverter_cfg::e, rootOutputFile_, statusFileName_, and updateBranchParents().

Referenced by edm::TimeoutPoolOutputModule::write().

◆ writeBranchIDListRegistry()

void edm::PoolOutputModule::writeBranchIDListRegistry ( )
private

Definition at line 328 of file PoolOutputModule.cc.

328 { rootOutputFile_->writeBranchIDListRegistry(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeEventAuxiliary()

void edm::PoolOutputModule::writeEventAuxiliary ( )
private

Definition at line 331 of file PoolOutputModule.cc.

331 { rootOutputFile_->writeEventAuxiliary(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeFileFormatVersion()

void edm::PoolOutputModule::writeFileFormatVersion ( )
private

Definition at line 318 of file PoolOutputModule.cc.

318 { rootOutputFile_->writeFileFormatVersion(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeFileIdentifier()

void edm::PoolOutputModule::writeFileIdentifier ( )
private

Definition at line 319 of file PoolOutputModule.cc.

319 { rootOutputFile_->writeFileIdentifier(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeIndexIntoFile()

void edm::PoolOutputModule::writeIndexIntoFile ( )
private

Definition at line 320 of file PoolOutputModule.cc.

320 { rootOutputFile_->writeIndexIntoFile(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeLuminosityBlock()

void edm::PoolOutputModule::writeLuminosityBlock ( LuminosityBlockForOutput const &  lb)
overrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 287 of file PoolOutputModule.cc.

287  {
288  rootOutputFile_->writeLuminosityBlock(lb);
289  }

References rootOutputFile_.

◆ writeParameterSetRegistry()

void edm::PoolOutputModule::writeParameterSetRegistry ( )
private

Definition at line 325 of file PoolOutputModule.cc.

325 { rootOutputFile_->writeParameterSetRegistry(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeParentageRegistry()

void edm::PoolOutputModule::writeParentageRegistry ( )
private

Definition at line 327 of file PoolOutputModule.cc.

327 { rootOutputFile_->writeParentageRegistry(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeProcessHistoryRegistry()

void edm::PoolOutputModule::writeProcessHistoryRegistry ( )
private

Definition at line 324 of file PoolOutputModule.cc.

324 { rootOutputFile_->writeProcessHistoryRegistry(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeProductDependencies()

void edm::PoolOutputModule::writeProductDependencies ( )
private

Definition at line 330 of file PoolOutputModule.cc.

330 { rootOutputFile_->writeProductDependencies(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeProductDescriptionRegistry()

void edm::PoolOutputModule::writeProductDescriptionRegistry ( )
private

Definition at line 326 of file PoolOutputModule.cc.

326 { rootOutputFile_->writeProductDescriptionRegistry(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeRun()

void edm::PoolOutputModule::writeRun ( RunForOutput const &  r)
overrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 291 of file PoolOutputModule.cc.

291 { rootOutputFile_->writeRun(r); }

References alignCSCRings::r, and rootOutputFile_.

◆ writeStoredMergeableRunProductMetadata()

void edm::PoolOutputModule::writeStoredMergeableRunProductMetadata ( )
private

Definition at line 321 of file PoolOutputModule.cc.

321  {
322  rootOutputFile_->writeStoredMergeableRunProductMetadata();
323  }

References rootOutputFile_.

Referenced by reallyCloseFile().

◆ writeThinnedAssociationsHelper()

void edm::PoolOutputModule::writeThinnedAssociationsHelper ( )
private

Definition at line 329 of file PoolOutputModule.cc.

329 { rootOutputFile_->writeThinnedAssociationsHelper(); }

References rootOutputFile_.

Referenced by reallyCloseFile().

Member Data Documentation

◆ auxItems_

AuxItemArray edm::PoolOutputModule::auxItems_
private

Definition at line 188 of file PoolOutputModule.h.

Referenced by auxItems(), and fillSelectedItemList().

◆ basketOrder_

std::string edm::PoolOutputModule::basketOrder_
private

Definition at line 201 of file PoolOutputModule.h.

Referenced by basketOrder().

◆ basketSize_

const int edm::PoolOutputModule::basketSize_
private

Definition at line 197 of file PoolOutputModule.h.

Referenced by basketSize().

◆ branchChildren_

BranchChildren edm::PoolOutputModule::branchChildren_
private

◆ branchParents_

BranchParents edm::PoolOutputModule::branchParents_
private

◆ catalog_

const std::string edm::PoolOutputModule::catalog_
private

Definition at line 193 of file PoolOutputModule.h.

Referenced by catalog().

◆ compactEventAuxiliary_

bool edm::PoolOutputModule::compactEventAuxiliary_
private

Definition at line 213 of file PoolOutputModule.h.

Referenced by compactEventAuxiliary().

◆ compressionAlgorithm_

const std::string edm::PoolOutputModule::compressionAlgorithm_
private

Definition at line 196 of file PoolOutputModule.h.

Referenced by compressionAlgorithm().

◆ compressionLevel_

const int edm::PoolOutputModule::compressionLevel_
private

Definition at line 195 of file PoolOutputModule.h.

Referenced by compressionLevel().

◆ dropMetaData_

DropMetaData edm::PoolOutputModule::dropMetaData_
private

◆ eventAutoFlushSize_

const int edm::PoolOutputModule::eventAutoFlushSize_
private

Definition at line 199 of file PoolOutputModule.h.

Referenced by eventAutoFlushSize().

◆ eventAuxBasketSize_

const int edm::PoolOutputModule::eventAuxBasketSize_
private

Definition at line 198 of file PoolOutputModule.h.

Referenced by eventAuxiliaryBasketSize(), and fillSelectedItemList().

◆ fileName_

const std::string edm::PoolOutputModule::fileName_
private

Definition at line 191 of file PoolOutputModule.h.

Referenced by fileName().

◆ initializedFromInput_

bool edm::PoolOutputModule::initializedFromInput_
private

Definition at line 206 of file PoolOutputModule.h.

Referenced by respondToOpenInputFile().

◆ inputFileCount_

int edm::PoolOutputModule::inputFileCount_
private

◆ logicalFileName_

const std::string edm::PoolOutputModule::logicalFileName_
private

Definition at line 192 of file PoolOutputModule.h.

Referenced by logicalFileName().

◆ maxFileSize_

unsigned const int edm::PoolOutputModule::maxFileSize_
private

Definition at line 194 of file PoolOutputModule.h.

Referenced by maxFileSize().

◆ moduleLabel_

const std::string edm::PoolOutputModule::moduleLabel_
private

◆ outputFileCount_

int edm::PoolOutputModule::outputFileCount_
private

Definition at line 207 of file PoolOutputModule.h.

Referenced by physicalAndLogicalNameForNewFile().

◆ overrideInputFileSplitLevels_

bool edm::PoolOutputModule::overrideInputFileSplitLevels_
private

Definition at line 212 of file PoolOutputModule.h.

Referenced by fillSelectedItemList(), and overrideInputFileSplitLevels().

◆ processesWithSelectedMergeableRunProducts_

std::vector<std::string> edm::PoolOutputModule::processesWithSelectedMergeableRunProducts_
private

◆ producedBranches_

std::vector<BranchID> edm::PoolOutputModule::producedBranches_
private

Definition at line 211 of file PoolOutputModule.h.

Referenced by beginJob(), and updateBranchParents().

◆ rootOutputFile_

edm::propagate_const<std::unique_ptr<RootOutputFile> > edm::PoolOutputModule::rootOutputFile_
private

◆ rootServiceChecker_

RootServiceChecker edm::PoolOutputModule::rootServiceChecker_
private

Definition at line 187 of file PoolOutputModule.h.

◆ selectedOutputItemList_

OutputItemListArray edm::PoolOutputModule::selectedOutputItemList_
private

Definition at line 189 of file PoolOutputModule.h.

Referenced by fillSelectedItemList(), and selectedOutputItemList().

◆ specialSplitLevelForBranches_

std::vector<SpecialSplitLevelForBranch> edm::PoolOutputModule::specialSplitLevelForBranches_
private

Definition at line 190 of file PoolOutputModule.h.

Referenced by fillSelectedItemList(), and PoolOutputModule().

◆ splitLevel_

const int edm::PoolOutputModule::splitLevel_
private

Definition at line 200 of file PoolOutputModule.h.

Referenced by splitLevel().

◆ statusFileName_

std::string edm::PoolOutputModule::statusFileName_
private

Definition at line 215 of file PoolOutputModule.h.

Referenced by PoolOutputModule(), and write().

◆ treeMaxVirtualSize_

const int edm::PoolOutputModule::treeMaxVirtualSize_
private

Definition at line 202 of file PoolOutputModule.h.

Referenced by treeMaxVirtualSize().

◆ whyNotFastClonable_

int edm::PoolOutputModule::whyNotFastClonable_
private

Definition at line 203 of file PoolOutputModule.h.

Referenced by PoolOutputModule(), and whyNotFastClonable().

edm::one::OutputModuleBase::remainingEvents
int remainingEvents() const
Definition: OutputModuleBase.h:89
edm::PoolOutputModule::updateBranchParents
void updateBranchParents(EventForOutput const &e)
Definition: PoolOutputModule.cc:388
ext
Definition: memstream.h:15
edm::PoolOutputModule::branchChildren_
BranchChildren branchChildren_
Definition: PoolOutputModule.h:210
mps_fire.i
i
Definition: mps_fire.py:428
edm::one::OutputModuleBase::subProcessParentageHelper
SubProcessParentageHelper const * subProcessParentageHelper() const
Definition: OutputModuleBase.h:123
edm::PoolOutputModule::fileName_
const std::string fileName_
Definition: PoolOutputModule.h:191
edm::PoolOutputModule::maxFileSize_
unsigned const int maxFileSize_
Definition: PoolOutputModule.h:194
edm::PoolOutputModule::processesWithSelectedMergeableRunProducts_
std::vector< std::string > processesWithSelectedMergeableRunProducts_
Definition: PoolOutputModule.h:216
edm::sort_all
void sort_all(RandomAccessSequence &s)
wrappers for std::sort
Definition: Algorithms.h:92
edm::errors::LogicError
Definition: EDMException.h:37
edm::PoolOutputModule::splitLevel
int splitLevel() const
Definition: PoolOutputModule.h:53
edm::PoolOutputModule::OutputItemList
std::vector< OutputItem > OutputItemList
Definition: PoolOutputModule.h:117
edm::PoolOutputModule::rootOutputFile_
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
Definition: PoolOutputModule.h:214
edm::PoolOutputModule::writeParameterSetRegistry
void writeParameterSetRegistry()
Definition: PoolOutputModule.cc:325
edm::ParentageRegistry::instance
static ParentageRegistry * instance()
Definition: ParentageRegistry.cc:4
EgammaPostProcessor_cfi.dataSet
dataSet
Definition: EgammaPostProcessor_cfi.py:6
edm::PoolOutputModule::initializedFromInput_
bool initializedFromInput_
Definition: PoolOutputModule.h:206
edm::PoolOutputModule::whyNotFastClonable_
int whyNotFastClonable_
Definition: PoolOutputModule.h:203
edm::BranchChildren::clear
void clear()
Definition: BranchChildren.cc:36
edm::PoolOutputModule::fillSelectedItemList
void fillSelectedItemList(BranchType branchtype, TTree *theInputTree)
Definition: PoolOutputModule.cc:178
edm::PoolOutputModule::updateBranchParentsForOneBranch
void updateBranchParentsForOneBranch(ProductProvenanceRetriever const *provRetriever, BranchID const &branchID)
Definition: PoolOutputModule.cc:376
edm::PoolOutputModule::doExtrasAfterCloseFile
virtual void doExtrasAfterCloseFile()
Definition: PoolOutputModule.cc:336
edm::PoolOutputModule::inputFileCount_
int inputFileCount_
Definition: PoolOutputModule.h:208
edm::BranchType
BranchType
Definition: BranchType.h:11
edm::BranchTypeToAuxiliaryBranchName
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:109
edm::PoolOutputModule::compactEventAuxiliary_
bool compactEventAuxiliary_
Definition: PoolOutputModule.h:213
edm::one::OutputModuleBase::OutputModuleBase
OutputModuleBase(ParameterSet const &pset)
Definition: OutputModuleBase.cc:45
createPayload.suffix
suffix
Definition: createPayload.py:281
edm::NumBranchTypes
Definition: BranchType.h:11
edm::PoolOutputModule::specialSplitLevelForBranches_
std::vector< SpecialSplitLevelForBranch > specialSplitLevelForBranches_
Definition: PoolOutputModule.h:190
edm::SelectedProducts
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
Definition: SelectedProducts.h:11
edm::InProcess
Definition: BranchType.h:11
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::FileBlock::CanFastClone
Definition: FileBlock.h:24
edm::PoolOutputModule::basketSize_
const int basketSize_
Definition: PoolOutputModule.h:197
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
edm::PoolOutputModule::moduleLabel_
const std::string moduleLabel_
Definition: PoolOutputModule.h:205
edm::PoolOutputModule::writeFileFormatVersion
void writeFileFormatVersion()
Definition: PoolOutputModule.cc:318
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
edm::PoolOutputModule::selectedOutputItemList_
OutputItemListArray selectedOutputItemList_
Definition: PoolOutputModule.h:189
edm::PoolOutputModule::splitLevel_
const int splitLevel_
Definition: PoolOutputModule.h:200
edm::PoolOutputModule::producedBranches_
std::vector< BranchID > producedBranches_
Definition: PoolOutputModule.h:211
edm::PoolOutputModule::branchParents_
BranchParents branchParents_
Definition: PoolOutputModule.h:209
edm::BranchDescription::invalidSplitLevel
static const int invalidSplitLevel
Definition: BranchDescription.h:34
edm::PoolOutputModule::dropMetaData
DropMetaData const & dropMetaData() const
Definition: PoolOutputModule.h:58
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
edm::PoolOutputModule::eventAutoFlushSize_
const int eventAutoFlushSize_
Definition: PoolOutputModule.h:199
Service
edm::one::OutputModuleBase::wantAllEvents
bool wantAllEvents() const
Definition: OutputModuleBase.h:117
edm::InEvent
Definition: BranchType.h:11
edm::PoolOutputModule::overrideInputFileSplitLevels_
bool overrideInputFileSplitLevels_
Definition: PoolOutputModule.h:212
edm::PoolOutputModule::writeThinnedAssociationsHelper
void writeThinnedAssociationsHelper()
Definition: PoolOutputModule.cc:329
edm::PoolOutputModule::writeEventAuxiliary
void writeEventAuxiliary()
Definition: PoolOutputModule.cc:331
b
double b
Definition: hdecay.h:118
edm::PoolOutputModule::auxItems_
AuxItemArray auxItems_
Definition: PoolOutputModule.h:188
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::PoolOutputModule::compressionAlgorithm_
const std::string compressionAlgorithm_
Definition: PoolOutputModule.h:196
edm::PoolOutputModule::reallyOpenFile
void reallyOpenFile()
Definition: PoolOutputModule.cc:367
edm::PoolOutputModule::writeIndexIntoFile
void writeIndexIntoFile()
Definition: PoolOutputModule.cc:320
sipixeldigitoraw
Definition: SiPixelDigiToRaw.cc:39
edm::InLumi
Definition: BranchType.h:11
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:330
edm::PoolOutputModule::DropDroppedPrior
Definition: PoolOutputModule.h:41
edm::PoolOutputModule::isFileOpen
bool isFileOpen() const override
Definition: PoolOutputModule.cc:337
edm::PoolOutputModule::logicalFileName_
const std::string logicalFileName_
Definition: PoolOutputModule.h:192
edm::PoolOutputModule::writeStoredMergeableRunProductMetadata
void writeStoredMergeableRunProductMetadata()
Definition: PoolOutputModule.cc:321
edm::PoolOutputModule::outputFileCount_
int outputFileCount_
Definition: PoolOutputModule.h:207
edm::PoolOutputModule::beginInputFile
void beginInputFile(FileBlock const &fb)
Definition: PoolOutputModule.cc:227
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
edm::PoolOutputModule::writeProductDescriptionRegistry
void writeProductDescriptionRegistry()
Definition: PoolOutputModule.cc:326
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::PoolOutputModule::writeBranchIDListRegistry
void writeBranchIDListRegistry()
Definition: PoolOutputModule.cc:328
edm::FileBlock::EventSelectionUsed
Definition: FileBlock.h:49
edm::PoolOutputModule::fillDependencyGraph
void fillDependencyGraph()
Definition: PoolOutputModule.cc:415
edm::FileBlock::DisabledInConfigFile
Definition: FileBlock.h:48
edm::PoolOutputModule::statusFileName_
std::string statusFileName_
Definition: PoolOutputModule.h:215
edm::PoolOutputModule::logicalFileName
std::string const & logicalFileName() const
Definition: PoolOutputModule.h:47
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
edm::PoolOutputModule::rootServiceChecker_
RootServiceChecker rootServiceChecker_
Definition: PoolOutputModule.h:187
Exception
Definition: hltDiff.cc:245
edm::PoolOutputModule::startEndFile
void startEndFile()
Definition: PoolOutputModule.cc:316
edm::BranchDescription::invalidBasketSize
static const int invalidBasketSize
Definition: BranchDescription.h:35
ParameterSetDescription
dqmiodatasetharvest.processes
processes
Definition: dqmiodatasetharvest.py:190
edm::PoolOutputModule::DropNone
Definition: PoolOutputModule.h:41
edm::PoolOutputModule::writeProcessHistoryRegistry
void writeProcessHistoryRegistry()
Definition: PoolOutputModule.cc:324
edm::PoolOutputModule::catalog_
const std::string catalog_
Definition: PoolOutputModule.h:193
edm::PoolOutputModule::dropMetaData_
DropMetaData dropMetaData_
Definition: PoolOutputModule.h:204
edm::PoolOutputModule::compressionLevel_
const int compressionLevel_
Definition: PoolOutputModule.h:195
edm::PoolOutputModule::treeMaxVirtualSize_
const int treeMaxVirtualSize_
Definition: PoolOutputModule.h:202
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:319
child
Definition: simpleInheritance.h:11
edm::PoolOutputModule::finishEndFile
void finishEndFile()
Definition: PoolOutputModule.cc:332
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
edm::PoolOutputModule::basketOrder_
std::string basketOrder_
Definition: PoolOutputModule.h:201
benchmark_cfg.fb
fb
Definition: benchmark_cfg.py:14
edm::PoolOutputModule::writeParentageRegistry
void writeParentageRegistry()
Definition: PoolOutputModule.cc:327
edm::PoolOutputModule::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: PoolOutputModule.cc:430
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:340
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::PoolOutputModule::basketSize
int basketSize() const
Definition: PoolOutputModule.h:50
edm::PoolOutputModule::eventAuxBasketSize_
const int eventAuxBasketSize_
Definition: PoolOutputModule.h:198