test
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 4 of file customise_phase1_hcal.py.

References mathSSE.return().

4 
5 def customise(process):
6  process.load("SLHCUpgradeSimulations.Geometry.recoFromSimDigis_cff")
7  process.load("SLHCUpgradeSimulations.Geometry.upgradeTracking_phase1_cff")
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  process.regionalCosmicTrackerSeeds.SeedMergerPSet = cms.PSet(
43  mergeTriplets = cms.bool(False),
44  ttrhBuilderLabel = cms.string( "PixelTTRHBuilderWithoutAngle" ),
45  addRemainingTriplets = cms.bool(False),
46  layerListName = cms.string( "PixelSeedMergerQuadruplets" )
47  )
48  process.regionalCosmicTracks.TTRHBuilder = cms.string('WithTrackAngle')
49 
50 
51  ### back to standard job commands ##################################################
52  process.DigiToRaw.remove(process.castorRawData)
53 
54  process.DigiToRaw.remove(process.siPixelRawData)
55  process.RawToDigi.remove(process.siPixelDigis)
56 
57 
58  if hasattr(process,'dqmoffline_step'):
59  process.dqmoffline_step.remove(process.SiPixelTrackResidualSource)
60  process.dqmoffline_step.remove(process.jetMETAnalyzer)
61  process.dqmoffline_step.remove(process.hltMonMuBits)
62  process.dqmoffline_step.remove(process.vbtfAnalyzer)
63  process.dqmoffline_step.remove(process.hltResults)
64  process.dqmoffline_step.remove(process.egHLTOffDQMSource)
65  process.dqmoffline_step.remove(process.globalAnalyzer)
66  process.dqmoffline_step.remove(process.jetMETHLTOfflineSource)
67  ##
68  process.dqmoffline_step.remove(process.TrackerCollisionTrackMon)
69  if hasattr(process,'validation_step'):
70  process.validation_step.remove(process.hltHITval)
71  process.validation_step.remove(process.HLTSusyExoVal)
72  process.validation_step.remove(process.relvalMuonBits)
73  process.validation_step.remove(process.hltMuonValidator)
74  #this takes forever - seems like an infinite loop that I didnt debug yet
75  process.validation_step.remove(process.pixelDigisValid)
76  else:
77  ## removing large memory usage module if we don't need it
78  process.pdigi.remove(process.mergedtruth)
79 
80 # HCAL Upgrade Geometry
81 
82  process.load("RecoLocalCalo.HcalRecProducers.HcalUpgradeReconstructor_cff")
83  process.load("RecoJets.Configuration.CaloTowersRec_cff")
84  process.load("RecoLocalCalo.HcalRecAlgos.hcalRecAlgoESProd_cfi")
85  process.load("RecoLocalCalo.Configuration.RecoLocalCalo_cff")
86 
87  process.ecalGlobalUncalibRecHit.EBdigiCollection = cms.InputTag("simEcalDigis","ebDigis")
88  process.ecalGlobalUncalibRecHit.EEdigiCollection = cms.InputTag("simEcalDigis","eeDigis")
89  process.ecalRecHit.ebDetIdToBeRecovered = cms.InputTag("","")
90  process.ecalRecHit.eeDetIdToBeRecovered = cms.InputTag("","")
91  process.ecalRecHit.eeFEToBeRecovered = cms.InputTag("","")
92  process.ecalRecHit.ebFEToBeRecovered = cms.InputTag("","")
93  process.ecalRecHit.recoverEBFE = cms.bool(False)
94  process.ecalRecHit.recoverEEFE = cms.bool(False)
95 
96  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hbhe_cfi")
97  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
98  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi")
99 
100  process.hbheprereco.digiLabel = "simHcalUnsuppressedDigis"
101  process.horeco.digiLabel = "simHcalUnsuppressedDigis"
102  process.hfreco.digiLabel = "simHcalUnsuppressedDigis"
103  process.hcalupgradereco.digiLabel = "simHcalUnsuppressedDigis"
def customise_phase1_hcal.customise_3bx (   process)

Definition at line 186 of file customise_phase1_hcal.py.

Referenced by customise_pu15_25ns_3bx(), and customise_pu50_25ns_3bx().

187 def customise_3bx(process):
188  process.mix.maxBunch=1
189  process.mix.minBunch=-1
190  return process
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 174 of file customise_phase1_hcal.py.

Referenced by customise_pu15_25ns_3bx().

175 def customise_pu15_25ns(process):
176 
177  process=customise(process)
178 
179  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
def customise_pu15_25ns
Known alterations for Reco #####################################################. ...
def customise_phase1_hcal.customise_pu15_25ns_3bx (   process)

Definition at line 191 of file customise_phase1_hcal.py.

References customise_3bx(), and customise_pu15_25ns().

192 def customise_pu15_25ns_3bx(process):
193  process=customise_pu15_25ns(process)
194  process=customise_3bx(process)
195  return process
196 
#pileup specific stuff here
def customise_pu15_25ns
Known alterations for Reco #####################################################. ...
def customise_phase1_hcal.customise_pu15_25ns_wo_pairs (   process)

Definition at line 261 of file customise_phase1_hcal.py.

References customise_wo_pairs().

262 def customise_pu15_25ns_wo_pairs(process):
263 
264  process=customise_wo_pairs(process)
265 
266  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
def customise_phase1_hcal.customise_pu50_25ns (   process)

Definition at line 197 of file customise_phase1_hcal.py.

Referenced by customise_pu50_25ns_3bx().

198 def customise_pu50_25ns(process):
199 
200  process=customise(process)
201 
202  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
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% process.simSiStripDigis.Inefficiency = 20 TIB1,2 inefficiency at 50% process.simSiStripDigis.Inefficiency = 30 TIB1,2 inefficiency at 99% (i.e. dead) process.simSiStripDigis.Inefficiency = 40

Definition at line 220 of file customise_phase1_hcal.py.

References customise_3bx(), and customise_pu50_25ns().

221 def customise_pu50_25ns_3bx(process):
222  process=customise_pu50_25ns(process)
223  process=customise_3bx(process)
224  return process
def customise_pu50_25ns_3bx
if doing inefficiency at &lt;PU&gt;=50
def customise_phase1_hcal.customise_pu50_25ns_wo_pairs (   process)

Definition at line 275 of file customise_phase1_hcal.py.

References customise_wo_pairs().

276 def customise_pu50_25ns_wo_pairs(process):
277 
278  process=customise_wo_pairs(process)
279 
280  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
def customise_phase1_hcal.customise_wo_pairs (   process)

Definition at line 225 of file customise_phase1_hcal.py.

Referenced by customise_pu15_25ns_wo_pairs(), and customise_pu50_25ns_wo_pairs().

226 def customise_wo_pairs(process):
227 
228  process=customise(process)
229 
230  process.generalTracks.TrackProducers = (cms.InputTag('initialStepTracks'),
231  cms.InputTag('highPtTripletStepTracks'),
232  cms.InputTag('lowPtTripletStepTracks'),
233  cms.InputTag('mixedTripletStepTracks'))
234  process.generalTracks.hasSelector=cms.vint32(1,1,1,1)
235  process.generalTracks.selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStep"),
236  cms.InputTag("highPtTripletStepSelector","highPtTripletStep"),
237  cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
238  cms.InputTag("mixedTripletStep")
239  )
240  process.generalTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3), pQual=cms.bool(True) )
241  )
242 
243  process.newCombinedSeeds.seedCollections = cms.VInputTag(
244  cms.InputTag('initialStepSeeds'),
245  cms.InputTag('highPtTripletStepSeeds'),
246  cms.InputTag('lowPtTripletStepSeeds')
247  )
248 
249  process.mixedTripletStepClusters.oldClusterRemovalInfo = cms.InputTag("lowPtTripletStepClusters")
250  process.mixedTripletStepClusters.trajectories = cms.InputTag("lowPtTripletStepTracks")
251  process.mixedTripletStepClusters.overrideTrkQuals = cms.InputTag('lowPtTripletStepSelector','lowPtTripletStep')
252 
253  process.iterTracking.remove(process.PixelPairStep)
254  return (process)
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% process.simSiStripDigis.Inefficiency = 20 TIB1,2 inefficiency at 50% process.simSiStripDigis.Inefficiency = 30 TIB1,2 inefficiency at 99% (i.e. dead) process.simSiStripDigis.Inefficiency = 40

Definition at line 299 of file customise_phase1_hcal.py.

300 def saveAllProds(process):
301  keys=process.outputModules.keys()
302  for k in keys:
303  mod=getattr(process,k)
304  mod.outputCommands.extend(['keep *_simHcalUnsuppressedDigis_*_*',
305  'keep *_hcalupgradereco_*_*',
306  'keep *_hbhereco_*_*',
307  'keep recoPFRecHits_particleFlowRecHitPS_*_*',
308  'keep recoPFRecHits_particleFlowRecHitECAL_*_*',
309  'keep recoPFBlocks_particleFlowBlock_*_*',
310  'keep recoPFRecTracks_pfTrack_*_*',
311  'keep recoPFClusters_particleFlowClusterPS_*_*',
312  'keep recoPFClusters_particleFlowClusterECAL_*_*',
313  'keep recoPFDisplacedVertexCandidates_particleFlowDisplacedVertexCandidate_*_*',
314  'keep recoPFCandidates_particleFlow_*_*',
315  'keep recoPFClusters_particleFlowClusterHCAL_*_*',
316  'keep recoPFClusters_particleFlowClusterHCALUpgrade_*_*',
317  'keep recoPFClusters_particleFlowClusterHO_*_*',
318  'keep CaloTowersSorted_towerMakerPF_*_*',
319  'keep recoPFCandidates_pfNoPileUp_*_*',
320  'keep recoPFCandidates_pfAllPhotons_*_*',
321  'keep recoPFRecHits_particleFlowRecHitHCAL_*_*',
322  'keep recoPFRecHits_particleFlowRecHitHCALUpgrade_*_*',
323  'keep recoPFRecHits_particleFlowRecHitHO_*_*',
324  'keep recoPileUpPFCandidates_pfPileUp_*_*',
325  'keep recoGsfPFRecTracks_pfTrackElec_*_*',
326  'keep recoGsfPFRecTracks_pfTrackElec_Secondary_*',
327  'keep recoPFCandidates_pfAllNeutralHadrons_*_*',
328  'keep recoPFCandidates_pfAllChargedHadrons_*_*',
329  'keep recoPFCandidates_particleFlow_electrons_*',
330  'keep recoPFRecTracks_pfV0_*_*',
331  'keep recoJetedmRefToBaseProdrecoTracksrecoTrackrecoTracksTorecoTrackedmrefhelperFindUsingAdvanceedmRefVectorsAssociationVector_ak4PFJetTracksAssociatorAtVertex_*_*',
332  'keep recoPFRecTracks_pfConversions_*_*',
333  'keep recoPFCandidateElectronExtras_particleFlow_*_*',
334  'keep recoPFRecHits_particleFlowRecHitECAL_Cleaned_*',
335  'keep recoPFV0s_pfV0_*_*',
336  'keep recoPFCandidates_pfSelectedElectrons_*_*',
337  'keep recoPFDisplacedVertexs_particleFlowDisplacedVertex_*_*',
338  'keep recoPFRecTracks_pfDisplacedTrackerVertex_*_*',
339  'keep recoPFConversions_pfConversions_*_*',
340  'keep recoPFCandidates_particleFlow_CleanedPunchThroughNeutralHadrons_*',
341  'keep recoPFDisplacedTrackerVertexs_pfDisplacedTrackerVertex_*_*',
342  'keep recoPFCandidates_particleFlow_CleanedTrackerAndGlobalMuons_*',
343  'keep recoPFCandidates_particleFlow_CleanedPunchThroughMuons_*',
344  'keep recoPFCandidates_particleFlow_AddedMuonsAndHadrons_*',
345  'keep recoPFMETs_pfMet_*_*',
346  'keep recoPFCandidates_particleFlow_CleanedCosmicsMuons_*',
347  'keep recoPFRecHits_particleFlowClusterHFHAD_Cleaned_*',
348  'keep recoPFCandidates_particleFlow_CleanedFakeMuons_*',
349  'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
350  'keep recoPFRecHits_particleFlowClusterHFEM_Cleaned_*',
351  'keep recoPFRecHits_particleFlowClusterHCAL_Cleaned_*',
352  'keep recoPFRecHits_particleFlowRecHitHCAL_Cleaned_*',
353  'keep recoPFRecHits_particleFlowClusterHCALUpgrade_Cleaned_*',
354  'keep recoPFRecHits_particleFlowRecHitHCALUpgrade_Cleaned_*',
355  'keep recoPFRecHits_particleFlowClusterHO_Cleaned_*',
356  'keep recoPFRecHits_particleFlowRecHitHO_Cleaned_*',
357  'keep recoPFRecHits_particleFlowClusterPS_Cleaned_*',
358  'keep recoPFRecHits_particleFlowRecHitHCAL_HFHAD_*',
359  'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
360  'keep recoPFRecHits_particleFlowRecHitHCAL_HFEM_*',
361  'keep recoPFClusters_particleFlowClusterHFHAD_*_*',
362  'keep recoPFClusters_particleFlowClusterHFEM_*_*',
363  'keep recoPFCandidates_particleFlow_CleanedHF_*',
364  'keep recoPFCandidates_pfSelectedPhotons_*_*'])
365  return process
def saveAllProds
if doing inefficiency at &lt;PU&gt;=50
def customise_phase1_hcal.turnOffLegacyPhiCorrection (   process)

Definition at line 255 of file customise_phase1_hcal.py.

256 def turnOffLegacyPhiCorrection(process):
257  process.simHcalUnsuppressedDigis.HcalReLabel.RelabelRules.CorrectPhi = cms.untracked.bool(False)
258  process.HcalHardcodeGeometryEP.HcalReLabel.RelabelRules.CorrectPhi = cms.untracked.bool(False)
259  process.HcalReLabel.RelabelRules.CorrectPhi = cms.untracked.bool(False)
260  return (process)

Variable Documentation

tuple customise_phase1_hcal.averageNumber = cms.double(15.0)

set the number of pileup

Definition at line 182 of file customise_phase1_hcal.py.

Referenced by edm::SecSourceAnalyzer.SecSourceAnalyzer().