CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cosmicsRun2.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _cosmicsRun2_
4 
5 Scenario supporting cosmic data taking
6 
7 """
8 
9 import os
10 import sys
11 
12 from Configuration.DataProcessing.Reco import Reco
13 
15  def __init__(self):
16  self.recoSeq=''
17  self.cbSc='cosmics'
18  """
19  _cosmicsRun2_
20 
21  Implement configuration building for data processing for cosmic
22  data taking in Run2
23 
24  """
25 
26 
27  def promptReco(self, globalTag, **args):
28  """
29  _promptReco_
30 
31  Cosmic data taking prompt reco
32 
33  """
34  if not 'skims' in args:
35  args['skims']= ['@allForPromptCosmics']
36  if not 'customs' in args:
37  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicDataRun2']
38  else:
39  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicDataRun2')
40  process = Reco.promptReco(self,globalTag, **args)
41 
42  return process
43 
44 
45  def expressProcessing(self, globalTag, **args):
46  """
47  _expressProcessing_
48 
49  Cosmic data taking express processing
50 
51  """
52 
53  if not 'skims' in args:
54  args['skims']= ['@allForExpressCosmics']
55  if not 'customs' in args:
56  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicDataRun2']
57  else:
58  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicDataRun2')
59  process = Reco.expressProcessing(self,globalTag, **args)
60 
61  return process
62 
63  def visualizationProcessing(self, globalTag, **args):
64  """
65  _visualizationProcessing_
66 
67  Cosmic data taking visualization processing
68 
69  """
70 
71  if not 'customs' in args:
72  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicDataRun2']
73  else:
74  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicDataRun2')
75  process = Reco.visualizationProcessing(self,globalTag, **args)
76 
77  process.reconstructionCosmics.remove(process.lumiProducer)
78 
79  return process
80 
81  def alcaHarvesting(self, globalTag, datasetName, **args):
82  """
83  _alcaHarvesting_
84 
85  Proton collisions data taking AlCa Harvesting
86 
87  """
88 
89  if not 'skims' in args and not 'alcapromptdataset' in args:
90  args['skims']=['SiStripQuality']
91 
92  return Reco.alcaHarvesting(self, globalTag, datasetName, **args)
Definition: Reco.py:1