CMS 3D CMS Logo

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

Functions

def customise
 
def customise_condOverRides
 
def customise_Digi
 
def customise_DigiToRaw
 
def customise_RawToDigi
 
def customise_Reco
 
def l1EventContent
 

Function Documentation

def phase2TkCustoms_LB_4LPS_2L2S.customise (   process)

Definition at line 3 of file phase2TkCustoms_LB_4LPS_2L2S.py.

References customise_condOverRides(), customise_Digi(), customise_DigiToRaw(), HCalCustoms.customise_DQM(), HCalCustoms.customise_harvesting(), customise_RawToDigi(), customise_Reco(), and HCalCustoms.customise_Validation().

3 
4 def customise(process):
5  if hasattr(process,'DigiToRaw'):
6  process=customise_DigiToRaw(process)
7  if hasattr(process,'RawToDigi'):
8  process=customise_RawToDigi(process)
9  if hasattr(process,'reconstruction'):
10  process=customise_Reco(process)
11  if hasattr(process,'digitisation_step'):
12  process=customise_Digi(process)
13  if hasattr(process,'dqmoffline_step'):
14  process=customise_DQM(process)
15  if hasattr(process,'dqmHarvesting'):
16  process=customise_harvesting(process)
17  if hasattr(process,'validation_step'):
18  process=customise_Validation(process)
19  process=customise_condOverRides(process)
20 
21  return process
def customise_Validation
Definition: HCalCustoms.py:237
def customise_harvesting
Definition: HCalCustoms.py:234
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:218
def phase2TkCustoms_LB_4LPS_2L2S.customise_condOverRides (   process)

Definition at line 189 of file phase2TkCustoms_LB_4LPS_2L2S.py.

Referenced by customise().

190 def customise_condOverRides(process):
191  process.load('SLHCUpgradeSimulations.Geometry.fakeConditions_LongBarrel4LPS_2L2S_cff')
192  process.trackerNumberingSLHCGeometry.layerNumberPXB = cms.uint32(20)
193  process.trackerTopologyConstants.pxb_layerStartBit = cms.uint32(20)
194  process.trackerTopologyConstants.pxb_ladderStartBit = cms.uint32(12)
195  process.trackerTopologyConstants.pxb_moduleStartBit = cms.uint32(2)
196  process.trackerTopologyConstants.pxb_layerMask = cms.uint32(15)
197  process.trackerTopologyConstants.pxb_ladderMask = cms.uint32(255)
198  process.trackerTopologyConstants.pxb_moduleMask = cms.uint32(1023)
199  process.trackerTopologyConstants.pxf_diskStartBit = cms.uint32(18)
200  process.trackerTopologyConstants.pxf_bladeStartBit = cms.uint32(12)
201  process.trackerTopologyConstants.pxf_panelStartBit = cms.uint32(10)
202  process.trackerTopologyConstants.pxf_moduleMask = cms.uint32(255)
203  return process
204 
def phase2TkCustoms_LB_4LPS_2L2S.customise_Digi (   process)

Definition at line 22 of file phase2TkCustoms_LB_4LPS_2L2S.py.

Referenced by customise().

22 
23 def customise_Digi(process):
24  process.mix.digitizers.pixel.MissCalibrate = False
25  process.mix.digitizers.pixel.LorentzAngle_DB = False
26  process.mix.digitizers.pixel.killModules = False
27  process.mix.digitizers.pixel.useDB = False
28  process.mix.digitizers.pixel.DeadModules_DB = False
29  process.mix.digitizers.pixel.NumPixelBarrel = cms.int32(12)
30  process.mix.digitizers.pixel.NumPixelEndcap = cms.int32(2)
31  process.mix.digitizers.pixel.ThresholdInElectrons_FPix = cms.double(2000.0)
32  process.mix.digitizers.pixel.ThresholdInElectrons_BPix = cms.double(2000.0)
33  process.mix.digitizers.pixel.ThresholdInElectrons_BPix_L1 = cms.double(2000.0)
34  process.mix.digitizers.pixel.thePixelColEfficiency_BPix4 = cms.double(0.999)
35  process.mix.digitizers.pixel.thePixelEfficiency_BPix4 = cms.double(0.999)
36  process.mix.digitizers.pixel.thePixelChipEfficiency_BPix4 = cms.double(0.999)
37  process.mix.digitizers.pixel.thePixelColEfficiency_FPix3 = cms.double(0.999)
38  process.mix.digitizers.pixel.thePixelEfficiency_FPix3 = cms.double(0.999)
39  process.mix.digitizers.pixel.thePixelChipEfficiency_FPix3 = cms.double(0.999)
40  process.mix.digitizers.pixel.AddPixelInefficiencyFromPython = cms.bool(False)
41  process.mix.digitizers.strip.ROUList = cms.vstring("g4SimHitsTrackerHitsPixelBarrelLowTof",
42  'g4SimHitsTrackerHitsPixelEndcapLowTof')
43  process.digitisation_step.remove(process.simSiStripDigiSimLink)
44  process.mergedtruth.simHitCollections.tracker = []
45  return process
46 
def phase2TkCustoms_LB_4LPS_2L2S.customise_DigiToRaw (   process)

Definition at line 47 of file phase2TkCustoms_LB_4LPS_2L2S.py.

Referenced by customise().

47 
48 def customise_DigiToRaw(process):
49  process.digi2raw_step.remove(process.siPixelRawData)
50  process.digi2raw_step.remove(process.rpcpacker)
51  return process
def phase2TkCustoms_LB_4LPS_2L2S.customise_RawToDigi (   process)

Definition at line 52 of file phase2TkCustoms_LB_4LPS_2L2S.py.

Referenced by customise().

52 
53 def customise_RawToDigi(process):
54  process.raw2digi_step.remove(process.siPixelDigis)
55  return process
def phase2TkCustoms_LB_4LPS_2L2S.customise_Reco (   process)

Definition at line 56 of file phase2TkCustoms_LB_4LPS_2L2S.py.

Referenced by customise().

56 
57 def customise_Reco(process):
58  ## need changes to mixedtriplets step to use for imcreasing high eta efficiency
59  process.reconstruction.remove(process.pixelLessStepSeedClusterMask)
60  process.reconstruction.remove(process.castorreco)
61  process.reconstruction.remove(process.CastorTowerReco)
62  process.reconstruction.remove(process.ak7BasicJets)
63  process.reconstruction.remove(process.ak7CastorJetID)
64  #process.iterTracking.remove(process.PixelLessStep)
65  #process.iterTracking.remove(process.TobTecStep)
66  process.MixedTripletStep.remove(process.mixedTripletStepSeedsB)
67  process.mixedTripletStepSeeds = cms.EDProducer("SeedCombiner",
68  seedCollections = cms.VInputTag(cms.InputTag("mixedTripletStepSeedsA"))
69  )
70  process.load("RecoTracker.IterativeTracking.HighPtTripletStep_cff")
71  from RecoTracker.IterativeTracking.HighPtTripletStep_cff import HighPtTripletStep
72  process.iterTracking = cms.Sequence(process.InitialStep*
73  process.HighPtTripletStep*
74  process.LowPtTripletStep*
75  process.PixelPairStep*
76  process.DetachedTripletStep*
77  process.MixedTripletStep*
78  #process.PixelLessStep*
79  #process.TobTecStep*
80  process.earlyGeneralTracks*
81  process.muonSeededStep*
82  process.preDuplicateMergingGeneralTracks*
83  process.generalTracksSequence*
84  process.ConvStep*
85  process.conversionStepTracks
86  )
87 
88 
89 
90 
91  process.convClusters.oldClusterRemovalInfo=cms.InputTag("mixedTripletStepClusters")
92  process.convClusters.trajectories=cms.InputTag("mixedTripletStepTracks")
93  process.convClusters.overrideTrkQuals= cms.InputTag("mixedTripletStep")
94  process.mixedTripletStepSeedLayersA.layerList = cms.vstring('BPix1+BPix2+BPix3',
95  'BPix1+BPix2+FPix1_pos',
96  'BPix1+BPix2+FPix1_neg',
97  'BPix1+FPix1_pos+FPix2_pos',
98  'BPix1+FPix1_neg+FPix2_neg',
99  'BPix2+FPix1_pos+FPix2_pos',
100  'BPix2+FPix1_neg+FPix2_neg')
101 
102  process.earlyGeneralTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4), pQual=cms.bool(True) ))
103  process.earlyGeneralTracks.hasSelector=cms.vint32(1,1,1,1,1)
104  process.earlyGeneralTracks.selectedTrackQuals = cms.VInputTag(
105  cms.InputTag("initialStepSelector","initialStep"),
106  cms.InputTag("highPtTripletStepSelector","highPtTripletStep"),
107  cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
108  cms.InputTag("pixelPairStepSelector","pixelPairStep"),
109  cms.InputTag("mixedTripletStep")
110  )
111  process.earlyGeneralTracks.TrackProducers = cms.VInputTag(
112  cms.InputTag("initialStepTracks"),
113  cms.InputTag("highPtTripletStepTracks"),
114  cms.InputTag("lowPtTripletStepTracks"),
115  cms.InputTag("pixelPairStepTracks"),
116  cms.InputTag("mixedTripletStepTracks")
117  )
118 
119  process.tripletElectronSeedLayers.BPix.skipClusters=cms.InputTag('mixedTripletStepSeedClusterMask')
120  process.tripletElectronSeedLayers.FPix.skipClusters=cms.InputTag('mixedTripletStepSeedClusterMask')
121  process.tripletElectronClusterMask.oldClusterRemovalInfo=cms.InputTag('mixedTripletStepSeedClusterMask')
122 
123  process.initialStepSeedClusterMask.oldClusterRemovalInfo=cms.InputTag("mixedTripletStepClusters")
124  process.newCombinedSeeds.seedCollections = cms.VInputTag(cms.InputTag('initialStepSeeds'),
125  cms.InputTag("highPtTripletStepSeeds"),
126  cms.InputTag('pixelPairStepSeeds'),
127  cms.InputTag('mixedTripletStepSeeds'),
128  cms.InputTag('tripletElectronSeeds'),
129  cms.InputTag('pixelPairElectronSeeds'),
130  cms.InputTag('stripPairElectronSeeds') )
131  process.stripPairElectronSeedLayers.layerList = cms.vstring('BPix4+BPix5') # Optimize later
132  process.stripPairElectronSeedLayers.BPix = cms.PSet(
133  HitProducer = cms.string('siPixelRecHits'),
134  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
135  skipClusters = cms.InputTag("pixelPairStepClusters"),
136  )
137  process.regionalCosmicTrackerSeedingLayers.layerList = cms.vstring('BPix10+BPix9') # Optimize later
138  process.regionalCosmicTrackerSeedingLayers.BPix = cms.PSet(
139  HitProducer = cms.string('siPixelRecHits'),
140  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
141  skipClusters = cms.InputTag("pixelPairStepClusters"),
142  )
143  from RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff import PixelSeedMergerQuadruplets
144  process.pixelTracks.SeedMergerPSet = cms.PSet(
145  layerList = PixelSeedMergerQuadruplets,
146  addRemainingTriplets = cms.bool(False),
147  mergeTriplets = cms.bool(True),
148  ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
149  )
150  process.initialStepSeedClusterMask.oldClusterRemovalInfo=cms.InputTag("mixedTripletStepClusters")
151 
152  # Need this line to stop error about missing siPixelDigis.
153  process.MeasurementTracker.inactivePixelDetectorLabels = cms.VInputTag()
154  process.load("SLHCUpgradeSimulations.Geometry.recoFromSimDigis_cff")
155  # Use with latest pixel geometry. Only used for seeds, so we can use the Phase1Tk file.
156  # We will need to turn it off for any steps that use the outer pixels as seeds.
157  process.ClusterShapeHitFilterESProducer.PixelShapeFile = cms.string('RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape_Phase1Tk.par')
158  # Now make sure we us CPE Generic
159  process.mergedDuplicateTracks.TTRHBuilder = 'WithTrackAngle'
160  process.ctfWithMaterialTracks.TTRHBuilder = 'WithTrackAngle'
161  process.PixelCPEGenericESProducer.UseErrorsFromTemplates = cms.bool(False)
162  process.PixelCPEGenericESProducer.TruncatePixelCharge = cms.bool(False)
163  process.PixelCPEGenericESProducer.LoadTemplatesFromDB = cms.bool(False)
164  process.PixelCPEGenericESProducer.Upgrade = cms.bool(True)
165  process.PixelCPEGenericESProducer.IrradiationBiasCorrection = False
166  process.PixelCPEGenericESProducer.DoCosmics = False
167  process.siPixelRecHits.CPE = cms.string('PixelCPEGeneric')
168  #the quadruplet merger configuration
169  # from this PSet the quadruplet merger uses only the layer list so these could probably be removed
170  PixelSeedMergerQuadruplets.BPix.TTRHBuilder = cms.string("PixelTTRHBuilderWithoutAngle" )
171  PixelSeedMergerQuadruplets.BPix.HitProducer = cms.string("siPixelRecHits" )
172  PixelSeedMergerQuadruplets.FPix.TTRHBuilder = cms.string("PixelTTRHBuilderWithoutAngle" )
173  PixelSeedMergerQuadruplets.FPix.HitProducer = cms.string("siPixelRecHits" )
174 
175  process.highPtTripletStepTracks.TTRHBuilder=cms.string('WithTrackAngle')
176  process.detachedTripletStepTracks.TTRHBuilder=cms.string('WithTrackAngle')
177  process.initialStepTracks.TTRHBuilder=cms.string('WithTrackAngle')
178  process.pixelPairStepTracks.TTRHBuilder=cms.string('WithTrackAngle')
179  process.lowPtTripletStepTracks.TTRHBuilder=cms.string('WithTrackAngle')
180  process.convStepTracks.TTRHBuilder=cms.string('WithTrackAngle')
181  process.mixedTripletStepTracks.TTRHBuilder=cms.string('WithTrackAngle')
182  process.muonSeededSeedsInOut.TrackerRecHitBuilder = cms.string('WithTrackAngle')
183  process.muonSeededTracksInOut.TTRHBuilder = cms.string('WithTrackAngle')
184  process.muons1stStep.TrackerKinkFinderParameters.TrackerRecHitBuilder=cms.string('WithTrackAngle')
185  process.regionalCosmicTracks.TTRHBuilder=cms.string('WithTrackAngle')
186  process.cosmicsVetoTracksRaw.TTRHBuilder=cms.string('WithTrackAngle')
187 
188  return process
def phase2TkCustoms_LB_4LPS_2L2S.l1EventContent (   process)

Definition at line 205 of file phase2TkCustoms_LB_4LPS_2L2S.py.

206 def l1EventContent(process):
207  #extend the event content
208 
209  alist=['RAWSIM','FEVTDEBUG','FEVTDEBUGHLT','GENRAW','RAWSIMHLT','FEVT']
210  for a in alist:
211  b=a+'output'
212  if hasattr(process,b):
213  getattr(process,b).outputCommands.append('keep PSimHits_g4SimHits_*_*')
214  getattr(process,b).outputCommands.append('keep SimTracks_g4SimHits_*_*')
215  getattr(process,b).outputCommands.append('keep SimVertexs_g4SimHits_*_*')
216  getattr(process,b).outputCommands.append('keep *_simSiPixelDigis_*_*')
217  getattr(process,b).outputCommands.append('keep *_genParticles_*_*')
218  getattr(process,b).outputCommands.append('keep *_L1TkBeams_*_*')
219  getattr(process,b).outputCommands.append('keep *_L1TkClustersFromPixelDigis_*_*')
220  getattr(process,b).outputCommands.append('keep *_L1TkClustersFromSimHits_*_*')
221  getattr(process,b).outputCommands.append('keep *_L1TkStubsFromPixelDigis_*_*')
222  getattr(process,b).outputCommands.append('keep *_L1TkStubsFromSimHits_*_*')
223  getattr(process,b).outputCommands.append('keep *_siPixelRecHits_*_*')
224  #drop some bigger collections we don't think we need
225  getattr(process,b).outputCommands.append('drop PSimHits_g4SimHits_EcalHitsEB_*')
226  getattr(process,b).outputCommands.append('drop PSimHits_g4SimHits_EcalHitsEE_*')
227  getattr(process,b).outputCommands.append('drop *_L1TkStubsFromSimHits_StubsFail_*')
228  return process
229