Public Member Functions | List of all members
art::Compare_Run_SubRun_EventEntry Struct Reference

#include <FileIndex.h>

Public Member Functions

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

Detailed Description

Definition at line 140 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 463 of file FileIndex.cc.

465  {
466  if (lh.eventID.subRunID() == rh.eventID.subRunID()) {
467  if ((!lh.eventID.isValid()) && (!rh.eventID.isValid())) {
468  return false;
469  } else if (!lh.eventID.isValid()) {
470  return true;
471  } else if (!rh.eventID.isValid()) {
472  return false;
473  }
474  return lh.entry < rh.entry;
475  }
476  return lh.eventID.subRunID() < rh.eventID.subRunID();
477  }

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