CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DTT0WireWorkflow.DTT0WireWorkflow Class Reference
Inheritance diagram for DTT0WireWorkflow.DTT0WireWorkflow:
DTWorkflow.DTWorkflow CLIHelper.CLIHelper CrabHelper.CrabHelper

Public Member Functions

def __init__ (self, options)
 
def add_parser_options (cls, subparser_container)
 CLI creation #. More...
 
def prepare_all_all (self)
 
def prepare_all_submit (self)
 
def prepare_workflow (self)
 
def submit (self)
 
- Public Member Functions inherited from DTWorkflow.DTWorkflow
def __init__ (self, options)
 
def add_local_calib_db (self, local=False)
 
def add_local_custom_db (self)
 
def add_local_t0_db (self, local=False)
 
def add_local_vdrift_db (self, local=False)
 
def add_preselection (self)
 
def add_raw_option (self)
 
def all (self)
 
def check (self)
 
def check_missing_options (self, requirements_dict)
 
def correction (self)
 
def dump (self)
 
def dump_options (self)
 
def get_config_name (self, command="")
 
def get_output_files (self, crabtask, output_path)
 
def load_options (self, config_file_path)
 
def load_options_command (self, command)
 
def local_path (self)
 
def outpath_workflow_mode_tag (self)
 
def prepare_common_dump (self, db_path)
 
def prepare_common_submit (self)
 
def prepare_common_write (self, do_hadd=True)
 
def prepare_workflow (self)
 
def pset_path (self)
 
def pset_template_base_bath (self)
 
def remote_out_path (self)
 
def result_path (self)
 
def run (self)
 
def runCMSSWtask (self, pset_path="")
 
def submit (self)
 
def tag (self)
 
def user (self)
 
def write (self)
 
def write_pset_file (self)
 
- Public Member Functions inherited from CLIHelper.CLIHelper
def add_parser_options (cls, parser)
 
def fill_required_options_dict (self)
 
def fill_required_options_prepare_dict (self)
 
def get_check_options_parser (cls)
 
def get_common_options_parser (cls)
 
def get_dump_options_parser (cls)
 
def get_input_db_options_parser (cls)
 
def get_local_input_db_options_parser (cls)
 
def get_submission_options_parser (cls)
 
def get_write_options_parser (cls)
 
- Public Member Functions inherited from CrabHelper.CrabHelper
def __init__ (self)
 
def cert_info (self)
 
def check_crabtask (self)
 
def crab (self)
 
def crab_config_filename (self)
 
def crab_config_filepath (self)
 
def crab_taskname (self)
 
def create_crab_config (self)
 
def fill_options_from_crab_config (self)
 
def submit_crab_task (self)
 
def voms_proxy_create (self, passphrase=None)
 
def voms_proxy_time_left (self)
 
def write_crabConfig (self)
 

Public Attributes

 all_commands
 
 outpath_command_tag
 
 outpath_workflow_mode_dict
 
 output_file
 
 output_files
 
 process
 
 pset_name
 
 pset_template
 
- Public Attributes inherited from DTWorkflow.DTWorkflow
 digilabel
 
 files_reveived
 
 input_files
 
 options
 
 outpath_command_tag
 
 output_files
 
 process
 
 pset_name
 
 required_options_dict
 
 required_options_prepare_dict
 
 run_all_command
 
- Public Attributes inherited from CrabHelper.CrabHelper
 crab_config
 
 crabFunctions
 

Additional Inherited Members

- Static Public Member Functions inherited from DTWorkflow.DTWorkflow
def addPoolDBESSource (process, moduleName, record, tag, connect='sqlite_file:', label='')
 

Detailed Description

This class creates and performce / submits vdrift workflow jobs

Definition at line 10 of file DTT0WireWorkflow.py.

Constructor & Destructor Documentation

def DTT0WireWorkflow.DTT0WireWorkflow.__init__ (   self,
  options 
)

Definition at line 12 of file DTT0WireWorkflow.py.

12  def __init__(self, options):
13  # call parent constructor
14  super(DTT0WireWorkflow, self).__init__(options)
15 
16  self.outpath_command_tag = "T0WireCalibration"
17  self.outpath_workflow_mode_dict = {"all" : "All"}
18  self.output_file = 'DTTestPulses.root'
19  self.output_files = ['t0.db', self.output_file, 'DQM.root']
20 

Member Function Documentation

def DTT0WireWorkflow.DTT0WireWorkflow.add_parser_options (   cls,
  subparser_container 
)

CLI creation #.

Definition at line 59 of file DTT0WireWorkflow.py.

References CLIHelper.CLIHelper.get_common_options_parser(), CLIHelper.CLIHelper.get_input_db_options_parser(), CLIHelper.CLIHelper.get_local_input_db_options_parser(), and CLIHelper.CLIHelper.get_submission_options_parser().

59  def add_parser_options(cls, subparser_container):
60  vdrift_parser = subparser_container.add_parser( "T0Wire",
61  #parents=[mutual_parent_parser, common_parent_parser],
62  help = "" ) # What does ttrig
63 
64  ################################################################
65  # Sub parser options for workflow modes #
66  ################################################################
67  vdrift_subparsers = vdrift_parser.add_subparsers( dest="workflow_mode",
68  help="Possible workflow modes",)
69  ## Add all workflow modes for ttrig
70  vdrift_segment_subparser = vdrift_subparsers.add_parser( "all",
71  #parents=[mutual_parent_parser, common_parent_parser],
72  help = "" )
73  ################################################################
74  # Sub parser options for workflow mode segment #
75  ################################################################
76  vdrift_segment_subparsers = vdrift_segment_subparser.add_subparsers( dest="command",
77  help="Possible commands for all")
78  vdrift_segment_submit_parser = vdrift_segment_subparsers.add_parser(
79  "submit",
80  parents=[super(DTT0WireWorkflow,cls).get_common_options_parser(),
81  super(DTT0WireWorkflow,cls).get_submission_options_parser(),
82  super(DTT0WireWorkflow,cls).get_local_input_db_options_parser(),
83  super(DTT0WireWorkflow,cls).get_input_db_options_parser()],
84  help = "Run job locally as GRID submission is not supported for T0 Calibration")
85 
86  vdrift_segment_all_parser = vdrift_segment_subparsers.add_parser(
87  "all",
88  parents=[super(DTT0WireWorkflow,cls).get_common_options_parser(),
89  super(DTT0WireWorkflow,cls).get_submission_options_parser(),
90  super(DTT0WireWorkflow,cls).get_input_db_options_parser(),
91  super(DTT0WireWorkflow,cls).get_local_input_db_options_parser(),
92  ],
93  help = "Perform all steps: submit, check in this order")
94 
def add_parser_options(cls, subparser_container)
CLI creation #.
def get_common_options_parser(cls)
Definition: CLIHelper.py:5
def get_input_db_options_parser(cls)
Definition: CLIHelper.py:50
def get_local_input_db_options_parser(cls)
Definition: CLIHelper.py:65
def get_submission_options_parser(cls)
Definition: CLIHelper.py:79
def DTT0WireWorkflow.DTT0WireWorkflow.prepare_all_all (   self)

Definition at line 46 of file DTT0WireWorkflow.py.

46  def prepare_all_all(self):
47  # individual prepare functions for all tasks will be called in
48  # main implementation of all
49  self.all_commands=["submit"]
50 
def DTT0WireWorkflow.DTT0WireWorkflow.prepare_all_submit (   self)

Definition at line 35 of file DTT0WireWorkflow.py.

35  def prepare_all_submit(self):
36  self.pset_name = 'dtT0WireCalibration_cfg.py'
37  self.pset_template = 'CalibMuon.DTCalibration.dtT0WireCalibration_cfg'
38 
40  self.process.GlobalTag.globaltag = self.options.globaltag
41  self.process.dtT0WireCalibration.rootFileName = self.output_file
42 
44  self.write_pset_file()
45 
def loadCmsProcess(psetPath)
Definition: tools.py:56
def prepare_common_submit(self)
Definition: DTWorkflow.py:194
def write_pset_file(self)
Definition: DTWorkflow.py:377
def DTT0WireWorkflow.DTT0WireWorkflow.prepare_workflow (   self)
Generalized function to prepare workflow dependent on workflow mode

Definition at line 21 of file DTT0WireWorkflow.py.

Referenced by DTWorkflow.DTWorkflow.run().

21  def prepare_workflow(self):
22  """ Generalized function to prepare workflow dependent on workflow mode"""
23  function_name = "prepare_" + self.options.workflow_mode + "_" + self.options.command
24 
25  try:
26  fill_function = getattr(self, function_name)
27  except AttributeError:
28  errmsg = "Class `{}` does not implement `{}`"
29  raise NotImplementedError(errmsg.format(my_cls.__class__.__name__,
30  method_name))
31  log.debug("Preparing workflow with function %s" % function_name)
32  # call chosen function
33  fill_function()
34 
def DTT0WireWorkflow.DTT0WireWorkflow.submit (   self)

Definition at line 51 of file DTT0WireWorkflow.py.

References DTWorkflow.DTWorkflow.runCMSSWtask().

51  def submit(self):
52  # Overload to run locally
53  self.runCMSSWtask()
54 
def runCMSSWtask(self, pset_path="")
Definition: DTWorkflow.py:276

Member Data Documentation

DTT0WireWorkflow.DTT0WireWorkflow.outpath_command_tag
DTT0WireWorkflow.DTT0WireWorkflow.outpath_workflow_mode_dict

Definition at line 17 of file DTT0WireWorkflow.py.

Referenced by DTWorkflow.DTWorkflow.outpath_workflow_mode_tag().

DTT0WireWorkflow.DTT0WireWorkflow.output_files

Definition at line 19 of file DTT0WireWorkflow.py.

DTT0WireWorkflow.DTT0WireWorkflow.process

Definition at line 39 of file DTT0WireWorkflow.py.

Referenced by DTWorkflow.DTWorkflow.add_local_calib_db(), DTWorkflow.DTWorkflow.add_local_custom_db(), DTWorkflow.DTWorkflow.add_local_t0_db(), DTWorkflow.DTWorkflow.add_local_vdrift_db(), DTWorkflow.DTWorkflow.add_preselection(), DTWorkflow.DTWorkflow.add_raw_option(), ConfigBuilder.ConfigBuilder.addCustomise(), ConfigBuilder.ConfigBuilder.addOutput(), ConfigBuilder.ConfigBuilder.completeInputCommand(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_GEN(), ConfigBuilder.ConfigBuilder.prepare_HLT(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_write(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_segment_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_timeboxes_correction(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_submit(), DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_write(), runTauIdMVA.TauIDEmbedder.processDeepProducer(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder.scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProperty().