Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:11:13

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfigFromDB_cff import *
0004 from L1Trigger.DTTriggerPhase2.HoughGrouping_cfi                  import HoughGrouping
0005 from L1Trigger.DTTriggerPhase2.PseudoBayesGrouping_cfi            import PseudoBayesPattern
0006 
0007 dtTriggerPhase2PrimitiveDigis = cms.EDProducer("DTTrigPhase2Prod",
0008                                                digiTag = cms.InputTag("CalibratedDigis"),
0009                                                trigger_with_sl = cms.int32(4),
0010                                                tanPhiTh = cms.double(1.), 
0011                                                tanPhiThw2max = cms.double(1.3), 
0012                                                tanPhiThw2min = cms.double(0.5), 
0013                                                tanPhiThw1max = cms.double(0.9), 
0014                                                tanPhiThw1min = cms.double(0.2), 
0015                                                tanPhiThw0 = cms.double(0.5), 
0016                                                chi2Th = cms.double(0.01), #in cm^2
0017                                                chi2corTh = cms.double(0.1), #in cm^2
0018                                                useBX_correlation = cms.bool(False),
0019                                                dT0_correlate_TP = cms.double(25.), 
0020                                                dBX_correlate_TP = cms.int32(0), 
0021                                                dTanPsi_correlate_TP = cms.double(99999.),
0022                                                clean_chi2_correlation = cms.bool(True),
0023                                                allow_confirmation = cms.bool(True),
0024                                                minx_match_2digis = cms.double(1.),
0025                                                scenario = cms.int32(0), #0 for mc, 1 for data, 2 for slice test
0026                                                df_extended = cms.int32(0), # DF: 0 for standard, 1 for extended, 2 for both 
0027                                                max_primitives = cms.int32(999),
0028 
0029                                                ttrig_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/wire_rawId_ttrig.txt'),
0030                                                z_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/wire_rawId_z.txt'),
0031                                                shift_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/wire_rawId_x.txt'),
0032                                                shift_theta_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/theta_shift.txt'),
0033                                                global_coords_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/global_coord_perp_x_phi0.txt'),
0034                                                algo = cms.int32(0), # 0 = STD gr., 2 = Hough transform, 1 = PseudoBayes Approach
0035 
0036                                                minHits4Fit = cms.int32(3),
0037                                                splitPathPerSL = cms.bool(True),
0038 
0039                                                #debugging
0040                                                debug = cms.untracked.bool(False),
0041                                                dump  = cms.untracked.bool(False),
0042 
0043                                                #RPC
0044                                                rpcRecHits = cms.InputTag("rpcRecHits"),
0045                                                useRPC = cms.bool(False),
0046                                                bx_window = cms.int32(1), # will look for RPC cluster within a bunch crossing window of 'dt.BX +- bx_window' 
0047                                                phi_window = cms.double(50.), # will look for RPC cluster within a phi window of +- phi_window in arbitrary coordinates (plot the value we cut on in RPCIntergator to fine tune it)
0048                                                max_quality_to_overwrite_t0 = cms.int32(9), # will use RPC  to set 't0' for TP with quality < 'max_quality_to_overwrite_t0'
0049                                                storeAllRPCHits = cms.bool(False),
0050                                                activateBuffer  = cms.bool(False),
0051                                                superCelltimewidth = cms.double(400), # in nanoseconds
0052                                                superCellspacewidth = cms.int32(20), # in number of cells: IT MUST BE AN EVEN NUMBER
0053                                                )
0054 
0055 dtTriggerPhase2PrimitiveDigis.HoughGrouping      = HoughGrouping
0056 dtTriggerPhase2PrimitiveDigis.PseudoBayesPattern = PseudoBayesPattern