forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#13 from BrieucF/introduce_rpc
Introduce RPC: v0
- Loading branch information
Showing
5 changed files
with
132 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...gger/DTPhase2Trigger/test/primitivesPhase2Prod_over_dTDigis_and_4Dsegments_cfg_withRPC.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("L1DTTrigPhase2Prod") | ||
|
||
process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cff") | ||
process.load("Geometry.DTGeometry.dtGeometry_cfi") | ||
process.DTGeometryESModule.applyAlignment = False | ||
|
||
process.load("L1Trigger.DTPhase2Trigger.dtTriggerPhase2PrimitiveDigis_cfi") | ||
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") | ||
process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff") | ||
#process.GlobalTag.globaltag = "90X_dataRun2_Express_v2" | ||
#process.GlobalTag.globaltag = "80X_dataRun2_2016SeptRepro_v7" | ||
from Configuration.AlCa.GlobalTag import GlobalTag | ||
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '') | ||
|
||
#Calibrate Digis | ||
process.load("Phase2L1Trigger.CalibratedDigis.CalibratedDigis_cfi") | ||
process.CalibratedDigis.dtDigiTag = "simMuonDTDigis" | ||
#process.CalibratedDigis.flat_calib = 325 #turn to 0 to use the DB , 325 for JM and Jorge benchmark | ||
|
||
#DTTriggerPhase2 | ||
process.load("L1Trigger.DTPhase2Trigger.dtTriggerPhase2PrimitiveDigis_cfi") | ||
#process.dtTriggerPhase2PrimitiveDigis.trigger_with_sl = 3 #4 means SL 1 and 3 | ||
#for the moment the part working in phase2 format is the slice test | ||
#process.dtTriggerPhase2PrimitiveDigis.p2_df = 0 //0 is phase1, 1 is slice test, 2 is phase2(carlo-federica) | ||
#process.dtTriggerPhase2PrimitiveDigis.filter_primos = True | ||
#for debugging | ||
process.dtTriggerPhase2PrimitiveDigis.min_phinhits_match_segment = 4 | ||
#process.dtTriggerPhase2PrimitiveDigis.debug = True | ||
|
||
#Produce RPC clusters from RPCDigi | ||
process.load("RecoLocalMuon.RPCRecHit.rpcRecHits_cfi") | ||
process.rpcRecHits.rpcDigiLabel = cms.InputTag('simMuonRPCDigis') | ||
# Use RPC | ||
process.load('Configuration.Geometry.GeometryExtended2023D38Reco_cff') | ||
process.load('Configuration.Geometry.GeometryExtended2023D38_cff') | ||
process.dtTriggerPhase2PrimitiveDigis.useRPC = True | ||
|
||
process.source = cms.Source("PoolSource",fileNames = cms.untracked.vstring( | ||
#'file:/eos/user/c/carrillo/digis_segments_Run2016BSingleMuonRAW-RECO.root' | ||
'file:/eos/cms/store/group/dpg_dt/comm_dt/TriggerSimulation/SamplesReco/SingleMu_FlatPt-2to100/Version_10_5_0/SimRECO_1.root' | ||
) | ||
) | ||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(100) | ||
) | ||
|
||
process.out = cms.OutputModule("PoolOutputModule", | ||
outputCommands = cms.untracked.vstring('keep *'), | ||
fileName = cms.untracked.string('DTTriggerPhase2Primitives100_withRPC.root') | ||
) | ||
|
||
process.p = cms.Path(process.rpcRecHits*process.CalibratedDigis*process.dtTriggerPhase2PrimitiveDigis) | ||
process.this_is_the_end = cms.EndPath(process.out) | ||
|
||
|
||
|
||
|
||
|
||
|