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

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

Definition at line 36 of file EntryFinder.cc.

36 : auxBranch_(auxBranch) {}
fwlite::FWLiteEventFinder::~FWLiteEventFinder ( )
inlineoverride

Definition at line 37 of file EntryFinder.cc.

37 {}

Member Function Documentation

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.

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

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  }
EventNumber_t event() const

Member Data Documentation

TBranch* fwlite::FWLiteEventFinder::auxBranch_
private

Definition at line 50 of file EntryFinder.cc.

Referenced by getEventNumberOfEntry().