CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTFastReco_cff.py
Go to the documentation of this file.
2 
3 #
4 # Load subdetector specific common files
5 #
8 
9 #Specific reconstruction sequences for FastSimulation.
16 #from FastSimulation.HighLevelTrigger.HLTFastRecoForPF_cff import * # IT IS NOT NEEDED ANY MORE IN 44X
19 
20 # L1 emulator - using directly L1Trigger.Configuration.SimL1Emulator_cff
21 # for everithing but simRctDigis that is taken from CaloRecHits_cff for
22 # CaloMode = 3
23 #
24 # For CaloMode = 0 simRctDigis is taken from SimL1Emulator_cff as well:
25 # this a hack to make things work, a better solution has to be implemented
26 #
27 # GT digis and L1 extra have different module label naming w.r.t.
28 # FullSim as they are used as input to HLT w.o. any packing/unpacking
29 #
30 # In general configuration for the emulator modules comes from GlobalTag
31 
32 from L1Trigger.Configuration.SimL1Emulator_cff import simGctDigis, \
33  simDtTriggerPrimitiveDigis, L1DTConfigFromDB, simCscTriggerPrimitiveDigis, \
34  simCsctfTrackDigis, simDttfDigis, simCsctfDigis, \
35  simRpcTriggerDigis, RPCConeBuilder, simGmtDigis, simGtDigis, \
36  SimL1MuTriggerPrimitives, SimL1MuTrackFinders
37 
38 # The calorimeter emulator requires doDigis=true
39 # In CMSSW > 61X CaloMode can be updated with the following import
41 if(CaloMode==0 or CaloMode==2):
42  ecalRecHit.doDigis = True
43 if(CaloMode==0 or CaloMode==1):
44  hbhereco.doDigis = True
45  hfreco.doDigis = True
46  horeco.doDigis = True
47 if(CaloMode==0) :
48  from L1Trigger.Configuration.SimL1Emulator_cff import simRctDigis
49 
50 # GT emulator
51 simGtDigis.EmulateBxInEvent = 1
52 simGtDigis.GmtInputTag = cms.InputTag("simGmtDigis")
53 simGtDigis.GctInputTag = cms.InputTag("simGctDigis")
54 
55 # Emulator sequence
56 L1Emulator = cms.Sequence(simRctDigis +
57  simGctDigis +
58  SimL1MuTriggerPrimitives +
59  SimL1MuTrackFinders +
60  simRpcTriggerDigis +
61  simGmtDigis +
62  simGtDigis)
63 
64 # L1Extra - provides 4-vector representation of L1 trigger objects - not needed by HLT
65 # The muon extra particles are done here, but could be done also by L1ParamMuons.
67 
68 l1extraParticles.isolatedEmSource = cms.InputTag("simGctDigis","isoEm")
69 l1extraParticles.nonIsolatedEmSource = cms.InputTag("simGctDigis","nonIsoEm")
70 
71 l1extraParticles.centralJetSource = cms.InputTag("simGctDigis","cenJets")
72 l1extraParticles.tauJetSource = cms.InputTag("simGctDigis","tauJets")
73 l1extraParticles.isoTauJetSource = cms.InputTag("simGctDigis","isoTauJets")
74 l1extraParticles.forwardJetSource = cms.InputTag("simGctDigis","forJets")
75 
76 l1extraParticles.muonSource = cms.InputTag('simGmtDigis')
77 
78 l1extraParticles.etTotalSource = cms.InputTag("simGctDigis")
79 l1extraParticles.etHadSource = cms.InputTag("simGctDigis")
80 l1extraParticles.htMissSource = cms.InputTag("simGctDigis")
81 l1extraParticles.etMissSource = cms.InputTag("simGctDigis")
82 
83 l1extraParticles.hfRingEtSumsSource = cms.InputTag("simGctDigis")
84 l1extraParticles.hfRingBitCountsSource = cms.InputTag("simGctDigis")
85 
86 
87 # L1 report
88 import L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi
89 hltL1GtTrigReport = L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi.l1GtTrigReport.clone()
90 hltL1GtTrigReport.PrintVerbosity = 1
91 hltL1GtTrigReport.PrintOutput = 2
92 hltL1GtTrigReport.L1GtRecordInputTag = cms.InputTag("simGtDigis")
93 
94 # HLT Report
95 options = cms.untracked.PSet(
96  wantSummary = cms.untracked.bool(True) ## default is false
97 )
98 
99 # basic tracking stuff
102 
103 # The hltbegin sequence (with L1 emulator)
104 HLTBeginSequence = cms.Sequence(
105  siTrackerGaussianSmearingRecHits+ # repetition if RECO is executed; needed by the next line
106  iterativeTracking + # repetition if RECO is executed; needed by the next line
107  caloRecHits + # repetition if RECO is executed; needed to allow -s GEN,SIM,HLT without RECO
108  L1Emulator +
109  l1extraParticles +
110  cms.SequencePlaceholder("offlineBeamSpot")
111 )
112 
113 HLTBeginSequenceBPTX = cms.Sequence(HLTBeginSequence)
114 
115 
116 
if(conf.exists("allCellsPositionCalc"))