CMS 3D CMS Logo

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

Public Member Functions

 FWLiteEventFinder (TBranch *auxBranch)
 
edm::EventNumber_t getEventNumberOfEntry (edm::IndexIntoFile::EntryNumber_t entry) const override
 
 ~FWLiteEventFinder () override
 
- Public Member Functions inherited from edm::IndexIntoFile::EventFinder
virtual ~EventFinder ()
 

Private Attributes

TBranch * auxBranch_
 

Detailed Description

Definition at line 34 of file EntryFinder.cc.

Constructor & Destructor Documentation

◆ FWLiteEventFinder()

fwlite::FWLiteEventFinder::FWLiteEventFinder ( TBranch *  auxBranch)
inlineexplicit

Definition at line 36 of file EntryFinder.cc.

36 : auxBranch_(auxBranch) {}

◆ ~FWLiteEventFinder()

fwlite::FWLiteEventFinder::~FWLiteEventFinder ( )
inlineoverride

Definition at line 37 of file EntryFinder.cc.

37 {}

Member Function Documentation

◆ getEventNumberOfEntry()

edm::EventNumber_t fwlite::FWLiteEventFinder::getEventNumberOfEntry ( edm::IndexIntoFile::EntryNumber_t  entry) const
inlineoverridevirtual

Implements edm::IndexIntoFile::EventFinder.

Definition at line 39 of file EntryFinder.cc.

39  {
40  void* saveAddress = auxBranch_->GetAddress();
41  edm::EventAuxiliary eventAux;
42  edm::EventAuxiliary* pEvAux = &eventAux;
43  auxBranch_->SetAddress(&pEvAux);
44  auxBranch_->GetEntry(entry);
45  auxBranch_->SetAddress(saveAddress);
46  return eventAux.event();
47  }

References auxBranch_, mps_splice::entry, and edm::EventAuxiliary::event().

Member Data Documentation

◆ auxBranch_

TBranch* fwlite::FWLiteEventFinder::auxBranch_
private

Definition at line 50 of file EntryFinder.cc.

Referenced by getEventNumberOfEntry().

edm::EventAuxiliary::event
EventNumber_t event() const
Definition: EventAuxiliary.h:72
mps_splice.entry
entry
Definition: mps_splice.py:68
edm::EventAuxiliary
Definition: EventAuxiliary.h:14
fwlite::FWLiteEventFinder::auxBranch_
TBranch * auxBranch_
Definition: EntryFinder.cc:50