CMS 3D CMS Logo

List of all members | Public Member Functions
Impl.Test.Test Class Reference
Inheritance diagram for Impl.Test.Test:

Public Member Functions

def __init__ (self)
 
def alcaSkim (self, skims)
 
def dqmHarvesting (self, datasetName, runNumber, globalTag, args)
 
def expressProcessing (self, globalTag)
 
def promptReco (self, globalTag)
 
def skimming (self, skims)
 

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  def __init__(self):
17  Scenario.__init__(self)
def __init__(self)
Definition: Test.py:16

Member Function Documentation

def Impl.Test.Test.alcaSkim (   self,
  skims 
)
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_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, and createfilelist.int.

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