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 hitfit.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  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"
104 
105 ### Known alterations for Reco #####################################################
106  delattr(process,"hbhereco")
107  process.hbhereco = process.hbheprereco.clone()
108 
109  process.metrecoPlusHCALNoise.remove(process.BeamHaloSummary)
110  process.metrecoPlusHCALNoise.remove(process.GlobalHaloData)
111  process.metrecoPlusHCALNoise.remove(process.HcalHaloData)
112 
113  process.metrecoPlusHCALNoise.remove(process.hcalnoise)
114  process.jetGlobalReco = cms.Sequence(process.recoJets*process.recoTrackJets)
115  process.jetHighLevelReco = cms.Sequence(process.recoJetAssociations*process.recoPFJets*process.recoJPTJets)
116 
117 ### Place to add in the reco steps one by one ######################################
118  process.calolocalreco = cms.Sequence(process.ecalGlobalUncalibRecHit+
119  process.ecalDetIdToBeRecovered+
120  process.ecalRecHit+
121  process.ecalCompactTrigPrim+
122  process.ecalTPSkim+
123  process.ecalPreshowerRecHit+
124  #process.hbheprereco+
125  process.hbhereco+
126  process.horeco+process.hfreco+process.hcalupgradereco+process.towerMaker
127  #+process.zdcreco
128  )
129  process.localreco = cms.Sequence(process.trackerlocalreco+
130  process.muonlocalreco+
131  process.calolocalreco+
132  process.castorreco+
133  process.lumiProducer
134  )
135  process.globalreco = cms.Sequence(process.offlineBeamSpot
136  *process.recopixelvertexing
137  *process.trackingGlobalReco
138  #*process.hcalGlobalRecoSequence
139  *process.particleFlowCluster
140  *process.ecalClusters
141  *process.caloTowersRec
142  *process.vertexreco
143  *process.egammaGlobalReco
144  *process.pfTrackingGlobalReco
145  *process.jetGlobalReco
146  *process.muonrecoComplete
147  *process.muoncosmicreco
148  *process.CastorFullReco
149  )
150  process.highlevelreco = cms.Sequence(process.egammaHighLevelRecoPrePF
151  *process.particleFlowReco
152  *process.egammaHighLevelRecoPostPF
153  *process.jetHighLevelReco
154  *process.tautagging
155  *process.metrecoPlusHCALNoise
156  *process.btagging
157  *process.recoPFMET
158  *process.PFTau
159  *process.regionalCosmicTracksSeq
160  *process.muoncosmichighlevelreco
161  *process.reducedRecHits
162  )
163  process.reconstruction = cms.Sequence( process.localreco *
164  process.globalreco *
165  process.highlevelreco *
166  process.logErrorHarvester
167  )
168  # Clean out some unused sequences
169  process.hcalLocalRecoSequence=cms.Sequence()
170  process.hcalGlobalRecoSequence=cms.Sequence()
171 
172  return(process)
173 
174 
175 def customise_pu15_25ns(process):
176 
177  process=customise(process)
178 
179  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
180 
181 ### set the number of pileup
182  process.mix.input.nbPileupEvents = cms.PSet(
183  averageNumber = cms.double(15.0)
184  )
185  return (process)
186 
187 def customise_3bx(process):
188  process.mix.maxBunch=1
189  process.mix.minBunch=-1
190  return process
191 
192 def customise_pu15_25ns_3bx(process):
193  process=customise_pu15_25ns(process)
194  process=customise_3bx(process)
195  return process
196 
197 #pileup specific stuff here
198 def customise_pu50_25ns(process):
199 
200  process=customise(process)
201 
202  process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_Phase1_R30F12_HCal_cff")
203 
204 ### set the number of pileup
205  process.mix.input.nbPileupEvents = cms.PSet(
206  averageNumber = cms.double(50.0)
)
def customise_pu15_25ns
Known alterations for Reco #####################################################. ...
def customise_phase1_hcal.customise_3bx (   process)

Definition at line 371 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 347 of file customise_phase1_hcal.py.

Referenced by customise(), and customise_pu15_25ns_3bx().

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_*',
'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
def customise_phase1_hcal.customise_pu15_25ns_3bx (   process)

Definition at line 381 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 515 of file customise_phase1_hcal.py.

References customise_wo_pairs().

def customise_phase1_hcal.customise_pu50_25ns (   process)

Definition at line 393 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 439 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 543 of file customise_phase1_hcal.py.

References customise_wo_pairs().

def customise_phase1_hcal.customise_wo_pairs (   process)

Definition at line 449 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 591 of file customise_phase1_hcal.py.

def customise_phase1_hcal.turnOffLegacyPhiCorrection (   process)

Definition at line 509 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 363 of file customise_phase1_hcal.py.

Referenced by edm::SecSourceAnalyzer.SecSourceAnalyzer().