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 119 of file RootFile.cc.

Constructor & Destructor Documentation

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

Definition at line 121 of file RootFile.cc.

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

Definition at line 122 of file RootFile.cc.

122 {}

Member Function Documentation

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

Implements edm::IndexIntoFile::EventFinder.

Definition at line 124 of file RootFile.cc.

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

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

Member Data Documentation

RootTree& edm::RootFileEventFinder::eventTree_
private

Definition at line 135 of file RootFile.cc.

Referenced by getEventNumberOfEntry().