CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::IndexIntoFile::SortedRunOrLumiItr Class Reference

#include <IndexIntoFile.h>

Public Member Functions

void getRange (long long &beginEventNumbers, long long &endEventNumbers, EntryNumber_t &beginEventEntry, EntryNumber_t &endEventEntry)
 
IndexIntoFile const * indexIntoFile () const
 
bool isRun ()
 
bool operator!= (SortedRunOrLumiItr const &right) const
 
SortedRunOrLumiItroperator++ ()
 
bool operator== (SortedRunOrLumiItr const &right) const
 
unsigned runOrLumi () const
 
RunOrLumiIndexes const & runOrLumiIndexes () const
 
 SortedRunOrLumiItr (IndexIntoFile const *indexIntoFile, unsigned runOrLumi)
 

Private Attributes

IndexIntoFile const * indexIntoFile_
 
unsigned runOrLumi_
 

Detailed Description

Definition at line 495 of file IndexIntoFile.h.

Constructor & Destructor Documentation

edm::IndexIntoFile::SortedRunOrLumiItr::SortedRunOrLumiItr ( IndexIntoFile const *  indexIntoFile,
unsigned  runOrLumi 
)

Definition at line 976 of file IndexIntoFile.cc.

References edm::IndexIntoFile::fillRunOrLumiIndexes(), indexIntoFile_, edm::IndexIntoFile::runOrLumiEntries(), and findQualityFiles::size.

976  :
978  assert(runOrLumi_ <= indexIntoFile_->runOrLumiEntries().size());
980  }
size
Write out results.
std::vector< RunOrLumiEntry > const & runOrLumiEntries() const
Used internally and for test purposes.
IndexIntoFile const * indexIntoFile() const
void fillRunOrLumiIndexes() const

Member Function Documentation

void edm::IndexIntoFile::SortedRunOrLumiItr::getRange ( long long &  beginEventNumbers,
long long &  endEventNumbers,
EntryNumber_t beginEventEntry,
EntryNumber_t endEventEntry 
)

Definition at line 1003 of file IndexIntoFile.cc.

References indexIntoFile_, runOrLumi_, edm::IndexIntoFile::runOrLumiEntries_, and edm::IndexIntoFile::runOrLumiIndexes().

1006  {
1007  beginEventNumbers = indexIntoFile_->runOrLumiIndexes().at(runOrLumi_).beginEventNumbers();
1008  endEventNumbers = indexIntoFile_->runOrLumiIndexes().at(runOrLumi_).endEventNumbers();
1009 
1010  int indexToGetEntry = indexIntoFile_->runOrLumiIndexes().at(runOrLumi_).indexToGetEntry();
1011  beginEventEntry = indexIntoFile_->runOrLumiEntries_.at(indexToGetEntry).beginEvents();
1012  endEventEntry = indexIntoFile_->runOrLumiEntries_.at(indexToGetEntry).endEvents();
1013  }
std::vector< RunOrLumiIndexes > & runOrLumiIndexes() const
std::vector< RunOrLumiEntry > runOrLumiEntries_
IndexIntoFile const* edm::IndexIntoFile::SortedRunOrLumiItr::indexIntoFile ( ) const
inline

Definition at line 500 of file IndexIntoFile.h.

Referenced by operator!=(), and operator==().

500 {return indexIntoFile_;}
bool edm::IndexIntoFile::SortedRunOrLumiItr::isRun ( )

Definition at line 999 of file IndexIntoFile.cc.

References indexIntoFile_, edm::IndexIntoFile::invalidLumi, runOrLumi_, and edm::IndexIntoFile::runOrLumiIndexes().

Referenced by edm::IndexIntoFile::set_intersection().

999  {
1000  return indexIntoFile_->runOrLumiIndexes().at(runOrLumi_).lumi() == invalidLumi;
1001  }
std::vector< RunOrLumiIndexes > & runOrLumiIndexes() const
static constexpr LuminosityBlockNumber_t invalidLumi
bool edm::IndexIntoFile::SortedRunOrLumiItr::operator!= ( SortedRunOrLumiItr const &  right) const

Definition at line 987 of file IndexIntoFile.cc.

References indexIntoFile(), indexIntoFile_, runOrLumi(), and runOrLumi_.

987  {
988  return indexIntoFile_ != right.indexIntoFile() ||
989  runOrLumi_ != right.runOrLumi();
990  }
IndexIntoFile::SortedRunOrLumiItr & edm::IndexIntoFile::SortedRunOrLumiItr::operator++ ( void  )

Definition at line 992 of file IndexIntoFile.cc.

References indexIntoFile_, runOrLumi_, and edm::IndexIntoFile::runOrLumiEntries().

992  {
993  if(runOrLumi_ != indexIntoFile_->runOrLumiEntries().size()) {
994  ++runOrLumi_;
995  }
996  return *this;
997  }
std::vector< RunOrLumiEntry > const & runOrLumiEntries() const
Used internally and for test purposes.
bool edm::IndexIntoFile::SortedRunOrLumiItr::operator== ( SortedRunOrLumiItr const &  right) const

Definition at line 982 of file IndexIntoFile.cc.

References indexIntoFile(), indexIntoFile_, runOrLumi(), and runOrLumi_.

982  {
983  return indexIntoFile_ == right.indexIntoFile() &&
984  runOrLumi_ == right.runOrLumi();
985  }
unsigned edm::IndexIntoFile::SortedRunOrLumiItr::runOrLumi ( ) const
inline
IndexIntoFile::RunOrLumiIndexes const & edm::IndexIntoFile::SortedRunOrLumiItr::runOrLumiIndexes ( ) const

Definition at line 1016 of file IndexIntoFile.cc.

References indexIntoFile_, runOrLumi_, and edm::IndexIntoFile::runOrLumiIndexes().

Referenced by edm::IndexIntoFile::set_intersection().

1016  {
1018  }
std::vector< RunOrLumiIndexes > & runOrLumiIndexes() const

Member Data Documentation

IndexIntoFile const* edm::IndexIntoFile::SortedRunOrLumiItr::indexIntoFile_
private
unsigned edm::IndexIntoFile::SortedRunOrLumiItr::runOrLumi_
private

Definition at line 522 of file IndexIntoFile.h.

Referenced by getRange(), isRun(), operator!=(), operator++(), operator==(), and runOrLumiIndexes().