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([egammaSelectors,
45  ExoticaValidationProdSeq,
46  hltMultiTrackValidationGsfTracks,
47  hltMultiTrackValidationMuonTracks])
48 )
49 
50 # hcal
52 
53 hltvalidationCommon = cms.Sequence(
54  hcalMonitoringSequence
55 )
56 
57 hltvalidationWithMC = cms.Sequence(
58  HLTMuonVal
59  +HLTTauVal
60  +egammaValidationSequence
61  +heavyFlavorValidationSequence
62  +HLTJetMETValSeq
63  +HLTSusyExoValSeq
64  +HiggsValidationSequence
65  +ExoticaValidationSequence
66  +b2gHLTriggerValidation
67  +SMPValidationSequence
68  +hltbtagValidationSequence #too noisy for now
69  +hltHCALdigisAnalyzer+hltHCALRecoAnalyzer+hltHCALNoiseRates # HCAL
70 )
71 
72 # Temporary Phase-2 config
73 # Exclude everything except Muon and JetMET for now
74 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
75 phase2_common.toReplaceWith(hltvalidationWithMC, hltvalidationWithMC.copyAndExclude([#HLTMuonVal,
76  HLTTauVal,
77  egammaValidationSequence,
78  heavyFlavorValidationSequence,
79  #HLTJetMETValSeq,
80  HLTSusyExoValSeq,
81  HiggsValidationSequence,
82  ExoticaValidationSequence,
83  b2gHLTriggerValidation,
84  SMPValidationSequence,
85  hltbtagValidationSequence,
86  hltHCALdigisAnalyzer,
87  hltHCALRecoAnalyzer,
88  hltHCALNoiseRates]))
89 
90 hltvalidationWithData = cms.Sequence(
91 )
92 
93 hltvalidation = cms.Sequence(
94  hltvalidationCommon *
95  hltvalidationWithMC *
96  hltvalidationWithData
97 )
98 
99 # some hlt collections have no direct fastsim equivalent
100 # remove the dependent modules for now
101 # probably it would be rather easy to add or fake these collections
102 from Configuration.Eras.Modifier_fastSim_cff import fastSim
103 fastSim.toReplaceWith(hltassociation, hltassociation.copyAndExclude([
104  hltMultiTrackValidation,
105  hltMultiPVValidation,
106  hltMultiTrackValidationGsfTracks,
107  hltMultiTrackValidationMuonTracks,
108 ]))
109 
110 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
111 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
112 for e in [pp_on_XeXe_2017, pp_on_AA]:
113  e.toReplaceWith(hltvalidation, hltvalidation.copyAndExclude([HiggsValidationSequence]))
114 
115 hltvalidation_preprod = cms.Sequence(
116  HLTTauVal
117  +heavyFlavorValidationSequence
118  +HLTSusyExoValSeq
119 # +HiggsValidationSequence
120 )
121 
122 hltvalidation_prod = cms.Sequence(
123 )
124 
125 trigdqm_forValidation = cms.Sequence(
126  hltMonTauReco+HLTTauDQMOffline
127  +egHLTOffDQMSource
128 )
129 
130 hltvalidation_withDQM = cms.Sequence(
131  hltvalidation
132  +trigdqm_forValidation
133 )
134 
135