CMSHarvester class. More...
Public Member Functions | |
def | __init__ (self, cmd_line_opts=None) |
def | cleanup (self) |
def | config_file_header (self) |
def | db_account_name_cms_cond_dqm_summary (self) |
def | db_account_name_cms_cond_globaltag (self) |
def | format_conditions_string (self, globaltag) |
def | ident_string (self) |
def | option_handler_book_keeping_file (self, option, opt_str, value, parser) |
def | option_handler_debug (self, option, opt_str, value, parser) |
def | option_handler_force (self, option, opt_str, value, parser) |
def | option_handler_frontier_connection (self, option, opt_str, value, parser) |
def | option_handler_globaltag (self, option, opt_str, value, parser) |
def | option_handler_harvesting_mode (self, option, opt_str, value, parser) |
def | option_handler_harvesting_type (self, option, opt_str, value, parser) |
def | option_handler_input_Jsonfile (self, option, opt_str, value, parser) |
def | option_handler_input_Jsonrunfile (self, option, opt_str, value, parser) |
def | option_handler_input_spec (self, option, opt_str, value, parser) |
def | option_handler_input_todofile (self, option, opt_str, value, parser) |
def | option_handler_no_ref_hists (self, option, opt_str, value, parser) |
def | option_handler_quiet (self, option, opt_str, value, parser) |
def | option_handler_ref_hist_mapping_file (self, option, opt_str, value, parser) |
def | set_output_level (self, output_level) |
def | time_stamp (self) |
CMSHarvester class.
Class to perform CMS harvesting. More documentation `obviously' to follow.
Definition at line 295 of file cmsHarvester.py.
def cmsHarvester.CMSHarvester.__init__ | ( | self, | |
cmd_line_opts = None |
|||
) |
Definition at line 304 of file cmsHarvester.py.
def cmsHarvester.CMSHarvester.cleanup | ( | self | ) |
Definition at line 508 of file cmsHarvester.py.
Referenced by esMonitoring.FDJsonServer.handle_close().
def cmsHarvester.CMSHarvester.config_file_header | ( | self | ) |
Definition at line 602 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.ident_string(), join(), and cmsHarvester.CMSHarvester.time_stamp().
def cmsHarvester.CMSHarvester.db_account_name_cms_cond_dqm_summary | ( | self | ) |
def cmsHarvester.CMSHarvester.db_account_name_cms_cond_globaltag | ( | self | ) |
Return the database account name used to store the GlobalTag. The name of the database account depends (albeit weakly) on the CMSSW release version.
Definition at line 570 of file cmsHarvester.py.
def cmsHarvester.CMSHarvester.format_conditions_string | ( | self, | |
globaltag | |||
) |
Create the conditions string needed for `cmsDriver'. Just glueing the FrontierConditions bit in front of it really.
Definition at line 545 of file cmsHarvester.py.
References spr.find().
def cmsHarvester.CMSHarvester.ident_string | ( | self | ) |
Definition at line 533 of file cmsHarvester.py.
References conifer.reduce().
Referenced by cmsHarvester.CMSHarvester.config_file_header().
def cmsHarvester.CMSHarvester.option_handler_book_keeping_file | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Store the name of the file to be used for book keeping. The only check done here is that only a single book keeping file is specified.
Definition at line 962 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.book_keeping_file_name, info(), crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, and cmsHarvester.CMSHarvester.logger.
def cmsHarvester.CMSHarvester.option_handler_debug | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Switch to debug mode. This both increases the amount of output generated, as well as changes the format used (more detailed information is given).
Definition at line 660 of file cmsHarvester.py.
References crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, cmsHarvester.CMSHarvester.logger, and cmsHarvester.CMSHarvester.set_output_level().
def cmsHarvester.CMSHarvester.option_handler_force | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Switch on `force mode' in which case we don't brake for nobody. In so-called `force mode' all sanity checks are performed but we don't halt on failure. Of course this requires some care from the user.
Definition at line 696 of file cmsHarvester.py.
References debug, cmsHarvester.CMSHarvester.force_running, crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, and cmsHarvester.CMSHarvester.logger.
def cmsHarvester.CMSHarvester.option_handler_frontier_connection | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Override the default Frontier connection string. Please only use this for testing (e.g. when a test payload has been inserted into cms_orc_off instead of cms_orc_on). This method gets called for three different command line options: - --frontier-connection, - --frontier-connection-for-globaltag, - --frontier-connection-for-refhists. Appropriate care has to be taken to make sure things are only specified once.
Definition at line 824 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.frontier_connection_name, cmsHarvester.CMSHarvester.frontier_connection_overridden, relativeConstraints.keys, crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, cmsHarvester.CMSHarvester.logger, and MessageLogger_cfi.warning.
Referenced by cmsHarvester.CMSHarvester.option_handler_no_ref_hists().
def cmsHarvester.CMSHarvester.option_handler_globaltag | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Set the GlobalTag to be used, overriding our own choices. By default the cmsHarvester will use the GlobalTag with which a given dataset was created also for the harvesting. The --globaltag option is the way to override this behaviour.
Definition at line 789 of file cmsHarvester.py.
References alignment.Alignment.globaltag, cmsHarvester.CMSHarvester.globaltag, info(), crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, and cmsHarvester.CMSHarvester.logger.
def cmsHarvester.CMSHarvester.option_handler_harvesting_mode | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Set the harvesting mode to be used. Single-step harvesting can be used for samples that are located completely at a single site (= SE). Otherwise use two-step mode.
Definition at line 756 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.harvesting_mode, cmsHarvester.CMSHarvester.harvesting_modes, info(), join(), crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, and cmsHarvester.CMSHarvester.logger.
def cmsHarvester.CMSHarvester.option_handler_harvesting_type | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Set the harvesting type to be used. This checks that no harvesting type is already set, and sets the harvesting type to be used to the one specified. If a harvesting type is already set an exception is thrown. The same happens when an unknown type is specified.
Definition at line 712 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.harvesting_type, cmsHarvester.CMSHarvester.harvesting_types, info(), join(), crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, and cmsHarvester.CMSHarvester.logger.
def cmsHarvester.CMSHarvester.option_handler_input_Jsonfile | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Definition at line 912 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.Jsonfilename.
def cmsHarvester.CMSHarvester.option_handler_input_Jsonrunfile | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Definition at line 919 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.Jsonrunfilename.
def cmsHarvester.CMSHarvester.option_handler_input_spec | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
TODO TODO TODO Document this...
Definition at line 926 of file cmsHarvester.py.
References debug, spr.find(), cmsHarvester.CMSHarvester.input_method, cmsHarvester.CMSHarvester.input_name, crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, cmsHarvester.CMSHarvester.logger, and python.rootplot.root2matplotlib.replace().
def cmsHarvester.CMSHarvester.option_handler_input_todofile | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Definition at line 905 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.todofile.
def cmsHarvester.CMSHarvester.option_handler_no_ref_hists | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Definition at line 812 of file cmsHarvester.py.
References crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, cmsHarvester.CMSHarvester.logger, cmsHarvester.CMSHarvester.option_handler_frontier_connection(), cmsHarvester.CMSHarvester.use_ref_hists, and MessageLogger_cfi.warning.
def cmsHarvester.CMSHarvester.option_handler_quiet | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Definition at line 687 of file cmsHarvester.py.
References cmsHarvester.CMSHarvester.set_output_level().
def cmsHarvester.CMSHarvester.option_handler_ref_hist_mapping_file | ( | self, | |
option, | |||
opt_str, | |||
value, | |||
parser | |||
) |
Store the name of the file for the ref. histogram mapping.
Definition at line 985 of file cmsHarvester.py.
References info(), crabFunctions.CrabController.logger, o2olib.O2OJobMgr.logger, conddb_version_mgr.conddb_tool.logger, o2olib.O2ORunMgr.logger, cmsHarvester.CMSHarvester.logger, and cmsHarvester.CMSHarvester.ref_hist_mappings_file_name.
def cmsHarvester.CMSHarvester.set_output_level | ( | self, | |
output_level | |||
) |
Adjust the level of output generated. Choices are: - normal : default level of output - quiet : less output than the default - verbose : some additional information - debug : lots more information, may be overwhelming NOTE: The debug option is a bit special in the sense that it also modifies the output format.
Definition at line 621 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_debug(), and cmsHarvester.CMSHarvester.option_handler_quiet().
def cmsHarvester.CMSHarvester.time_stamp | ( | self | ) |
Definition at line 520 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.config_file_header().
cmsHarvester.CMSHarvester.all_sites_found |
Definition at line 479 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.book_keeping_file_name |
Definition at line 429 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_book_keeping_file().
cmsHarvester.CMSHarvester.book_keeping_file_name_default |
Definition at line 430 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.book_keeping_information |
Definition at line 461 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.caf_access |
Definition at line 449 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.castor_base_dir |
Definition at line 422 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.castor_base_dir_default |
Definition at line 423 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.castor_prefix |
Definition at line 442 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.cmd_line_opts |
Definition at line 487 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.crab_submission |
Definition at line 451 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.datasets_to_ignore |
Definition at line 459 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.datasets_to_use |
Definition at line 457 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.force_running |
Definition at line 419 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_force().
cmsHarvester.CMSHarvester.frontier_connection_name |
Definition at line 356 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_frontier_connection().
cmsHarvester.CMSHarvester.frontier_connection_overridden |
Definition at line 361 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_frontier_connection().
cmsHarvester.CMSHarvester.globaltag |
Definition at line 344 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_globaltag().
cmsHarvester.CMSHarvester.globaltag_check_cache |
Definition at line 475 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.harvesting_info |
Definition at line 368 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.harvesting_mode |
Definition at line 383 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_harvesting_mode().
cmsHarvester.CMSHarvester.harvesting_mode_default |
Definition at line 387 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.harvesting_modes |
Definition at line 330 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_harvesting_mode().
cmsHarvester.CMSHarvester.harvesting_type |
Definition at line 377 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_harvesting_type().
cmsHarvester.CMSHarvester.harvesting_types |
Definition at line 311 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_harvesting_type().
cmsHarvester.CMSHarvester.input_method |
Definition at line 394 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_input_spec().
cmsHarvester.CMSHarvester.input_name |
Definition at line 403 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_input_spec().
cmsHarvester.CMSHarvester.Jsonfilename |
Definition at line 412 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_input_Jsonfile().
cmsHarvester.CMSHarvester.Jsonlumi |
Definition at line 411 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.Jsonrunfilename |
Definition at line 413 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_input_Jsonrunfile().
cmsHarvester.CMSHarvester.log_level |
Definition at line 648 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.logger |
Definition at line 498 of file cmsHarvester.py.
Referenced by looper.Looper.loop(), cmsHarvester.CMSHarvester.option_handler_book_keeping_file(), cmsHarvester.CMSHarvester.option_handler_debug(), cmsHarvester.CMSHarvester.option_handler_force(), cmsHarvester.CMSHarvester.option_handler_frontier_connection(), cmsHarvester.CMSHarvester.option_handler_globaltag(), cmsHarvester.CMSHarvester.option_handler_harvesting_mode(), cmsHarvester.CMSHarvester.option_handler_harvesting_type(), cmsHarvester.CMSHarvester.option_handler_input_spec(), cmsHarvester.CMSHarvester.option_handler_no_ref_hists(), and cmsHarvester.CMSHarvester.option_handler_ref_hist_mapping_file().
cmsHarvester.CMSHarvester.no_matching_site_found_str |
Definition at line 482 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.non_t1access |
Definition at line 448 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.nr_max_sites |
Definition at line 452 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.preferred_site |
Definition at line 454 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.ref_hist_mappings |
Definition at line 464 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.ref_hist_mappings_file_name |
Definition at line 435 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_ref_hist_mapping_file().
cmsHarvester.CMSHarvester.ref_hist_mappings_file_name_default |
Definition at line 437 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.runs_to_ignore |
Definition at line 469 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.runs_to_use |
Definition at line 468 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.saveByLumiSection |
Definition at line 450 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.sites_and_versions_cache |
Definition at line 472 of file cmsHarvester.py.
cmsHarvester.CMSHarvester.todofile |
Definition at line 414 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_input_todofile().
cmsHarvester.CMSHarvester.use_ref_hists |
Definition at line 348 of file cmsHarvester.py.
Referenced by cmsHarvester.CMSHarvester.option_handler_no_ref_hists().
cmsHarvester.CMSHarvester.version |
Definition at line 307 of file cmsHarvester.py.
Referenced by validation.Sample.datasetpattern(), and validation.Sample.filename().