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 from Configuration.DataProcessing.RecoTLR import customiseCosmicDataRun2
14 
16  def __init__(self):
17  self.recoSeq=''
18  self.cbSc='cosmics'
19  """
20  _cosmicsRun2_
21 
22  Implement configuration building for data processing for cosmic
23  data taking in Run2
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  process = Reco.promptReco(self,globalTag, **args)
38 
39  customiseCosmicDataRun2(process)
40  return process
41 
42 
43  def expressProcessing(self, globalTag, **args):
44  """
45  _expressProcessing_
46 
47  Cosmic data taking express processing
48 
49  """
50 
51  if not 'skims' in args:
52  args['skims']= ['@allForExpressCosmics']
53  process = Reco.expressProcessing(self,globalTag, **args)
54 
55  customiseCosmicDataRun2(process)
56  return process
57 
58  def visualizationProcessing(self, globalTag, **args):
59  """
60  _visualizationProcessing_
61 
62  Cosmic data taking visualization processing
63 
64  """
65 
66  process = Reco.visualizationProcessing(self,globalTag, **args)
67 
68  customiseCosmicDataRun2(process)
69  process.reconstructionCosmics.remove(process.lumiProducer)
70 
71  return process
72 
73  def alcaHarvesting(self, globalTag, datasetName, **args):
74  """
75  _alcaHarvesting_
76 
77  Proton collisions data taking AlCa Harvesting
78 
79  """
80 
81  if not 'skims' in args and not 'alcapromptdataset' in args:
82  args['skims']=['SiStripQuality']
83 
84  return Reco.alcaHarvesting(self, globalTag, datasetName, **args)
Definition: Reco.py:1
def customiseCosmicDataRun2
Definition: RecoTLR.py:45