CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def alcaSkim
 
def dqmHarvesting
 
def expressProcessing
 
def promptReco
 
def skimming
 

Detailed Description

Definition at line 15 of file Test.py.

Constructor & Destructor Documentation

def Impl.Test.Test.__init__ (   self)

Definition at line 16 of file Test.py.

16 
17  def __init__(self):
Scenario.__init__(self)
def __init__
Definition: Test.py:16

Member Function Documentation

def Impl.Test.Test.alcaSkim (   self,
  skims 
)
_alcaSkim_

Returns skeleton process object

Definition at line 46 of file Test.py.

References Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, and Scenario.Scenario.eras.

46 
47  def alcaSkim(self, skims):
48  """
49  _alcaSkim_
50 
51  Returns skeleton process object
52 
53  """
54  return cms.Process("ALCARECO", self.eras)
55 
def alcaSkim
Definition: Test.py:46
def Impl.Test.Test.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

build a DQM Harvesting configuration

this method can be used to test an extra scenario, all the 
ConfigBuilder options can be overwritten by using **args. This will be
useful for testing with real jobs.

Arguments:

datasetName - aka workflow name for DQMServer, this is the name of the
dataset containing the harvested run
runNumber - The run being harvested
globalTag - The global tag being used
inputFiles - The list of LFNs being harvested

Definition at line 56 of file Test.py.

References Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, and Scenario.Scenario.eras.

56 
57  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
58  """
59  _dqmHarvesting_
60 
61  build a DQM Harvesting configuration
62 
63  this method can be used to test an extra scenario, all the
64  ConfigBuilder options can be overwritten by using **args. This will be
65  useful for testing with real jobs.
66 
67  Arguments:
68 
69  datasetName - aka workflow name for DQMServer, this is the name of the
70  dataset containing the harvested run
71  runNumber - The run being harvested
72  globalTag - The global tag being used
73  inputFiles - The list of LFNs being harvested
74 
75  """
76  options = defaultOptions
77  options.scenario = "cosmics"
78  options.step = "HARVESTING:dqmHarvesting"
79  options.isMC = False
80  options.isData = True
81  options.beamspot = None
82  options.eventcontent = None
83  options.name = "EDMtoMEConvert"
84  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
85  options.arguments = ""
86  options.evt_type = ""
87  options.filein = []
88 
89  options.__dict__.update(args)
90 
91  process = cms.Process("HARVESTING", self.eras)
92  process.source = cms.Source("PoolSource")
93  configBuilder = ConfigBuilder(options, process = process)
94  configBuilder.prepare()
95 
96  #
97  # customise process for particular job
98  #
99  process.source.processingMode = cms.untracked.string('RunsAndLumis')
100  process.source.fileNames = cms.untracked(cms.vstring())
101  process.maxEvents.input = -1
102  process.dqmSaver.workflow = datasetName
103  if 'saveByLumiSection' in args and \
104  args.get('saveByLumiSection', ''):
105  process.dqmSaver.saveByLumiSection = int(args['saveByLumiSection'])
106  if 'referenceFile' in args and args.get('referenceFile', ''):
107  process.DQMStore.referenceFileName = \
108  cms.untracked.string(args['referenceFile'])
109 
110  return process
111 
def dqmHarvesting
Definition: Test.py:56
def Impl.Test.Test.expressProcessing (   self,
  globalTag 
)
_expressProcessing_

Returns skeleton process object

Definition at line 36 of file Test.py.

References Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, and Scenario.Scenario.eras.

36 
37  def expressProcessing(self, globalTag):
38  """
39  _expressProcessing_
40 
41  Returns skeleton process object
42 
43  """
44  return cms.Process("Express", self.eras)
45 
def expressProcessing
Definition: Test.py:36
def Impl.Test.Test.promptReco (   self,
  globalTag 
)
_promptReco_

Returns skeleton process object

Definition at line 26 of file Test.py.

References Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, and Scenario.Scenario.eras.

26 
27  def promptReco(self, globalTag):
28  """
29  _promptReco_
30 
31  Returns skeleton process object
32 
33  """
34  return cms.Process("RECO", self.eras)
35 
def promptReco
Definition: Test.py:26
def Impl.Test.Test.skimming (   self,
  skims 
)
_skimming_

Returns skeleton process object

Definition at line 112 of file Test.py.

References Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, and Scenario.Scenario.eras.

113  def skimming(self, *skims):
114  """
115  _skimming_
116 
117  Returns skeleton process object
118 
119  """
120  return cms.Process("Skimming", self.eras)
def skimming
Definition: Test.py:112