CMS 3D CMS Logo

pp.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _pp_
4 
5 Scenario supporting proton collisions
6 
7 """
8 
9 import os
10 import sys
11 
12 from Configuration.DataProcessing.Reco import Reco
13 import FWCore.ParameterSet.Config as cms
14 from Configuration.DataProcessing.Modifiers import modifyExpress
15 
16 class pp(Reco):
17  def __init__(self):
18  Reco.__init__(self)
19  self.recoSeq=''
20  self.cbSc='pp'
21  self.addEI=True
22  self.promptCustoms= [ 'Configuration/DataProcessing/RecoTLR.customisePrompt' ]
23  self.expressCustoms=[ ]
25  self.expressModifiers = modifyExpress
26  self.visCustoms=[ ]
27  self.visModifiers = modifyExpress
28  """
29  _pp_
30 
31  Implement configuration building for data processing for proton
32  collision data taking
33 
34  """
35 
36 
37  def promptReco(self, globalTag, **args):
38  """
39  _promptReco_
40 
41  Proton collision data taking prompt reco
42 
43  """
44  if not 'skims' in args:
45  args['skims']=['@allForPrompt']
46 
47  if not 'customs' in args:
48  args['customs']= [ ]
49 
50  for c in self.promptCustoms:
51  args['customs'].append(c)
52 
53  process = Reco.promptReco(self,globalTag, **args)
54 
55  return process
56 
57  def expressProcessing(self, globalTag, **args):
58  """
59  _expressProcessing_
60 
61  Proton collision data taking express processing
62 
63  """
64  if not 'skims' in args:
65  args['skims']=['@allForExpress']
66 
67  if not 'customs' in args:
68  args['customs']=[ ]
69 
70  for c in self.expressCustoms:
71  args['customs'].append(c)
72 
73  process = Reco.expressProcessing(self,globalTag, **args)
74 
75  return process
76 
77  def visualizationProcessing(self, globalTag, **args):
78  """
79  _visualizationProcessing_
80 
81  Proton collision data taking visualization processing
82 
83  """
84  if not 'customs' in args:
85  args['customs']=[ ]
86 
87  for c in self.visCustoms:
88  args['customs'].append(c)
89 
90  process = Reco.visualizationProcessing(self,globalTag, **args)
91 
92  return process
93 
94  def alcaHarvesting(self, globalTag, datasetName, **args):
95  """
96  _alcaHarvesting_
97 
98  Proton collisions data taking AlCa Harvesting
99 
100  """
101 
102  if not 'customs' in args:
103  args['customs']=[ ]
104 
105  for c in self.alcaHarvCustoms:
106  args['customs'].append(c)
107 
108 
109  if not 'skims' in args and not 'alcapromptdataset' in args:
110  args['skims']=['BeamSpotByRun',
111  'BeamSpotByLumi',
112  'SiStripQuality']
113 
114  return Reco.alcaHarvesting(self, globalTag, datasetName, **args)
expressCustoms
Definition: pp.py:23
expressModifiers
Definition: pp.py:25
def expressProcessing(self, globalTag, args)
Definition: pp.py:57
def visualizationProcessing(self, globalTag, args)
Definition: pp.py:77
visCustoms
Definition: pp.py:26
Definition: Reco.py:1
Definition: pp.py:16
def promptReco(self, globalTag, args)
Definition: pp.py:37
visModifiers
Definition: pp.py:27
cbSc
Definition: pp.py:20
addEI
Definition: pp.py:21
def __init__(self)
Definition: pp.py:17
alcaHarvCustoms
Definition: pp.py:24
promptCustoms
Definition: pp.py:22
def alcaHarvesting(self, globalTag, datasetName, args)
Definition: pp.py:94
recoSeq
Definition: pp.py:19