CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
DTT0WireWorkflow.DTT0WireWorkflow Class Reference
Inheritance diagram for DTT0WireWorkflow.DTT0WireWorkflow:
DTWorkflow.DTWorkflow

Public Member Functions

def __init__
 
def add_parser_options
 CLI creation #. More...
 
def prepare_all_all
 
def prepare_all_submit
 
def prepare_workflow
 
def submit
 
- Public Member Functions inherited from DTWorkflow.DTWorkflow
def __init__
 
def add_local_calib_db
 
def add_local_custom_db
 
def add_local_t0_db
 
def add_local_vdrift_db
 
def add_preselection
 
def add_raw_option
 
def all
 
def check
 
def check_missing_options
 
def correction
 
def dump
 
def dump_options
 
def get_config_name
 
def get_output_files
 
def load_options
 
def load_options_command
 
def local_path
 
def outpath_workflow_mode_tag
 
def prepare_common_dump
 
def prepare_common_submit
 
def prepare_common_write
 
def prepare_workflow
 
def pset_path
 
def pset_template_base_bath
 
def remote_out_path
 
def result_path
 
def run
 
def runCMSSWtask
 
def submit
 
def tag
 
def user
 
def write
 
def write_pset_file
 

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
 

Additional Inherited Members

- Static Public Member Functions inherited from DTWorkflow.DTWorkflow
def addPoolDBESSource
 

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

Member Function Documentation

def DTT0WireWorkflow.DTT0WireWorkflow.add_parser_options (   cls,
  subparser_container 
)

CLI creation #.

Definition at line 59 of file DTT0WireWorkflow.py.

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

Definition at line 46 of file DTT0WireWorkflow.py.

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

Definition at line 35 of file DTT0WireWorkflow.py.

35 
36  def prepare_all_submit(self):
37  self.pset_name = 'dtT0WireCalibration_cfg.py'
38  self.pset_template = 'CalibMuon.DTCalibration.dtT0WireCalibration_cfg'
39 
41  self.process.GlobalTag.globaltag = self.options.globaltag
42  self.process.dtT0WireCalibration.rootFileName = self.output_file
43 
45  self.write_pset_file()
def loadCmsProcess
Definition: tools.py:56
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 
22  def prepare_workflow(self):
23  """ Generalized function to prepare workflow dependent on workflow mode"""
24  function_name = "prepare_" + self.options.workflow_mode + "_" + self.options.command
25 
26  try:
27  fill_function = getattr(self, function_name)
28  except AttributeError:
29  errmsg = "Class `{}` does not implement `{}`"
30  raise NotImplementedError(errmsg.format(my_cls.__class__.__name__,
31  method_name))
32  log.debug("Preparing workflow with function %s" % function_name)
33  # call chosen function
34  fill_function()
def DTT0WireWorkflow.DTT0WireWorkflow.submit (   self)

Definition at line 51 of file DTT0WireWorkflow.py.

References DTWorkflow.DTWorkflow.runCMSSWtask().

51 
52  def submit(self):
53  # Overload to run locally
54  self.runCMSSWtask()

Member Data Documentation

DTT0WireWorkflow.DTT0WireWorkflow.all_commands

Definition at line 49 of file DTT0WireWorkflow.py.

Referenced by DTWorkflow.DTWorkflow.all(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_all(), and DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_all().

DTT0WireWorkflow.DTT0WireWorkflow.outpath_command_tag

Definition at line 16 of file DTT0WireWorkflow.py.

Referenced by DTWorkflow.DTWorkflow.local_path(), and DTWorkflow.DTWorkflow.remote_out_path().

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_file

Definition at line 18 of file DTT0WireWorkflow.py.

Referenced by mergeLHE.DefaultLHEMerger.merge(), mergeLHE.MG5LOLHEMerger.merge(), mergeLHE.ExternalCppLHEMerger.merge(), DTWorkflow.DTWorkflow.prepare_common_write(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_submit(), and DTVdriftWorkflow.DTvdriftWorkflow.prepare_segment_write().

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(), adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.convertModuleToMiniAODInput(), 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(), runTauIdMVA.TauIDEmbedder.runTauID(), ConfigBuilder.ConfigBuilder.scheduleSequence(), and runTauIdMVA.TauIDEmbedder.tauIDMVAinputs().

DTT0WireWorkflow.DTT0WireWorkflow.pset_name

Definition at line 36 of file DTT0WireWorkflow.py.

Referenced by DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_dump(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_dump(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_segment_dump(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_segment_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_timeboxes_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_timeboxes_dump(), DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_submit(), DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_write(), DTWorkflow.DTWorkflow.pset_path(), and DTWorkflow.DTWorkflow.runCMSSWtask().

DTT0WireWorkflow.DTT0WireWorkflow.pset_template

Definition at line 37 of file DTT0WireWorkflow.py.

Referenced by DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_dump(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_dump(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_segment_dump(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_segment_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_timeboxes_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_timeboxes_dump(), DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_submit(), and DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_write().