LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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.

References art::FileIndex::Element::entry, art::FileIndex::Element::eventID, art::EventID::isValid(), and art::EventID::subRunID().

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: