#include <PoolOutputModule.h>
Classes | |
struct | AuxItem |
struct | OutputItem |
Public Types | |
typedef std::array< AuxItem, NumBranchTypes > | AuxItemArray |
enum | DropMetaData { DropNone, DropDroppedPrior, DropPrior, DropAll } |
typedef std::vector< OutputItem > | OutputItemList |
typedef std::array < OutputItemList, NumBranchTypes > | OutputItemListArray |
Public Types inherited from edm::one::OutputModuleBase | |
typedef OutputModuleBase | ModuleType |
Public Member Functions | |
AuxItemArray const & | auxItems () const |
std::string const & | basketOrder () const |
int const & | basketSize () const |
std::string const & | catalog () const |
std::string const & | compressionAlgorithm () const |
int const & | compressionLevel () const |
std::string const & | currentFileName () const |
DropMetaData const & | dropMetaData () const |
int | eventAutoFlushSize () const |
std::string const & | fileName () const |
int const & | inputFileCount () const |
std::string const & | logicalFileName () const |
unsigned int const & | maxFileSize () const |
std::string const & | moduleLabel () const |
PoolOutputModule & | operator= (PoolOutputModule const &)=delete |
bool const & | overrideInputFileSplitLevels () const |
PoolOutputModule (ParameterSet const &ps) | |
PoolOutputModule (PoolOutputModule const &)=delete | |
OutputItemListArray const & | selectedOutputItemList () const |
int const & | splitLevel () const |
int const & | treeMaxVirtualSize () const |
int const & | whyNotFastClonable () const |
virtual | ~PoolOutputModule () |
Public Member Functions inherited from edm::one::OutputModule< WatchInputFiles > | |
OutputModule (edm::ParameterSet const &iPSet) | |
Public Member Functions inherited from edm::one::OutputModuleBase | |
BranchChildren const & | branchChildren () const |
BranchIDLists const * | branchIDLists () const |
std::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch () const |
SelectedProductsForBranchType const & | keptProducts () const |
int | maxEvents () const |
const ModuleDescription & | moduleDescription () const |
OutputModuleBase & | operator= (OutputModuleBase const &)=delete |
OutputModuleBase (ParameterSet const &pset) | |
OutputModuleBase (OutputModuleBase const &)=delete | |
std::string const & | processName () const |
int | remainingEvents () const |
bool | selected (BranchDescription const &desc) const |
void | selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &) |
ThinnedAssociationsHelper const * | thinnedAssociationsHelper () const |
bool | wantAllEvents () const |
virtual | ~OutputModuleBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions | |
virtual void | doExtrasAfterCloseFile () |
virtual std::pair< std::string, std::string > | physicalAndLogicalNameForNewFile () |
virtual bool | shouldWeCloseFile () const override |
allow inheriting classes to override but still be able to call this method in the overridden version More... | |
virtual void | write (EventPrincipal const &e, ModuleCallingContext const *) override |
Protected Member Functions inherited from edm::one::OutputModuleBase | |
void | configure (OutputModuleDescription const &desc) |
ModuleDescription const & | description () const |
void | doBeginJob () |
bool | doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *) |
bool | doBeginRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *) |
void | doEndJob () |
bool | doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *) |
bool | doEndRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *) |
bool | doEvent (EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *, ModuleCallingContext const *) |
void | doPreallocate (PreallocationConfiguration const &) |
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID () |
Trig | getTriggerResults (EventPrincipal const &ep, ModuleCallingContext const *) const |
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) |
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 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) |
Private Member Functions | |
void | beginInputFile (FileBlock const &fb) |
virtual void | beginJob () override |
void | fillSelectedItemList (BranchType branchtype, TTree *theInputTree) |
void | finishEndFile () |
virtual bool | isFileOpen () const override |
virtual void | openFile (FileBlock const &fb) override |
virtual void | postForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren) override |
virtual void | reallyCloseFile () override |
virtual void | reallyOpenFile () override |
virtual void | respondToCloseInputFile (FileBlock const &fb) override |
virtual void | respondToOpenInputFile (FileBlock const &fb) override |
void | startEndFile () |
void | writeBranchIDListRegistry () |
void | writeFileFormatVersion () |
void | writeFileIdentifier () |
void | writeIndexIntoFile () |
virtual void | writeLuminosityBlock (LuminosityBlockPrincipal const &lb, ModuleCallingContext const *) override |
void | writeParameterSetRegistry () |
void | writeParentageRegistry () |
void | writeProcessHistoryRegistry () |
void | writeProductDependencies () |
void | writeProductDescriptionRegistry () |
virtual void | writeRun (RunPrincipal const &r, ModuleCallingContext const *) override |
void | writeThinnedAssociationsHelper () |
Private Attributes | |
AuxItemArray | auxItems_ |
std::string | basketOrder_ |
int const | basketSize_ |
std::string const | catalog_ |
unsigned int | childIndex_ |
std::string const | compressionAlgorithm_ |
int const | compressionLevel_ |
DropMetaData | dropMetaData_ |
int const | eventAutoFlushSize_ |
std::string const | fileName_ |
bool | initializedFromInput_ |
int | inputFileCount_ |
std::string const | logicalFileName_ |
unsigned int const | maxFileSize_ |
std::string const | moduleLabel_ |
unsigned int | numberOfDigitsInIndex_ |
int | outputFileCount_ |
bool | overrideInputFileSplitLevels_ |
std::unique_ptr< RootOutputFile > | rootOutputFile_ |
RootServiceChecker | rootServiceChecker_ |
OutputItemListArray | selectedOutputItemList_ |
int const | splitLevel_ |
std::string | statusFileName_ |
int const | treeMaxVirtualSize_ |
int | whyNotFastClonable_ |
Definition at line 29 of file PoolOutputModule.h.
typedef std::array<AuxItem, NumBranchTypes> edm::PoolOutputModule::AuxItemArray |
Definition at line 65 of file PoolOutputModule.h.
typedef std::vector<OutputItem> edm::PoolOutputModule::OutputItemList |
Definition at line 96 of file PoolOutputModule.h.
typedef std::array<OutputItemList, NumBranchTypes> edm::PoolOutputModule::OutputItemListArray |
Definition at line 98 of file PoolOutputModule.h.
Enumerator | |
---|---|
DropNone | |
DropDroppedPrior | |
DropPrior | |
DropAll |
Definition at line 31 of file PoolOutputModule.h.
|
explicit |
Definition at line 30 of file PoolOutputModule.cc.
References edm::errors::Configuration, DropAll, DropDroppedPrior, dropMetaData(), dropMetaData_, DropNone, DropPrior, edm::FileBlock::EventSelectionUsed, edm::hlt::Exception, edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::getUntrackedParameterSet(), moduleLabel_, statusFileName_, AlCaHLTBitMon_QueryRunRegistry::string, edm::one::OutputModuleBase::wantAllEvents(), and whyNotFastClonable_.
|
virtual |
Definition at line 237 of file PoolOutputModule.cc.
|
delete |
|
inline |
Definition at line 66 of file PoolOutputModule.h.
References auxItems_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 43 of file PoolOutputModule.h.
References basketOrder_.
Referenced by edm::RootOutputFile::beginInputFile().
|
inline |
Definition at line 40 of file PoolOutputModule.h.
References basketSize_.
Referenced by fillSelectedItemList(), edm::RootOutputFile::writeBranchIDListRegistry(), edm::RootOutputFile::writeFileFormatVersion(), edm::RootOutputFile::writeFileIdentifier(), edm::RootOutputFile::writeIndexIntoFile(), edm::RootOutputFile::writeParameterSetRegistry(), edm::RootOutputFile::writeParentageRegistry(), edm::RootOutputFile::writeProcessHistoryRegistry(), edm::RootOutputFile::writeProductDependencies(), edm::RootOutputFile::writeProductDescriptionRegistry(), and edm::RootOutputFile::writeThinnedAssociationsHelper().
|
private |
Definition at line 194 of file PoolOutputModule.cc.
References isFileOpen(), edm::one::OutputModuleBase::remainingEvents(), and rootOutputFile_.
Referenced by openFile(), and respondToOpenInputFile().
|
overrideprivatevirtual |
Reimplemented from edm::one::OutputModuleBase.
Definition at line 91 of file PoolOutputModule.cc.
References revisionDML::branchType(), edm::checkClassDictionaries(), i, edm::InEvent, edm::one::OutputModuleBase::keptProducts(), edm::NumBranchTypes, and parseEventContent::prod.
|
inline |
Definition at line 47 of file PoolOutputModule.h.
References catalog_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 39 of file PoolOutputModule.h.
References compressionAlgorithm_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 38 of file PoolOutputModule.h.
References compressionLevel_.
std::string const & edm::PoolOutputModule::currentFileName | ( | ) | const |
Definition at line 101 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by edm::TimeoutPoolOutputModule::shouldWeCloseFile().
|
protectedvirtual |
Reimplemented in dqmservices::JsonWritingTimeoutPoolOutputModule.
Definition at line 289 of file PoolOutputModule.cc.
Referenced by reallyCloseFile().
|
inline |
Definition at line 46 of file PoolOutputModule.h.
References dropMetaData_.
Referenced by edm::RootOutputFile::fillBranches(), edm::RootOutputFile::insertAncestors(), and PoolOutputModule().
|
inline |
Definition at line 41 of file PoolOutputModule.h.
References eventAutoFlushSize_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 36 of file PoolOutputModule.h.
References fileName_.
Referenced by physicalAndLogicalNameForNewFile().
|
static |
Definition at line 333 of file PoolOutputModule.cc.
References edm::ParameterSetDescription::addUntracked(), edm::OutputModule::fillDescription(), edm::ParameterSetDescription::setAllowAnything(), edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by fillDescriptions().
|
static |
Definition at line 385 of file PoolOutputModule.cc.
References edm::ConfigurationDescriptions::add(), and fillDescription().
|
private |
Definition at line 153 of file PoolOutputModule.cc.
References auxItems_, basketSize(), edm::BranchDescription::basketSize(), edm::PoolOutputModule::AuxItem::basketSize_, edm::PoolOutputModule::OutputItem::basketSize_, edm::BranchDescription::branchName(), revisionDML::branchType(), edm::BranchTypeToAuxiliaryBranchName(), edm::BranchDescription::invalidBasketSize, edm::BranchDescription::invalidSplitLevel, edm::one::OutputModuleBase::keptProducts(), overrideInputFileSplitLevels_, parseEventContent::prod, edm::BranchDescription::produced(), selectedOutputItemList_, edm::sort_all(), splitLevel(), edm::BranchDescription::splitLevel(), and edm::PoolOutputModule::OutputItem::splitLevel_.
Referenced by respondToOpenInputFile().
|
private |
Definition at line 288 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
inline |
Definition at line 50 of file PoolOutputModule.h.
References inputFileCount_.
Referenced by edm::RootOutputFile::beginInputFile().
|
overrideprivatevirtual |
Reimplemented from edm::one::OutputModuleBase.
Definition at line 290 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by beginInputFile(), and openFile().
|
inline |
Definition at line 37 of file PoolOutputModule.h.
References logicalFileName_.
Referenced by physicalAndLogicalNameForNewFile().
|
inline |
Definition at line 49 of file PoolOutputModule.h.
References maxFileSize_.
Referenced by edm::RootOutputFile::shouldWeCloseFile().
|
inline |
Definition at line 48 of file PoolOutputModule.h.
References moduleLabel_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
overrideprivatevirtual |
Reimplemented from edm::one::OutputModuleBase.
Definition at line 200 of file PoolOutputModule.cc.
References beginInputFile(), isFileOpen(), and reallyOpenFile().
|
delete |
|
inline |
Definition at line 45 of file PoolOutputModule.h.
References overrideInputFileSplitLevels_.
Referenced by edm::RootOutputFile::beginInputFile().
|
protectedvirtual |
Reimplemented in dqmservices::JsonWritingTimeoutPoolOutputModule.
Definition at line 294 of file PoolOutputModule.cc.
References childIndex_, relativeConstraints::empty, edm::hlt::Exception, fileName(), inputFileCount_, logicalFileName(), edm::errors::LogicError, numberOfDigitsInIndex_, hltrates_dqm_sourceclient-live_cfg::offset, outputFileCount_, AlCaHLTBitMon_QueryRunRegistry::string, and createPayload::suffix.
Referenced by reallyOpenFile().
|
overrideprivatevirtual |
Reimplemented from edm::one::OutputModuleBase.
Definition at line 226 of file PoolOutputModule.cc.
References childIndex_, and numberOfDigitsInIndex_.
|
overrideprivatevirtual |
Reimplemented from edm::one::OutputModuleBase.
Definition at line 257 of file PoolOutputModule.cc.
References doExtrasAfterCloseFile(), finishEndFile(), startEndFile(), writeBranchIDListRegistry(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeParameterSetRegistry(), writeParentageRegistry(), writeProcessHistoryRegistry(), writeProductDependencies(), writeProductDescriptionRegistry(), and writeThinnedAssociationsHelper().
|
overrideprivatevirtual |
Reimplemented from edm::one::OutputModuleBase.
Definition at line 327 of file PoolOutputModule.cc.
References cscdqm::h::names, physicalAndLogicalNameForNewFile(), and rootOutputFile_.
Referenced by openFile().
|
overrideprivatevirtual |
Definition at line 222 of file PoolOutputModule.cc.
References rootOutputFile_.
|
overrideprivatevirtual |
Definition at line 207 of file PoolOutputModule.cc.
References beginInputFile(), revisionDML::branchType(), fillSelectedItemList(), i, edm::InEvent, initializedFromInput_, edm::InLumi, inputFileCount_, edm::FileBlock::lumiTree(), edm::NumBranchTypes, edm::FileBlock::runTree(), and edm::FileBlock::tree().
|
inline |
Definition at line 100 of file PoolOutputModule.h.
References selectedOutputItemList_.
Referenced by edm::RootOutputFile::fillBranches(), and edm::RootOutputFile::RootOutputFile().
|
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 291 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by edm::TimeoutPoolOutputModule::shouldWeCloseFile().
|
inline |
Definition at line 42 of file PoolOutputModule.h.
References splitLevel_.
Referenced by fillSelectedItemList().
|
private |
|
inline |
Definition at line 44 of file PoolOutputModule.h.
References treeMaxVirtualSize_.
|
inline |
Definition at line 51 of file PoolOutputModule.h.
References whyNotFastClonable_.
Referenced by edm::RootOutputFile::beginInputFile().
|
overrideprotectedvirtual |
Implements edm::one::OutputModuleBase.
Reimplemented in edm::TimeoutPoolOutputModule.
Definition at line 240 of file PoolOutputModule.cc.
References edm::EventPrincipal::id(), rootOutputFile_, and statusFileName_.
Referenced by edm::TimeoutPoolOutputModule::write().
|
private |
Definition at line 285 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 278 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 279 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 280 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
overrideprivatevirtual |
Implements edm::one::OutputModuleBase.
Definition at line 249 of file PoolOutputModule.cc.
References rootOutputFile_.
|
private |
Definition at line 282 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 284 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 281 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 287 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 283 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
overrideprivatevirtual |
Implements edm::one::OutputModuleBase.
Definition at line 253 of file PoolOutputModule.cc.
References rootOutputFile_.
|
private |
Definition at line 286 of file PoolOutputModule.cc.
References rootOutputFile_.
Referenced by reallyCloseFile().
|
private |
Definition at line 138 of file PoolOutputModule.h.
Referenced by auxItems(), and fillSelectedItemList().
|
private |
Definition at line 149 of file PoolOutputModule.h.
Referenced by basketOrder().
|
private |
Definition at line 146 of file PoolOutputModule.h.
Referenced by basketSize().
|
private |
Definition at line 142 of file PoolOutputModule.h.
Referenced by catalog().
|
private |
Definition at line 157 of file PoolOutputModule.h.
Referenced by physicalAndLogicalNameForNewFile(), and postForkReacquireResources().
|
private |
Definition at line 145 of file PoolOutputModule.h.
Referenced by compressionAlgorithm().
|
private |
Definition at line 144 of file PoolOutputModule.h.
Referenced by compressionLevel().
|
private |
Definition at line 152 of file PoolOutputModule.h.
Referenced by dropMetaData(), and PoolOutputModule().
|
private |
Definition at line 147 of file PoolOutputModule.h.
Referenced by eventAutoFlushSize().
|
private |
Definition at line 140 of file PoolOutputModule.h.
Referenced by fileName().
|
private |
Definition at line 154 of file PoolOutputModule.h.
Referenced by respondToOpenInputFile().
|
private |
Definition at line 156 of file PoolOutputModule.h.
Referenced by inputFileCount(), physicalAndLogicalNameForNewFile(), and respondToOpenInputFile().
|
private |
Definition at line 141 of file PoolOutputModule.h.
Referenced by logicalFileName().
|
private |
Definition at line 143 of file PoolOutputModule.h.
Referenced by maxFileSize().
|
private |
Definition at line 153 of file PoolOutputModule.h.
Referenced by Mixins._TypedParameterizable::insertInto(), moduleLabel(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), and PoolOutputModule().
|
private |
Definition at line 158 of file PoolOutputModule.h.
Referenced by physicalAndLogicalNameForNewFile(), and postForkReacquireResources().
|
private |
Definition at line 155 of file PoolOutputModule.h.
Referenced by physicalAndLogicalNameForNewFile().
|
private |
Definition at line 159 of file PoolOutputModule.h.
Referenced by fillSelectedItemList(), and overrideInputFileSplitLevels().
|
private |
Definition at line 160 of file PoolOutputModule.h.
Referenced by beginInputFile(), currentFileName(), finishEndFile(), isFileOpen(), reallyOpenFile(), respondToCloseInputFile(), shouldWeCloseFile(), write(), writeBranchIDListRegistry(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeLuminosityBlock(), writeParameterSetRegistry(), writeParentageRegistry(), writeProcessHistoryRegistry(), writeProductDependencies(), writeProductDescriptionRegistry(), writeRun(), and writeThinnedAssociationsHelper().
|
private |
Definition at line 137 of file PoolOutputModule.h.
|
private |
Definition at line 139 of file PoolOutputModule.h.
Referenced by fillSelectedItemList(), and selectedOutputItemList().
|
private |
Definition at line 148 of file PoolOutputModule.h.
Referenced by splitLevel().
|
private |
Definition at line 161 of file PoolOutputModule.h.
Referenced by PoolOutputModule(), and write().
|
private |
Definition at line 150 of file PoolOutputModule.h.
Referenced by treeMaxVirtualSize().
|
private |
Definition at line 151 of file PoolOutputModule.h.
Referenced by PoolOutputModule(), and whyNotFastClonable().