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  process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
65  process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
66  process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
67  process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False)
68  return process
69 
70 
71 def customise_L1Emulator(process):
72  return process
73 
74 
75 def customise_RawToDigi(process):
76  return process
77 
78 
79 def customise_DigiToRaw(process):
80  return process
81 
82 
83 def customise_HLT(process):
84  process=customise_csc_hlt(process)
85  return process
86 
87 
88 def customise_Reco(process):
89  return process
90 
91 
92 def customise_harvesting(process):
93  #process.dqmHarvesting.remove(process.jetMETDQMOfflineClient)
94  #process.dqmHarvesting.remove(process.dataCertificationJetMET)
95  #process.dqmHarvesting.remove(process.sipixelEDAClient)
96  #process.dqmHarvesting.remove(process.sipixelCertification)
97  return (process)
98 
99 def recoOutputCustoms(process):
100 
101  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
102  for a in alist:
103  b=a+'output'
104  if hasattr(process,b):
105  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
106  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
107  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
108  getattr(process,b).outputCommands.append('keep *_rawDataCollector_*_*')
109  return process
110 
def customise_csc_hlt
Definition: muonCustoms.py:295
def customise_csc_PostLS1
Definition: muonCustoms.py:248