CMS 3D CMS Logo

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

Functions

def customiseCommon
 
def customiseCosmicData
 
def customiseCosmicMC
 
def customiseExpress
 
def customisePPData
 
def customisePPMC
 

Function Documentation

def reco_TLR_35X.customiseCommon (   process)

Definition at line 3 of file reco_TLR_35X.py.

Referenced by customisePPData(), and customisePPMC().

3 
4 def customiseCommon(process):
5 
6 
7  #####################################################################################################
8  ####
9  #### Top level replaces for handling strange scenarios of early collisions
10  ####
11 
12  ## TRACKING:
13  ## Skip events with HV off
14  process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
15  process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
16  process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
17  process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 10000
18  process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
19 
20  ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
21 
22  ### prevent bias in pixel vertex
23  process.pixelVertices.useBeamConstraint = False
24 
25  ### pixelTracks
26  #---- new parameters ----
27  process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06) # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
28 
29  ### 0th step of iterative tracking
30  #---- replaces ----
31  process.newSeedFromTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
32  #---- new parameters ----
33  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06) # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
34  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
35 
36  ### 2nd step of iterative tracking
37  #---- replaces ----
38  process.secTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
39  #---- new parameters ----
40  process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.47) # was originHalfLength = 17.5; translated assuming sigmaZ ~ 3.8
41  process.secTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
42 
43  ## Primary Vertex
44  process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
45  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
46  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconHits = 6
47  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
48  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelHits = 1
49  process.offlinePrimaryVerticesWithBS.TkClusParameters.zSeparation = 1
50  process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
51  process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
52  process.offlinePrimaryVertices.TkFilterParameters.minSiliconHits = 6
53  process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
54  process.offlinePrimaryVertices.TkFilterParameters.minPixelHits = 1
55  process.offlinePrimaryVertices.TkClusParameters.zSeparation = 1
56 
57  ## ECAL
58  process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
59 
60  ## HCAL temporary fixes
61  process.hfreco.samplesToAdd = 4
62 
63  ## EGAMMA
64  process.gsfElectrons.applyPreselection = cms.bool(False)
65  process.photons.minSCEtBarrel = 2.
66  process.photons.minSCEtEndcap =2.
67  process.photonCore.minSCEt = 2.
68  process.conversionTrackCandidates.minSCEt =1.
69  process.conversions.minSCEt =1.
70  process.trackerOnlyConversions.AllowTrackBC = cms.bool(False)
71  process.trackerOnlyConversions.AllowRightBC = cms.bool(False)
72  process.trackerOnlyConversions.MinApproach = cms.double(-.25)
73  process.trackerOnlyConversions.DeltaCotTheta = cms.double(.07)
74  process.trackerOnlyConversions.DeltaPhi = cms.double(.2)
75 
76  ###
77  ### end of top level replacements
78  ###
79  ###############################################################################################
80 
81  return (process)
82 
def customiseCommon
Definition: reco_TLR_35X.py:3
def reco_TLR_35X.customiseCosmicData (   process)

Definition at line 104 of file reco_TLR_35X.py.

105 def customiseCosmicData(process):
106  process.ecalPreshowerRecHit.ESBaseline = cms.int32(0)
107  process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
108 
109  return process
def customiseCosmicData
def reco_TLR_35X.customiseCosmicMC (   process)

Definition at line 111 of file reco_TLR_35X.py.

112 def customiseCosmicMC(process):
113 
114  return process
115 
def customiseCosmicMC
def reco_TLR_35X.customiseExpress (   process)

Definition at line 117 of file reco_TLR_35X.py.

References customisePPData().

118 def customiseExpress(process):
119  process= customisePPData(process)
120 
121  return process
def customisePPData
Definition: reco_TLR_35X.py:84
def customiseExpress
def reco_TLR_35X.customisePPData (   process)

Definition at line 84 of file reco_TLR_35X.py.

References customiseCommon().

Referenced by customiseExpress().

84 
85 def customisePPData(process):
86  process= customiseCommon(process)
87  process.hfreco.firstSample=3
88  ##Preshower
89  process.ecalPreshowerRecHit.ESBaseline = 0
90 
91  ##Preshower algo for data is different than for MC
92  process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
93 
94  return process
95 
def customiseCommon
Definition: reco_TLR_35X.py:3
def customisePPData
Definition: reco_TLR_35X.py:84
def reco_TLR_35X.customisePPMC (   process)

Definition at line 97 of file reco_TLR_35X.py.

References customiseCommon().

97 
98 def customisePPMC(process):
99  process=customiseCommon(process)
100  process.hfreco.firstSample=1
101 
102  return process
def customiseCommon
Definition: reco_TLR_35X.py:3