Inherits Configuration::DataProcessing::Scenario::Scenario.
List of all members.
Detailed Description
_prodmc_
Implement configuration building for MC production
Definition at line 20 of file prodmc.py.
Member Function Documentation
def Impl::prodmc::prodmc::alcaReco |
( |
|
self, |
|
|
|
skims, |
|
|
|
args |
|
) |
| |
_alcaReco_
AlcaReco processing & skims for MC production
Definition at line 61 of file prodmc.py.
00062 :
00063 """
00064 _alcaReco_
00065
00066 AlcaReco processing & skims for MC production
00067
00068 """
00069 options = Options()
00070 options.__dict__.update(defaultOptions.__dict__)
00071 options.scenario = "pp"
00072 options.step = 'ALCA:MuAlStandAloneCosmics+DQM,ENDJOB'
00073 options.isMC = True
00074 options.isData = False
00075 options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
00076 options.beamspot = None
00077 options.eventcontent = None
00078 options.relval = None
00079
00080 process = cms.Process('ALCA')
00081 cb = ConfigBuilder(options, process = process)
00082
00083
00084 process.source = cms.Source(
00085 "PoolSource",
00086 fileNames = cms.untracked.vstring()
00087 )
00088
00089 cb.prepare()
00090
00091
00092
00093
00094 availableStreams = process.outputModules_().keys()
00095
00096
00097
00098
00099 for skim in skims:
00100 if skim not in availableStreams:
00101 msg = "Skim named: %s not available " % skim
00102 msg += "in Alca Reco Config:\n"
00103 msg += "Known Skims: %s\n" % availableStreams
00104 raise RuntimeError, msg
00105
00106
00107
00108
00109 for availSkim in availableStreams:
00110 if availSkim not in skims:
00111 self.dropOutputModule(process, availSkim)
00112
00113 return process
00114
def Impl::prodmc::prodmc::dqmHarvesting |
( |
|
self, |
|
|
|
datasetName, |
|
|
|
runNumber, |
|
|
|
globalTag, |
|
|
|
args |
|
) |
| |
_dqmHarvesting_
DQM Harvesting for MC production
Definition at line 115 of file prodmc.py.
00116 :
00117 """
00118 _dqmHarvesting_
00119
00120 DQM Harvesting for MC production
00121
00122 """
00123 options = defaultOptions
00124 options.scenario = "pp"
00125 options.step = "HARVESTING:validationprodHarvesting"
00126 options.isMC = True
00127 options.isData = False
00128 options.beamspot = None
00129 options.eventcontent = None
00130 options.name = "EDMtoMEConvert"
00131 options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
00132 options.arguments = ""
00133 options.evt_type = ""
00134 options.filein = []
00135
00136 process = cms.Process("HARVESTING")
00137 process.source = cms.Source("PoolSource")
00138 configBuilder = ConfigBuilder(options, process = process)
00139 configBuilder.prepare()
00140
00141
00142
00143
00144 process.source.processingMode = cms.untracked.string('RunsAndLumis')
00145 process.source.fileNames = cms.untracked(cms.vstring())
00146 process.maxEvents.input = -1
00147 process.dqmSaver.workflow = datasetName
00148 if args.has_key('referenceFile') and args.get('referenceFile', ''):
00149 process.DQMStore.referenceFileName = \
00150 cms.untracked.string(args['referenceFile'])
00151
00152 return process
def Impl::prodmc::prodmc::promptReco |
( |
|
self, |
|
|
|
globalTag, |
|
|
|
writeTiers = ['RECO'] , |
|
|
|
args |
|
) |
| |
_promptReco_
Prompt reco for MC production
Definition at line 29 of file prodmc.py.
00030 :
00031 """
00032 _promptReco_
00033
00034 Prompt reco for MC production
00035
00036 """
00037
00038 options = Options()
00039 options.__dict__.update(defaultOptions.__dict__)
00040 options.scenario = "pp"
00041 options.step = 'RAW2DIGI,L1Reco,RECO,VALIDATION:validation_prod,DQM:DQMOfflinePhysics,ENDJOB'
00042 options.isMC = True
00043 options.isData = False
00044 options.beamspot = None
00045 options.eventcontent = ','.join(writeTiers)
00046 options.datatier = ','.join(writeTiers)
00047 options.magField = 'AutoFromDBCurrent'
00048 options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
00049
00050 process = cms.Process('RECO')
00051 cb = ConfigBuilder(options, process = process, with_output = True)
00052
00053
00054 process.source = cms.Source("PoolSource",
00055 fileNames = cms.untracked.vstring()
00056 )
00057 cb.prepare()
00058
00059 return process
00060