CMS 3D CMS Logo

Public Member Functions | Public Attributes

Reco::Reco Class Reference

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

List of all members.

Public Member Functions

def __init__
def alcaHarvesting
def alcaSkim
def dqmHarvesting
def expressProcessing
def promptReco

Public Attributes

 cbSc
 recoSeq

Detailed Description

Definition at line 21 of file Reco.py.


Constructor & Destructor Documentation

def Reco::Reco::__init__ (   self)

Definition at line 22 of file Reco.py.

00023                       :
00024         self.recoSeq=''
        self.cbSc=self.__class__.__name__

Member Function Documentation

def Reco::Reco::alcaHarvesting (   self,
  globalTag,
  datasetName,
  args 
)
_alcaHarvesting_

Proton collisions data taking AlCa Harvesting

Definition at line 159 of file Reco.py.

00160                                                             :
00161         """
00162         _alcaHarvesting_
00163 
00164         Proton collisions data taking AlCa Harvesting
00165 
00166         """
00167         if not 'skims' in args: return None
00168         options = defaultOptions
00169         options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__ 
00170         options.step = "ALCAHARVEST:"+('+'.join(args['skims']))
00171         options.name = "ALCAHARVEST"
00172         options.conditions = globalTag
00173  
00174         process = cms.Process("ALCAHARVEST")
00175         process.source = cms.Source("PoolSource")
00176         configBuilder = ConfigBuilder(options, process = process)
00177         configBuilder.prepare()
00178 
00179         #
00180         # customise process for particular job
00181         #
00182         process.source.processingMode = cms.untracked.string('RunsAndLumis')
00183         process.source.fileNames = cms.untracked(cms.vstring())
00184         process.maxEvents.input = -1
00185         process.dqmSaver.workflow = datasetName
00186         
00187         return process

def Reco::Reco::alcaSkim (   self,
  skims,
  args 
)
_alcaSkim_

AlcaReco processing & skims for proton collisions

Definition at line 93 of file Reco.py.

00094                                      :
00095         """
00096         _alcaSkim_
00097 
00098         AlcaReco processing & skims for proton collisions
00099 
00100         """
00101 
00102         step = ""
00103         if 'PromptCalibProd' in skims:
00104             step = "ALCA:PromptCalibProd" 
00105             skims.remove('PromptCalibProd')
00106         
00107         if len( skims ) > 0:
00108             if step != "":
00109                 step += ","
00110             step += "ALCAOUTPUT:"+('+'.join(skims))
00111                 
00112         options = Options()
00113         options.__dict__.update(defaultOptions.__dict__)
00114         options.scenario = self.cbSc
00115         options.step = step
00116         options.conditions = args['globaltag'] if 'globaltag' in args else 'None'
00117         options.triggerResultsProcess = 'RECO'
00118         
00119         process = cms.Process('ALCA')
00120         cb = ConfigBuilder(options, process = process)
00121 
00122         # Input source
00123         process.source = cms.Source(
00124            "PoolSource",
00125            fileNames = cms.untracked.vstring()
00126         )
00127 
00128         cb.prepare() 
00129 
00130         # FIXME: dirty hack..any way around this?
00131         # Tier0 needs the dataset used for ALCAHARVEST step to be a different data-tier
00132         if 'PromptCalibProd' in step:
00133             process.ALCARECOStreamPromptCalibProd.dataset.dataTier = cms.untracked.string('ALCAPROMPT')
00134 
00135         return process
00136 

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

Proton collisions data taking DQM Harvesting

Definition at line 137 of file Reco.py.

00138                                                                       :
00139         """
00140         _dqmHarvesting_
00141 
00142         Proton collisions data taking DQM Harvesting
00143 
00144         """
00145         options = defaultOptions
00146         options.scenario = self.cbSc
00147         options.step = "HARVESTING"+dqmSeq(args,':dqmHarvesting')
00148         options.name = "EDMtoMEConvert"
00149         options.conditions = globalTag
00150  
00151         process = cms.Process("HARVESTING")
00152         process.source = dqmIOSource(args)
00153         configBuilder = ConfigBuilder(options, process = process)
00154         configBuilder.prepare()
00155 
00156         harvestingMode(process,datasetName,args,rANDl=False)
00157         return process
00158 

def Reco::Reco::expressProcessing (   self,
  globalTag,
  args 
)
_expressProcessing_

Proton collision data taking express processing

Definition at line 63 of file Reco.py.

00064                                                   :
00065         """
00066         _expressProcessing_
00067 
00068         Proton collision data taking express processing
00069 
00070         """
00071         step = stepALCAPRODUCER(args['skims'])
00072         dqmStep= dqmSeq(args,'')
00073         options = Options()
00074         options.__dict__.update(defaultOptions.__dict__)
00075         options.scenario = self.cbSc
00076         options.step = 'RAW2DIGI,L1Reco,RECO'+step+',DQM'+dqmStep+',ENDJOB'
00077         dictIO(options,args)
00078         options.conditions = globalTag
00079         
00080         process = cms.Process('RECO')
00081         cb = ConfigBuilder(options, process = process, with_output = True)
00082 
00083         # Input source
00084         process.source = cms.Source("NewEventStreamFileReader",
00085             fileNames = cms.untracked.vstring()
00086         )
00087         cb.prepare()
00088 
00089         addMonitoring(process)
00090                 
00091         return process
00092 

def Reco::Reco::promptReco (   self,
  globalTag,
  args 
)
_promptReco_

Proton collision data taking prompt reco

Definition at line 33 of file Reco.py.

00034                                            :
00035         """
00036         _promptReco_
00037 
00038         Proton collision data taking prompt reco
00039 
00040         """
00041         step = stepALCAPRODUCER(args['skims'])
00042         dqmStep= dqmSeq(args,'')
00043         options = Options()
00044         options.__dict__.update(defaultOptions.__dict__)
00045         options.scenario = self.cbSc
00046         options.step = 'RAW2DIGI,L1Reco,RECO'+self.recoSeq+step+',DQM'+dqmStep+',ENDJOB'
00047         dictIO(options,args)
00048         options.conditions = 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         addMonitoring(process)
00060         
00061         return process
00062 


Member Data Documentation

Definition at line 22 of file Reco.py.

Definition at line 22 of file Reco.py.