#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 |
BranchIDLists const & | branchIDLists () const |
bool | branchListIndexesUnchanged () const |
void | close () |
FileBlock (FileFormatVersion const &version, TTree const *ev, TTree const *meta, TTree const *lumi, TTree const *lumiMeta, TTree const *run, TTree const *runMeta, int whyNotFastClonable, std::array< bool, NumBranchTypes > const &hasNewlyDroppedBranch, std::string const &fileName, bool branchListIndexesUnchanged, bool modifiedIDs, boost::shared_ptr< BranchChildren > branchChildren, boost::shared_ptr< BranchIDLists const > branchIDLists) | |
FileBlock () | |
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 * | runMetaTree () const |
TTree * | runTree () const |
void | setNotFastClonable (WhyNotFastClonable const &why) |
TTree * | tree () const |
int | whyNotFastClonable () const |
~FileBlock () | |
Private Attributes | |
boost::shared_ptr< BranchChildren > | branchChildren_ |
boost::shared_ptr < BranchIDLists const > | branchIDLists_ |
bool | branchListIndexesUnchanged_ |
FileFormatVersion | fileFormatVersion_ |
std::string | fileName_ |
std::array< bool, NumBranchTypes > | hasNewlyDroppedBranch_ |
TTree * | lumiMetaTree_ |
TTree * | lumiTree_ |
TTree * | metaTree_ |
bool | modifiedIDs_ |
TTree * | runMetaTree_ |
TTree * | runTree_ |
TTree * | tree_ |
int | whyNotFastClonable_ |
Definition at line 20 of file FileBlock.h.
Definition at line 23 of file FileBlock.h.
{ CanFastClone = 0x0, // For entire job NoRootInputSource = 0x1, ParallelProcesses = (NoRootInputSource << 1), NotProcessingEvents = (ParallelProcesses << 1), HasSecondaryFileSequence = (NotProcessingEvents << 1), // For a given input file 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), // The remainder of these are defined here for convenience, // but never set in FileBlock, because they are output module specific. // For a given output module DisabledInConfigFile = (DuplicateEventsRemoved << 1), EventSelectionUsed = (DisabledInConfigFile << 1), // For given input and output files OutputMaxEventsTooSmall = (EventSelectionUsed << 1), SplitLevelMismatch = (OutputMaxEventsTooSmall << 1), BranchMismatch = (SplitLevelMismatch << 1) };
edm::FileBlock::FileBlock | ( | ) | [inline] |
Definition at line 58 of file FileBlock.h.
: fileFormatVersion_(), tree_(0), metaTree_(0), lumiTree_(0), lumiMetaTree_(0), runTree_(0), runMetaTree_(0), whyNotFastClonable_(NoRootInputSource), hasNewlyDroppedBranch_(), fileName_(), branchListIndexesUnchanged_(false), modifiedIDs_(false), branchChildren_(new BranchChildren), branchIDLists_(new BranchIDLists) {}
edm::FileBlock::FileBlock | ( | FileFormatVersion const & | version, |
TTree const * | ev, | ||
TTree const * | meta, | ||
TTree const * | lumi, | ||
TTree const * | lumiMeta, | ||
TTree const * | run, | ||
TTree const * | runMeta, | ||
int | whyNotFastClonable, | ||
std::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch, | ||
std::string const & | fileName, | ||
bool | branchListIndexesUnchanged, | ||
bool | modifiedIDs, | ||
boost::shared_ptr< BranchChildren > | branchChildren, | ||
boost::shared_ptr< BranchIDLists const > | branchIDLists | ||
) | [inline] |
Definition at line 71 of file FileBlock.h.
: fileFormatVersion_(version), tree_(const_cast<TTree*>(ev)), metaTree_(const_cast<TTree*>(meta)), lumiTree_(const_cast<TTree*>(lumi)), lumiMetaTree_(const_cast<TTree*>(lumiMeta)), runTree_(const_cast<TTree*>(run)), runMetaTree_(const_cast<TTree*>(runMeta)), whyNotFastClonable_(whyNotFastClonable), hasNewlyDroppedBranch_(hasNewlyDroppedBranch), fileName_(fileName), branchListIndexesUnchanged_(branchListIndexesUnchanged), modifiedIDs_(modifiedIDs), branchChildren_(branchChildren), branchIDLists_(branchIDLists) {}
edm::FileBlock::~FileBlock | ( | ) | [inline] |
Definition at line 97 of file FileBlock.h.
{}
BranchChildren const& edm::FileBlock::branchChildren | ( | ) | const [inline] |
Definition at line 116 of file FileBlock.h.
References branchChildren_.
{ return *branchChildren_; }
BranchIDLists const& edm::FileBlock::branchIDLists | ( | ) | const [inline] |
Definition at line 117 of file FileBlock.h.
References branchIDLists_.
Referenced by edm::SubProcess::respondToOpenInputFile().
{ return *branchIDLists_; }
bool edm::FileBlock::branchListIndexesUnchanged | ( | ) | const [inline] |
Definition at line 110 of file FileBlock.h.
References branchListIndexesUnchanged_.
{return branchListIndexesUnchanged_;}
void edm::FileBlock::close | ( | void | ) | [inline] |
Definition at line 118 of file FileBlock.h.
References lumiMetaTree_, lumiTree_, metaTree_, runMetaTree_, runTree_, and tree_.
{runMetaTree_ = lumiMetaTree_ = metaTree_ = runTree_ = lumiTree_ = tree_ = 0;}
FileFormatVersion const& edm::FileBlock::fileFormatVersion | ( | ) | const [inline] |
Definition at line 99 of file FileBlock.h.
References fileFormatVersion_.
{return fileFormatVersion_;}
std::string const& edm::FileBlock::fileName | ( | ) | const [inline] |
Definition at line 109 of file FileBlock.h.
References fileName_.
Referenced by edm::RootOutputFile::beginInputFile().
{return fileName_;}
std::array<bool, NumBranchTypes> const& edm::FileBlock::hasNewlyDroppedBranch | ( | ) | const [inline] |
Definition at line 108 of file FileBlock.h.
References hasNewlyDroppedBranch_.
{return hasNewlyDroppedBranch_;}
TTree* edm::FileBlock::lumiMetaTree | ( | ) | const [inline] |
TTree* edm::FileBlock::lumiTree | ( | ) | const [inline] |
Definition at line 102 of file FileBlock.h.
References lumiTree_.
Referenced by edm::PoolOutputModule::respondToOpenInputFile().
{return lumiTree_;}
TTree* edm::FileBlock::metaTree | ( | ) | const [inline] |
bool edm::FileBlock::modifiedIDs | ( | ) | const [inline] |
TTree* edm::FileBlock::runMetaTree | ( | ) | const [inline] |
TTree* edm::FileBlock::runTree | ( | ) | const [inline] |
Definition at line 104 of file FileBlock.h.
References runTree_.
Referenced by edm::PoolOutputModule::respondToOpenInputFile().
{return runTree_;}
void edm::FileBlock::setNotFastClonable | ( | WhyNotFastClonable const & | why | ) | [inline] |
Definition at line 113 of file FileBlock.h.
References whyNotFastClonable_.
{ whyNotFastClonable_ |= why; }
TTree* edm::FileBlock::tree | ( | ) | const [inline] |
Definition at line 100 of file FileBlock.h.
References tree_.
Referenced by edm::RootOutputFile::beginInputFile(), and edm::PoolOutputModule::respondToOpenInputFile().
{return tree_;}
int edm::FileBlock::whyNotFastClonable | ( | ) | const [inline] |
Definition at line 107 of file FileBlock.h.
References whyNotFastClonable_.
Referenced by edm::RootOutputFile::beginInputFile().
{return whyNotFastClonable_;}
boost::shared_ptr<BranchChildren> edm::FileBlock::branchChildren_ [private] |
Definition at line 134 of file FileBlock.h.
Referenced by branchChildren().
boost::shared_ptr<BranchIDLists const> edm::FileBlock::branchIDLists_ [private] |
Definition at line 135 of file FileBlock.h.
Referenced by branchIDLists().
bool edm::FileBlock::branchListIndexesUnchanged_ [private] |
Definition at line 132 of file FileBlock.h.
Referenced by branchListIndexesUnchanged().
Definition at line 121 of file FileBlock.h.
Referenced by fileFormatVersion().
std::string edm::FileBlock::fileName_ [private] |
Definition at line 131 of file FileBlock.h.
Referenced by fileName().
std::array<bool, NumBranchTypes> edm::FileBlock::hasNewlyDroppedBranch_ [private] |
Definition at line 130 of file FileBlock.h.
Referenced by hasNewlyDroppedBranch().
TTree* edm::FileBlock::lumiMetaTree_ [private] |
Definition at line 126 of file FileBlock.h.
Referenced by close(), and lumiMetaTree().
TTree* edm::FileBlock::lumiTree_ [private] |
Definition at line 125 of file FileBlock.h.
Referenced by close(), and lumiTree().
TTree* edm::FileBlock::metaTree_ [private] |
Definition at line 124 of file FileBlock.h.
Referenced by close(), and metaTree().
bool edm::FileBlock::modifiedIDs_ [private] |
Definition at line 133 of file FileBlock.h.
Referenced by modifiedIDs().
TTree* edm::FileBlock::runMetaTree_ [private] |
Definition at line 128 of file FileBlock.h.
Referenced by close(), and runMetaTree().
TTree* edm::FileBlock::runTree_ [private] |
Definition at line 127 of file FileBlock.h.
TTree* edm::FileBlock::tree_ [private] |
Definition at line 123 of file FileBlock.h.
int edm::FileBlock::whyNotFastClonable_ [private] |
Definition at line 129 of file FileBlock.h.
Referenced by setNotFastClonable(), and whyNotFastClonable().