DbService/src/DbTool.cc
int mu2e::DbTool::extendEiovMap(int gid, eiovMap& emap, 
				int& minrun, int& maxrun) {

  for(auto const& glr :  _valcache.valGroupLists().rows()) {
    if(glr.gid()==gid ) {
      auto const& ir =  _valcache.valIovs().row(glr.iid());
      auto const& cr = _valcache.valCalibrations().row(ir.cid());
      if(int(ir.iov().startRun()) < minrun) minrun = ir.iov().startRun();
      if(int(ir.iov().endRun()) > maxrun) maxrun = ir.iov().endRun();
      emap[cr.tid()].emplace_back(ir.iid(),ir.cid(),ir.iov());
    }
  } // group lists

  return 0;
}
// ****************************************  extendEiovMap
// given a gid, expand it into a vector of iovs
// min/maxrun is the run range covered by the gid, good for 
// prefiltering for overlaps
extendEiovMap
given a gid, expand it into a vector of iovs
min/maxrun is the run range covered by the gid, good for
prefiltering for overlaps
extendEiovMap given a gid expand it into a vector of iovs min / maxrun is the run range covered by the gid good for prefiltering for overlaps
int mu2e::DbTool::extendEiovMap(int gid, eiovMap& emap, 
				int& minrun, int& maxrun) {
  for(auto const& glr :  _valcache.valGroupLists().rows()) {
    if(glr.gid()==gid ) {
      auto const& ir =  _valcache.valIovs().row(glr.iid());
      auto const& cr = _valcache.valCalibrations().row(ir.cid());
      if(int(ir.iov().startRun()) < minrun) minrun = ir.iov().startRun();
      if(int(ir.iov().endRun()) > maxrun) maxrun = ir.iov().endRun();
      emap[cr.tid()].emplace_back(ir.iid(),ir.cid(),ir.iov());
    }
  } 
  return 0;
}
int mu2e :: DbTool :: extendEiovMap ( int gid , eiovMap & emap , int & minrun , int & maxrun ) { for ( auto const & glr : _valcache . valGroupLists ( ) . rows ( ) ) { if ( glr . gid ( ) == gid ) { auto const & ir = _valcache . valIovs ( ) . row ( glr . iid ( ) ) ; auto const & cr = _valcache . valCalibrations ( ) . row ( ir . cid ( ) ) ; if ( int ( ir . iov ( ) . startRun ( ) ) < minrun ) minrun = ir . iov ( ) . startRun ( ) ; if ( int ( ir . iov ( ) . endRun ( ) ) > maxrun ) maxrun = ir . iov ( ) . endRun ( ) ; emap [ cr . tid ( ) ] . emplace_back ( ir . iid ( ) , ir . cid ( ) , ir . iov ( ) ) ; } } return 0 ; }
extendEiovMap
given a gid, expand it into a vector of iovs
min/maxrun is the run range covered by the gid, good for
prefiltering for overlaps
extendEiovMap given a gid expand it into a vector of iovs min / maxrun is the run range covered by the gid good for prefiltering for overlaps
// group lists