CMS 3D CMS Logo

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

Functions

def customise
 
def customise_3bx
 
def customise_pu15_25ns
 Known alterations for Reco #####################################################. More...
 
def customise_pu15_25ns_3bx
 
def customise_pu15_25ns_wo_pairs
 
def customise_pu50_25ns
 
def customise_pu50_25ns_3bx
 if doing inefficiency at <PU>=50 More...
 
def customise_pu50_25ns_wo_pairs
 
def customise_wo_pairs
 
def saveAllProds
 if doing inefficiency at <PU>=50 More...
 
def turnOffLegacyPhiCorrection
 

Variables

tuple averageNumber = cms.double(15.0)
 set the number of pileup More...
 

Function Documentation

def customise_phase1_hcal.customise (   process)

Definition at line 7 of file customise_phase1_hcal.py.

References reco.return().

7 
8 
9  process.ctfWithMaterialTracks.TTRHBuilder = 'WithTrackAngle'
10  process.PixelCPEGenericESProducer.UseErrorsFromTemplates = cms.bool(False)
11  process.PixelCPEGenericESProducer.TruncatePixelCharge = cms.bool(False)
12  process.PixelCPEGenericESProducer.LoadTemplatesFromDB = cms.bool(False)
13  process.PixelCPEGenericESProducer.Upgrade = cms.bool(True)
14  process.PixelCPEGenericESProducer.SmallPitch = False
15  process.PixelCPEGenericESProducer.IrradiationBiasCorrection = False
16  process.PixelCPEGenericESProducer.DoCosmics = False
17 
18  ## CPE for other steps
19  process.siPixelRecHits.CPE = cms.string('PixelCPEGeneric')
20  process.initialStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
21  process.lowPtTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
22  process.pixelPairStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
23  process.detachedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
24  process.mixedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
25  process.pixelLessStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
26  process.tobTecStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
27  process.highPtTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
28 
29  # Need these lines to stop some errors about missing siStripDigis collections.
30  # should add them to fakeConditions_Phase1_cff
31  process.MeasurementTracker.inactiveStripDetectorLabels = cms.VInputTag()
32  process.MeasurementTracker.UseStripModuleQualityDB = cms.bool(False)
33  process.MeasurementTracker.UseStripAPVFiberQualityDB = cms.bool(False)
34  process.MeasurementTracker.UseStripStripQualityDB = cms.bool(False)
35  process.MeasurementTracker.UsePixelModuleQualityDB = cms.bool(False)
36  process.MeasurementTracker.UsePixelROCQualityDB = cms.bool(False)
37 
38  process.muons.TrackerKinkFinderParameters.TrackerRecHitBuilder = cms.string('WithTrackAngle')
39  # The SeedMergerPSet should be added to the following file for Phase 1
40  # RecoTracker/SpecialSeedGenerators/python/CombinatorialSeedGeneratorForCosmicsRegionalReconstruction_cfi.py
41  # but pixel layers are not used here for cosmic TODO: need Maria and Jan to do appropriate thing here
42  from RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff import PixelSeedMergerQuadruplets
43  process.regionalCosmicTrackerSeeds.SeedMergerPSet = cms.PSet(
44  mergeTriplets = cms.bool(False),
45  ttrhBuilderLabel = cms.string( "PixelTTRHBuilderWithoutAngle" ),
46  addRemainingTriplets = cms.bool(False),
47  layerList = PixelSeedMergerQuadruplets
48  )
49  process.regionalCosmicTracks.TTRHBuilder = cms.string('WithTrackAngle')
50 
51 
52  ### back to standard job commands ##################################################
53  process.DigiToRaw.remove(process.castorRawData)
54 
55  process.DigiToRaw.remove(process.siPixelRawData)
56  process.RawToDigi.remove(process.siPixelDigis)
57 
58 
59  if hasattr(process,'dqmoffline_step'):
60  process.dqmoffline_step.remove(process.SiPixelTrackResidualSource)
61  process.dqmoffline_step.remove(process.jetMETAnalyzer)
62  process.dqmoffline_step.remove(process.hltMonMuBits)
63  process.dqmoffline_step.remove(process.vbtfAnalyzer)
64  process.dqmoffline_step.remove(process.hltResults)
65  process.dqmoffline_step.remove(process.egHLTOffDQMSource)
66  process.dqmoffline_step.remove(process.globalAnalyzer)
67  process.dqmoffline_step.remove(process.jetMETHLTOfflineSource)
68  ##
69  process.dqmoffline_step.remove(process.TrackerCollisionTrackMon)
70  if hasattr(process,'validation_step'):
71  process.validation_step.remove(process.hltHITval)
72  process.validation_step.remove(process.HLTSusyExoVal)
73  process.validation_step.remove(process.relvalMuonBits)
74  process.validation_step.remove(process.hltMuonValidator)
75  #this takes forever - seems like an infinite loop that I didnt debug yet
76  process.validation_step.remove(process.pixelDigisValid)
77  else:
78  ## removing large memory usage module if we don't need it
79  process.pdigi.remove(process.mergedtruth)
80 
81 # HCAL Upgrade Geometry
82 
83  process.load("RecoLocalCalo.HcalRecProducers.HcalUpgradeReconstructor_cff")
84  process.load("RecoJets.Configuration.CaloTowersRec_cff")
85  process.load("RecoLocalCalo.HcalRecAlgos.hcalRecAlgoESProd_cfi")
86  process.load("RecoLocalCalo.Configuration.RecoLocalCalo_cff")
87 
88  process.ecalGlobalUncalibRecHit.EBdigiCollection = cms.InputTag("simEcalDigis","ebDigis")
89  process.ecalGlobalUncalibRecHit.EEdigiCollection = cms.InputTag("simEcalDigis","eeDigis")
90  process.ecalRecHit.ebDetIdToBeRecovered = cms.InputTag("","")
91  process.ecalRecHit.eeDetIdToBeRecovered = cms.InputTag("","")
92  process.ecalRecHit.eeFEToBeRecovered = cms.InputTag("","")
93  process.ecalRecHit.ebFEToBeRecovered = cms.InputTag("","")
94  process.ecalRecHit.recoverEBFE = cms.bool(False)
95  process.ecalRecHit.recoverEEFE = cms.bool(False)
96 
97  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hbhe_cfi")
98  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
99  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi")
100 
101  process.hbheprereco.digiLabel = "simHcalUnsuppressedDigis"
102  process.horeco.digiLabel = "simHcalUnsuppressedDigis"
103  process.hfreco.digiLabel = "simHcalUnsuppressedDigis"
104  process.hcalupgradereco.digiLabel = "simHcalUnsuppressedDigis"
105 
106 ### Known alterations for Reco #####################################################
107  delattr(process,"hbhereco")
108  process.hbhereco = process.hbheprereco.clone()
109 
110  process.metrecoPlusHCALNoise.remove(process.BeamHaloSummary)
111  process.metrecoPlusHCALNoise.remove(process.GlobalHaloData)
112  process.metrecoPlusHCALNoise.remove(process.HcalHaloData)
113 
114  process.metrecoPlusHCALNoise.remove(process.hcalnoise)
115  process.jetGlobalReco = cms.Sequence(process.recoJets*process.recoTrackJets)
116  process.jetHighLevelReco = cms.Sequence(process.recoJetAssociations*process.recoPFJets*process.recoJPTJets)
117 
118 ### Place to add in the reco steps one by one ######################################
119  process.calolocalreco = cms.Sequence(process.ecalGlobalUncalibRecHit+
120  process.ecalDetIdToBeRecovered+
121  process.ecalRecHit+
122  process.ecalCompactTrigPrim+
123  process.ecalTPSkim+
124  process.ecalPreshowerRecHit+
125  #process.hbheprereco+
126  process.hbhereco+
127  process.horeco+process.hfreco+process.hcalupgradereco+process.towerMaker
128  #+process.zdcreco
129  )
130  process.localreco = cms.Sequence(process.trackerlocalreco+
131  process.muonlocalreco+
132  process.calolocalreco+
133  process.castorreco+
134  process.lumiProducer
135  )
136  process.globalreco = cms.Sequence(process.offlineBeamSpot
137  *process.recopixelvertexing
138  *process.trackingGlobalReco
139  #*process.hcalGlobalRecoSequence
140  *process.particleFlowCluster
141  *process.ecalClusters
142  *process.caloTowersRec
143  *process.vertexreco
144  *process.egammaGlobalReco
145  *process.pfTrackingGlobalReco
146  *process.jetGlobalReco
147  *process.muonrecoComplete
148  *process.muoncosmicreco
149  *process.CastorFullReco
150  )
151  process.highlevelreco = cms.Sequence(process.egammaHighLevelRecoPrePF
152  *process.particleFlowReco
153  *process.egammaHighLevelRecoPostPF
154  *process.jetHighLevelReco
155  *process.tautagging
156  *process.metrecoPlusHCALNoise
157  *process.btagging
158  *process.recoPFMET
159  *process.PFTau
160  *process.regionalCosmicTracksSeq
161  *process.muoncosmichighlevelreco
162  *process.reducedRecHits
163  )
164  process.reconstruction = cms.Sequence( process.localreco *
165  process.globalreco *
166  process.highlevelreco *
167  process.logErrorHarvester
168  )
169  # Clean out some unused sequences
170  process.hcalLocalRecoSequence=cms.Sequence()
171  process.hcalGlobalRecoSequence=cms.Sequence()
172 
173  return(process)
174 
175 
176 def customise_pu15_25ns(process):
177 
178  process=customise(process)
179 
180  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
181 
182 ### set the number of pileup
183  process.mix.input.nbPileupEvents = cms.PSet(
184  averageNumber = cms.double(15.0)
185  )
186  return (process)
187 
188 def customise_3bx(process):
189  process.mix.maxBunch=1
190  process.mix.minBunch=-1
191  return process
192 
193 def customise_pu15_25ns_3bx(process):
194  process=customise_pu15_25ns(process)
195  process=customise_3bx(process)
196  return process
197 
198 #pileup specific stuff here
199 def customise_pu50_25ns(process):
200 
201  process=customise(process)
202 
203  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
204 
205 ### set the number of pileup
206  process.mix.input.nbPileupEvents = cms.PSet(
207  averageNumber = cms.double(50.0)
)
return(e1-e2)*(e1-e2)+dp *dp
def customise_pu15_25ns
Known alterations for Reco #####################################################. ...
def customise_phase1_hcal.customise_3bx (   process)

Definition at line 372 of file customise_phase1_hcal.py.

Referenced by customise(), customise_pu15_25ns_3bx(), and customise_pu50_25ns_3bx().

def customise_phase1_hcal.customise_pu15_25ns (   process)

Known alterations for Reco #####################################################.

Place to add in the reco steps one by one ######################################

Definition at line 348 of file customise_phase1_hcal.py.

Referenced by customise(), and customise_pu15_25ns_3bx().

349  'keep recoPFCandidates_particleFlow_CleanedFakeMuons_*',
350  'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
351  'keep recoPFRecHits_particleFlowClusterHFEM_Cleaned_*',
352  'keep recoPFRecHits_particleFlowClusterHCAL_Cleaned_*',
353  'keep recoPFRecHits_particleFlowRecHitHCAL_Cleaned_*',
354  'keep recoPFRecHits_particleFlowClusterHCALUpgrade_Cleaned_*',
355  'keep recoPFRecHits_particleFlowRecHitHCALUpgrade_Cleaned_*',
356  'keep recoPFRecHits_particleFlowClusterHO_Cleaned_*',
357  'keep recoPFRecHits_particleFlowRecHitHO_Cleaned_*',
358  'keep recoPFRecHits_particleFlowClusterPS_Cleaned_*',
359  'keep recoPFRecHits_particleFlowRecHitHCAL_HFHAD_*',
'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
def customise_phase1_hcal.customise_pu15_25ns_3bx (   process)

Definition at line 382 of file customise_phase1_hcal.py.

References customise_3bx(), and customise_pu15_25ns().

Referenced by customise().

def customise_phase1_hcal.customise_pu15_25ns_wo_pairs (   process)

Definition at line 516 of file customise_phase1_hcal.py.

References customise_wo_pairs().

def customise_phase1_hcal.customise_pu50_25ns (   process)

Definition at line 394 of file customise_phase1_hcal.py.

Referenced by customise(), and customise_pu50_25ns_3bx().

def customise_phase1_hcal.customise_pu50_25ns_3bx (   process)

if doing inefficiency at <PU>=50

also for strips TIB inefficiency if we want TIB1,2 inefficiency at 20% TIB1,2 inefficiency at 50% TIB1,2 inefficiency at 99% (i.e. dead)

Definition at line 440 of file customise_phase1_hcal.py.

References customise_3bx(), and customise_pu50_25ns().

def customise_phase1_hcal.customise_pu50_25ns_wo_pairs (   process)

Definition at line 544 of file customise_phase1_hcal.py.

References customise_wo_pairs().

def customise_phase1_hcal.customise_wo_pairs (   process)

Definition at line 450 of file customise_phase1_hcal.py.

Referenced by customise_pu15_25ns_wo_pairs(), and customise_pu50_25ns_wo_pairs().

def customise_phase1_hcal.saveAllProds (   process)

if doing inefficiency at <PU>=50

also for strips TIB inefficiency if we want TIB1,2 inefficiency at 20% TIB1,2 inefficiency at 50% TIB1,2 inefficiency at 99% (i.e. dead)

Definition at line 592 of file customise_phase1_hcal.py.

def customise_phase1_hcal.turnOffLegacyPhiCorrection (   process)

Definition at line 510 of file customise_phase1_hcal.py.

Variable Documentation

tuple customise_phase1_hcal.averageNumber = cms.double(15.0)

set the number of pileup

Definition at line 364 of file customise_phase1_hcal.py.

Referenced by edm::SecSourceAnalyzer.SecSourceAnalyzer().