CMS 3D CMS Logo

pp.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
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.isRepacked=False
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  def _setRepackedFlag(self,args):
37  if not 'repacked' in args:
38  args['repacked']= True
39 
40  def promptReco(self, globalTag, **args):
41  """
42  _promptReco_
43 
44  Proton collision data taking prompt reco
45 
46  """
47  if not 'skims' in args:
48  args['skims']=['@allForPrompt']
49 
50  if not 'customs' in args:
51  args['customs']= [ ]
52 
53  for c in self.promptCustoms:
54  args['customs'].append(c)
55 
56  if self.isRepacked:
57  self._setRepackedFlag(args)
58 
59  process = Reco.promptReco(self,globalTag, **args)
60 
61  return process
62 
63  def expressProcessing(self, globalTag, **args):
64  """
65  _expressProcessing_
66 
67  Proton collision data taking express processing
68 
69  """
70  if not 'skims' in args:
71  args['skims']=['@allForExpress']
72 
73  if not 'customs' in args:
74  args['customs']=[ ]
75 
76  for c in self.expressCustoms:
77  args['customs'].append(c)
78 
79  if self.isRepacked:
80  self._setRepackedFlag(args)
81 
82  process = Reco.expressProcessing(self,globalTag, **args)
83 
84  return process
85 
86  def visualizationProcessing(self, globalTag, **args):
87  """
88  _visualizationProcessing_
89 
90  Proton collision data taking visualization processing
91 
92  """
93  if not 'customs' in args:
94  args['customs']=[ ]
95 
96  for c in self.visCustoms:
97  args['customs'].append(c)
98 
99  if self.isRepacked:
100  self._setRepackedFlag(args)
101 
102  process = Reco.visualizationProcessing(self,globalTag, **args)
103 
104  return process
105 
106  def alcaHarvesting(self, globalTag, datasetName, **args):
107  """
108  _alcaHarvesting_
109 
110  Proton collisions data taking AlCa Harvesting
111 
112  """
113 
114  if not 'customs' in args:
115  args['customs']=[ ]
116 
117  for c in self.alcaHarvCustoms:
118  args['customs'].append(c)
119 
120 
121  if not 'skims' in args and not 'alcapromptdataset' in args:
122  args['skims']=['BeamSpotByRun',
123  'BeamSpotByLumi',
124  'SiStripQuality']
125 
126  return Reco.alcaHarvesting(self, globalTag, datasetName, **args)
expressCustoms
Definition: pp.py:23
expressModifiers
Definition: pp.py:25
isRepacked
Definition: pp.py:21
def expressProcessing(self, globalTag, args)
Definition: pp.py:63
def visualizationProcessing(self, globalTag, args)
Definition: pp.py:86
visCustoms
Definition: pp.py:26
Definition: Reco.py:1
Definition: pp.py:16
def promptReco(self, globalTag, args)
Definition: pp.py:40
def _setRepackedFlag(self, args)
Definition: pp.py:36
visModifiers
Definition: pp.py:27
cbSc
Definition: pp.py:20
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:106
recoSeq
Definition: pp.py:19