CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.addEI=True
22  self.isRepacked=False
23  self.promptCustoms= [ 'Configuration/DataProcessing/RecoTLR.customisePrompt' ]
24  self.expressCustoms=[ ]
26  self.expressModifiers = modifyExpress
27  self.visCustoms=[ ]
28  self.visModifiers = modifyExpress
29  """
30  _pp_
31 
32  Implement configuration building for data processing for proton
33  collision data taking
34 
35  """
36 
37  def _setRepackedFlag(self,args):
38  if not 'repacked' in args:
39  args['repacked']= True
40 
41  def promptReco(self, globalTag, **args):
42  """
43  _promptReco_
44 
45  Proton collision data taking prompt reco
46 
47  """
48  if not 'skims' in args:
49  args['skims']=['@allForPrompt']
50 
51  if not 'customs' in args:
52  args['customs']= [ ]
53 
54  for c in self.promptCustoms:
55  args['customs'].append(c)
56 
57  if self.isRepacked:
58  self._setRepackedFlag(args)
59 
60  process = Reco.promptReco(self,globalTag, **args)
61 
62  return process
63 
64  def expressProcessing(self, globalTag, **args):
65  """
66  _expressProcessing_
67 
68  Proton collision data taking express processing
69 
70  """
71  if not 'skims' in args:
72  args['skims']=['@allForExpress']
73 
74  if not 'customs' in args:
75  args['customs']=[ ]
76 
77  for c in self.expressCustoms:
78  args['customs'].append(c)
79 
80  if self.isRepacked:
81  self._setRepackedFlag(args)
82 
83  process = Reco.expressProcessing(self,globalTag, **args)
84 
85  return process
86 
87  def visualizationProcessing(self, globalTag, **args):
88  """
89  _visualizationProcessing_
90 
91  Proton collision data taking visualization processing
92 
93  """
94  if not 'customs' in args:
95  args['customs']=[ ]
96 
97  for c in self.visCustoms:
98  args['customs'].append(c)
99 
100  if self.isRepacked:
101  self._setRepackedFlag(args)
102 
103  process = Reco.visualizationProcessing(self,globalTag, **args)
104 
105  return process
106 
107  def alcaHarvesting(self, globalTag, datasetName, **args):
108  """
109  _alcaHarvesting_
110 
111  Proton collisions data taking AlCa Harvesting
112 
113  """
114 
115  if not 'customs' in args:
116  args['customs']=[ ]
117 
118  for c in self.alcaHarvCustoms:
119  args['customs'].append(c)
120 
121 
122  if not 'skims' in args and not 'alcapromptdataset' in args:
123  args['skims']=['BeamSpotByRun',
124  'BeamSpotByLumi',
125  'SiStripQuality']
126 
127  return Reco.alcaHarvesting(self, globalTag, datasetName, **args)
expressCustoms
Definition: pp.py:24
def promptReco
Definition: pp.py:41
expressModifiers
Definition: pp.py:26
boost::dynamic_bitset append(const boost::dynamic_bitset<> &bs1, const boost::dynamic_bitset<> &bs2)
this method takes two bitsets bs1 and bs2 and returns result of bs2 appended to the end of bs1 ...
isRepacked
Definition: pp.py:22
visCustoms
Definition: pp.py:27
Definition: Reco.py:1
Definition: pp.py:16
visModifiers
Definition: pp.py:28
cbSc
Definition: pp.py:20
addEI
Definition: pp.py:21
def _setRepackedFlag
Definition: pp.py:37
def visualizationProcessing
Definition: pp.py:87
def expressProcessing
Definition: pp.py:64
alcaHarvCustoms
Definition: pp.py:25
promptCustoms
Definition: pp.py:23
def __init__
Definition: pp.py:17
recoSeq
Definition: pp.py:19
def alcaHarvesting
Definition: pp.py:107