CMS 3D CMS Logo

DataScouting.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
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  def __init__(self):
20  Scenario.__init__(self)
21  """
22  _DataScouting_
23 
24  Implement configuration building for data processing for proton
25  collision data taking
26 
27  """
28 
29  def promptReco(self, globalTag, **args):
30  """
31  _promptReco_
32 
33  Collision data, data scouting (dst stream).
34  This method provides the scheleton process for the dataScouting.
35  dpiparo 17-7-2012
36  I follow the structure of the package.
37  """
38  options = Options()
39  options.scenario = 'pp'
40  options.__dict__.update(defaultOptions.__dict__)
41  options.step = 'DQM:DQM/DataScouting/dataScouting_cff.dataScoutingDQMSequence,ENDJOB'
42  dictIO(options,args)
43  options.conditions = gtNameAndConnect(globalTag, args)
44 
45  process = cms.Process('DataScouting', self.eras)
46  cb = ConfigBuilder(options, process = process, with_output = True)
47 
48  # Input source
49  process.source = cms.Source("PoolSource",
50  fileNames = cms.untracked.vstring()
51  )
52  cb.prepare()
53 
54  return process
55 
56  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
57  """
58  _dqmHarvesting_
59 
60  Proton collisions data taking DQM Harvesting
61 
62  """
63  options = defaultOptions
64  options.scenario = 'pp'
65  options.step = "HARVESTING"+dqmSeq(args,':DQMOffline')
66  options.name = "EDMtoMEConvert"
67  options.conditions = gtNameAndConnect(globalTag, args)
68 
69  process = cms.Process("HARVESTING", self.eras)
70  process.source = dqmIOSource(args)
71  configBuilder = ConfigBuilder(options, process = process)
72  configBuilder.prepare()
73 
74  harvestingMode(process,datasetName,args,rANDl=False)
75  return process
def promptReco(self, globalTag, args)
Definition: DataScouting.py:29
def harvestingMode(process, datasetName, args, rANDl=True)
Definition: Utils.py:114
def dqmSeq(args, default)
Definition: Utils.py:129
def gtNameAndConnect(globalTag, args)
Definition: Utils.py:149
def dictIO(options, args)
Definition: Utils.py:121
def dqmHarvesting(self, datasetName, runNumber, globalTag, args)
Definition: DataScouting.py:56
def dqmIOSource(args)
Definition: Utils.py:103