CMS 3D CMS Logo

Public Member Functions | Private Attributes

fwlite::FWLiteEventFinder Class Reference

Inheritance diagram for fwlite::FWLiteEventFinder:
edm::IndexIntoFile::EventFinder

List of all members.

Public Member Functions

 FWLiteEventFinder (TBranch *auxBranch)
virtual edm::EventNumber_t getEventNumberOfEntry (long long entry) const
virtual ~FWLiteEventFinder ()

Private Attributes

TBranch * auxBranch_

Detailed Description

Definition at line 34 of file EntryFinder.cc.


Constructor & Destructor Documentation

fwlite::FWLiteEventFinder::FWLiteEventFinder ( TBranch *  auxBranch) [inline, explicit]

Definition at line 36 of file EntryFinder.cc.

: auxBranch_(auxBranch) {}
virtual fwlite::FWLiteEventFinder::~FWLiteEventFinder ( ) [inline, virtual]

Definition at line 37 of file EntryFinder.cc.

{}

Member Function Documentation

virtual edm::EventNumber_t fwlite::FWLiteEventFinder::getEventNumberOfEntry ( long long  entry) const [inline, virtual]

Implements edm::IndexIntoFile::EventFinder.

Definition at line 39 of file EntryFinder.cc.

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

                                                                  {
      void* saveAddress = auxBranch_->GetAddress();
      edm::EventAuxiliary eventAux;
      edm::EventAuxiliary *pEvAux = &eventAux;
      auxBranch_->SetAddress(&pEvAux);
      auxBranch_->GetEntry(entry);
      auxBranch_->SetAddress(saveAddress);
      return eventAux.event();
    }

Member Data Documentation

Definition at line 50 of file EntryFinder.cc.

Referenced by getEventNumberOfEntry().