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
fwlite::FWLiteEventFinder Class Reference
Inheritance diagram for fwlite::FWLiteEventFinder:
edm::IndexIntoFile::EventFinder

Public Member Functions

 FWLiteEventFinder (TBranch *auxBranch)
 
virtual edm::EventNumber_t getEventNumberOfEntry (long long entry) const override
 
virtual ~FWLiteEventFinder ()
 
- 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) {}
virtual fwlite::FWLiteEventFinder::~FWLiteEventFinder ( )
inlinevirtual

Definition at line 37 of file EntryFinder.cc.

37 {}

Member Function Documentation

virtual edm::EventNumber_t fwlite::FWLiteEventFinder::getEventNumberOfEntry ( long long  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().