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 # HGCAL Rechit Calibration
22 from Validation.HGCalValidation.hgcalHitCalibrationDefault_cfi import hgcalHitCalibrationDefault as _hgcalHitCalibrationDefault
23 hgcalHitCalibrationHLT = _hgcalHitCalibrationDefault.clone()
24 hgcalHitCalibrationHLT.folder = "HGCalHitCalibrationHLT"
25 hgcalHitCalibrationHLT.recHitsEE = cms.InputTag("hltHGCalRecHit", "HGCEERecHits", "HLT")
26 hgcalHitCalibrationHLT.recHitsFH = cms.InputTag("hltHGCalRecHit", "HGCHEFRecHits", "HLT")
27 hgcalHitCalibrationHLT.recHitsBH = cms.InputTag("hltHGCalRecHit", "HGCHEBRecHits", "HLT")
28 hgcalHitCalibrationHLT.hgcalMultiClusters = cms.InputTag("None")
29 hgcalHitCalibrationHLT.electrons = cms.InputTag("None")
30 hgcalHitCalibrationHLT.photons = cms.InputTag("None")
31 
32 # offline dqm:
33 # from DQMOffline.Trigger.DQMOffline_Trigger_cff.py import *
36 #from DQMOffline.Trigger.MuonTrigRateAnalyzer_cfi import *
37 
38 # online dqm:
40 
41 # additional producer sequence prior to hltvalidation
42 # to evacuate producers/filters from the EndPath
43 hltassociation = cms.Sequence(
44  hltMultiTrackValidation
45  +hltMultiPVValidation
46  +egammaSelectors
47  +ExoticaValidationProdSeq
48  +hltMultiTrackValidationGsfTracks
49  +hltMultiTrackValidationMuonTracks
50  )
51 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
52 
53 # Temporary Phase-2 config
54 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
55 phase2_common.toReplaceWith(hltassociation, hltassociation.copyAndExclude([egammaSelectors,
56  ExoticaValidationProdSeq,
57  hltMultiTrackValidationGsfTracks,
58  hltMultiTrackValidationMuonTracks])
59 )
60 
61 # hcal
63 
64 hltvalidationCommon = cms.Sequence(
65  hcalMonitoringSequence
66 )
67 
68 hltvalidationWithMC = cms.Sequence(
69  HLTMuonVal
70  +HLTTauVal
71  +egammaValidationSequence
72  +heavyFlavorValidationSequence
73  +HLTJetMETValSeq
74  +HLTSusyExoValSeq
75  +HiggsValidationSequence
76  +ExoticaValidationSequence
77  +b2gHLTriggerValidation
78  +SMPValidationSequence
79  +hltbtagValidationSequence #too noisy for now
80  +hltHCALdigisAnalyzer+hltHCALRecoAnalyzer+hltHCALNoiseRates # HCAL
81 )
82 
83 # Temporary Phase-2 config
84 # Exclude everything except Muon and JetMET for now. Add HGCAL Hit Calibration
85 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
86 _hltvalidationWithMC_Phase2 = hltvalidationWithMC.copyAndExclude([#HLTMuonVal,
87  HLTTauVal,
88  egammaValidationSequence,
89  heavyFlavorValidationSequence,
90  #HLTJetMETValSeq,
91  HLTSusyExoValSeq,
92  HiggsValidationSequence,
93  ExoticaValidationSequence,
94  b2gHLTriggerValidation,
95  SMPValidationSequence,
96  hltbtagValidationSequence,
97  hltHCALdigisAnalyzer,
98  hltHCALRecoAnalyzer,
99  hltHCALNoiseRates])
100 _hltvalidationWithMC_Phase2.insert(-1, hgcalHitCalibrationHLT)
101 phase2_common.toReplaceWith(hltvalidationWithMC, _hltvalidationWithMC_Phase2)
102 
103 hltvalidationWithData = cms.Sequence(
104 )
105 
106 hltvalidation = cms.Sequence(
107  hltvalidationCommon *
108  hltvalidationWithMC *
109  hltvalidationWithData
110 )
111 
112 # some hlt collections have no direct fastsim equivalent
113 # remove the dependent modules for now
114 # probably it would be rather easy to add or fake these collections
115 from Configuration.Eras.Modifier_fastSim_cff import fastSim
116 fastSim.toReplaceWith(hltassociation, hltassociation.copyAndExclude([
117  hltMultiTrackValidation,
118  hltMultiPVValidation,
119  hltMultiTrackValidationGsfTracks,
120  hltMultiTrackValidationMuonTracks,
121 ]))
122 
123 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
124 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
125 for e in [pp_on_XeXe_2017, pp_on_AA]:
126  e.toReplaceWith(hltvalidation, hltvalidation.copyAndExclude([HiggsValidationSequence]))
127 
128 hltvalidation_preprod = cms.Sequence(
129  HLTTauVal
130  +heavyFlavorValidationSequence
131  +HLTSusyExoValSeq
132 # +HiggsValidationSequence
133 )
134 
135 hltvalidation_prod = cms.Sequence(
136 )
137 
138 trigdqm_forValidation = cms.Sequence(
139  hltMonTauReco+HLTTauDQMOffline
140  +egHLTOffDQMSource
141 )
142 
143 hltvalidation_withDQM = cms.Sequence(
144  hltvalidation
145  +trigdqm_forValidation
146 )
147 
148