CMS 3D CMS Logo

TTStubAlgorithmRegister_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # First register all the hit matching algorithms, then specify preferred ones at end.
4 
5 # The stub windows used has been optimized for for PU200 events
6 # We use by default the tight tuning
7 #
8 # Definition is presented here:
9 #
10 # https://indico.cern.ch/event/681577/#4-update-of-the-track-trigger
11 #
12 # This script is adapted to the very last Tilted Tracker geometry to date (tracker T5)
13 # This version was tested on CMSSW 10_0_0_pre1
14 #
15 
16 TTStubAlgorithm_official_Phase2TrackerDigi_ = cms.ESProducer("TTStubAlgorithm_official_Phase2TrackerDigi_",
17  zMatchingPS = cms.bool(True),
18  zMatching2S = cms.bool(True),
19  #Number of tilted rings per side in barrel layers (for tilted geom only)
20  NTiltedRings = cms.vdouble( 0., 12., 12., 12., 0., 0., 0.),
21  # PU200 tight tuning, optimized for muons
22  BarrelCut = cms.vdouble( 0, 2, 2.5, 3.5, 4.5, 5.5, 7),
23  TiltedBarrelCutSet = cms.VPSet(
24  cms.PSet( TiltedCut = cms.vdouble( 0 ) ),
25  cms.PSet( TiltedCut = cms.vdouble( 0, 3, 3, 2.5, 3, 3, 2.5, 2.5, 2, 1.5, 1.5, 1, 1) ),
26  cms.PSet( TiltedCut = cms.vdouble( 0, 3.5, 3, 3, 3, 3, 2.5, 2.5, 3, 3, 2.5, 2.5, 2.5) ),
27  cms.PSet( TiltedCut = cms.vdouble( 0, 4, 4, 4, 3.5, 3.5, 3.5, 3.5, 3, 3, 3, 3, 3) ),
28  ),
29  EndcapCutSet = cms.VPSet(
30  cms.PSet( EndcapCut = cms.vdouble( 0 ) ),
31  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 2.5, 2.5, 3, 2.5, 3, 3.5, 4, 4, 4.5, 3.5, 4, 4.5, 5, 5.5) ),
32  cms.PSet( EndcapCut = cms.vdouble( 0, 0.5, 2.5, 2.5, 3, 2.5, 3, 3, 3.5, 3.5, 4, 3.5, 3.5, 4, 4.5, 5) ),
33  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 3, 3, 2.5, 3.5, 3.5, 3.5, 4, 3.5, 3.5, 4, 4.5) ),
34  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 2.5, 3, 2.5, 3.5, 3, 3, 3.5, 3.5, 3.5, 4, 4) ),
35  cms.PSet( EndcapCut = cms.vdouble( 0, 0.5, 1.5, 3, 2.5, 3.5, 3, 3, 3.5, 4, 3.5, 4, 3.5) ),
36  )
37 
38  # PU200 loose tuning, optimized for robustness (uncomment if you want to use it)
39  #BarrelCut = cms.vdouble( 0, 2.0, 3, 4.5, 6, 6.5, 7.0),
40  #TiltedBarrelCutSet = cms.VPSet(
41  # cms.PSet( TiltedCut = cms.vdouble( 0 ) ),
42  # cms.PSet( TiltedCut = cms.vdouble( 0, 3, 3., 2.5, 3., 3., 2.5, 2.5, 2., 1.5, 1.5, 1, 1) ),
43  # cms.PSet( TiltedCut = cms.vdouble( 0, 4., 4, 4, 4, 4., 4., 4.5, 5, 4., 3.5, 3.5, 3) ),
44  # cms.PSet( TiltedCut = cms.vdouble( 0, 5, 5, 5, 5, 5, 5, 5.5, 5, 5, 5.5, 5.5, 5.5) ),
45  # ),
46  #EndcapCutSet = cms.VPSet(
47  # cms.PSet( EndcapCut = cms.vdouble( 0 ) ),
48  # cms.PSet( EndcapCut = cms.vdouble( 0, 1., 2.5, 2.5, 3.5, 5.5, 5.5, 6, 6.5, 6.5, 6.5, 6.5, 6.5, 6.5, 7, 7) ),
49  # cms.PSet( EndcapCut = cms.vdouble( 0, 0.5, 2.5, 2.5, 3, 5, 6, 6, 6.5, 6.5, 6.5, 6.5, 6.5, 6.5, 7, 7) ),
50  # cms.PSet( EndcapCut = cms.vdouble( 0, 1, 3., 4.5, 6., 6.5, 6.5, 6.5, 7, 7, 7, 7, 7) ),
51  # cms.PSet( EndcapCut = cms.vdouble( 0, 1., 2.5, 3.5, 6., 6.5, 6.5, 6.5, 6.5, 7, 7, 7, 7) ),
52  # cms.PSet( EndcapCut = cms.vdouble( 0, 0.5, 1.5, 3., 4.5, 6.5, 6.5, 7, 7, 7, 7, 7, 7) ),
53  # )
54 )
55 
56 # CBC3 hit matching algorithm
57 TTStubAlgorithm_cbc3_Phase2TrackerDigi_ = cms.ESProducer("TTStubAlgorithm_cbc3_Phase2TrackerDigi_",
58  zMatchingPS = cms.bool(True),
59  zMatching2S = cms.bool(True),
60 )
61 
62 
63 # Set the preferred hit matching algorithms.
64 # We prefer the global geometry algorithm for now in order not to break
65 # anything. Override with process.TTStubAlgorithm_PSimHit_ = ...,
66 # etc. in your configuration.
67 TTStubAlgorithm_Phase2TrackerDigi_ = cms.ESPrefer("TTStubAlgorithm_official_Phase2TrackerDigi_")
68