CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
postLS1Customs Namespace Reference

Functions

def customise_Digi
 
def customise_DigiToRaw
 
def customise_DQM
 
def customise_harvesting
 
def customise_HLT
 
def customise_L1Emulator
 
def customise_RawToDigi
 
def customise_Reco
 
def customise_Sim
 
def customise_Validation
 
def customisePostLS1
 
def digiEventContent
 
def recoOutputCustoms
 

Function Documentation

def postLS1Customs.customise_Digi (   process)

Definition at line 77 of file postLS1Customs.py.

References digiEventContent().

Referenced by customisePostLS1().

77 
78 def customise_Digi(process):
79  process=digiEventContent(process)
80  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
81  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'ho'):
82  process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
83  process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
84  process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
85  process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False)
86  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf1'):
87  process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
88  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf2'):
89  process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
90  return process
91 
def postLS1Customs.customise_DigiToRaw (   process)

Definition at line 100 of file postLS1Customs.py.

Referenced by customisePostLS1().

101 def customise_DigiToRaw(process):
102  return process
103 
def postLS1Customs.customise_DQM (   process)

Definition at line 51 of file postLS1Customs.py.

Referenced by customisePostLS1().

51 
52 def customise_DQM(process):
53  #process.dqmoffline_step.remove(process.jetMETAnalyzer)
54  return process
55 
def postLS1Customs.customise_harvesting (   process)

Definition at line 113 of file postLS1Customs.py.

Referenced by customisePostLS1().

114 def customise_harvesting(process):
115  #process.dqmHarvesting.remove(process.dataCertificationJetMET)
116  #process.dqmHarvesting.remove(process.sipixelEDAClient)
117  #process.dqmHarvesting.remove(process.sipixelCertification)
118  return (process)
def postLS1Customs.customise_HLT (   process)

Definition at line 104 of file postLS1Customs.py.

References muonCustoms.customise_csc_hlt().

Referenced by customisePostLS1().

105 def customise_HLT(process):
106  process=customise_csc_hlt(process)
107  return process
108 
def customise_csc_hlt
Definition: muonCustoms.py:295
def postLS1Customs.customise_L1Emulator (   process)

Definition at line 92 of file postLS1Customs.py.

Referenced by customisePostLS1().

92 
93 def customise_L1Emulator(process):
94  return process
95 
def postLS1Customs.customise_RawToDigi (   process)

Definition at line 96 of file postLS1Customs.py.

Referenced by customisePostLS1().

96 
97 def customise_RawToDigi(process):
98  return process
99 
def postLS1Customs.customise_Reco (   process)

Definition at line 109 of file postLS1Customs.py.

Referenced by customisePostLS1().

110 def customise_Reco(process):
111  return process
112 
def postLS1Customs.customise_Sim (   process)

Definition at line 64 of file postLS1Customs.py.

Referenced by customisePostLS1().

64 
65 def customise_Sim(process):
66  # enable 2015 HF shower library
67  process.g4SimHits.HCalSD.UseShowerLibrary = True
68  process.g4SimHits.HCalSD.UseParametrize = False
69  process.g4SimHits.HCalSD.UsePMTHits = False
70  process.g4SimHits.HCalSD.UseFibreBundleHits = False
71  process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_eta4_16en.root'
72  process.g4SimHits.HFShowerLibrary.BranchPost= ''
73  process.g4SimHits.HFShowerLibrary.BranchPre = ''
74  process.g4SimHits.HFShowerLibrary.BranchEvt = ''
75  return process
76 
def postLS1Customs.customise_Validation (   process)

Definition at line 56 of file postLS1Customs.py.

Referenced by customisePostLS1().

56 
57 def customise_Validation(process):
58  #process.validation_step.remove(process.PixelTrackingRecHitsValid)
59  # We don't run the HLT
60  #process.validation_step.remove(process.HLTSusyExoVal)
61  #process.validation_step.remove(process.hltHiggsValidator)
62  return process
63 
def postLS1Customs.customisePostLS1 (   process)

Definition at line 7 of file postLS1Customs.py.

References muonCustoms.customise_csc_PostLS1(), customise_Digi(), customise_DigiToRaw(), customise_DQM(), customise_harvesting(), customise_HLT(), customise_L1Emulator(), customise_RawToDigi(), customise_Reco(), customise_Sim(), and customise_Validation().

Referenced by combinedCustoms.cust_2017(), combinedCustoms.cust_2019(), combinedCustoms.cust_phase2_BE(), combinedCustoms.cust_phase2_BE5D(), combinedCustoms.cust_phase2_LB4LPS_2L2S(), and combinedCustoms.cust_phase2_LB6PS().

7 
8 def customisePostLS1(process):
9 
10  # deal with CSC separately:
11  process = customise_csc_PostLS1(process)
12 
13  # all the rest:
14  if hasattr(process,'g4SimHits'):
15  process=customise_Sim(process)
16  if hasattr(process,'DigiToRaw'):
17  process=customise_DigiToRaw(process)
18  if hasattr(process,'RawToDigi'):
19  process=customise_RawToDigi(process)
20  if hasattr(process,'reconstruction'):
21  process=customise_Reco(process)
22  if hasattr(process,'digitisation_step'):
23  process=customise_Digi(process)
24  if hasattr(process,'HLTSchedule'):
25  process=customise_HLT(process)
26  if hasattr(process,'L1simulation_step'):
27  process=customise_L1Emulator(process)
28  if hasattr(process,'dqmoffline_step'):
29  process=customise_DQM(process)
30  if hasattr(process,'dqmHarvesting'):
31  process=customise_harvesting(process)
32  if hasattr(process,'validation_step'):
33  process=customise_Validation(process)
34 
35  return process
36 
def customise_csc_PostLS1
Definition: muonCustoms.py:248
def postLS1Customs.digiEventContent (   process)

Definition at line 37 of file postLS1Customs.py.

Referenced by customise_Digi().

37 
38 def digiEventContent(process):
39  #extend the event content
40 
41  alist=['RAWSIM','RAWDEBUG','FEVTDEBUG','FEVTDEBUGHLT','GENRAW','RAWSIMHLT','FEVT']
42  for a in alist:
43  b=a+'output'
44  if hasattr(process,b):
45  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
46  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
47  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
48 
49  return process
50 
def postLS1Customs.recoOutputCustoms (   process)

Definition at line 119 of file postLS1Customs.py.

120 def recoOutputCustoms(process):
121 
122  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
123  for a in alist:
124  b=a+'output'
125  if hasattr(process,b):
126  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
127  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
128  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
129  getattr(process,b).outputCommands.append('keep *_rawDataCollector_*_*')
130  return process
131