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#15 from cms-l1t-offline/l1t-devel-dustin
L1t devel dustin
- Loading branch information
Showing
3 changed files
with
150 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
#l1tStage1CaloParams_cfi.py | ||
#from L1Trigger.L1TCalorimeter.l1tCaloStage1Params_cfi import * | ||
from L1Trigger.L1TCalorimeter.l1tStage1CaloParams_cfi import * | ||
|
||
from L1Trigger.L1TCalorimeter.l1tCaloStage1Digis_cfi import * | ||
#from L1Trigger.L1TCalorimeter.l1tCaloStage2Layer1Digis_cfi import * | ||
|
||
#from L1Trigger.L1TCalorimeter.l1tCaloStage2Digis_cfi import * | ||
|
||
#content = cms.EDAnalyzer("EventContentAnalyzer") | ||
|
||
L1TCaloStage1 = cms.Sequence( | ||
l1tCaloRCTToUpgradeConverter + | ||
l1tCaloStage1Digis + | ||
l1tPhysicalEtAdder + | ||
l1tCaloUpgradeToGCTConverter | ||
) |
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,29 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
l1tCaloRCTToUpgradeConverter = cms.EDProducer( | ||
"l1t::L1TCaloRCTToUpgradeConverter", | ||
regionTag = cms.InputTag("gctDigis"), | ||
emTag = cms.InputTag("gctDigis")) | ||
|
||
l1tCaloStage1Digis = cms.EDProducer( | ||
"l1t::Stage1Layer2Producer", | ||
CaloRegions = cms.InputTag("rctLayer2Format"), | ||
CaloEmCands = cms.InputTag("rctLayer2Format"), | ||
FirmwareVersion = cms.uint32(2), ## 1=HI algo, 2= pp algo | ||
egRelativeJetIsolationCut = cms.double(0.5), ## eg isolation cut | ||
tauRelativeJetIsolationCut = cms.double(1.), ## tau isolation cut | ||
regionETCutForHT = cms.uint32(7), | ||
regionETCutForMET = cms.uint32(0), | ||
minGctEtaForSums = cms.int32(4), | ||
maxGctEtaForSums = cms.int32(17) | ||
) | ||
|
||
l1tPhysicalEtAdder = cms.EDProducer("l1t::PhysicalEtAdder", | ||
InputCollection = cms.InputTag("Layer2HW") | ||
) | ||
|
||
l1tCaloUpgradeToGCTConverter = cms.EDProducer("l1t::L1TCaloUpgradeToGCTConverter", | ||
InputCollection = cms.InputTag("Layer2Phys") | ||
) | ||
|
||
|
103 changes: 103 additions & 0 deletions
103
L1Trigger/L1TCalorimeter/test/TTbarRelVal_Stage1Test.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,103 @@ | ||
# Auto generated configuration file | ||
# using: | ||
# Revision: 1.19 | ||
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v | ||
# with command line options: l1 -s L1 --pileup=NoPileUp --geometry DB --conditions=auto:startup -n 1 --no_exec --filein=/store/mc/Fall13dr/TT_Tune4C_13TeV-pythia8-tauola/GEN-SIM-RAW/tsg_PU40bx25_POSTLS162_V2-v1/00000/007939EF-8075-E311-B675-0025905938AA.root | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process('L1') | ||
|
||
# import of standard configurations | ||
process.load('Configuration.StandardSequences.Services_cff') | ||
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') | ||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
process.load('Configuration.EventContent.EventContent_cff') | ||
process.load('SimGeneral.MixingModule.mixNoPU_cfi') | ||
process.load('Configuration.StandardSequences.GeometryRecoDB_cff') | ||
process.load('Configuration.StandardSequences.MagneticField_38T_cff') | ||
process.load('Configuration.StandardSequences.SimL1Emulator_cff') | ||
process.load('Configuration.StandardSequences.EndOfProcess_cff') | ||
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(10) | ||
) | ||
|
||
# Input source | ||
process.source = cms.Source("PoolSource", | ||
secondaryFileNames = cms.untracked.vstring(), | ||
fileNames = cms.untracked.vstring('/store/relval/CMSSW_7_1_0_pre2/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/POSTLS170_V3-v1/00000/20379CB0-E28E-E311-97BE-0026189438A7.root') | ||
) | ||
|
||
process.options = cms.untracked.PSet( | ||
|
||
) | ||
|
||
# Production Info | ||
process.configurationMetadata = cms.untracked.PSet( | ||
version = cms.untracked.string('$Revision: 1.19 $'), | ||
annotation = cms.untracked.string('l1 nevts:1'), | ||
name = cms.untracked.string('Applications') | ||
) | ||
|
||
# Output definition | ||
|
||
process.RECOSIMoutput = cms.OutputModule("PoolOutputModule", | ||
splitLevel = cms.untracked.int32(0), | ||
eventAutoFlushCompressedSize = cms.untracked.int32(5242880), | ||
outputCommands = cms.untracked.vstring("keep *"),#process.RECOSIMEventContent.outputCommands, | ||
fileName = cms.untracked.string('L1_stage1.root'), | ||
dataset = cms.untracked.PSet( | ||
filterName = cms.untracked.string(''), | ||
dataTier = cms.untracked.string('') | ||
) | ||
) | ||
|
||
# Additional output definition | ||
|
||
# Other statements | ||
from Configuration.AlCa.GlobalTag import GlobalTag | ||
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '') | ||
|
||
# upgrade calo stage 2 | ||
process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_cff') | ||
#process.load('L1Trigger.L1TCalorimeter.l1tCaloAnalyzer_cfi') | ||
|
||
# enable debug message logging for our modules | ||
process.MessageLogger = cms.Service( | ||
"MessageLogger", | ||
destinations = cms.untracked.vstring( | ||
'detailedInfo', | ||
'critical' | ||
), | ||
detailedInfo = cms.untracked.PSet( | ||
threshold = cms.untracked.string('DEBUG') | ||
), | ||
debugModules = cms.untracked.vstring( | ||
'l1tCaloStage1Digis' | ||
) | ||
) | ||
|
||
# TTree output file | ||
process.load("CommonTools.UtilAlgos.TFileService_cfi") | ||
process.TFileService.fileName = cms.string('l1t_stage1.root') | ||
|
||
process.load('Configuration.StandardSequences.RawToDigi_cff') | ||
process.load('Configuration/StandardSequences/L1HwVal_cff') | ||
|
||
# bug fix for missing HCAL TPs in MC RAW | ||
#from SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff import HcalTPGCoderULUT | ||
#HcalTPGCoderULUT.LUTGenerationMode = cms.bool(True) | ||
#process.l1tCaloStage2Layer1Digis.hcalToken = cms.InputTag("valHcalTriggerPrimitiveDigis") | ||
|
||
# Path and EndPath definitions | ||
process.L1simulation_step = cms.Path(process.ecalDigis | ||
+process.hcalDigis | ||
+process.valHcalTriggerPrimitiveDigis | ||
+process.L1TCaloStage1) | ||
process.RECOSIMoutput_step = cms.EndPath(process.RECOSIMoutput) | ||
|
||
# Schedule definition | ||
process.schedule = cms.Schedule(process.L1simulation_step, | ||
process.RECOSIMoutput_step) | ||
|