EventGenerator/src/EventGenerator_module.cc
void EventGenerator::checkConfig( const SimpleConfig&  config){

    // The known cosmic ray generators.
    vector<string> keys;
    if ( keys.size() == 0 ){
      keys.push_back("cosmictoy.do");
      keys.push_back("cosmicDYB.do");
      keys.push_back("cosmic.do");
    }

    // Require that 0 or 1 of the generators to be present.
    requireUniqueKey( keys, config );

  }
// Look for inconsistencies in the config file.
Look for inconsistencies in the config file.
Look for inconsistencies in the config file .
void EventGenerator::checkConfig( const SimpleConfig&  config){
    vector<string> keys;
    if ( keys.size() == 0 ){
      keys.push_back("cosmictoy.do");
      keys.push_back("cosmicDYB.do");
      keys.push_back("cosmic.do");
    }
    requireUniqueKey( keys, config );
  }
void EventGenerator :: checkConfig ( const SimpleConfig & config ) { vector < string > keys ; if ( keys . size ( ) == 0 ) { keys . push_back ( " " ) ; keys . push_back ( " " ) ; keys . push_back ( " " ) ; } requireUniqueKey ( keys , config ) ; }
Look for inconsistencies in the config file.
Look for inconsistencies in the config file .
// The known cosmic ray generators. // Require that 0 or 1 of the generators to be present.