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

Public Member Functions

def alcaHarvesting
 
def alcaSkim
 
def dqmHarvesting
 
def expressProcessing
 
def promptReco
 

Detailed Description

_pp_

Implement configuration building for data processing for proton
collision data taking

Definition at line 21 of file pp.py.

Member Function Documentation

def Impl.pp.pp.alcaHarvesting (   self,
  globalTag,
  args 
)
_alcaHarvesting_

Proton collisions data taking AlCa Harvesting

Definition at line 218 of file pp.py.

219  def alcaHarvesting(self, globalTag, **args):
220  """
221  _alcaHarvesting_
222 
223  Proton collisions data taking AlCa Harvesting
224 
225  """
226  options = defaultOptions
227  options.scenario = "pp"
228  options.step = "ALCAHARVEST:BeamSpotByRun+BeamSpotByLumi"
229  options.isMC = False
230  options.isData = True
231  options.beamspot = None
232  options.eventcontent = None
233  options.name = "ALCAHARVEST"
234  options.conditions = globalTag
235  options.arguments = ""
236  options.evt_type = ""
237  options.filein = []
238 
239  process = cms.Process("ALCAHARVEST")
240  process.source = cms.Source("PoolSource")
241  configBuilder = ConfigBuilder(options, process = process)
242  configBuilder.prepare()
243 
244  #
245  # customise process for particular job
246  #
247  process.source.processingMode = cms.untracked.string('RunsAndLumis')
248  process.source.fileNames = cms.untracked(cms.vstring())
249  process.maxEvents.input = -1
250 
251  return process
252 
def alcaHarvesting
Definition: pp.py:218
def Impl.pp.pp.alcaSkim (   self,
  skims,
  args 
)
_alcaSkim_

AlcaReco processing & skims for proton collisions

Definition at line 122 of file pp.py.

123  def alcaSkim(self, skims, **args):
124  """
125  _alcaSkim_
126 
127  AlcaReco processing & skims for proton collisions
128 
129  """
130 
131  globalTag = None
132  if 'globaltag' in args:
133  globalTag = args['globaltag']
134 
135  step = ""
136  if 'PromptCalibProd' in skims:
137  step = "ALCA:PromptCalibProd"
138  skims.remove('PromptCalibProd')
139 
140  if len( skims ) > 0:
141  if step != "":
142  step += ","
143  step += "ALCAOUTPUT:"
144 
145  for skim in skims:
146  step += (skim+"+")
147  options = Options()
148  options.__dict__.update(defaultOptions.__dict__)
149  options.scenario = "pp"
150  options.step = step.rstrip('+')
151  options.isMC = False
152  options.isData = True
153  options.beamspot = None
154  options.eventcontent = None
155  options.relval = None
156  if globalTag != None :
157  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
158  options.triggerResultsProcess = 'RECO'
159 
160  process = cms.Process('ALCA')
161  cb = ConfigBuilder(options, process = process)
162 
163  # Input source
164  process.source = cms.Source(
165  "PoolSource",
166  fileNames = cms.untracked.vstring()
167  )
168 
169  cb.prepare()
170 
171  # FIXME: dirty hack..any way around this?
172  # Tier0 needs the dataset used for ALCAHARVEST step to be a different data-tier
173  if 'PromptCalibProd' in step:
174  process.ALCARECOStreamPromptCalibProd.dataset.dataTier = cms.untracked.string('ALCAPROMPT')
175 
176  return process
177 
def alcaSkim
Definition: pp.py:122
def Impl.pp.pp.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

Proton collisions data taking DQM Harvesting

Definition at line 178 of file pp.py.

179  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
180  """
181  _dqmHarvesting_
182 
183  Proton collisions data taking DQM Harvesting
184 
185  """
186  options = defaultOptions
187  options.scenario = "pp"
188  options.step = "HARVESTING:dqmHarvesting"
189  options.isMC = False
190  options.isData = True
191  options.beamspot = None
192  options.eventcontent = None
193  options.name = "EDMtoMEConvert"
194  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
195  options.arguments = ""
196  options.evt_type = ""
197  options.filein = []
198 
199  process = cms.Process("HARVESTING")
200  process.source = cms.Source("PoolSource")
201  configBuilder = ConfigBuilder(options, process = process)
202  configBuilder.prepare()
203 
204  #
205  # customise process for particular job
206  #
207  process.source.processingMode = cms.untracked.string('RunsAndLumis')
208  process.source.fileNames = cms.untracked(cms.vstring())
209  process.maxEvents.input = -1
210  process.dqmSaver.workflow = datasetName
211  process.dqmSaver.saveByLumiSection = 1
212  if args.has_key('referenceFile') and args.get('referenceFile', ''):
213  process.DQMStore.referenceFileName = \
214  cms.untracked.string(args['referenceFile'])
215 
216  return process
217 
def dqmHarvesting
Definition: pp.py:178
def Impl.pp.pp.expressProcessing (   self,
  globalTag,
  writeTiers = [],
  args 
)
_expressProcessing_

Proton collision data taking express processing

Definition at line 81 of file pp.py.

References RecoTLR.customiseExpress(), join(), and Utils.stepALCAPRODUCER().

81 
82  def expressProcessing(self, globalTag, writeTiers = [], **args):
83  """
84  _expressProcessing_
85 
86  Proton collision data taking express processing
87 
88  """
89 
90  skims = ['SiStripCalZeroBias',
91  'TkAlMinBias',
92  'DtCalib',
93  'MuAlCalIsolatedMu']
94  step = stepALCAPRODUCER(skims)
95  options = Options()
96  options.__dict__.update(defaultOptions.__dict__)
97  options.scenario = "pp"
98  options.step = 'RAW2DIGI,L1Reco,RECO'+step+',L1HwVal,DQM,ENDJOB'
99  options.isMC = False
100  options.isData = True
101  options.beamspot = None
102  options.eventcontent = ','.join(writeTiers)
103  options.datatier = ','.join(writeTiers)
104  options.magField = 'AutoFromDBCurrent'
105  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
106  options.relval = False
107 
108  process = cms.Process('RECO')
109  cb = ConfigBuilder(options, process = process, with_output = True)
110 
111  # Input source
112  process.source = cms.Source("NewEventStreamFileReader",
113  fileNames = cms.untracked.vstring()
114  )
115  cb.prepare()
116 
117  #add the former top level patches here
118  customiseExpress(process)
119 
120  return process
121 
def stepALCAPRODUCER
Definition: Utils.py:9
def expressProcessing
Definition: pp.py:81
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def customiseExpress
Definition: RecoTLR.py:69
def Impl.pp.pp.promptReco (   self,
  globalTag,
  writeTiers = ['RECO'],
  args 
)
_promptReco_

Proton collision data taking prompt reco

Definition at line 31 of file pp.py.

References RecoTLR.customisePrompt(), join(), and Utils.stepALCAPRODUCER().

31 
32  def promptReco(self, globalTag, writeTiers = ['RECO'], **args):
33  """
34  _promptReco_
35 
36  Proton collision data taking prompt reco
37 
38  """
39 
40  skims = ['SiStripCalZeroBias',
41  'TkAlMinBias',
42  'TkAlMuonIsolated',
43  'MuAlCalIsolatedMu',
44  'MuAlOverlaps',
45  'HcalCalIsoTrk',
46  'HcalCalDijets',
47  'SiStripCalMinBias',
48  'EcalCalElectron',
49  'DtCalib',
50  'TkAlJpsiMuMu',
51  'TkAlUpsilonMuMu',
52  'TkAlZMuMu']
53  step = stepALCAPRODUCER(skims)
54  options = Options()
55  options.__dict__.update(defaultOptions.__dict__)
56  options.scenario = "pp"
57  options.step = 'RAW2DIGI,L1Reco,RECO'+step+',L1HwVal,DQM,ENDJOB'
58  options.isMC = False
59  options.isData = True
60  options.beamspot = None
61  options.eventcontent = ','.join(writeTiers)
62  options.datatier = ','.join(writeTiers)
63  options.magField = 'AutoFromDBCurrent'
64  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
65  options.relval = False
66 
67  process = cms.Process('RECO')
68  cb = ConfigBuilder(options, process = process, with_output = True)
69 
70  # Input source
71  process.source = cms.Source("PoolSource",
72  fileNames = cms.untracked.vstring()
73  )
74  cb.prepare()
75 
76  #add the former top level patches here
77  customisePrompt(process)
78 
79  return process
80 
def promptReco
Definition: pp.py:31
def stepALCAPRODUCER
Definition: Utils.py:9
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def customisePrompt
Definition: RecoTLR.py:74