CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def customise_Collision_36X.customise (   process)

Definition at line 2 of file customise_Collision_36X.py.

2 
3 def customise(process):
4 
5  #####################################################################################################
6  ####
7  #### Top level replaces for handling strange scenarios of early collisions
8  ####
9 
10  ## TRACKING:
11  ## Skip events with HV off
12  process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
13  process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=20000
14  process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
15  process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 20000
16  process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters= 20000
17  process.thTripletsA.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
18  process.thTripletsB.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
19 
20  ## local tracker strip reconstruction
21  process.OutOfTime.TOBlateBP=0.071
22  process.OutOfTime.TIBlateBP=0.036
23 
24  ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
25 
26  ### prevent bias in pixel vertex
27  process.pixelVertices.useBeamConstraint = False
28 
29  ### pixelTracks
30  #---- new parameters ----
31  process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06)
32  process.pixelTracks.RegionFactoryPSet.RegionPSet.originHalfLength = cms.double(40.6)
33 
34  ### 0th step of iterative tracking
35  #---- new parameters ----
36  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06)
37  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 40.6
38 
39  ### 2nd step of iterative tracking
40  #---- new parameters ----
41  process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.47)
42  process.secTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 44.7
43 
44  ## Primary Vertex
45  process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
46  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
47  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
48  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelLayersWithHits = 2
49  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconLayersWithHits = 5
50  process.offlinePrimaryVerticesWithBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
51  process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
52  process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
53  process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
54  process.offlinePrimaryVertices.TkFilterParameters.minPixelLayersWithHits = 2
55  process.offlinePrimaryVertices.TkFilterParameters.minSiliconLayersWithHits = 5
56  process.offlinePrimaryVertices.TkClusParameters.TkGapClusParameters.zSeparation = 1
57 
58  ## ECAL
59  process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
60 
61  ##Preshower
62  process.ecalPreshowerRecHit.ESBaseline = 0
63 
64  ## HCAL temporary fixes
65  process.hfreco.firstSample = 3
66  process.hfreco.samplesToAdd = 4
67 
68  ## EGAMMA
69  process.photons.minSCEtBarrel = 5.
70  process.photons.minSCEtEndcap =5.
71  process.photonCore.minSCEt = 5.
72  process.conversionTrackCandidates.minSCEt =5.
73  process.conversions.minSCEt =5.
74  process.trackerOnlyConversions.rCut = 2.
75  process.trackerOnlyConversions.vtxChi2 = 0.0005
76 
77  ###
78  ### end of top level replacements
79  ###
80  ###############################################################################################
81 
82 
83  #add the DQM stream for this time only
84  # DQMStream output definition
85  process.outputDQMStream = cms.OutputModule("PoolOutputModule",
86  outputCommands = cms.untracked.vstring('drop *',
87  'keep *_MEtoEDMConverter_*_*'),
88  fileName = cms.untracked.string('DQMStream.root'),
89  dataset = cms.untracked.PSet(
90  filterName = cms.untracked.string(''),
91  dataTier = cms.untracked.string('DQM')
92  )
93  )
94  process.outputDQMStreamOutPath = cms.EndPath(process.outputDQMStream)
95  process.schedule.append( process.outputDQMStreamOutPath )
96 
97 
98 
99  return (process)