CMS 3D CMS Logo

Functions

edm::cc Namespace Reference

Functions

int forcedRunOffset (RunNumber_t const &forcedRunNumber, IndexIntoFile::IndexIntoFileItr inxBegin, IndexIntoFile::IndexIntoFileItr inxEnd)

Function Documentation

int edm::cc::forcedRunOffset ( RunNumber_t const &  forcedRunNumber,
IndexIntoFile::IndexIntoFileItr  inxBegin,
IndexIntoFile::IndexIntoFileItr  inxEnd 
)

Definition at line 65 of file RootFile.cc.

References edm::errors::Configuration, and Exception.

Referenced by edm::RootFile::RootFile().

                                                                             : defaultOffset);
      if(offset < 0) {
        throw Exception(errors::Configuration)
          << "The value of the 'setRunNumber' parameter must not be\n"
          << "less than the first run number in the first input file.\n"
          << "'setRunNumber' was " << forcedRunNumber <<", while the first run was "
          << forcedRunNumber - offset << ".\n";
      }
      return offset;
    }
  }

  // This is a helper class for IndexIntoFile.