LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::Compare_Run_SubRun_EventEntry Class Reference

#include "FileIndex.h"

Public Member Functions

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

Detailed Description

Definition at line 216 of file FileIndex.h.

Member Function Documentation

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

Definition at line 230 of file FileIndex.cc.

References art::FileIndex::Element::entry_, art::FileIndex::Element::eventID_, art::EventID::isValid(), and art::EventID::subRunID().

232  {
233  if (lh.eventID_.subRunID() == rh.eventID_.subRunID()) {
234  if ((!lh.eventID_.isValid()) && (!rh.eventID_.isValid())) {
235  return false;
236  } else if (!lh.eventID_.isValid()) {
237  return true;
238  } else if (!rh.eventID_.isValid()) {
239  return false;
240  } else {
241  return lh.entry_ < rh.entry_;
242  }
243  } else {
244  return lh.eventID_.subRunID() < rh.eventID_.subRunID();
245  }
246  }

The documentation for this class was generated from the following files: