CMS 3D CMS Logo

List of all members | Public Member Functions
edm::Compare_Run_Lumi_EventEntry Class Reference

#include <FileIndex.h>

Public Member Functions

bool operator() (FileIndex::Element const &lh, FileIndex::Element const &rh)
 

Detailed Description

Definition at line 155 of file FileIndex.h.

Member Function Documentation

bool edm::Compare_Run_Lumi_EventEntry::operator() ( FileIndex::Element const &  lh,
FileIndex::Element const &  rh 
)

Definition at line 192 of file FileIndex.cc.

References edm::FileIndex::Element::entry_, edm::FileIndex::Element::event_, edm::FileIndex::Element::lumi_, edm::FileIndex::Element::run_, and mitigatedMETSequence_cff::U.

192  {
193  if(lh.run_ == rh.run_) {
194  if(lh.lumi_ == rh.lumi_) {
195  if(lh.event_ == 0U && rh.event_ == 0U) {
196  return false;
197  } else if(lh.event_ == 0U) {
198  return true;
199  } else if(rh.event_ == 0U) {
200  return false;
201  } else {
202  return lh.entry_ < rh.entry_;
203  }
204  }
205  return lh.lumi_ < rh.lumi_;
206  }
207  return lh.run_ < rh.run_;
208  }
bool int lh
Definition: SIMDVec.h:21