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.preprodmc.preprodmc Class Reference
Inheritance diagram for Impl.preprodmc.preprodmc:

Public Member Functions

def alcaReco
 
def dqmHarvesting
 
def promptReco
 

Detailed Description

_preprodmc_

Implement configuration building for RelVal MC production 

Definition at line 20 of file preprodmc.py.

Member Function Documentation

def Impl.preprodmc.preprodmc.alcaReco (   self,
  skims,
  args 
)
_alcaReco_

AlcaReco processing & skims for pre-production

Definition at line 61 of file preprodmc.py.

References Scenario.Scenario.dropOutputModule(), and relativeConstraints.keys.

61 
62  def alcaReco(self, skims, **args):
63  """
64  _alcaReco_
65 
66  AlcaReco processing & skims for pre-production
67 
68  """
69  options = Options()
70  options.__dict__.update(defaultOptions.__dict__)
71  options.scenario = "pp"
72  options.step = 'ALCA:MuAlStandAloneCosmics+DQM,ENDJOB'
73  options.isMC = True
74  options.isData = False
75  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
76  options.beamspot = None
77  options.eventcontent = None
78  options.relval = None
79 
80  process = cms.Process('ALCA')
81  cb = ConfigBuilder(options, process = process)
82 
83  # Input source
84  process.source = cms.Source(
85  "PoolSource",
86  fileNames = cms.untracked.vstring()
87  )
88 
89  cb.prepare()
90 
91  # //
92  # // Verify and Edit the list of skims to be written out
93  #// by this job
94  availableStreams = process.outputModules_().keys()
95 
96  # //
97  # // First up: Verify skims are available by output module name
98  #//
99  for skim in skims:
100  if skim not in availableStreams:
101  msg = "Skim named: %s not available " % skim
102  msg += "in Alca Reco Config:\n"
103  msg += "Known Skims: %s\n" % availableStreams
104  raise RuntimeError, msg
105 
106  # //
107  # // Prune any undesired skims
108  #//
109  for availSkim in availableStreams:
110  if availSkim not in skims:
111  self.dropOutputModule(process, availSkim)
112 
113  return process
114 
def Impl.preprodmc.preprodmc.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

DQM Harvesting for pre-production

Definition at line 115 of file preprodmc.py.

116  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
117  """
118  _dqmHarvesting_
119 
120  DQM Harvesting for pre-production
121 
122  """
123  options = defaultOptions
124  options.scenario = "pp"
125  options.step = "HARVESTING:validationpreprodHarvesting+dqmHarvestingPOG"
126  options.isMC = True
127  options.isData = False
128  options.beamspot = None
129  options.eventcontent = None
130  options.name = "EDMtoMEConvert"
131  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
132  options.arguments = ""
133  options.evt_type = ""
134  options.filein = []
135 
136  process = cms.Process("HARVESTING")
137  process.source = cms.Source("PoolSource")
138  configBuilder = ConfigBuilder(options, process = process)
139  configBuilder.prepare()
140 
141  #
142  # customise process for particular job
143  #
144  process.source.processingMode = cms.untracked.string('RunsAndLumis')
145  process.source.fileNames = cms.untracked(cms.vstring())
146  process.maxEvents.input = -1
147  process.dqmSaver.workflow = datasetName
148  if args.has_key('referenceFile') and args.get('referenceFile', ''):
149  process.DQMStore.referenceFileName = \
150  cms.untracked.string(args['referenceFile'])
151 
152  return process
def Impl.preprodmc.preprodmc.promptReco (   self,
  globalTag,
  writeTiers = ['RECO'],
  args 
)
_promptReco_

Prompt reco for pre-production

Definition at line 29 of file preprodmc.py.

References join().

29 
30  def promptReco(self, globalTag, writeTiers = ['RECO'], **args):
31  """
32  _promptReco_
33 
34  Prompt reco for pre-production
35 
36  """
37 
38  options = Options()
39  options.__dict__.update(defaultOptions.__dict__)
40  options.scenario = "pp"
41  options.step = 'RAW2DIGI,L1Reco,RECO,VALIDATION:validation_preprod,DQM:DQMOfflinePOG,ENDJOB'
42  options.isMC = True
43  options.isData = False
44  options.beamspot = None
45  options.eventcontent = ','.join(writeTiers)
46  options.datatier = ','.join(writeTiers)
47  options.magField = 'AutoFromDBCurrent'
48  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
49 
50  process = cms.Process('RECO')
51  cb = ConfigBuilder(options, process = process, with_output = True)
52 
53  # Input source
54  process.source = cms.Source("PoolSource",
55  fileNames = cms.untracked.vstring()
56  )
57  cb.prepare()
58 
59  return process
60 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18