Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

io::EventHandle Class Reference

Match up the event data model to file input and output. More...

#include <EventHandle.h>

Inheritance diagram for io::EventHandle:

edm::EventHandle io::EmptyEventHandle List of all members.

Public Member Functions

 EventHandle ()
virtual ~EventHandle ()
int Index () const
virtual int SetupInputFile (TFile *f)
virtual int Advance (int n=1)
virtual int Rewind (int n=1)
virtual int Load (int branchID) const
int SetupOutputFile (TFile *f)
void Close ()
void Report ()
int Write ()

Protected Attributes

int fIndex
 Location in current input file.
TFile * fInputFile
 Pointer to input source. Not owned.
TFile * fOutputFile
 Pointer to output file. Not owned.
TTree * fEventTree
 The input event tree.
TBranch * fBranch [kNBranch]
 Branches where events are stored.
TTree * fOutEventTree
 The ouput event tree.

Static Protected Attributes

const int fBucketSize = 16000
const int fSplitLevel = 99

Detailed Description

Match up the event data model to file input and output.

Definition at line 18 of file IoModules/EventHandle.h.


Constructor & Destructor Documentation

io::EventHandle::EventHandle  ) 
 

Construct an empty event handle

Reimplemented from edm::EventHandle.

virtual io::EventHandle::~EventHandle  )  [virtual]
 

Clear all data arrays and delete the event

Reimplemented from edm::EventHandle.


Member Function Documentation

virtual int io::EventHandle::Advance int  n = 1  )  [virtual]
 

Reimplemented in io::EmptyEventHandle.

Referenced by io::ReadWriteModule::Advance().

void io::EventHandle::Close  ) 
 

Referenced by io::ReadWriteModule::Close(), io::ReadWriteModule::SetOutputFileName(), and io::ReadWriteModule::SetupInputFile().

int io::EventHandle::Index  )  const
 

Referenced by io::ReadWriteModule::Report().

virtual int io::EventHandle::Load int  branchID  )  const [virtual]
 

Loads one branch if branchID < EDMEventHandle::kNBranch, or loads entire event if branchID == kNBranch

Implements edm::EventHandle.

Referenced by edm::EventHandle::Load().

void io::EventHandle::Report  ) 
 

virtual int io::EventHandle::Rewind int  n = 1  )  [virtual]
 

Reimplemented in io::EmptyEventHandle.

Referenced by io::ReadWriteModule::Rewind().

virtual int io::EventHandle::SetupInputFile TFile *  f  )  [virtual]
 

Reimplemented in io::EmptyEventHandle.

Referenced by io::ReadWriteModule::SetupInputFile().

int io::EventHandle::SetupOutputFile TFile *  f  ) 
 

Referenced by io::ReadWriteModule::SetOutputFileName().

int io::EventHandle::Write  ) 
 

Referenced by io::ReadWriteModule::Close(), io::ReadWriteModule::SetOutputFileName(), and io::ReadWriteModule::WriteEvent().


Member Data Documentation

TBranch* io::EventHandle::fBranch[kNBranch] [protected]
 

Branches where events are stored.

Definition at line 49 of file IoModules/EventHandle.h.

const int io::EventHandle::fBucketSize = 16000 [static, protected]
 

Definition at line 39 of file IoModules/EventHandle.h.

TTree* io::EventHandle::fEventTree [protected]
 

The input event tree.

Definition at line 48 of file IoModules/EventHandle.h.

int io::EventHandle::fIndex [protected]
 

Location in current input file.

Definition at line 45 of file IoModules/EventHandle.h.

TFile* io::EventHandle::fInputFile [protected]
 

Pointer to input source. Not owned.

Definition at line 46 of file IoModules/EventHandle.h.

TTree* io::EventHandle::fOutEventTree [protected]
 

The ouput event tree.

Definition at line 50 of file IoModules/EventHandle.h.

TFile* io::EventHandle::fOutputFile [protected]
 

Pointer to output file. Not owned.

Definition at line 47 of file IoModules/EventHandle.h.

const int io::EventHandle::fSplitLevel = 99 [static, protected]
 

If you set split level to 0, the tree will be written in one branch which is not very efficient

Definition at line 42 of file IoModules/EventHandle.h.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 04:45:31 2009 for NOvA Offline by  doxygen 1.3.9.1