CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def customise_CollisionMC_36X.customise (   process)

Definition at line 2 of file customise_CollisionMC_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 
21  ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
22 
23  ### prevent bias in pixel vertex
24  process.pixelVertices.useBeamConstraint = False
25 
26  ### pixelTracks
27  #---- new parameters ----
28  process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06)
29  process.pixelTracks.RegionFactoryPSet.RegionPSet.originHalfLength = cms.double(40.6)
30 
31  ### 0th step of iterative tracking
32  #---- new parameters ----
33  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06)
34  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 40.6
35 
36  ### 2nd step of iterative tracking
37  #---- new parameters ----
38  process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.47)
39  process.secTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 44.7
40 
41  ## Primary Vertex
42  process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
43  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
44  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
45  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelLayersWithHits = 2
46  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconLayersWithHits = 5
47  process.offlinePrimaryVerticesWithBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
48  process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
49  process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
50  process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
51  process.offlinePrimaryVertices.TkFilterParameters.minPixelLayersWithHits = 2
52  process.offlinePrimaryVertices.TkFilterParameters.minSiliconLayersWithHits = 5
53  process.offlinePrimaryVertices.TkClusParameters.TkGapClusParameters.zSeparation = 1
54 
55  ## ECAL
56  process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
57 
58  ## HCAL temporary fixes
59  process.hfreco.firstSample = 1
60  process.hfreco.samplesToAdd = 4
61 
62  ## EGAMMA
63  process.photons.minSCEtBarrel = 5.
64  process.photons.minSCEtEndcap =5.
65  process.photonCore.minSCEt = 5.
66  process.conversionTrackCandidates.minSCEt =5.
67  process.conversions.minSCEt =5.
68  process.trackerOnlyConversions.rCut = 2.
69  process.trackerOnlyConversions.vtxChi2 = 0.0005
70 
71  ###
72  ### end of top level replacements
73  ###
74  ###############################################################################################
75 
76  #add the DQM stream for this time only
77  # DQMStream output definition
78  process.outputDQMStream = cms.OutputModule("PoolOutputModule",
79  outputCommands = cms.untracked.vstring('drop *',
80  'keep *_MEtoEDMConverter_*_*'),
81  fileName = cms.untracked.string('DQMStream.root'),
82  dataset = cms.untracked.PSet(
83  filterName = cms.untracked.string(''),
84  dataTier = cms.untracked.string('DQM')
85  )
86  )
87  process.outputDQMStreamOutPath = cms.EndPath(process.outputDQMStream)
88  process.schedule.append( process.outputDQMStreamOutPath )
89 
90 
91 
92  return (process)