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
def skimming

Public Attributes

 cbSc
 recoSeq

Detailed Description

Definition at line 17 of file Reco.py.


Constructor & Destructor Documentation

def Reco::Reco::__init__ (   self)

Definition at line 18 of file Reco.py.

00019                       :
00020         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 155 of file Reco.py.

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

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

AlcaReco processing & skims for proton collisions

Definition at line 89 of file Reco.py.

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

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

Proton collisions data taking DQM Harvesting

Definition at line 133 of file Reco.py.

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

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

Proton collision data taking express processing

Definition at line 59 of file Reco.py.

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

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

Proton collision data taking prompt reco

Definition at line 29 of file Reco.py.

00030                                            :
00031         """
00032         _promptReco_
00033 
00034         Proton collision data taking prompt reco
00035 
00036         """
00037         step = stepALCAPRODUCER(args['skims'])
00038         dqmStep= dqmSeq(args,'')
00039         options = Options()
00040         options.__dict__.update(defaultOptions.__dict__)
00041         options.scenario = self.cbSc
00042         options.step = 'RAW2DIGI,L1Reco,RECO'+self.recoSeq+step+',DQM'+dqmStep+',ENDJOB'
00043         dictIO(options,args)
00044         options.conditions = globalTag
00045         
00046         process = cms.Process('RECO')
00047         cb = ConfigBuilder(options, process = process, with_output = True)
00048 
00049         # Input source
00050         process.source = cms.Source("PoolSource",
00051             fileNames = cms.untracked.vstring()
00052         )
00053         cb.prepare()
00054 
00055         addMonitoring(process)
00056         
00057         return process
00058 

def Reco::Reco::skimming (   self,
  skims,
  globalTag,
  options 
)
_skimming_

skimming method overload for the prompt skiming

Definition at line 184 of file Reco.py.

00185                                                   :
00186         """
00187         _skimming_
00188 
00189         skimming method overload for the prompt skiming
00190         
00191         """
00192         options = defaultOptions
00193         options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__
00194         options.step = "SKIM:"+('+'.join(skims))
00195         options.name = "SKIM"
00196         options.conditions = globalTag
00197         process = cms.Process("SKIM")
00198         process.source = cms.Source("PoolSource")
00199         configBuilder = ConfigBuilder(options, process = process)
00200         configBuilder.prepare()
00201 
00202         return process
        

Member Data Documentation

Definition at line 18 of file Reco.py.

Definition at line 18 of file Reco.py.