CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::RootFileEventFinder Class Reference
Inheritance diagram for edm::RootFileEventFinder:
edm::IndexIntoFile::EventFinder

Public Member Functions

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

Private Attributes

RootTreeeventTree_
 

Detailed Description

Definition at line 125 of file RootFile.cc.

Constructor & Destructor Documentation

◆ RootFileEventFinder()

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

Definition at line 127 of file RootFile.cc.

127 : eventTree_(eventTree) {}

◆ ~RootFileEventFinder()

edm::RootFileEventFinder::~RootFileEventFinder ( )
inlineoverride

Definition at line 128 of file RootFile.cc.

128 {}

Member Function Documentation

◆ getEventNumberOfEntry()

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

Implements edm::IndexIntoFile::EventFinder.

Definition at line 130 of file RootFile.cc.

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

130  {
133  EventAuxiliary eventAux;
134  EventAuxiliary* pEvAux = &eventAux;
135  eventTree_.fillAux<EventAuxiliary>(pEvAux);
136  eventTree_.setEntryNumber(saveEntry);
137  return eventAux.event();
138  }
EntryNumber const & entryNumber() const
Definition: RootTree.h:132
IndexIntoFile::EntryNumber_t EntryNumber
Definition: RootTree.h:42
void fillAux(T *&pAux)
Definition: RootTree.h:141
void setEntryNumber(EntryNumber theEntryNumber)
Definition: RootTree.cc:219

Member Data Documentation

◆ eventTree_

RootTree& edm::RootFileEventFinder::eventTree_
private

Definition at line 141 of file RootFile.cc.

Referenced by getEventNumberOfEntry().