CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
postLS1Customs.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 from muonCustoms import customise_csc_PostLS1,customise_csc_hlt
5 
6 
7 def customisePostLS1(process):
8 
9  # deal with CSC separately:
10  process = customise_csc_PostLS1(process)
11 
12  # all the rest:
13  if hasattr(process,'DigiToRaw'):
14  process=customise_DigiToRaw(process)
15  if hasattr(process,'RawToDigi'):
16  process=customise_RawToDigi(process)
17  if hasattr(process,'reconstruction'):
18  process=customise_Reco(process)
19  if hasattr(process,'digitisation_step'):
20  process=customise_Digi(process)
21  if hasattr(process,'HLTSchedule'):
22  process=customise_HLT(process)
23  if hasattr(process,'L1simulation_step'):
24  process=customise_L1Emulator(process)
25  if hasattr(process,'dqmoffline_step'):
26  process=customise_DQM(process)
27  if hasattr(process,'dqmHarvesting'):
28  process=customise_harvesting(process)
29  if hasattr(process,'validation_step'):
30  process=customise_Validation(process)
31 
32  return process
33 
34 
35 def digiEventContent(process):
36  #extend the event content
37 
38  alist=['RAWSIM','FEVTDEBUG','FEVTDEBUGHLT','GENRAW','RAWSIMHLT','FEVT']
39  for a in alist:
40  b=a+'output'
41  if hasattr(process,b):
42  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
43  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
44  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
45 
46  return process
47 
48 
49 def customise_DQM(process):
50  #process.dqmoffline_step.remove(process.jetMETAnalyzer)
51  return process
52 
53 
54 def customise_Validation(process):
55  #process.validation_step.remove(process.PixelTrackingRecHitsValid)
56  # We don't run the HLT
57  #process.validation_step.remove(process.HLTSusyExoVal)
58  #process.validation_step.remove(process.hltHiggsValidator)
59  return process
60 
61 
62 def customise_Digi(process):
63  process=digiEventContent(process)
64  return process
65 
66 
67 def customise_L1Emulator(process):
68  return process
69 
70 
71 def customise_RawToDigi(process):
72  return process
73 
74 
75 def customise_DigiToRaw(process):
76  return process
77 
78 
79 def customise_HLT(process):
80  process=customise_csc_hlt(process)
81  return process
82 
83 
84 def customise_Reco(process):
85  return process
86 
87 
88 def customise_harvesting(process):
89  #process.dqmHarvesting.remove(process.jetMETDQMOfflineClient)
90  #process.dqmHarvesting.remove(process.dataCertificationJetMET)
91  #process.dqmHarvesting.remove(process.sipixelEDAClient)
92  #process.dqmHarvesting.remove(process.sipixelCertification)
93  return (process)
94 
95 def recoOutputCustoms(process):
96 
97  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
98  for a in alist:
99  b=a+'output'
100  if hasattr(process,b):
101  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
102  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
103  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
104  getattr(process,b).outputCommands.append('keep *_rawDataCollector_*_*')
105  return process
106 
def customise_csc_hlt
Definition: muonCustoms.py:295
def customise_csc_PostLS1
Definition: muonCustoms.py:248