CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataScouting.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _DataScouting_
4 
5 Scenario supporting proton collisions data scouting
6 Inheriting to reco.
7 Really against OO principles, but pragmatism should prevale, I guess.
8 """
9 
10 import os
11 import sys
12 
14 from Configuration.DataProcessing.Utils import stepALCAPRODUCER,addMonitoring,dictIO,dqmIOSource,harvestingMode,dqmSeq,gtNameAndConnect
15 import FWCore.ParameterSet.Config as cms
16 from Configuration.DataProcessing.RecoTLR import customisePrompt,customiseExpress
17 
19  """
20  _DataScouting_
21 
22  Implement configuration building for data processing for proton
23  collision data taking
24 
25  """
26 
27  def promptReco(self, globalTag, **args):
28  """
29  _promptReco_
30 
31  Collision data, data scouting (dst stream).
32  This method provides the scheleton process for the dataScouting.
33  dpiparo 17-7-2012
34  I follow the structure of the package.
35  """
36  options = Options()
37  options.scenario = 'pp'
38  options.__dict__.update(defaultOptions.__dict__)
39  options.step = 'DQM:DQM/DataScouting/dataScouting_cff.dataScoutingDQMSequence,ENDJOB'
40  dictIO(options,args)
41  options.conditions = gtNameAndConnect(globalTag, args)
42 
43  process = cms.Process('DataScouting')
44  cb = ConfigBuilder(options, process = process, with_output = True)
45 
46  # Input source
47  process.source = cms.Source("PoolSource",
48  fileNames = cms.untracked.vstring()
49  )
50  cb.prepare()
51 
52  return process
53 
54  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
55  """
56  _dqmHarvesting_
57 
58  Proton collisions data taking DQM Harvesting
59 
60  """
61  options = defaultOptions
62  options.scenario = 'pp'
63  options.step = "HARVESTING"+dqmSeq(args,':DQMOffline')
64  options.name = "EDMtoMEConvert"
65  options.conditions = gtNameAndConnect(globalTag, args)
66 
67  process = cms.Process("HARVESTING")
68  process.source = dqmIOSource(args)
69  configBuilder = ConfigBuilder(options, process = process)
70  configBuilder.prepare()
71 
72  harvestingMode(process,datasetName,args,rANDl=False)
73  return process
def dqmSeq
Definition: Utils.py:130
def gtNameAndConnect
Definition: Utils.py:136
def dqmIOSource
Definition: Utils.py:103
def dictIO
Definition: Utils.py:122
def harvestingMode
Definition: Utils.py:114