CMS 3D CMS Logo

Functions | Variables
customise_phase1_hcal Namespace Reference

Functions

def customise (process)
 
def customise_3bx (process)
 
def customise_pu15_25ns (process)
 
def customise_pu15_25ns_3bx (process)
 
def customise_pu15_25ns_wo_pairs (process)
 
def customise_pu50_25ns (process)
 
def customise_pu50_25ns_3bx (process)
 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. More...
 
def customise_pu50_25ns_wo_pairs (process)
 
def customise_wo_pairs (process)
 
def saveAllProds (process)
 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. More...
 
def turnOffLegacyPhiCorrection (process)
 

Variables

 AddPixelInefficiency
 if doing inefficiency at <PU>=50 More...
 
 averageNumber
 
 calolocalreco
 Place to add in the reco steps one by one ######################################. More...
 
 globalreco
 
 hbhereco
 Known alterations for Reco #####################################################. More...
 
 hcalGlobalRecoSequence
 
 hcalLocalRecoSequence
 
 highlevelreco
 
 jetGlobalReco
 
 jetHighLevelReco
 
 localreco
 
 nbPileupEvents
 set the number of pileup More...
 
 reconstruction
 

Function Documentation

def customise_phase1_hcal.customise (   process)

Definition at line 4 of file customise_phase1_hcal.py.

4 def customise(process):
5  process.load("SLHCUpgradeSimulations.Geometry.recoFromSimDigis_cff")
6  process.load("SLHCUpgradeSimulations.Geometry.upgradeTracking_phase1_cff")
7 
8  process.ctfWithMaterialTracks.TTRHBuilder = 'WithTrackAngle'
9  process.PixelCPEGenericESProducer.UseErrorsFromTemplates = cms.bool(False)
10  process.PixelCPEGenericESProducer.TruncatePixelCharge = cms.bool(False)
11  process.PixelCPEGenericESProducer.LoadTemplatesFromDB = cms.bool(False)
12  process.PixelCPEGenericESProducer.Upgrade = cms.bool(True)
13  process.PixelCPEGenericESProducer.SmallPitch = False
14  process.PixelCPEGenericESProducer.IrradiationBiasCorrection = False
15  process.PixelCPEGenericESProducer.DoCosmics = False
16 
17  ## CPE for other steps
18  process.siPixelRecHits.CPE = cms.string('PixelCPEGeneric')
19  process.initialStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
20  process.lowPtTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
21  process.pixelPairStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
22  process.detachedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
23  process.mixedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
24  process.pixelLessStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
25  process.tobTecStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
26  process.highPtTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
27 
28  # Need these lines to stop some errors about missing siStripDigis collections.
29  # should add them to fakeConditions_Phase1_cff
30  process.MeasurementTracker.inactiveStripDetectorLabels = cms.VInputTag()
31  process.MeasurementTracker.UseStripModuleQualityDB = cms.bool(False)
32  process.MeasurementTracker.UseStripAPVFiberQualityDB = cms.bool(False)
33  process.MeasurementTracker.UseStripStripQualityDB = cms.bool(False)
34  process.MeasurementTracker.UsePixelModuleQualityDB = cms.bool(False)
35  process.MeasurementTracker.UsePixelROCQualityDB = cms.bool(False)
36 
37  process.muons.TrackerKinkFinderParameters.TrackerRecHitBuilder = cms.string('WithTrackAngle')
38  # The SeedMergerPSet should be added to the following file for Phase 1
39  # RecoTracker/SpecialSeedGenerators/python/CombinatorialSeedGeneratorForCosmicsRegionalReconstruction_cfi.py
40  # but pixel layers are not used here for cosmic TODO: need Maria and Jan to do appropriate thing here
41  process.regionalCosmicTrackerSeeds.SeedMergerPSet = cms.PSet(
42  mergeTriplets = cms.bool(False),
43  ttrhBuilderLabel = cms.string( "PixelTTRHBuilderWithoutAngle" ),
44  addRemainingTriplets = cms.bool(False),
45  layerListName = cms.string( "PixelSeedMergerQuadruplets" )
46  )
47  process.regionalCosmicTracks.TTRHBuilder = cms.string('WithTrackAngle')
48 
49 
50  ### back to standard job commands ##################################################
51  process.DigiToRaw.remove(process.castorRawData)
52 
53  process.DigiToRaw.remove(process.siPixelRawData)
54  process.RawToDigi.remove(process.siPixelDigis)
55 
56 
57  if hasattr(process,'dqmoffline_step'):
58  process.dqmoffline_step.remove(process.SiPixelTrackResidualSource)
59  process.dqmoffline_step.remove(process.jetMETAnalyzer)
60  process.dqmoffline_step.remove(process.hltMonMuBits)
61  process.dqmoffline_step.remove(process.vbtfAnalyzer)
62  process.dqmoffline_step.remove(process.hltResults)
63  process.dqmoffline_step.remove(process.egHLTOffDQMSource)
64  process.dqmoffline_step.remove(process.globalAnalyzer)
65  process.dqmoffline_step.remove(process.jetMETHLTOfflineSource)
66 
67  process.dqmoffline_step.remove(process.TrackerCollisionTrackMon)
68  if hasattr(process,'validation_step'):
69  process.validation_step.remove(process.hltHITval)
70  process.validation_step.remove(process.HLTSusyExoVal)
71  process.validation_step.remove(process.relvalMuonBits)
72  process.validation_step.remove(process.hltMuonValidator)
73  #this takes forever - seems like an infinite loop that I didnt debug yet
74  process.validation_step.remove(process.pixelDigisValid)
75  else:
76  ## removing large memory usage module if we don't need it
77  process.pdigi.remove(process.mergedtruth)
78 
79 # HCAL Upgrade Geometry
80 
81  process.load("RecoLocalCalo.HcalRecProducers.HcalUpgradeReconstructor_cff")
82  process.load("RecoJets.Configuration.CaloTowersRec_cff")
83  process.load("RecoLocalCalo.HcalRecAlgos.hcalRecAlgoESProd_cfi")
84  process.load("RecoLocalCalo.Configuration.RecoLocalCalo_cff")
85 
86  process.ecalMultiFitUncalibRecHit.EBdigiCollection = cms.InputTag("simEcalDigis","ebDigis")
87  process.ecalMultiFitUncalibRecHit.EEdigiCollection = cms.InputTag("simEcalDigis","eeDigis")
88  process.ecalRecHit.ebDetIdToBeRecovered = cms.InputTag("","")
89  process.ecalRecHit.eeDetIdToBeRecovered = cms.InputTag("","")
90  process.ecalRecHit.eeFEToBeRecovered = cms.InputTag("","")
91  process.ecalRecHit.ebFEToBeRecovered = cms.InputTag("","")
92  process.ecalRecHit.recoverEBFE = cms.bool(False)
93  process.ecalRecHit.recoverEEFE = cms.bool(False)
94 
95  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hbhe_cfi")
96  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
97  process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi")
98 
99  process.hbheprereco.digiLabel = "simHcalUnsuppressedDigis"
100  process.horeco.digiLabel = "simHcalUnsuppressedDigis"
101  process.hfreco.digiLabel = "simHcalUnsuppressedDigis"
102  process.hcalupgradereco.digiLabel = "simHcalUnsuppressedDigis"
103 
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().

186 def customise_3bx(process):
187  process.mix.maxBunch=1
188  process.mix.minBunch=-1
189  return process
190 
def customise_phase1_hcal.customise_pu15_25ns (   process)

Definition at line 174 of file customise_phase1_hcal.py.

Referenced by customise_pu15_25ns_3bx().

174 def customise_pu15_25ns(process):
175 
176  process=customise(process)
177 
178  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
179 
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  process=customise_pu15_25ns(process)
193  process=customise_3bx(process)
194  return process
195 
196 #pileup specific stuff here
def customise_phase1_hcal.customise_pu15_25ns_wo_pairs (   process)

Definition at line 258 of file customise_phase1_hcal.py.

References customise_wo_pairs().

259 
260  process=customise_wo_pairs(process)
261 
262  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
263 
def customise_pu15_25ns_wo_pairs(process)
def customise_phase1_hcal.customise_pu50_25ns (   process)

Definition at line 197 of file customise_phase1_hcal.py.

Referenced by customise_pu50_25ns_3bx().

197 def customise_pu50_25ns(process):
198 
199  process=customise(process)
200 
201  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
202 
def customise_phase1_hcal.customise_pu50_25ns_3bx (   process)

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  process=customise_pu50_25ns(process)
222  process=customise_3bx(process)
223  return process
224 
def customise_pu50_25ns_3bx(process)
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.
def customise_phase1_hcal.customise_pu50_25ns_wo_pairs (   process)

Definition at line 272 of file customise_phase1_hcal.py.

References customise_wo_pairs().

273 
274  process=customise_wo_pairs(process)
275 
276  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
277 
def customise_pu50_25ns_wo_pairs(process)
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().

225 def customise_wo_pairs(process):
226 
227  process=customise(process)
228 
229  process.generalTracks.TrackProducers = (cms.InputTag('initialStepTracks'),
230  cms.InputTag('highPtTripletStepTracks'),
231  cms.InputTag('lowPtTripletStepTracks'),
232  cms.InputTag('mixedTripletStepTracks'))
233  process.generalTracks.hasSelector=cms.vint32(1,1,1,1)
234  process.generalTracks.selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStep"),
235  cms.InputTag("highPtTripletStepSelector","highPtTripletStep"),
236  cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
237  cms.InputTag("mixedTripletStep")
238  )
239  process.generalTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3), pQual=cms.bool(True) )
240  )
241 
242  process.newCombinedSeeds.seedCollections = cms.VInputTag(
243  cms.InputTag('initialStepSeeds'),
244  cms.InputTag('highPtTripletStepSeeds'),
245  cms.InputTag('lowPtTripletStepSeeds')
246  )
247 
248  process.mixedTripletStepClusters.oldClusterRemovalInfo = cms.InputTag("lowPtTripletStepClusters")
249  process.mixedTripletStepClusters.trajectories = cms.InputTag("lowPtTripletStepTracks")
250  process.mixedTripletStepClusters.overrideTrkQuals = cms.InputTag('lowPtTripletStepSelector','lowPtTripletStep')
251 
252  process.iterTracking.remove(process.PixelPairStep)
253  return (process)
254 
def customise_phase1_hcal.saveAllProds (   process)

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

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

Definition at line 255 of file customise_phase1_hcal.py.

256  return (process)
257 
def turnOffLegacyPhiCorrection(process)

Variable Documentation

customise_phase1_hcal.AddPixelInefficiency

if doing inefficiency at <PU>=50

Definition at line 209 of file customise_phase1_hcal.py.

customise_phase1_hcal.averageNumber

Definition at line 182 of file customise_phase1_hcal.py.

customise_phase1_hcal.calolocalreco

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

Definition at line 117 of file customise_phase1_hcal.py.

customise_phase1_hcal.globalreco

Definition at line 134 of file customise_phase1_hcal.py.

customise_phase1_hcal.hbhereco

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

Definition at line 106 of file customise_phase1_hcal.py.

customise_phase1_hcal.hcalGlobalRecoSequence

Definition at line 169 of file customise_phase1_hcal.py.

customise_phase1_hcal.hcalLocalRecoSequence

Definition at line 168 of file customise_phase1_hcal.py.

customise_phase1_hcal.highlevelreco

Definition at line 149 of file customise_phase1_hcal.py.

customise_phase1_hcal.jetGlobalReco

Definition at line 113 of file customise_phase1_hcal.py.

customise_phase1_hcal.jetHighLevelReco

Definition at line 114 of file customise_phase1_hcal.py.

customise_phase1_hcal.localreco

Definition at line 128 of file customise_phase1_hcal.py.

customise_phase1_hcal.nbPileupEvents

set the number of pileup

Definition at line 181 of file customise_phase1_hcal.py.

customise_phase1_hcal.reconstruction

Definition at line 162 of file customise_phase1_hcal.py.