#include <FileBlock.h>
Public Types | |
enum | WhyNotFastClonable { CanFastClone = 0x0, NoRootInputSource = 0x1, ParallelProcesses = (NoRootInputSource << 1), NotProcessingEvents = (ParallelProcesses << 1), HasSecondaryFileSequence = (NotProcessingEvents << 1), FileTooOld = (HasSecondaryFileSequence << 1), NoEventsInFile = (FileTooOld << 1), EventsToBeSorted = (NoEventsInFile << 1), RunOrLumiNotContiguous = (EventsToBeSorted << 1), EventsOrLumisSelectedByID = (RunOrLumiNotContiguous << 1), InitialEventsSkipped = (EventsOrLumisSelectedByID << 1), MaxEventsTooSmall = (InitialEventsSkipped << 1), MaxLumisTooSmall = (MaxEventsTooSmall << 1), RunNumberModified = (MaxLumisTooSmall << 1), DuplicateEventsRemoved = (RunNumberModified << 1), DisabledInConfigFile = (DuplicateEventsRemoved << 1), EventSelectionUsed = (DisabledInConfigFile << 1), OutputMaxEventsTooSmall = (EventSelectionUsed << 1), SplitLevelMismatch = (OutputMaxEventsTooSmall << 1), BranchMismatch = (SplitLevelMismatch << 1) } |
Public Member Functions | |
BranchChildren const & | branchChildren () const |
bool | branchListIndexesUnchanged () const |
void | close () |
FileBlock () | |
FileBlock (FileFormatVersion const &version, TTree *ev, TTree *meta, TTree *lumi, TTree *lumiMeta, TTree *run, TTree *runMeta, std::vector< TTree *> processBlockTrees, std::vector< std::string > processesWithProcessBlockTrees, int whyNotFastClonable, std::array< bool, NumBranchTypes > const &hasNewlyDroppedBranch, std::string const &fileName, bool branchListIndexesUnchanged, bool modifiedIDs, std::shared_ptr< BranchChildren const > branchChildren) | |
FileFormatVersion const & | fileFormatVersion () const |
std::string const & | fileName () const |
std::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch () const |
TTree * | lumiMetaTree () const |
TTree * | lumiTree () const |
TTree * | metaTree () const |
bool | modifiedIDs () const |
TTree * | processBlockTree (std::string const &processName) const |
std::vector< TTree * > const & | processBlockTrees () const |
std::vector< std::string > const & | processesWithProcessBlockTrees () const |
TTree * | runMetaTree () const |
TTree * | runTree () const |
void | setNotFastClonable (WhyNotFastClonable const &why) |
TTree * | tree () const |
void | updateTTreePointers (TTree *ev, TTree *meta, TTree *lumi, TTree *lumiMeta, TTree *run, TTree *runMeta, std::vector< TTree *> processBlockTrees, std::vector< std::string > processesWithProcessBlockTrees) |
int | whyNotFastClonable () const |
~FileBlock () | |
Private Attributes | |
std::shared_ptr< BranchChildren const > | branchChildren_ |
bool | branchListIndexesUnchanged_ |
FileFormatVersion | fileFormatVersion_ |
std::string | fileName_ |
std::array< bool, NumBranchTypes > | hasNewlyDroppedBranch_ |
TTree * | lumiMetaTree_ |
TTree * | lumiTree_ |
TTree * | metaTree_ |
bool | modifiedIDs_ |
std::vector< TTree * > | processBlockTrees_ |
std::vector< std::string > | processesWithProcessBlockTrees_ |
TTree * | runMetaTree_ |
TTree * | runTree_ |
TTree * | tree_ |
int | whyNotFastClonable_ |
Definition at line 22 of file FileBlock.h.
Definition at line 25 of file FileBlock.h.
|
inline |
Definition at line 59 of file FileBlock.h.
|
inline |
Definition at line 74 of file FileBlock.h.
|
inline |
Definition at line 105 of file FileBlock.h.
|
inline |
Definition at line 135 of file FileBlock.h.
References branchChildren_.
Referenced by edm::PoolOutputModule::beginInputFile().
|
inline |
Definition at line 131 of file FileBlock.h.
References branchListIndexesUnchanged_.
void edm::FileBlock::close | ( | void | ) |
Definition at line 33 of file FileBlock.cc.
References ntuplemaker::fill, lumiMetaTree_, lumiTree_, metaTree_, processBlockTrees_, runMetaTree_, runTree_, and tree_.
Referenced by edm::InputSource::closeFile(), esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().
|
inline |
|
inline |
Definition at line 130 of file FileBlock.h.
References fileName_.
Referenced by edm::RootOutputFile::beginInputFile().
|
inline |
Definition at line 129 of file FileBlock.h.
References hasNewlyDroppedBranch_.
|
inline |
|
inline |
Definition at line 119 of file FileBlock.h.
References lumiTree_.
Referenced by edm::PoolOutputModule::respondToOpenInputFile().
|
inline |
|
inline |
TTree * edm::FileBlock::processBlockTree | ( | std::string const & | processName | ) | const |
Definition at line 24 of file FileBlock.cc.
References HLT_2022v12_cff::distance, spr::find(), processBlockTrees_, processesWithProcessBlockTrees_, and SimL1EmulatorRepack_CalouGT_cff::processName.
Referenced by edm::PoolOutputModule::respondToOpenInputFile().
|
inline |
Definition at line 125 of file FileBlock.h.
References processBlockTrees_.
Referenced by updateTTreePointers().
|
inline |
Definition at line 126 of file FileBlock.h.
References processesWithProcessBlockTrees_.
Referenced by updateTTreePointers().
|
inline |
|
inline |
Definition at line 121 of file FileBlock.h.
References runTree_.
Referenced by edm::PoolOutputModule::respondToOpenInputFile().
|
inline |
|
inline |
Definition at line 117 of file FileBlock.h.
References tree_.
Referenced by edm::RootOutputFile::beginInputFile(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), edm::PoolOutputModule::respondToOpenInputFile(), and python.cmstools.EventTree::SetAlias().
void edm::FileBlock::updateTTreePointers | ( | TTree * | ev, |
TTree * | meta, | ||
TTree * | lumi, | ||
TTree * | lumiMeta, | ||
TTree * | run, | ||
TTree * | runMeta, | ||
std::vector< TTree *> | processBlockTrees, | ||
std::vector< std::string > | processesWithProcessBlockTrees | ||
) |
Definition at line 6 of file FileBlock.cc.
References makeMEIFBenchmarkPlots::ev, BXlumiParameters_cfi::lumi, lumiMetaTree_, lumiTree_, metaTree_, eostools::move(), processBlockTrees(), processBlockTrees_, processesWithProcessBlockTrees(), processesWithProcessBlockTrees_, writedatasetfile::run, runMetaTree_, runTree_, and tree_.
Referenced by edm::RootFile::updateFileBlock().
|
inline |
Definition at line 128 of file FileBlock.h.
References whyNotFastClonable_.
Referenced by edm::RootOutputFile::beginInputFile().
|
private |
Definition at line 154 of file FileBlock.h.
Referenced by branchChildren().
|
private |
Definition at line 152 of file FileBlock.h.
Referenced by branchListIndexesUnchanged().
|
private |
Definition at line 139 of file FileBlock.h.
Referenced by fileFormatVersion().
|
private |
Definition at line 151 of file FileBlock.h.
Referenced by fileName().
|
private |
Definition at line 150 of file FileBlock.h.
Referenced by hasNewlyDroppedBranch().
|
private |
Definition at line 144 of file FileBlock.h.
Referenced by close(), lumiMetaTree(), and updateTTreePointers().
|
private |
Definition at line 143 of file FileBlock.h.
Referenced by close(), lumiTree(), and updateTTreePointers().
|
private |
Definition at line 142 of file FileBlock.h.
Referenced by close(), metaTree(), and updateTTreePointers().
|
private |
Definition at line 153 of file FileBlock.h.
Referenced by modifiedIDs().
|
private |
Definition at line 147 of file FileBlock.h.
Referenced by close(), processBlockTree(), processBlockTrees(), and updateTTreePointers().
|
private |
Definition at line 148 of file FileBlock.h.
Referenced by processBlockTree(), processesWithProcessBlockTrees(), and updateTTreePointers().
|
private |
Definition at line 146 of file FileBlock.h.
Referenced by close(), runMetaTree(), and updateTTreePointers().
|
private |
Definition at line 145 of file FileBlock.h.
Referenced by close(), runTree(), and updateTTreePointers().
|
private |
Definition at line 141 of file FileBlock.h.
Referenced by close(), tree(), and updateTTreePointers().
|
private |
Definition at line 149 of file FileBlock.h.
Referenced by setNotFastClonable(), and whyNotFastClonable().