CMS 3D CMS Logo

Public Member Functions

Impl::preprodmc::preprodmc Class Reference

Inherits Configuration::DataProcessing::Scenario::Scenario.

List of all members.

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.

00062                                      :
00063         """
00064         _alcaReco_
00065 
00066         AlcaReco processing & skims for pre-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         # Input source
00084         process.source = cms.Source(
00085            "PoolSource",
00086            fileNames = cms.untracked.vstring()
00087         )
00088 
00089         cb.prepare() 
00090 
00091         #  //
00092         # // Verify and Edit the list of skims to be written out
00093         #//  by this job
00094         availableStreams = process.outputModules_().keys()
00095 
00096         #  //
00097         # // First up: Verify skims are available by output module name
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         # // Prune any undesired skims
00108         #//
00109         for availSkim in availableStreams:
00110             if availSkim not in skims:
00111                 self.dropOutputModule(process, availSkim)
00112 
00113         return process
00114 

def Impl::preprodmc::preprodmc::dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

DQM Harvesting for pre-production

Definition at line 115 of file preprodmc.py.

00116                                                                       :
00117         """
00118         _dqmHarvesting_
00119 
00120         DQM Harvesting for pre-production
00121 
00122         """
00123         options = defaultOptions
00124         options.scenario = "pp"
00125         options.step = "HARVESTING:validationpreprodHarvesting+dqmHarvestingPOG"
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         # customise process for particular job
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::preprodmc::preprodmc::promptReco (   self,
  globalTag,
  writeTiers = ['RECO'],
  args 
)
_promptReco_

Prompt reco for pre-production

Definition at line 29 of file preprodmc.py.

00030                                                                   :
00031         """
00032         _promptReco_
00033 
00034         Prompt reco for pre-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_preprod,DQM:DQMOfflinePOG,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         # Input source
00054         process.source = cms.Source("PoolSource",
00055             fileNames = cms.untracked.vstring()
00056         )
00057         cb.prepare()
00058 
00059         return process
00060