Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #loose
0004 hiLooseMTS = cms.PSet(
0005     preFilterName=cms.string(''),
0006     name= cms.string('hiTrkLoose'),
0007 
0008    # vertex selection
0009     vtxNumber = cms.int32(-1),
0010     vertexCut = cms.string(''),
0011 
0012     #untracked bool copyTrajectories = true // when doing retracking before
0013     copyTrajectories = cms.untracked.bool(True),
0014     copyExtras = cms.untracked.bool(True), ## set to false on AOD
0015     qualityBit = cms.string('loose'),      ## set to '' or comment out if you dont want to set the
0016     chi2n_par = cms.double(0.3),           # version with 1D hits modification
0017     chi2n_no1Dmod_par = cms.double(9999.), # normalizedChi2 < nLayers * chi2n_par
0018     res_par = cms.vdouble(99999., 99999.), # residual parameterization (re-check in HI)
0019     d0_par1 = cms.vdouble(9999., 0.),      # parameterized nomd0E
0020     dz_par1 = cms.vdouble(9999., 0.),
0021     d0_par2 = cms.vdouble(0.4, 4.0),       # d0E from tk.d0Error
0022     dz_par2 = cms.vdouble(0.4, 4.0),
0023     # Boolean indicating if adapted primary vertex compatibility cuts are to be applied.
0024     applyAdaptedPVCuts = cms.bool(True),
0025 
0026     # Impact parameter absolute cuts.
0027     max_z0 = cms.double(100),
0028     max_d0 = cms.double(100),
0029     nSigmaZ = cms.double(9999.),
0030 
0031    # Cuts on numbers of layers with hits/3D hits/lost hits.
0032     minNumberLayers = cms.uint32(0),
0033     minNumber3DLayers = cms.uint32(0),
0034     maxNumberLostLayers = cms.uint32(999),
0035     minHitsToBypassChecks = cms.uint32(999),
0036     max_minMissHitOutOrIn = cms.int32(99),
0037     max_lostHitFraction = cms.double(1.0),
0038     min_eta = cms.double(-9999.),
0039     max_eta = cms.double(9999.) ,
0040 
0041     # Absolute cuts in case of no PV. If yes, please define also max_d0NoPV and max_z0NoPV
0042     applyAbsCutsIfNoPV = cms.bool(False),
0043     keepAllTracks= cms.bool(False),
0044 
0045     # parameters for cutting on pterror/pt and number of valid hits
0046     max_relpterr = cms.double(0.2),
0047     min_nhits = cms.uint32(8),
0048 
0049     useMVA = cms.bool(False),
0050     minMVA = cms.double(-1)
0051     )
0052 
0053 hiTightMTS=hiLooseMTS.clone(
0054     preFilterName ='hiTrkLoose',
0055     min_nhits = 8,
0056     max_relpterr = 0.075,
0057     d0_par2 = [5.0, 0.0],
0058     dz_par2 = [5.0, 0.0],
0059     chi2n_no1Dmod_par = 0.25,
0060     name = 'hiTrkTight',
0061     qualityBit = 'tight', ## set to '' or comment out if you dont want to set the bit
0062     keepAllTracks = True
0063 )
0064 
0065 hiHighpurityMTS= hiTightMTS.clone(
0066     name = 'hiTrkHighPurity',
0067     preFilterName ='hiTrkTight',
0068     min_nhits = 8,
0069     max_relpterr = 0.05,
0070     d0_par2 = [3.0, 0.0],
0071     dz_par2 = [3.0, 0.0],
0072     chi2n_no1Dmod_par = 0.15,
0073     qualityBit = 'highPurity' ## set to '' or comment out if you dont want to set the bit
0074 )
0075 
0076 #typical configuration is six selectors... something like this to
0077 #make cloning easier.
0078 hiMultiTrackSelector = cms.EDProducer("HIMultiTrackSelector",
0079                                     src = cms.InputTag("hiGeneralTracks"),
0080                                     beamspot = cms.InputTag("offlineBeamSpot"),
0081                                     useVertices = cms.bool(True),
0082                                     useVtxError = cms.bool(True),
0083                                     vertices    = cms.InputTag("hiSelectedPixelVertex"),
0084                                     useAnyMVA = cms.bool(False),
0085                                     GBRForestLabel = cms.string(''),
0086                                     GBRForestVars = cms.vstring(),
0087                                     trackSelectors = cms.VPSet( hiLooseMTS,
0088                                                                 hiTightMTS,
0089                                                                 hiHighpurityMTS)
0090                                     )