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

Public Member Functions

def alcaSkim
 
def dqmHarvesting
 
def expressProcessing
 
def promptReco
 

Detailed Description

_cosmics_

Implement configuration building for data processing for cosmic
data taking

Definition at line 21 of file cosmics.py.

Member Function Documentation

def Impl.cosmics.cosmics.alcaSkim (   self,
  skims,
  args 
)
_alcaSkim_

AlcaReco processing & skims for cosmics

Definition at line 111 of file cosmics.py.

112  def alcaSkim(self, skims, **args):
113  """
114  _alcaSkim_
115 
116  AlcaReco processing & skims for cosmics
117 
118  """
119 
120  globalTag = None
121  if 'globaltag' in args:
122  globalTag = args['globaltag']
123 
124  step = "ALCAOUTPUT:"
125  for skim in skims:
126  step += (skim+"+")
127  options = Options()
128  options.__dict__.update(defaultOptions.__dict__)
129  options.scenario = "cosmics"
130  options.step = step.rstrip('+')
131  options.isMC = False
132  options.isData = True
133  options.beamspot = None
134  options.eventcontent = None
135  options.relval = None
136  if globalTag != None :
137  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
138  options.triggerResultsProcess = 'RECO'
139 
140  process = cms.Process('ALCA')
141  cb = ConfigBuilder(options, process = process)
142 
143  # Input source
144  process.source = cms.Source(
145  "PoolSource",
146  fileNames = cms.untracked.vstring()
147  )
148 
149  cb.prepare()
150 
151  return process
152 
def Impl.cosmics.cosmics.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

Cosmic data taking DQM Harvesting

Definition at line 153 of file cosmics.py.

154  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
155  """
156  _dqmHarvesting_
157 
158  Cosmic data taking DQM Harvesting
159 
160  """
161  options = defaultOptions
162  options.scenario = "cosmics"
163  options.step = "HARVESTING:dqmHarvesting"
164  options.isMC = False
165  options.isData = True
166  options.beamspot = None
167  options.eventcontent = None
168  options.name = "EDMtoMEConvert"
169  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
170  options.arguments = ""
171  options.evt_type = ""
172  options.filein = []
173 
174  process = cms.Process("HARVESTING")
175  process.source = cms.Source("PoolSource")
176  configBuilder = ConfigBuilder(options, process = process)
177  configBuilder.prepare()
178 
179  #
180  # customise process for particular job
181  #
182  process.source.processingMode = cms.untracked.string('RunsAndLumis')
183  process.source.fileNames = cms.untracked(cms.vstring())
184  process.maxEvents.input = -1
185  process.dqmSaver.workflow = datasetName
186  process.dqmSaver.saveByLumiSection = 1
187  if args.has_key('referenceFile') and args.get('referenceFile', ''):
188  process.DQMStore.referenceFileName = \
189  cms.untracked.string(args['referenceFile'])
190 
191  return process
def Impl.cosmics.cosmics.expressProcessing (   self,
  globalTag,
  writeTiers = [],
  args 
)
_expressProcessing_

Cosmic data taking express processing

Definition at line 74 of file cosmics.py.

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

74 
75  def expressProcessing(self, globalTag, writeTiers = [], **args):
76  """
77  _expressProcessing_
78 
79  Cosmic data taking express processing
80 
81  """
82 
83  skims = ['SiStripCalZeroBias',
84  'MuAlCalIsolatedMu']
85  step = stepALCAPRODUCER(skims)
86  options = Options()
87  options.__dict__.update(defaultOptions.__dict__)
88  options.scenario = "cosmics"
89  options.step = 'RAW2DIGI,L1Reco,RECO'+step+',L1HwVal,DQM,ENDJOB'
90  options.isMC = False
91  options.isData = True
92  options.beamspot = None
93  options.eventcontent = ','.join(writeTiers)
94  options.datatier = ','.join(writeTiers)
95  options.magField = 'AutoFromDBCurrent'
96  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
97  options.relval = False
98 
99  process = cms.Process('RECO')
100  cb = ConfigBuilder(options, process = process, with_output = True)
101 
102  # Input source
103  process.source = cms.Source("NewEventStreamFileReader",
104  fileNames = cms.untracked.vstring()
105  )
106  cb.prepare()
107 
108  customiseCosmicData(process)
109  return process
110 
def stepALCAPRODUCER
Definition: Utils.py:9
def customiseCosmicData
Definition: RecoTLR.py:59
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def Impl.cosmics.cosmics.promptReco (   self,
  globalTag,
  writeTiers = ['RECO'],
  args 
)
_promptReco_

Cosmic data taking prompt reco

Definition at line 31 of file cosmics.py.

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

31 
32  def promptReco(self, globalTag, writeTiers = ['RECO'], **args):
33  """
34  _promptReco_
35 
36  Cosmic data taking prompt reco
37 
38  """
39 
40  skims = ['TkAlBeamHalo',
41  'MuAlBeamHaloOverlaps',
42  'MuAlBeamHalo',
43  'TkAlCosmics0T',
44  'MuAlGlobalCosmics',
45  'MuAlCalIsolatedMu',
46  'HcalCalHOCosmics',
47  'DtCalib']
48  step = stepALCAPRODUCER(skims)
49  options = Options()
50  options.__dict__.update(defaultOptions.__dict__)
51  options.scenario = "cosmics"
52  options.step = 'RAW2DIGI,L1Reco,RECO'+step+',L1HwVal,DQM,ENDJOB'
53  options.isMC = False
54  options.isData = True
55  options.beamspot = None
56  options.eventcontent = ','.join(writeTiers)
57  options.datatier = ','.join(writeTiers)
58  options.magField = 'AutoFromDBCurrent'
59  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
60  options.relval = False
61 
62  process = cms.Process('RECO')
63  cb = ConfigBuilder(options, process = process, with_output = True)
64 
65  # Input source
66  process.source = cms.Source("PoolSource",
67  fileNames = cms.untracked.vstring()
68  )
69  cb.prepare()
70 
71  customiseCosmicData(process)
72  return process
73 
def stepALCAPRODUCER
Definition: Utils.py:9
def customiseCosmicData
Definition: RecoTLR.py:59
static std::string join(char **cmd)
Definition: RemoteFile.cc:18