test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::RootFileEventFinder Class Reference
Inheritance diagram for edm::RootFileEventFinder:
edm::IndexIntoFile::EventFinder

Public Member Functions

virtual EventNumber_t getEventNumberOfEntry (roottree::EntryNumber entry) const override
 
 RootFileEventFinder (RootTree &eventTree)
 
virtual ~RootFileEventFinder ()
 
- Public Member Functions inherited from edm::IndexIntoFile::EventFinder
virtual ~EventFinder ()
 

Private Attributes

RootTreeeventTree_
 

Detailed Description

Definition at line 118 of file RootFile.cc.

Constructor & Destructor Documentation

edm::RootFileEventFinder::RootFileEventFinder ( RootTree eventTree)
inlineexplicit

Definition at line 120 of file RootFile.cc.

120 : eventTree_(eventTree) {}
virtual edm::RootFileEventFinder::~RootFileEventFinder ( )
inlinevirtual

Definition at line 121 of file RootFile.cc.

121 {}

Member Function Documentation

virtual EventNumber_t edm::RootFileEventFinder::getEventNumberOfEntry ( roottree::EntryNumber  entry) const
inlineoverridevirtual

Implements edm::IndexIntoFile::EventFinder.

Definition at line 123 of file RootFile.cc.

References edm::RootTree::entryNumber(), edm::EventAuxiliary::event(), eventTree_, edm::RootTree::fillAux(), and edm::RootTree::setEntryNumber().

123  {
125  eventTree_.setEntryNumber(entry);
126  EventAuxiliary eventAux;
127  EventAuxiliary *pEvAux = &eventAux;
128  eventTree_.fillAux<EventAuxiliary>(pEvAux);
129  eventTree_.setEntryNumber(saveEntry);
130  return eventAux.event();
131  }
IndexIntoFile::EntryNumber_t EntryNumber
Definition: RootTree.h:41
EntryNumber const & entryNumber() const
Definition: RootTree.h:91
void fillAux(T *&pAux)
Definition: RootTree.h:99
void setEntryNumber(EntryNumber theEntryNumber)
Definition: RootTree.cc:190

Member Data Documentation

RootTree& edm::RootFileEventFinder::eventTree_
private

Definition at line 134 of file RootFile.cc.

Referenced by getEventNumberOfEntry().