Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:28

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # This function makes all the changes to csctfTrackDigis required for it to work
0004 # in Run 2. It is declared here to be obvious when this file is opened, but not
0005 # applied until after csctfTrackDigis is declared (and then only if the "run2"
0006 # era is active).
0007 def _modifyCsctfTrackDigisForRun2( object ) :
0008     object.SectorProcessor.PTLUT.PtMethod = 34
0009     object.SectorProcessor.gangedME1a = False
0010     object.SectorProcessor.firmwareSP = 20140515
0011     object.SectorProcessor.initializeFromPSet = False 
0012 
0013 
0014 from L1Trigger.CSCTriggerPrimitives.CSCCommonTrigger_cfi import *
0015 csctfTrackDigis = cms.EDProducer("CSCTFTrackProducer",
0016     DTproducer = cms.untracked.InputTag("dtTriggerPrimitiveDigis"),
0017     DtDirectProd = cms.untracked.InputTag("csctfunpacker","DT"),
0018     SectorReceiverInput = cms.untracked.InputTag("cscTriggerPrimitiveDigis","MPCSORTED"),
0019     SectorProcessor = cms.PSet(CSCCommonTrigger,
0020         # LUT Setup
0021         ###########
0022         SRLUT = cms.PSet(
0023             Binary = cms.untracked.bool(False),
0024             ReadLUTs = cms.untracked.bool(False),
0025             LUTPath = cms.untracked.string('./'),
0026             UseMiniLUTs = cms.untracked.bool(True)
0027         ),
0028 
0029         PTLUT = cms.PSet(
0030             LowQualityFlag = cms.untracked.uint32(4),
0031             ReadPtLUT = cms.bool(False),
0032             PtMethod = cms.untracked.uint32(32)
0033         ),
0034         
0035         # Operational mode control
0036         ##########################
0037         AllowALCTonly = cms.bool(False),
0038         AllowCLCTonly = cms.bool(False),
0039         rescaleSinglesPhi  = cms.bool(True),
0040         run_core = cms.bool(True),
0041         trigger_on_MB1a = cms.bool(False),
0042         trigger_on_MB1d = cms.bool(False),
0043         trigger_on_ME1a = cms.bool(False),
0044         trigger_on_ME1b = cms.bool(False),
0045         trigger_on_ME2 = cms.bool(False),
0046         trigger_on_ME3 = cms.bool(False),
0047         trigger_on_ME4 = cms.bool(False),
0048         singlesTrackOutput = cms.uint32(1),
0049         gangedME1a = cms.untracked.bool(True),
0050         CoreLatency = cms.uint32(7),
0051         PreTrigger = cms.uint32(2),
0052         BXAdepth = cms.uint32(2),
0053         widePhi = cms.uint32(0),
0054         
0055         # Control Registers to core,
0056         # Reordered to match firmware interface
0057         #######################################
0058         mindetap = cms.uint32(7),
0059         mindetap_halo = cms.uint32(8),
0060         
0061         EtaMin = cms.vuint32(0, 0, 0, 0, 0, 0, 0, 0),
0062         
0063         mindeta12_accp = cms.uint32(12),
0064         mindeta13_accp = cms.uint32(13),
0065         mindeta112_accp = cms.uint32(14),
0066         mindeta113_accp = cms.uint32(21),
0067         
0068         EtaMax = cms.vuint32(127, 127, 127, 127, 127, 24, 24, 127),
0069         
0070         maxdeta12_accp = cms.uint32(17),
0071         maxdeta13_accp = cms.uint32(27),
0072         maxdeta112_accp = cms.uint32(29),
0073         maxdeta113_accp = cms.uint32(38),
0074         
0075         EtaWindows = cms.vuint32(4, 4, 6, 6, 6, 6, 6), 
0076         
0077         maxdphi12_accp = cms.uint32(64),
0078         maxdphi13_accp = cms.uint32(64),
0079         maxdphi112_accp = cms.uint32(64),
0080         maxdphi113_accp = cms.uint32(64),
0081         
0082         mindphip = cms.uint32(180),
0083         mindphip_halo = cms.uint32(128),
0084         
0085         straightp = cms.uint32(19),
0086         curvedp = cms.uint32(15),
0087         
0088         mbaPhiOff = cms.uint32(0),
0089         mbbPhiOff = cms.uint32(1982),
0090         
0091         kill_fiber         = cms.uint32(0),
0092         QualityEnableME1a  = cms.uint32(65535),
0093         QualityEnableME1b  = cms.uint32(65535),
0094         QualityEnableME1c  = cms.uint32(65535),
0095         QualityEnableME1d  = cms.uint32(65535),
0096         QualityEnableME1e  = cms.uint32(65535),
0097         QualityEnableME1f  = cms.uint32(65535),
0098         QualityEnableME2a  = cms.uint32(65535),
0099         QualityEnableME2b  = cms.uint32(65535),
0100         QualityEnableME2c  = cms.uint32(65535),
0101         QualityEnableME3a  = cms.uint32(65535),
0102         QualityEnableME3b  = cms.uint32(65535),
0103         QualityEnableME3c  = cms.uint32(65535),
0104         QualityEnableME4a  = cms.uint32(65535),
0105         QualityEnableME4b  = cms.uint32(65535),
0106         QualityEnableME4c  = cms.uint32(65535),
0107 
0108         firmwareSP = cms.uint32(20120319),#core 20120313
0109         firmwareFA = cms.uint32(20091026),
0110         firmwareDD = cms.uint32(20091026),
0111         firmwareVM = cms.uint32(20091026),
0112 
0113                 isCoreVerbose = cms.bool(False),
0114                                    
0115         #use firmware version and PTLUTs listed in this files if True
0116                 #use firmware and PTLUTs from O2O if False 
0117                 #initializeFromPSet = cms.bool(True)
0118                 initializeFromPSet = cms.bool(False)
0119     ),
0120                                  
0121     isTMB07 = cms.bool(True),
0122     useDT = cms.bool(True),
0123     readDtDirect = cms.bool(False),
0124 )
0125 
0126 #
0127 # If the run2 era is active, make the required changes
0128 #
0129 from Configuration.Eras.Modifier_run2_common_cff import run2_common
0130 run2_common.toModify( csctfTrackDigis, _modifyCsctfTrackDigisForRun2 )
0131