CMS 3D CMS Logo

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  def __init__(self):
16  Reco.__init__(self)
17  self.recoSeq=''
18  self.cbSc='cosmics'
19  """
20  _cosmics_
21 
22  Implement configuration building for data processing for cosmic
23  data taking
24 
25  """
26 
27 
28  def promptReco(self, globalTag, **args):
29  """
30  _promptReco_
31 
32  Cosmic data taking prompt reco
33 
34  """
35  if not 'skims' in args:
36  args['skims']= ['@allForPromptCosmics']
37  if not 'customs' in args:
38  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
39  else:
40  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
41  process = Reco.promptReco(self,globalTag, **args)
42 
43  return process
44 
45 
46  def expressProcessing(self, globalTag, **args):
47  """
48  _expressProcessing_
49 
50  Cosmic data taking express processing
51 
52  """
53 
54  if not 'skims' in args:
55  args['skims']= ['@allForExpressCosmics']
56  if not 'customs' in args:
57  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
58  else:
59  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
60  process = Reco.expressProcessing(self,globalTag, **args)
61 
62  return process
63 
64  def visualizationProcessing(self, globalTag, **args):
65  """
66  _visualizationProcessing_
67 
68  Cosmic data taking visualization processing
69 
70  """
71 
72  if not 'customs' in args:
73  args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
74  else:
75  args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
76  process = Reco.visualizationProcessing(self,globalTag, **args)
77 
78  process.reconstructionCosmics.remove(process.lumiProducer)
79 
80  return process
81 
82  def alcaHarvesting(self, globalTag, datasetName, **args):
83  """
84  _alcaHarvesting_
85 
86  Proton collisions data taking AlCa Harvesting
87 
88  """
89 
90  if not 'skims' in args and not 'alcapromptdataset' in args:
91  args['skims']=['SiStripQuality']
92 
93  return Reco.alcaHarvesting(self, globalTag, datasetName, **args)
Impl.cosmics.cosmics
Definition: cosmics.py:14
Impl.cosmics.cosmics.alcaHarvesting
def alcaHarvesting(self, globalTag, datasetName, **args)
Definition: cosmics.py:82
Impl.cosmics.cosmics.__init__
def __init__(self)
Definition: cosmics.py:15
Impl.cosmics.cosmics.visualizationProcessing
def visualizationProcessing(self, globalTag, **args)
Definition: cosmics.py:64
Impl.cosmics.cosmics.recoSeq
recoSeq
Definition: cosmics.py:17
mps_setup.append
append
Definition: mps_setup.py:85
Reco
Definition: Reco.py:1
Impl.cosmics.cosmics.promptReco
def promptReco(self, globalTag, **args)
Definition: cosmics.py:28
Impl.cosmics.cosmics.expressProcessing
def expressProcessing(self, globalTag, **args)
Definition: cosmics.py:46
Impl.cosmics.cosmics.cbSc
cbSc
Definition: cosmics.py:18