CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
edm::FileBlock Class Reference

#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),
  EventsOrLumisSelectedByID = (EventsToBeSorted << 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 const *ev, TTree const *meta, TTree const *lumi, TTree const *lumiMeta, TTree const *run, TTree const *runMeta, int whyNotFastClonable, boost::array< bool, NumBranchTypes > const &hasNewlyDroppedBranch, std::string const &fileName, bool branchListIndexesUnchanged, boost::shared_ptr< BranchChildren > branchChildren)
 
FileFormatVersion const & fileFormatVersion () const
 
std::string const & fileName () const
 
boost::array< bool,
NumBranchTypes > const & 
hasNewlyDroppedBranch () const
 
TTree *const lumiMetaTree () const
 
TTree *const lumiTree () const
 
TTree *const metaTree () const
 
TTree *const runMetaTree () const
 
TTree *const runTree () const
 
void setNotFastClonable (WhyNotFastClonable const &why)
 
TTree *const tree () const
 
int whyNotFastClonable () const
 
 ~FileBlock ()
 

Private Attributes

boost::shared_ptr< BranchChildrenbranchChildren_
 
bool branchListIndexesUnchanged_
 
FileFormatVersion fileFormatVersion_
 
std::string fileName_
 
boost::array< bool,
NumBranchTypes
hasNewlyDroppedBranch_
 
TTree * lumiMetaTree_
 
TTree * lumiTree_
 
TTree * metaTree_
 
TTree * runMetaTree_
 
TTree * runTree_
 
TTree * tree_
 
int whyNotFastClonable_
 

Detailed Description

Definition at line 19 of file FileBlock.h.

Member Enumeration Documentation

Enumerator
CanFastClone 
NoRootInputSource 
ParallelProcesses 
NotProcessingEvents 
HasSecondaryFileSequence 
FileTooOld 
NoEventsInFile 
EventsToBeSorted 
EventsOrLumisSelectedByID 
InitialEventsSkipped 
MaxEventsTooSmall 
MaxLumisTooSmall 
RunNumberModified 
DuplicateEventsRemoved 
DisabledInConfigFile 
EventSelectionUsed 
OutputMaxEventsTooSmall 
SplitLevelMismatch 
BranchMismatch 

Definition at line 22 of file FileBlock.h.

23  {
24  CanFastClone = 0x0,
25 
26  // For entire job
27  NoRootInputSource = 0x1,
31 
32  // For a given input file
34  NoEventsInFile = (FileTooOld << 1),
42 
43  // The remainder of these are defined here for convenience,
44  // but never set in FileBlock, because they are output module specific.
45 
46  // For a given output module
49 
50  // For given input and output files
54  };

Constructor & Destructor Documentation

edm::FileBlock::FileBlock ( )
inline

Definition at line 56 of file FileBlock.h.

56  :
58  tree_(0), metaTree_(0),
59  lumiTree_(0), lumiMetaTree_(0),
60  runTree_(0), runMetaTree_(0),
63  fileName_(),
65  branchChildren_(new BranchChildren) {}
boost::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: FileBlock.h:120
std::string fileName_
Definition: FileBlock.h:121
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:111
TTree * lumiTree_
Definition: FileBlock.h:115
TTree * lumiMetaTree_
Definition: FileBlock.h:116
int whyNotFastClonable_
Definition: FileBlock.h:119
TTree * runMetaTree_
Definition: FileBlock.h:118
boost::shared_ptr< BranchChildren > branchChildren_
Definition: FileBlock.h:123
TTree * runTree_
Definition: FileBlock.h:117
bool branchListIndexesUnchanged_
Definition: FileBlock.h:122
TTree * tree_
Definition: FileBlock.h:113
TTree * metaTree_
Definition: FileBlock.h:114
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,
boost::array< bool, NumBranchTypes > const &  hasNewlyDroppedBranch,
std::string const &  fileName,
bool  branchListIndexesUnchanged,
boost::shared_ptr< BranchChildren branchChildren 
)
inline

Definition at line 67 of file FileBlock.h.

75  :
77  tree_(const_cast<TTree*>(ev)),
78  metaTree_(const_cast<TTree*>(meta)),
79  lumiTree_(const_cast<TTree*>(lumi)),
80  lumiMetaTree_(const_cast<TTree*>(lumiMeta)),
81  runTree_(const_cast<TTree*>(run)),
82  runMetaTree_(const_cast<TTree*>(runMeta)),
boost::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: FileBlock.h:120
tuple lumi
Definition: fjr2json.py:41
int whyNotFastClonable() const
Definition: FileBlock.h:99
std::string fileName_
Definition: FileBlock.h:121
BranchChildren const & branchChildren() const
Definition: FileBlock.h:107
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:111
TTree * lumiTree_
Definition: FileBlock.h:115
TTree * lumiMetaTree_
Definition: FileBlock.h:116
int whyNotFastClonable_
Definition: FileBlock.h:119
TTree * runMetaTree_
Definition: FileBlock.h:118
boost::shared_ptr< BranchChildren > branchChildren_
Definition: FileBlock.h:123
TTree * runTree_
Definition: FileBlock.h:117
boost::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
Definition: FileBlock.h:100
bool branchListIndexesUnchanged_
Definition: FileBlock.h:122
TTree * tree_
Definition: FileBlock.h:113
bool branchListIndexesUnchanged() const
Definition: FileBlock.h:102
TTree * metaTree_
Definition: FileBlock.h:114
std::string const & fileName() const
Definition: FileBlock.h:101
edm::FileBlock::~FileBlock ( )
inline

Definition at line 89 of file FileBlock.h.

89 {}

Member Function Documentation

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

Definition at line 107 of file FileBlock.h.

References branchChildren_.

107 { return *branchChildren_; }
boost::shared_ptr< BranchChildren > branchChildren_
Definition: FileBlock.h:123
bool edm::FileBlock::branchListIndexesUnchanged ( ) const
inline

Definition at line 102 of file FileBlock.h.

References branchListIndexesUnchanged_.

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

bool branchListIndexesUnchanged_
Definition: FileBlock.h:122
void edm::FileBlock::close ( void  )
inline
FileFormatVersion const& edm::FileBlock::fileFormatVersion ( ) const
inline

Definition at line 91 of file FileBlock.h.

References fileFormatVersion_.

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

91 {return fileFormatVersion_;}
FileFormatVersion fileFormatVersion_
Definition: FileBlock.h:111
std::string const& edm::FileBlock::fileName ( ) const
inline

Definition at line 101 of file FileBlock.h.

References fileName_.

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

101 {return fileName_;}
std::string fileName_
Definition: FileBlock.h:121
boost::array<bool, NumBranchTypes> const& edm::FileBlock::hasNewlyDroppedBranch ( ) const
inline

Definition at line 100 of file FileBlock.h.

References hasNewlyDroppedBranch_.

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

100 {return hasNewlyDroppedBranch_;}
boost::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
Definition: FileBlock.h:120
TTree* const edm::FileBlock::lumiMetaTree ( ) const
inline

Definition at line 95 of file FileBlock.h.

References lumiMetaTree_.

95 {return lumiMetaTree_;}
TTree * lumiMetaTree_
Definition: FileBlock.h:116
TTree* const edm::FileBlock::lumiTree ( ) const
inline

Definition at line 94 of file FileBlock.h.

References lumiTree_.

Referenced by edm::PoolOutputModule::respondToOpenInputFile().

94 {return lumiTree_;}
TTree * lumiTree_
Definition: FileBlock.h:115
TTree* const edm::FileBlock::metaTree ( ) const
inline

Definition at line 93 of file FileBlock.h.

References metaTree_.

93 {return metaTree_;}
TTree * metaTree_
Definition: FileBlock.h:114
TTree* const edm::FileBlock::runMetaTree ( ) const
inline

Definition at line 97 of file FileBlock.h.

References runMetaTree_.

97 {return runMetaTree_;}
TTree * runMetaTree_
Definition: FileBlock.h:118
TTree* const edm::FileBlock::runTree ( ) const
inline

Definition at line 96 of file FileBlock.h.

References runTree_.

Referenced by edm::PoolOutputModule::respondToOpenInputFile().

96 {return runTree_;}
TTree * runTree_
Definition: FileBlock.h:117
void edm::FileBlock::setNotFastClonable ( WhyNotFastClonable const &  why)
inline

Definition at line 104 of file FileBlock.h.

References whyNotFastClonable_.

104  {
105  whyNotFastClonable_ |= why;
106  }
int whyNotFastClonable_
Definition: FileBlock.h:119
TTree* const edm::FileBlock::tree ( ) const
inline
int edm::FileBlock::whyNotFastClonable ( ) const
inline

Definition at line 99 of file FileBlock.h.

References whyNotFastClonable_.

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

99 {return whyNotFastClonable_;}
int whyNotFastClonable_
Definition: FileBlock.h:119

Member Data Documentation

boost::shared_ptr<BranchChildren> edm::FileBlock::branchChildren_
private

Definition at line 123 of file FileBlock.h.

Referenced by branchChildren().

bool edm::FileBlock::branchListIndexesUnchanged_
private

Definition at line 122 of file FileBlock.h.

Referenced by branchListIndexesUnchanged().

FileFormatVersion edm::FileBlock::fileFormatVersion_
private

Definition at line 111 of file FileBlock.h.

Referenced by fileFormatVersion().

std::string edm::FileBlock::fileName_
private

Definition at line 121 of file FileBlock.h.

Referenced by fileName().

boost::array<bool, NumBranchTypes> edm::FileBlock::hasNewlyDroppedBranch_
private

Definition at line 120 of file FileBlock.h.

Referenced by hasNewlyDroppedBranch().

TTree* edm::FileBlock::lumiMetaTree_
private

Definition at line 116 of file FileBlock.h.

Referenced by close(), and lumiMetaTree().

TTree* edm::FileBlock::lumiTree_
private

Definition at line 115 of file FileBlock.h.

Referenced by close(), and lumiTree().

TTree* edm::FileBlock::metaTree_
private

Definition at line 114 of file FileBlock.h.

Referenced by close(), and metaTree().

TTree* edm::FileBlock::runMetaTree_
private

Definition at line 118 of file FileBlock.h.

Referenced by close(), and runMetaTree().

TTree* edm::FileBlock::runTree_
private

Definition at line 117 of file FileBlock.h.

Referenced by close(), and runTree().

TTree* edm::FileBlock::tree_
private

Definition at line 113 of file FileBlock.h.

Referenced by close(), and tree().

int edm::FileBlock::whyNotFastClonable_
private

Definition at line 119 of file FileBlock.h.

Referenced by setNotFastClonable(), and whyNotFastClonable().