CMS 3D CMS Logo

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.

00004                             :
00005 
00006     
00007     #####################################################################################################
00008     ####
00009     ####  Top level replaces for handling strange scenarios of early collisions
00010     ####
00011 
00012     ## TRACKING:
00013     ## Skip events with HV off
00014     process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
00015     process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
00016     process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
00017     process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 10000
00018     process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
00019 
00020     ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
00021 
00022     ### prevent bias in pixel vertex
00023     process.pixelVertices.useBeamConstraint = False
00024     
00025     ### pixelTracks
00026     #---- new parameters ----
00027     process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.06) # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
00028     
00029     ### 0th step of iterative tracking
00030     #---- replaces ----
00031     process.newSeedFromTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
00032     #---- new parameters ----
00033     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ   = cms.double(4.06)  # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
00034     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
00035 
00036     ### 2nd step of iterative tracking
00037     #---- replaces ----
00038     process.secTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
00039     #---- new parameters ----
00040     process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.47)  # was originHalfLength = 17.5; translated assuming sigmaZ ~ 3.8
00041     process.secTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
00042 
00043     ## Primary Vertex
00044     process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
00045     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
00046     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconHits = 6
00047     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
00048     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelHits = 1
00049     process.offlinePrimaryVerticesWithBS.TkClusParameters.zSeparation = 1
00050     process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
00051     process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
00052     process.offlinePrimaryVertices.TkFilterParameters.minSiliconHits = 6
00053     process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
00054     process.offlinePrimaryVertices.TkFilterParameters.minPixelHits = 1
00055     process.offlinePrimaryVertices.TkClusParameters.zSeparation = 1
00056 
00057     ## ECAL 
00058     process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
00059 
00060     ## HCAL temporary fixes
00061     process.hfreco.samplesToAdd = 4
00062     
00063     ## EGAMMA
00064     process.gsfElectrons.applyPreselection = cms.bool(False)
00065     process.photons.minSCEtBarrel = 2.
00066     process.photons.minSCEtEndcap =2.
00067     process.photonCore.minSCEt = 2.
00068     process.conversionTrackCandidates.minSCEt =1.
00069     process.conversions.minSCEt =1.
00070     process.trackerOnlyConversions.AllowTrackBC = cms.bool(False)
00071     process.trackerOnlyConversions.AllowRightBC = cms.bool(False)
00072     process.trackerOnlyConversions.MinApproach = cms.double(-.25)
00073     process.trackerOnlyConversions.DeltaCotTheta = cms.double(.07)
00074     process.trackerOnlyConversions.DeltaPhi = cms.double(.2)
00075     
00076     ###
00077     ###  end of top level replacements
00078     ###
00079     ###############################################################################################
00080 
00081     return (process)
00082 

def reco_TLR_35X::customiseCosmicData (   process)

Definition at line 104 of file reco_TLR_35X.py.

00105                                 :
00106     process.ecalPreshowerRecHit.ESBaseline = cms.int32(0)
00107     process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
00108     
00109     return process

def reco_TLR_35X::customiseCosmicMC (   process)

Definition at line 111 of file reco_TLR_35X.py.

00112                               :
00113     
00114     return process
00115         

def reco_TLR_35X::customiseExpress (   process)

Definition at line 117 of file reco_TLR_35X.py.

00118                              :
00119     process= customisePPData(process)
00120 
00121     return process
def reco_TLR_35X::customisePPData (   process)

Definition at line 84 of file reco_TLR_35X.py.

00085                             :
00086     process= customiseCommon(process)
00087     process.hfreco.firstSample=3
00088     ##Preshower
00089     process.ecalPreshowerRecHit.ESBaseline = 0
00090 
00091     ##Preshower algo for data is different than for MC
00092     process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
00093 
00094     return process
00095 

def reco_TLR_35X::customisePPMC (   process)

Definition at line 97 of file reco_TLR_35X.py.

00098                           :
00099     process=customiseCommon(process)
00100     process.hfreco.firstSample=1
00101     
00102     return process