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

Public Member Functions

def alcaSkim
 
def dqmHarvesting
 
def promptReco
 
def skimsIfNotGiven
 

Detailed Description

_AlCa_

Implement configuration building for data processing for proton
collision data taking

Definition at line 16 of file AlCa.py.

Member Function Documentation

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

AlcaReco processing & skims for proton collisions

Definition at line 51 of file AlCa.py.

References join().

51 
52  def alcaSkim(self, skims, **args):
53  """
54  _alcaSkim_
55 
56  AlcaReco processing & skims for proton collisions
57 
58  """
59  options = Options()
60  options.__dict__.update(defaultOptions.__dict__)
61  options.scenario = "pp"
62  options.step = "ALCAOUTPUT:"+('+'.join(skims))
63  options.conditions = args['globaltag'] if 'globaltag' in args else 'None'
64  if args.has_key('globalTagConnect') and args['globalTagConnect'] != '':
65  options.conditions += ','+args['globalTagConnect']
66 
67  options.triggerResultsProcess = 'RECO'
68 
69  process = cms.Process('ALCA')
70  cb = ConfigBuilder(options, process = process)
71 
72  # Input source
73  process.source = cms.Source(
74  "PoolSource",
75  fileNames = cms.untracked.vstring()
76  )
77 
78  cb.prepare()
79 
80  return process
81 
def alcaSkim
Definition: AlCa.py:51
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def Impl.AlCa.AlCa.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

Proton collisions data taking DQM Harvesting

Definition at line 82 of file AlCa.py.

References Utils.dqmIOSource(), Utils.gtNameAndConnect(), and Utils.harvestingMode().

82 
83  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
84  """
85  _dqmHarvesting_
86 
87  Proton collisions data taking DQM Harvesting
88 
89  """
90  options = defaultOptions
91  options.scenario = "pp"
92  options.step = "HARVESTING:alcaHarvesting"
93  options.name = "EDMtoMEConvert"
94  options.conditions = gtNameAndConnect(globalTag, args)
95 
96  process = cms.Process("HARVESTING")
97  process.source = dqmIOSource(args)
98  configBuilder = ConfigBuilder(options, process = process)
99  configBuilder.prepare()
100 
101  #
102  # customise process for particular job
103  #
104  #process.source.processingMode = cms.untracked.string('RunsAndLumis')
105  #process.source.fileNames = cms.untracked(cms.vstring())
106  #process.maxEvents.input = -1
107  #process.dqmSaver.workflow = datasetName
108  #process.dqmSaver.saveByLumiSection = 1
109  #if args.has_key('referenceFile') and args.get('referenceFile', ''):
110  # process.DQMStore.referenceFileName = \
111  # cms.untracked.string(args['referenceFile'])
112  harvestingMode(process,datasetName,args)
113 
114  return process
def dqmHarvesting
Definition: AlCa.py:82
def gtNameAndConnect
Definition: Utils.py:137
def dqmIOSource
Definition: Utils.py:103
def harvestingMode
Definition: Utils.py:114
def Impl.AlCa.AlCa.promptReco (   self,
  globalTag,
  args 
)

Definition at line 29 of file AlCa.py.

References Utils.dictIO(), Utils.gtNameAndConnect(), Impl.AlCaPhiSymEcal.AlCaPhiSymEcal.skims, Impl.AlCaP0.AlCaP0.skims, Impl.AlCaTestEnable.AlCaTestEnable.skims, Impl.AlCaLumiPixels.AlCaLumiPixels.skims, and Utils.stepALCAPRODUCER().

29 
30  def promptReco(self, globalTag, **args):
31  if not 'skims' in args:
32  args['skims']=self.skims
33  step = stepALCAPRODUCER(args['skims'])
34  options = Options()
35  options.__dict__.update(defaultOptions.__dict__)
36  options.scenario = "pp"
37  options.step = step
38  dictIO(options,args)
39  options.conditions = gtNameAndConnect(globalTag, args)
40 
41  process = cms.Process('RECO')
42  cb = ConfigBuilder(options, process = process, with_output = True)
43 
44  # Input source
45  process.source = cms.Source("PoolSource",
46  fileNames = cms.untracked.vstring()
47  )
48  cb.prepare()
49 
50  return process
def promptReco
Definition: AlCa.py:29
def stepALCAPRODUCER
Definition: Utils.py:9
def gtNameAndConnect
Definition: Utils.py:137
def dictIO
Definition: Utils.py:123
def Impl.AlCa.AlCa.skimsIfNotGiven (   self,
  args,
  sl 
)

Definition at line 25 of file AlCa.py.

25 
26  def skimsIfNotGiven(self,args,sl):
27  if not 'skims' in args:
28  args['skims']=sl
def skimsIfNotGiven
Definition: AlCa.py:25