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 here refer to the definition provided in this link:
6 #
7 # http://sviret.web.cern.ch/sviret/docs/CMS/SLHC/L1TT_XX1215.pdf
8 #
9 # Extension to the tilted geometry is discussed here:
10 #
11 # https://indico.cern.ch/event/536881/contributions/2219856/
12 #
13 # This script is adapted to the very last Tilted Tracker geometry to date (tracker T5)
14 #
15 #
16 
17 # Tab2013 hit matching algorithm
18 TTStubAlgorithm_official_Phase2TrackerDigi_ = cms.ESProducer("TTStubAlgorithm_official_Phase2TrackerDigi_",
19  zMatchingPS = cms.bool(True),
20  zMatching2S = cms.bool(True),
21  BarrelCut = cms.vdouble( 0, 1.5, 1.5, 2.5, 4.0, 5.0, 6.5), #Use 0 as dummy to have direct access using DetId to the correct element
22  NTiltedRings = cms.vdouble( 0., 12., 12., 12., 0., 0., 0.), #Number of tilted rings per side in barrel layers (for tilted geom only)
23  TiltedBarrelCutSet = cms.VPSet(
24  cms.PSet( TiltedCut = cms.vdouble( 0 ) ),
25  cms.PSet( TiltedCut = cms.vdouble( 0, 1.5,1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1, 1, 1, 1, 1) ), #TBPS L1 rings
26  cms.PSet( TiltedCut = cms.vdouble( 0, 2, 2, 2, 2, 2, 1.5, 1.5, 2, 2, 1.5, 1.5, 1.5) ), #TBPS L2 rings
27  cms.PSet( TiltedCut = cms.vdouble( 0, 2.5, 2.5, 2.5, 2.5, 2, 2, 2, 2, 2, 2, 2, 2, 1.5) ), #TBPS L3 rings
28  ),
29  EndcapCutSet = cms.VPSet(
30  cms.PSet( EndcapCut = cms.vdouble( 0 ) ),
31  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 1, 1.5, 1.5, 2, 2, 2.5, 2.5, 3, 4, 2.5, 3, 3.5, 4, 5) ),
32  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 1, 1, 1.5, 1.5, 2, 2, 2.5, 2.5, 3.5, 2, 2.5, 3, 3.5, 4) ), #D1
33  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 3, 3.5, 2, 2.5, 3, 3.5) ), #D2 ...
34  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 1, 1, 1, 1, 1.5, 2, 2, 2, 2.5, 3, 2, 2, 2.5, 3) ),
35  cms.PSet( EndcapCut = cms.vdouble( 0, 1, 1, 1, 1, 1, 1.5, 1.5, 2, 2, 2, 3, 3, 2, 2, 2.5) ),
36  )
37 )
38 
39 # CBC3 hit matching algorithm
40 TTStubAlgorithm_cbc3_Phase2TrackerDigi_ = cms.ESProducer("TTStubAlgorithm_cbc3_Phase2TrackerDigi_",
41  zMatchingPS = cms.bool(True),
42  zMatching2S = cms.bool(True),
43 )
44 
45 
46 # Set the preferred hit matching algorithms.
47 # We prefer the global geometry algorithm for now in order not to break
48 # anything. Override with process.TTStubAlgorithm_PSimHit_ = ...,
49 # etc. in your configuration.
50 TTStubAlgorithm_Phase2TrackerDigi_ = cms.ESPrefer("TTStubAlgorithm_official_Phase2TrackerDigi_")
51