CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::core::OutputModuleCore edm::EDConsumerBase edm::TimeoutPoolOutputModule dqmservices::JsonWritingTimeoutPoolOutputModule

Classes

struct  AuxItem
 
struct  OutputItem
 
struct  SpecialSplitLevelForBranch
 

Public Types

using AuxItemArray = std::array< AuxItem, numberOfRunLumiEventProductTrees >
 
enum  DropMetaData { DropNone, DropDroppedPrior, DropPrior, DropAll }
 
using OutputItemList = std::vector< OutputItem >
 
- Public Types inherited from edm::one::OutputModuleBase
typedef OutputModuleBase ModuleType
 
- Public Types inherited from edm::core::OutputModuleCore
typedef OutputModuleCore 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
 
bool mergeJob () const
 
std::string const & moduleLabel () const
 
PoolOutputModuleoperator= (PoolOutputModule const &)=delete
 
bool overrideInputFileSplitLevels () const
 
 PoolOutputModule (ParameterSet const &ps)
 
 PoolOutputModule (PoolOutputModule const &)=delete
 
std::vector< OutputItemList >
const & 
selectedOutputItemList () const
 
std::vector< OutputItemList > & selectedOutputItemList ()
 
int splitLevel () const
 
int treeMaxVirtualSize () const
 
int whyNotFastClonable () const
 
 ~PoolOutputModule () override
 
- Public Member Functions inherited from edm::one::OutputModule< WatchInputFiles >
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const OutputModuleoperator= (const OutputModule &)=delete
 
 OutputModule (edm::ParameterSet const &iPSet)
 
 OutputModule (const OutputModule &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::OutputModuleBase
OutputModuleBaseoperator= (OutputModuleBase const &)=delete
 
 OutputModuleBase (ParameterSet const &pset)
 
 OutputModuleBase (OutputModuleBase const &)=delete
 
SharedResourcesAcquirersharedResourcesAcquirer ()
 
SubProcessParentageHelper const * subProcessParentageHelper () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
- Public Member Functions inherited from edm::core::OutputModuleCore
BranchIDLists const * branchIDLists () const
 
std::array< bool,
NumBranchTypes > const & 
hasNewlyDroppedBranch () const
 
SelectedProductsForBranchType
const & 
keptProducts () const
 
int maxEvents () const
 
const ModuleDescriptionmoduleDescription () const
 
OutputModuleCoreoperator= (OutputModuleCore const &)=delete
 
 OutputModuleCore (ParameterSet const &pset)
 
 OutputModuleCore (OutputModuleCore const &)=delete
 
OutputProcessBlockHelper const & outputProcessBlockHelper () const
 
std::string const & processName () const
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &, ProcessBlockHelperBase const &)
 
ThinnedAssociationsHelper const * thinnedAssociationsHelper () const
 
bool wantAllEvents () const
 
 ~OutputModuleCore () 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
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::core::OutputModuleCore
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)
 
void doBeginJob ()
 
bool doEvent (EventTransitionInfo const &, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
- Protected Member Functions inherited from edm::core::OutputModuleCore
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
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Types

using BranchParents = std::map< BranchID, std::set< ParentageID >>
 

Private Member Functions

void beginInputFile (FileBlock const &fb)
 
void beginJob () override
 
void fillDependencyGraph ()
 
void fillSelectedItemList (BranchType branchtype, std::string const &processName, TTree *theInputTree, OutputItemList &)
 
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 &) override
 
void writeParameterSetRegistry ()
 
void writeParentageRegistry ()
 
void writeProcessBlock (ProcessBlockForOutput const &) override
 
void writeProcessBlockHelper ()
 
void writeProcessHistoryRegistry ()
 
void writeProductDependencies ()
 
void writeProductDescriptionRegistry ()
 
void writeRun (RunForOutput const &) override
 
void writeStoredMergeableRunProductMetadata ()
 
void writeThinnedAssociationsHelper ()
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from edm::core::OutputModuleCore
std::atomic< int > remainingEvents_
 

Detailed Description

Definition at line 41 of file PoolOutputModule.h.

Member Typedef Documentation

Definition at line 80 of file PoolOutputModule.h.

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

Definition at line 162 of file PoolOutputModule.h.

Definition at line 116 of file PoolOutputModule.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Definition at line 36 of file PoolOutputModule.cc.

References edm::errors::Configuration, DropAll, DropDroppedPrior, dropMetaData(), dropMetaData_, DropNone, DropPrior, edm::FileBlock::EventSelectionUsed, Exception, edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::getUntrackedParameterSet(), edm::ParameterSet::getUntrackedParameterSetVector(), moduleLabel_, alignCSCRings::s, specialSplitLevelForBranches_, statusFileName_, AlCaHLTBitMon_QueryRunRegistry::string, edm::core::OutputModuleCore::wantAllEvents(), and whyNotFastClonable_.

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")),
65  mergeJob_(pset.getUntrackedParameter<bool>("mergeJob")),
67  statusFileName_() {
68  if (pset.getUntrackedParameter<bool>("writeStatusFile")) {
69  std::ostringstream statusfilename;
70  statusfilename << moduleLabel_ << '_' << getpid();
71  statusFileName_ = statusfilename.str();
72  }
73 
74  std::string dropMetaData(pset.getUntrackedParameter<std::string>("dropMetaData"));
75  if (dropMetaData.empty())
77  else if (dropMetaData == std::string("NONE"))
79  else if (dropMetaData == std::string("DROPPED"))
81  else if (dropMetaData == std::string("PRIOR"))
83  else if (dropMetaData == std::string("ALL"))
85  else {
86  throw edm::Exception(errors::Configuration, "Illegal dropMetaData parameter value: ")
87  << dropMetaData << ".\n"
88  << "Legal values are 'NONE', 'DROPPED', 'PRIOR', and 'ALL'.\n";
89  }
90 
91  if (!wantAllEvents()) {
93  }
94 
95  auto const& specialSplit{pset.getUntrackedParameterSetVector("overrideBranchesSplitLevel")};
96 
97  specialSplitLevelForBranches_.reserve(specialSplit.size());
98  for (auto const& s : specialSplit) {
99  specialSplitLevelForBranches_.emplace_back(s.getUntrackedParameter<std::string>("branch"),
100  s.getUntrackedParameter<int>("splitLevel"));
101  }
102 
103  // We don't use this next parameter, but we read it anyway because it is part
104  // of the configuration of this module. An external parser creates the
105  // configuration by reading this source code.
106  pset.getUntrackedParameterSet("dataset");
107  }
std::string const compressionAlgorithm_
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
std::string const catalog_
std::vector< SpecialSplitLevelForBranch > specialSplitLevelForBranches_
DropMetaData const & dropMetaData() const
BranchChildren branchChildren_
std::string const moduleLabel_
std::vector< OutputItemList > selectedOutputItemList_
BranchParents branchParents_
OutputModuleBase(ParameterSet const &pset)
unsigned int const maxFileSize_
std::string const fileName_
std::string const logicalFileName_
RootServiceChecker rootServiceChecker_
edm::PoolOutputModule::~PoolOutputModule ( )
override

Definition at line 291 of file PoolOutputModule.cc.

291 {}
edm::PoolOutputModule::PoolOutputModule ( PoolOutputModule const &  )
delete

Member Function Documentation

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

Definition at line 81 of file PoolOutputModule.h.

References auxItems_.

81 { return auxItems_; }
std::string const& edm::PoolOutputModule::basketOrder ( ) const
inline

Definition at line 56 of file PoolOutputModule.h.

References basketOrder_.

56 { return basketOrder_; }
int edm::PoolOutputModule::basketSize ( ) const
inline

Definition at line 52 of file PoolOutputModule.h.

References basketSize_.

52 { return basketSize_; }
void edm::PoolOutputModule::beginInputFile ( FileBlock const &  fb)
private

Definition at line 229 of file PoolOutputModule.cc.

References edm::FileBlock::branchChildren(), branchChildren_, edm::BranchChildren::childLookup(), edm::BranchChildren::insertChild(), isFileOpen(), edm::core::OutputModuleCore::remainingEvents(), and rootOutputFile_.

Referenced by openFile(), and respondToOpenInputFile().

229  {
230  if (isFileOpen()) {
231  //Faster to read ChildrenBranches directly from input
232  // file than to build it every event
233  auto const& branchToChildMap = fb.branchChildren().childLookup();
234  for (auto const& parentToChildren : branchToChildMap) {
235  for (auto const& child : parentToChildren.second) {
236  branchChildren_.insertChild(parentToChildren.first, child);
237  }
238  }
239  rootOutputFile_->beginInputFile(fb, remainingEvents());
240  }
241  }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
BranchChildren branchChildren_
void insertChild(BranchID parent, BranchID child)
bool isFileOpen() const override
void edm::PoolOutputModule::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::core::OutputModuleCore.

Definition at line 109 of file PoolOutputModule.cc.

References edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), submitPVResolutionJobs::desc, edm::InEvent, edm::BranchDescription::isAlias(), edm::BranchDescription::produced(), and producedBranches_.

109  {
111  for (auto const& prod : reg->productList()) {
112  BranchDescription const& desc = prod.second;
113  if (desc.produced() && desc.branchType() == InEvent && !desc.isAlias()) {
114  producedBranches_.emplace_back(desc.branchID());
115  }
116  }
117  }
std::vector< BranchID > producedBranches_
BranchChildren const& edm::PoolOutputModule::branchChildren ( ) const
inline

Definition at line 134 of file PoolOutputModule.h.

References branchChildren_.

134 { return branchChildren_; }
BranchChildren branchChildren_
std::string const& edm::PoolOutputModule::catalog ( ) const
inline

Definition at line 62 of file PoolOutputModule.h.

References catalog_.

62 { return catalog_; }
std::string const catalog_
bool edm::PoolOutputModule::compactEventAuxiliary ( ) const
inline

Definition at line 59 of file PoolOutputModule.h.

References compactEventAuxiliary_.

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

Definition at line 51 of file PoolOutputModule.h.

References compressionAlgorithm_.

51 { return compressionAlgorithm_; }
std::string const compressionAlgorithm_
int edm::PoolOutputModule::compressionLevel ( ) const
inline

Definition at line 50 of file PoolOutputModule.h.

References compressionLevel_.

50 { return compressionLevel_; }
std::string const & edm::PoolOutputModule::currentFileName ( ) const

Definition at line 119 of file PoolOutputModule.cc.

References rootOutputFile_.

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

119 { return rootOutputFile_->fileName(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::doExtrasAfterCloseFile ( )
protectedvirtual

Reimplemented in dqmservices::JsonWritingTimeoutPoolOutputModule.

Definition at line 356 of file PoolOutputModule.cc.

Referenced by reallyCloseFile().

356 {}
DropMetaData const& edm::PoolOutputModule::dropMetaData ( ) const
inline

Definition at line 61 of file PoolOutputModule.h.

References dropMetaData_.

Referenced by PoolOutputModule().

61 { return dropMetaData_; }
int edm::PoolOutputModule::eventAutoFlushSize ( ) const
inline

Definition at line 54 of file PoolOutputModule.h.

References eventAutoFlushSize_.

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

54 { return eventAutoFlushSize_; }
int edm::PoolOutputModule::eventAuxiliaryBasketSize ( ) const
inline

Definition at line 53 of file PoolOutputModule.h.

References eventAuxBasketSize_.

53 { return eventAuxBasketSize_; }
std::string const& edm::PoolOutputModule::fileName ( ) const
inline

Definition at line 48 of file PoolOutputModule.h.

References fileName_.

Referenced by physicalAndLogicalNameForNewFile().

48 { return fileName_; }
std::string const fileName_
void edm::PoolOutputModule::fillDependencyGraph ( )
private

Definition at line 435 of file PoolOutputModule.cc.

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

Referenced by reallyCloseFile().

435  {
436  for (auto const& branchParent : branchParents_) {
437  BranchID const& child = branchParent.first;
438  std::set<ParentageID> const& eIds = branchParent.second;
439  for (auto const& eId : eIds) {
440  Parentage entryDesc;
441  ParentageRegistry::instance()->getMapped(eId, entryDesc);
442  std::vector<BranchID> const& parents = entryDesc.parents();
443  for (auto const& parent : parents) {
445  }
446  }
447  }
448  }
TPRegexp parents
Definition: eve_filter.cc:21
BranchChildren branchChildren_
void insertChild(BranchID parent, BranchID child)
bool getMapped(key_type const &k, value_type &result) const
BranchParents branchParents_
static ParentageRegistry * instance()
void edm::PoolOutputModule::fillDescription ( ParameterSetDescription desc)
static

Definition at line 450 of file PoolOutputModule.cc.

References edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::addVPSetUntracked(), edm::ParameterSetDescription::setAllowAnything(), edm::ParameterSetDescription::setComment(), edm::ParameterDescriptionNode::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

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

Definition at line 527 of file PoolOutputModule.cc.

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

527  {
530  descriptions.add("edmOutput", desc);
531  }
static void fillDescription(ParameterSetDescription &desc)
void edm::PoolOutputModule::fillSelectedItemList ( BranchType  branchtype,
std::string const &  processName,
TTree *  theInputTree,
OutputItemList outputItemList 
)
private

Definition at line 172 of file PoolOutputModule.cc.

References auxItems_, b, edm::BranchDescription::basketSize(), edm::PoolOutputModule::OutputItem::basketSize(), edm::PoolOutputModule::AuxItem::basketSize_, edm::PoolOutputModule::OutputItem::basketSize_, edm::BranchDescription::branchName(), edm::BranchTypeToAuxiliaryBranchName(), eventAuxBasketSize_, edm::InEvent, edm::InProcess, edm::BranchDescription::invalidBasketSize, edm::BranchDescription::invalidSplitLevel, edm::core::OutputModuleCore::keptProducts(), overrideInputFileSplitLevels_, edm::BranchDescription::processName(), edm::BranchDescription::produced(), edm::sort_all(), specialSplitLevelForBranches_, edm::BranchDescription::splitLevel(), edm::PoolOutputModule::OutputItem::splitLevel(), and edm::PoolOutputModule::OutputItem::splitLevel_.

Referenced by respondToOpenInputFile().

175  {
176  SelectedProducts const& keptVector = keptProducts()[branchType];
177 
178  if (branchType != InProcess) {
179  AuxItem& auxItem = auxItems_[branchType];
180 
181  auto basketSize = (InEvent == branchType) ? eventAuxBasketSize_ : basketSize_;
182 
183  // Fill AuxItem
184  if (theInputTree != nullptr && !overrideInputFileSplitLevels_) {
185  TBranch* auxBranch = theInputTree->GetBranch(BranchTypeToAuxiliaryBranchName(branchType).c_str());
186  if (auxBranch) {
187  auxItem.basketSize_ = auxBranch->GetBasketSize();
188  } else {
189  auxItem.basketSize_ = basketSize;
190  }
191  } else {
192  auxItem.basketSize_ = basketSize;
193  }
194  }
195 
196  // Fill outputItemList with an entry for each branch.
197  for (auto const& kept : keptVector) {
200 
201  BranchDescription const& prod = *kept.first;
202  if (branchType == InProcess && processName != prod.processName()) {
203  continue;
204  }
205  TBranch* theBranch = ((!prod.produced() && theInputTree != nullptr && !overrideInputFileSplitLevels_)
206  ? theInputTree->GetBranch(prod.branchName().c_str())
207  : nullptr);
208 
209  if (theBranch != nullptr) {
210  splitLevel = theBranch->GetSplitLevel();
211  basketSize = theBranch->GetBasketSize();
212  } else {
213  splitLevel = (prod.splitLevel() == BranchDescription::invalidSplitLevel ? splitLevel_ : prod.splitLevel());
214  for (auto const& b : specialSplitLevelForBranches_) {
215  if (b.match(prod.branchName())) {
216  splitLevel = b.splitLevel_;
217  }
218  }
219  basketSize = (prod.basketSize() == BranchDescription::invalidBasketSize ? basketSize_ : prod.basketSize());
220  }
221  outputItemList.emplace_back(&prod, kept.second, splitLevel, basketSize);
222  }
223 
224  // Sort outputItemList to allow fast copying.
225  // The branches in outputItemList must be in the same order as in the input tree, with all new branches at the end.
226  sort_all(outputItemList, OutputItem::Sorter(theInputTree));
227  }
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:116
static int const invalidSplitLevel
std::vector< SpecialSplitLevelForBranch > specialSplitLevelForBranches_
static int const invalidBasketSize
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
void sort_all(RandomAccessSequence &s)
wrappers for std::sort
Definition: Algorithms.h:92
std::string const & processName() const
double b
Definition: hdecay.h:118
SelectedProductsForBranchType const & keptProducts() const
void edm::PoolOutputModule::finishEndFile ( )
private

Definition at line 352 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

352  {
353  rootOutputFile_->finishEndFile();
354  rootOutputFile_ = nullptr;
355  } // propagate_const<T> has no reset() function
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
int edm::PoolOutputModule::inputFileCount ( ) const
inline

Definition at line 65 of file PoolOutputModule.h.

References inputFileCount_.

65 { return inputFileCount_; }
bool edm::PoolOutputModule::isFileOpen ( ) const
overrideprivatevirtual

Reimplemented from edm::core::OutputModuleCore.

Definition at line 357 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by beginInputFile(), and openFile().

357 { return rootOutputFile_.get() != nullptr; }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
std::string const& edm::PoolOutputModule::logicalFileName ( ) const
inline

Definition at line 49 of file PoolOutputModule.h.

References logicalFileName_.

Referenced by physicalAndLogicalNameForNewFile().

49 { return logicalFileName_; }
std::string const logicalFileName_
unsigned int edm::PoolOutputModule::maxFileSize ( ) const
inline

Definition at line 64 of file PoolOutputModule.h.

References maxFileSize_.

64 { return maxFileSize_; }
unsigned int const maxFileSize_
bool edm::PoolOutputModule::mergeJob ( ) const
inline

Definition at line 60 of file PoolOutputModule.h.

References mergeJob_.

60 { return mergeJob_; }
std::string const& edm::PoolOutputModule::moduleLabel ( ) const
inline

Definition at line 63 of file PoolOutputModule.h.

References moduleLabel_.

63 { return moduleLabel_; }
std::string const moduleLabel_
void edm::PoolOutputModule::openFile ( FileBlock const &  fb)
overrideprivatevirtual

Reimplemented from edm::core::OutputModuleCore.

Definition at line 243 of file PoolOutputModule.cc.

References beginInputFile(), isFileOpen(), and reallyOpenFile().

243  {
244  if (!isFileOpen()) {
245  reallyOpenFile();
246  beginInputFile(fb);
247  }
248  }
bool isFileOpen() const override
void beginInputFile(FileBlock const &fb)
PoolOutputModule& edm::PoolOutputModule::operator= ( PoolOutputModule const &  )
delete
bool edm::PoolOutputModule::overrideInputFileSplitLevels ( ) const
inline

Definition at line 58 of file PoolOutputModule.h.

References overrideInputFileSplitLevels_.

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

Reimplemented in dqmservices::JsonWritingTimeoutPoolOutputModule.

Definition at line 360 of file PoolOutputModule.cc.

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

Referenced by reallyOpenFile().

360  {
361  if (inputFileCount_ == 0) {
362  throw edm::Exception(errors::LogicError) << "Attempt to open output file before input file. "
363  << "Please report this to the core framework developers.\n";
364  }
365  std::string suffix(".root");
367  bool ext = (offset == fileName().size() - suffix.size());
368  if (!ext)
369  suffix.clear();
370  std::string fileBase(ext ? fileName().substr(0, offset) : fileName());
371  std::ostringstream ofilename;
372  std::ostringstream lfilename;
373  ofilename << fileBase;
374  lfilename << logicalFileName();
375  if (outputFileCount_) {
376  ofilename << std::setw(3) << std::setfill('0') << outputFileCount_;
377  if (!logicalFileName().empty()) {
378  lfilename << std::setw(3) << std::setfill('0') << outputFileCount_;
379  }
380  }
381  ofilename << suffix;
383 
384  return std::make_pair(ofilename.str(), lfilename.str());
385  }
std::string const & fileName() const
uint16_t size_type
std::string const & logicalFileName() const
void edm::PoolOutputModule::preActionBeforeRunEventAsync ( WaitingTaskHolder  iTask,
ModuleCallingContext const &  iModuleCallingContext,
Principal const &  iPrincipal 
) const
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Definition at line 421 of file PoolOutputModule.cc.

References runTheMatrix::const, DropAll, and dropMetaData_.

423  {
424  if (DropAll != dropMetaData_) {
425  auto const* ep = dynamic_cast<EventPrincipal const*>(&iPrincipal);
426  if (ep) {
427  auto pr = ep->productProvenanceRetrieverPtr();
428  if (pr) {
429  pr->readProvenanceAsync(iTask, &iModuleCallingContext);
430  }
431  }
432  }
433  }
void edm::PoolOutputModule::reallyCloseFile ( )
overrideprivatevirtual

Reimplemented from edm::core::OutputModuleCore.

Definition at line 311 of file PoolOutputModule.cc.

References branchChildren_, branchParents_, edm::BranchChildren::clear(), doExtrasAfterCloseFile(), fillDependencyGraph(), finishEndFile(), startEndFile(), writeBranchIDListRegistry(), writeEventAuxiliary(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeParameterSetRegistry(), writeParentageRegistry(), writeProcessBlockHelper(), writeProcessHistoryRegistry(), writeProductDependencies(), writeProductDescriptionRegistry(), writeStoredMergeableRunProductMetadata(), and writeThinnedAssociationsHelper().

311  {
314  branchParents_.clear();
315  startEndFile();
326  writeProductDependencies(); //branchChildren used here
329  finishEndFile();
330 
332  }
BranchChildren branchChildren_
virtual void doExtrasAfterCloseFile()
void writeStoredMergeableRunProductMetadata()
BranchParents branchParents_
void edm::PoolOutputModule::reallyOpenFile ( )
private

Definition at line 387 of file PoolOutputModule.cc.

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

Referenced by openFile().

387  {
389  rootOutputFile_ = std::make_unique<RootOutputFile>(
390  this,
391  names.first,
392  names.second,
393  processesWithSelectedMergeableRunProducts_); // propagate_const<T> has no reset() function
394  }
virtual std::pair< std::string, std::string > physicalAndLogicalNameForNewFile()
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
std::vector< std::string > names
std::vector< std::string > processesWithSelectedMergeableRunProducts_
void edm::PoolOutputModule::respondToCloseInputFile ( FileBlock const &  fb)
overrideprivate

Definition at line 282 of file PoolOutputModule.cc.

References rootOutputFile_.

282  {
283  if (rootOutputFile_)
284  rootOutputFile_->respondToCloseInputFile(fb);
285  }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::respondToOpenInputFile ( FileBlock const &  fb)
overrideprivate

Definition at line 250 of file PoolOutputModule.cc.

References beginInputFile(), fillSelectedItemList(), mps_fire::i, edm::InEvent, initializedFromInput_, edm::InLumi, edm::InProcess, inputFileCount_, isotrackApplyRegressor::k, edm::FileBlock::lumiTree(), edm::numberOfRunLumiEventProductTrees, edm::NumBranchTypes, edm::core::OutputModuleCore::outputProcessBlockHelper(), edm::FileBlock::processBlockTree(), edm::OutputProcessBlockHelper::processesWithProcessBlockProducts(), edm::core::OutputModuleCore::processName(), edm::FileBlock::runTree(), selectedOutputItemList_, AlCaHLTBitMon_QueryRunRegistry::string, and edm::FileBlock::tree().

250  {
251  if (!initializedFromInput_) {
252  std::vector<std::string> const& processesWithProcessBlockProducts =
254  unsigned int numberOfProcessesWithProcessBlockProducts = processesWithProcessBlockProducts.size();
255  unsigned int numberOfTTrees = numberOfRunLumiEventProductTrees + numberOfProcessesWithProcessBlockProducts;
256  selectedOutputItemList_.resize(numberOfTTrees);
257 
258  for (unsigned int i = InEvent; i < NumBranchTypes; ++i) {
259  BranchType branchType = static_cast<BranchType>(i);
260  if (branchType != InProcess) {
262  TTree* theInputTree =
263  (branchType == InEvent ? fb.tree() : (branchType == InLumi ? fb.lumiTree() : fb.runTree()));
264  OutputItemList& outputItemList = selectedOutputItemList_[branchType];
265  fillSelectedItemList(branchType, processName, theInputTree, outputItemList);
266  } else {
267  // Handle output items in ProcessBlocks
268  for (unsigned int k = InProcess; k < numberOfTTrees; ++k) {
269  OutputItemList& outputItemList = selectedOutputItemList_[k];
270  std::string const& processName = processesWithProcessBlockProducts[k - InProcess];
271  TTree* theInputTree = fb.processBlockTree(processName);
272  fillSelectedItemList(branchType, processName, theInputTree, outputItemList);
273  }
274  }
275  }
276  initializedFromInput_ = true;
277  }
278  ++inputFileCount_;
279  beginInputFile(fb);
280  }
OutputProcessBlockHelper const & outputProcessBlockHelper() const
constexpr unsigned int numberOfRunLumiEventProductTrees
Definition: BranchType.h:15
BranchType
Definition: BranchType.h:11
std::vector< std::string > const & processesWithProcessBlockProducts() const
std::vector< OutputItemList > selectedOutputItemList_
std::string const & processName() const
void beginInputFile(FileBlock const &fb)
std::vector< OutputItem > OutputItemList
void fillSelectedItemList(BranchType branchtype, std::string const &processName, TTree *theInputTree, OutputItemList &)
std::vector<OutputItemList> const& edm::PoolOutputModule::selectedOutputItemList ( ) const
inline

Definition at line 130 of file PoolOutputModule.h.

References selectedOutputItemList_.

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

130 { return selectedOutputItemList_; }
std::vector< OutputItemList > selectedOutputItemList_
std::vector<OutputItemList>& edm::PoolOutputModule::selectedOutputItemList ( )
inline

Definition at line 132 of file PoolOutputModule.h.

References selectedOutputItemList_.

132 { return selectedOutputItemList_; }
std::vector< OutputItemList > selectedOutputItemList_
void edm::PoolOutputModule::setProcessesWithSelectedMergeableRunProducts ( std::set< std::string > const &  processes)
overrideprivatevirtual

Reimplemented from edm::core::OutputModuleCore.

Definition at line 287 of file PoolOutputModule.cc.

References processesWithSelectedMergeableRunProducts_.

287  {
289  }
list processes
Run mode ##.
std::vector< std::string > processesWithSelectedMergeableRunProducts_
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::core::OutputModuleCore.

Reimplemented in edm::TimeoutPoolOutputModule.

Definition at line 358 of file PoolOutputModule.cc.

References rootOutputFile_.

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

358 { return rootOutputFile_->shouldWeCloseFile(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
int edm::PoolOutputModule::splitLevel ( ) const
inline

Definition at line 55 of file PoolOutputModule.h.

References splitLevel_.

55 { return splitLevel_; }
void edm::PoolOutputModule::startEndFile ( )
private

Definition at line 335 of file PoolOutputModule.cc.

Referenced by reallyCloseFile().

335 {}
int edm::PoolOutputModule::treeMaxVirtualSize ( ) const
inline

Definition at line 57 of file PoolOutputModule.h.

References treeMaxVirtualSize_.

57 { return treeMaxVirtualSize_; }
void edm::PoolOutputModule::updateBranchParents ( EventForOutput const &  e)
private

Definition at line 408 of file PoolOutputModule.cc.

References producedBranches_, edm::EventForOutput::productProvenanceRetrieverPtr(), edm::one::OutputModuleBase::subProcessParentageHelper(), and updateBranchParentsForOneBranch().

Referenced by write().

408  {
409  ProductProvenanceRetriever const* provRetriever = e.productProvenanceRetrieverPtr();
410  for (auto const& bid : producedBranches_) {
411  updateBranchParentsForOneBranch(provRetriever, bid);
412  }
413  SubProcessParentageHelper const* helper = subProcessParentageHelper();
414  if (helper) {
415  for (auto const& bid : subProcessParentageHelper()->producedProducts()) {
416  updateBranchParentsForOneBranch(provRetriever, bid);
417  }
418  }
419  }
SubProcessParentageHelper const * subProcessParentageHelper() const
void updateBranchParentsForOneBranch(ProductProvenanceRetriever const *provRetriever, BranchID const &branchID)
std::vector< BranchID > producedBranches_
void edm::PoolOutputModule::updateBranchParentsForOneBranch ( ProductProvenanceRetriever const *  provRetriever,
BranchID const &  branchID 
)
private

Definition at line 396 of file PoolOutputModule.cc.

References edm::ProductProvenanceLookup::branchIDToProvenanceForProducedOnly(), branchParents_, and edm::ProductProvenance::parentageID().

Referenced by updateBranchParents().

397  {
398  ProductProvenance const* provenance = provRetriever->branchIDToProvenanceForProducedOnly(branchID);
399  if (provenance != nullptr) {
400  BranchParents::iterator it = branchParents_.find(branchID);
401  if (it == branchParents_.end()) {
402  it = branchParents_.insert(std::make_pair(branchID, std::set<ParentageID>())).first;
403  }
404  it->second.insert(provenance->parentageID());
405  }
406  }
BranchParents branchParents_
int edm::PoolOutputModule::whyNotFastClonable ( ) const
inline

Definition at line 66 of file PoolOutputModule.h.

References whyNotFastClonable_.

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

Implements edm::core::OutputModuleCore.

Reimplemented in edm::TimeoutPoolOutputModule.

Definition at line 293 of file PoolOutputModule.cc.

References edm::EventForOutput::id(), rootOutputFile_, statusFileName_, and updateBranchParents().

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

293  {
295  rootOutputFile_->writeOne(e);
296  if (!statusFileName_.empty()) {
297  std::ofstream statusFile(statusFileName_.c_str());
298  statusFile << e.id() << " time: " << std::setprecision(3) << TimeOfDay() << '\n';
299  statusFile.close();
300  }
301  }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void updateBranchParents(EventForOutput const &e)
void edm::PoolOutputModule::writeBranchIDListRegistry ( )
private

Definition at line 347 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

347 { rootOutputFile_->writeBranchIDListRegistry(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeEventAuxiliary ( )
private

Definition at line 350 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

350 { rootOutputFile_->writeEventAuxiliary(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeFileFormatVersion ( )
private

Definition at line 337 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

337 { rootOutputFile_->writeFileFormatVersion(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeFileIdentifier ( )
private

Definition at line 338 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

338 { rootOutputFile_->writeFileIdentifier(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeIndexIntoFile ( )
private

Definition at line 339 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

339 { rootOutputFile_->writeIndexIntoFile(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeLuminosityBlock ( LuminosityBlockForOutput const &  lb)
overrideprivatevirtual

Implements edm::core::OutputModuleCore.

Definition at line 303 of file PoolOutputModule.cc.

References rootOutputFile_.

303  {
304  rootOutputFile_->writeLuminosityBlock(lb);
305  }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeParameterSetRegistry ( )
private

Definition at line 344 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

344 { rootOutputFile_->writeParameterSetRegistry(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeParentageRegistry ( )
private

Definition at line 346 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

346 { rootOutputFile_->writeParentageRegistry(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeProcessBlock ( ProcessBlockForOutput const &  pb)
overrideprivatevirtual

Reimplemented from edm::core::OutputModuleCore.

Definition at line 309 of file PoolOutputModule.cc.

References rootOutputFile_.

309 { rootOutputFile_->writeProcessBlock(pb); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeProcessBlockHelper ( )
private

Definition at line 351 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

351 { rootOutputFile_->writeProcessBlockHelper(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeProcessHistoryRegistry ( )
private

Definition at line 343 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

343 { rootOutputFile_->writeProcessHistoryRegistry(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeProductDependencies ( )
private

Definition at line 349 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

349 { rootOutputFile_->writeProductDependencies(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeProductDescriptionRegistry ( )
private

Definition at line 345 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

345 { rootOutputFile_->writeProductDescriptionRegistry(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeRun ( RunForOutput const &  r)
overrideprivatevirtual

Implements edm::core::OutputModuleCore.

Definition at line 307 of file PoolOutputModule.cc.

References rootOutputFile_.

307 { rootOutputFile_->writeRun(r); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeStoredMergeableRunProductMetadata ( )
private

Definition at line 340 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

340  {
341  rootOutputFile_->writeStoredMergeableRunProductMetadata();
342  }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_
void edm::PoolOutputModule::writeThinnedAssociationsHelper ( )
private

Definition at line 348 of file PoolOutputModule.cc.

References rootOutputFile_.

Referenced by reallyCloseFile().

348 { rootOutputFile_->writeThinnedAssociationsHelper(); }
edm::propagate_const< std::unique_ptr< RootOutputFile > > rootOutputFile_

Member Data Documentation

AuxItemArray edm::PoolOutputModule::auxItems_
private

Definition at line 190 of file PoolOutputModule.h.

Referenced by auxItems(), and fillSelectedItemList().

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

Definition at line 203 of file PoolOutputModule.h.

Referenced by basketOrder().

int const edm::PoolOutputModule::basketSize_
private

Definition at line 199 of file PoolOutputModule.h.

Referenced by basketSize().

BranchChildren edm::PoolOutputModule::branchChildren_
private
BranchParents edm::PoolOutputModule::branchParents_
private
std::string const edm::PoolOutputModule::catalog_
private

Definition at line 195 of file PoolOutputModule.h.

Referenced by catalog().

bool edm::PoolOutputModule::compactEventAuxiliary_
private

Definition at line 215 of file PoolOutputModule.h.

Referenced by compactEventAuxiliary().

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

Definition at line 198 of file PoolOutputModule.h.

Referenced by compressionAlgorithm().

int const edm::PoolOutputModule::compressionLevel_
private

Definition at line 197 of file PoolOutputModule.h.

Referenced by compressionLevel().

DropMetaData edm::PoolOutputModule::dropMetaData_
private
int const edm::PoolOutputModule::eventAutoFlushSize_
private

Definition at line 201 of file PoolOutputModule.h.

Referenced by eventAutoFlushSize().

int const edm::PoolOutputModule::eventAuxBasketSize_
private

Definition at line 200 of file PoolOutputModule.h.

Referenced by eventAuxiliaryBasketSize(), and fillSelectedItemList().

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

Definition at line 193 of file PoolOutputModule.h.

Referenced by fileName().

bool edm::PoolOutputModule::initializedFromInput_
private

Definition at line 208 of file PoolOutputModule.h.

Referenced by respondToOpenInputFile().

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

Definition at line 194 of file PoolOutputModule.h.

Referenced by logicalFileName().

unsigned int const edm::PoolOutputModule::maxFileSize_
private

Definition at line 196 of file PoolOutputModule.h.

Referenced by maxFileSize().

bool edm::PoolOutputModule::mergeJob_
private

Definition at line 216 of file PoolOutputModule.h.

Referenced by mergeJob().

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

Definition at line 209 of file PoolOutputModule.h.

Referenced by physicalAndLogicalNameForNewFile().

bool edm::PoolOutputModule::overrideInputFileSplitLevels_
private

Definition at line 214 of file PoolOutputModule.h.

Referenced by fillSelectedItemList(), and overrideInputFileSplitLevels().

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

Definition at line 213 of file PoolOutputModule.h.

Referenced by beginJob(), and updateBranchParents().

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

Definition at line 189 of file PoolOutputModule.h.

std::vector<OutputItemList> edm::PoolOutputModule::selectedOutputItemList_
private

Definition at line 191 of file PoolOutputModule.h.

Referenced by respondToOpenInputFile(), and selectedOutputItemList().

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

Definition at line 192 of file PoolOutputModule.h.

Referenced by fillSelectedItemList(), and PoolOutputModule().

int const edm::PoolOutputModule::splitLevel_
private

Definition at line 202 of file PoolOutputModule.h.

Referenced by splitLevel().

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

Definition at line 218 of file PoolOutputModule.h.

Referenced by PoolOutputModule(), and write().

int const edm::PoolOutputModule::treeMaxVirtualSize_
private

Definition at line 204 of file PoolOutputModule.h.

Referenced by treeMaxVirtualSize().

int edm::PoolOutputModule::whyNotFastClonable_
private

Definition at line 205 of file PoolOutputModule.h.

Referenced by PoolOutputModule(), and whyNotFastClonable().