CMS 3D CMS Logo

HLTValidation_cff.py
Go to the documentation of this file.
8 #from HLTriggerOffline.special.hltAlCaVal_cff import *
17 # HCAL
20 
21 # offline dqm:
22 # from DQMOffline.Trigger.DQMOffline_Trigger_cff.py import *
25 #from DQMOffline.Trigger.MuonTrigRateAnalyzer_cfi import *
26 
27 # online dqm:
29 
30 # additional producer sequence prior to hltvalidation
31 # to evacuate producers/filters from the EndPath
32 hltassociation = cms.Sequence(
33  hltMultiTrackValidation
34  +hltMultiPVValidation
35  +egammaSelectors
36  +ExoticaValidationProdSeq
37  +hltMultiTrackValidationGsfTracks
38  +hltMultiTrackValidationMuonTracks
39  )
40 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
41 
42 # Temporary Phase-2 config
43 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
44 phase2_common.toReplaceWith(hltassociation, hltassociation.copyAndExclude([hltMultiTrackValidation,
45  hltMultiPVValidation,
46  egammaSelectors,
47  ExoticaValidationProdSeq,
48  hltMultiTrackValidationGsfTracks,
49  hltMultiTrackValidationMuonTracks])
50 )
51 
52 # hcal
54 
55 hltvalidationCommon = cms.Sequence(
56  hcalMonitoringSequence
57 )
58 
59 hltvalidationWithMC = cms.Sequence(
60  HLTMuonVal
61  +HLTTauVal
62  +egammaValidationSequence
63  +heavyFlavorValidationSequence
64  +HLTJetMETValSeq
65  +HLTSusyExoValSeq
66  +HiggsValidationSequence
67  +ExoticaValidationSequence
68  +b2gHLTriggerValidation
69  +SMPValidationSequence
70  +hltbtagValidationSequence #too noisy for now
71  +hltHCALdigisAnalyzer+hltHCALRecoAnalyzer+hltHCALNoiseRates # HCAL
72 )
73 
74 # Temporary Phase-2 config
75 # Exclude everything except Muon and JetMET for now
76 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
77 phase2_common.toReplaceWith(hltvalidationWithMC, hltvalidationWithMC.copyAndExclude([#HLTMuonVal,
78  HLTTauVal,
79  egammaValidationSequence,
80  heavyFlavorValidationSequence,
81  #HLTJetMETValSeq,
82  HLTSusyExoValSeq,
83  HiggsValidationSequence,
84  ExoticaValidationSequence,
85  b2gHLTriggerValidation,
86  SMPValidationSequence,
87  hltbtagValidationSequence,
88  hltHCALdigisAnalyzer,
89  hltHCALRecoAnalyzer,
90  hltHCALNoiseRates]))
91 
92 hltvalidationWithData = cms.Sequence(
93 )
94 
95 hltvalidation = cms.Sequence(
96  hltvalidationCommon *
97  hltvalidationWithMC *
98  hltvalidationWithData
99 )
100 
101 # some hlt collections have no direct fastsim equivalent
102 # remove the dependent modules for now
103 # probably it would be rather easy to add or fake these collections
104 from Configuration.Eras.Modifier_fastSim_cff import fastSim
105 fastSim.toReplaceWith(hltassociation, hltassociation.copyAndExclude([
106  hltMultiTrackValidation,
107  hltMultiPVValidation,
108  hltMultiTrackValidationGsfTracks,
109  hltMultiTrackValidationMuonTracks,
110 ]))
111 
112 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
113 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
114 for e in [pp_on_XeXe_2017, pp_on_AA]:
115  e.toReplaceWith(hltvalidation, hltvalidation.copyAndExclude([HiggsValidationSequence]))
116 
117 hltvalidation_preprod = cms.Sequence(
118  HLTTauVal
119  +heavyFlavorValidationSequence
120  +HLTSusyExoValSeq
121 # +HiggsValidationSequence
122 )
123 
124 hltvalidation_prod = cms.Sequence(
125 )
126 
127 trigdqm_forValidation = cms.Sequence(
128  hltMonTauReco+HLTTauDQMOffline
129  +egHLTOffDQMSource
130 )
131 
132 hltvalidation_withDQM = cms.Sequence(
133  hltvalidation
134  +trigdqm_forValidation
135 )
136 
137