CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cosmics.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _cosmics_
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 
14 class cosmics(Reco):
15  """
16  _cosmics_
17 
18  Implement configuration building for data processing for cosmic
19  data taking
20 
21  """
22 
23 
24  def promptReco(self, globalTag, **args):
25  """
26  _promptReco_
27 
28  Cosmic data taking prompt reco
29 
30  """
31  if not 'skims' in args:
32  args['skims']= ['@allForPromptCosmics']
33 
34  if not 'customs' in args:
35  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
36  else:
37  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
38 
39  process = Reco.promptReco(self,globalTag, **args)
40 
41  return process
42 
43 
44  def expressProcessing(self, globalTag, **args):
45  """
46  _expressProcessing_
47 
48  Cosmic data taking express processing
49 
50  """
51 
52  if not 'skims' in args:
53  args['skims']= ['@allForExpressCosmics']
54 
55  if not 'customs' in args:
56  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
57  else:
58  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
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.customiseCosmicData']
73  else:
74  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
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  if not 'skims' in args and not 'alcapromptdataset' in args:
89  args['skims']=['SiStripQuality']
90 
91  return Reco.alcaHarvesting(self, globalTag, datasetName, **args)
Definition: Reco.py:1
def visualizationProcessing
Definition: cosmics.py:63