Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-04 04:35:14

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                                                tanPhiTh = cms.double(1.), 
0010                                                tanPhiThw2max = cms.double(1.3), 
0011                                                tanPhiThw2min = cms.double(0.5), 
0012                                                tanPhiThw1max = cms.double(0.9), 
0013                                                tanPhiThw1min = cms.double(0.2), 
0014                                                tanPhiThw0 = cms.double(0.5), 
0015                                                chi2Th = cms.double(0.01), #in cm^2
0016                                                chi2corTh = cms.double(0.1), #in cm^2
0017                                                useBX_correlation = cms.bool(False),
0018                                                dT0_correlate_TP = cms.double(25.), 
0019                                                dBX_correlate_TP = cms.int32(0), 
0020                                                dTanPsi_correlate_TP = cms.double(99999.),
0021                                                clean_chi2_correlation = cms.bool(True),
0022                                                allow_confirmation = cms.bool(True),
0023                                                minx_match_2digis = cms.double(1.),
0024                                                scenario = cms.int32(0), #0 for mc, 1 for data, 2 for slice test
0025                                                df_extended = cms.int32(0), # DF: 0 for standard, 1 for extended, 2 for both 
0026                                                co_option = cms.int32(1), # coincidence w.r.t. : -1 = off, 0 = co all, 1 = co phi, 2 = co theta
0027                                                co_quality = cms.int32(1), # quality cut (>X) for coincidence TP 
0028                                                max_primitives = cms.int32(999),
0029 
0030                                                output_mixer = cms.bool(False),
0031                                                output_latpredictor = cms.bool(False),
0032                                                output_slfitter = cms.bool(False),
0033                                                output_slfilter = cms.bool(False),
0034                                                output_confirmed = cms.bool(False),
0035                                                output_matcher = cms.bool(False),
0036 
0037                                                ttrig_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/wire_rawId_ttrig.txt'),
0038                                                z_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/wire_rawId_z.txt'),
0039                                                lut_sl1 = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/fitterlut_sl1.dat'),
0040                                                lut_sl2 = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/fitterlut_slx.dat'),
0041                                                lut_sl3 = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/fitterlut_sl3.dat'),
0042                                                lut_2sl = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/fitterlut_2sl.dat'),
0043                                                shift_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/wire_rawId_x.txt'),
0044                                                shift_theta_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/theta_shift.txt'),
0045                                                maxdrift_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/simple_vdrift.txt'),
0046                                                global_coords_filename = cms.FileInPath('L1Trigger/DTTriggerPhase2/data/global_coord_perp_x_phi0.txt'),
0047                                                algo = cms.int32(0), # 0 = STD gr., 2 = Hough transform, 1 = PseudoBayes Approach
0048 
0049                                                minHits4Fit = cms.int32(3),
0050                                                splitPathPerSL = cms.bool(True),
0051 
0052                                                #debugging
0053                                                debug = cms.untracked.bool(False),
0054                                                dump  = cms.untracked.bool(False),
0055 
0056                                                #RPC
0057                                                rpcRecHits = cms.InputTag("rpcRecHits"),
0058                                                useRPC = cms.bool(False),
0059                                                bx_window = cms.int32(1), # will look for RPC cluster within a bunch crossing window of 'dt.BX +- bx_window' 
0060                                                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)
0061                                                max_quality_to_overwrite_t0 = cms.int32(9), # will use RPC  to set 't0' for TP with quality < 'max_quality_to_overwrite_t0'
0062                                                storeAllRPCHits = cms.bool(False),
0063                                                activateBuffer  = cms.bool(False),
0064                                                superCelltimewidth = cms.double(400), # in nanoseconds
0065                                                superCellspacewidth = cms.int32(20), # in number of cells: IT MUST BE AN EVEN NUMBER
0066                                                )
0067 
0068 dtTriggerPhase2PrimitiveDigis.HoughGrouping      = HoughGrouping
0069 dtTriggerPhase2PrimitiveDigis.PseudoBayesPattern = PseudoBayesPattern