CMS 3D CMS Logo

Validation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 #RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
5 # mix = cms.PSet(initialSeed = cms.untracked.uint32(12345),
6 # engineName = cms.untracked.string('HepJamesRandom')
7 # ),
8 # restoreStateLabel = cms.untracked.string("randomEngineStateProducer"),
9 #)
10 
15 
17 
18 
29 # miniAOD
35 
36 prevalidationNoHLT = cms.Sequence( cms.SequencePlaceholder("mix") * globalPrevalidation * metPreValidSeq * jetPreValidSeq )
37 prevalidation = cms.Sequence( cms.SequencePlaceholder("mix") * globalPrevalidation * hltassociation * metPreValidSeq * jetPreValidSeq )
38 prevalidationLiteTracking = cms.Sequence( prevalidation )
39 prevalidationLiteTracking.replace(globalPrevalidation,globalPrevalidationLiteTracking)
40 prevalidationMiniAOD = cms.Sequence( genParticles1 * miniAODValidationSequence
41  * photonMiniAODValidationSequence * egammaValidationMiniAOD
42  * produceDenoms)
43 
44 _prevalidation_fastsim = prevalidation.copy()
45 for _entry in [hltassociation]:
46  _prevalidation_fastsim.remove(_entry)
47 from Configuration.Eras.Modifier_fastSim_cff import fastSim
48 fastSim.toReplaceWith(prevalidation,_prevalidation_fastsim)
49 
50 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
51 phase2_common.toReplaceWith(prevalidation, prevalidation.copyAndExclude([cms.SequencePlaceholder("mix"),globalPrevalidation,metPreValidSeq,jetPreValidSeq]))
52 
53 validationNoHLT = cms.Sequence(
54  genvalid_all
55  *globaldigisanalyze
56  *globalhitsanalyze
57  *globalrechitsanalyze
58  *globalValidation)
59 validationNoHLT.remove(condDataValidation) # foca d'ovatta !
60 validation = cms.Sequence(validationNoHLT
61  *hltvalidation)
62 
63 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
64 phase2_common.toReplaceWith(validation, validation.copyAndExclude([validationNoHLT]))
65 
66 validationNoHLTHiMix = cms.Sequence(
67  genvalid_all_hiMix
68  *globaldigisanalyze
69  *globalhitsanalyze
70  *globalrechitsanalyze
71  *globalValidation)
72 validationNoHLTHiMix.remove(condDataValidation) # foca d'ovatta !
73 validationHiMix = cms.Sequence(validationNoHLTHiMix
74  *hltvalidation)
75 
76 
77 _validation_fastsim = validation.copy()
78 for _entry in [globaldigisanalyze,globalhitsanalyze,globalrechitsanalyze,hltvalidation]:
79  _validation_fastsim.remove(_entry)
80 from Configuration.Eras.Modifier_fastSim_cff import fastSim
81 fastSim.toReplaceWith(validation,_validation_fastsim)
82 
83 validationLiteTracking = cms.Sequence( validation )
84 validationLiteTracking.replace(globalValidation,globalValidationLiteTracking)
85 validationLiteTracking.remove(condDataValidation)
86 
87 validationMiniAOD = cms.Sequence(type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD * JetValidationMiniAOD * METValidationMiniAOD * tauValidationSequenceMiniAOD * bTagMiniValidationSource)
88 
89 prevalidation_preprod = cms.Sequence( preprodPrevalidation )
90 
91 validation_preprodNoHLT = cms.Sequence(
92  genvalid_all
93  +trackingTruthValid
94  +tracksValidation
95  +METRelValSequence
96  +recoMuonValidation
97  +muIsoVal_seq
98  +muonIdValDQMSeq
99  )
100 
101 validation_preprod = cms.Sequence(
102  validation_preprodNoHLT
103  +hltvalidation_preprod
104  )
105 
106 _validation_preprod_fastsim = validation_preprod.copy()
107 for _entry in [hltvalidation_preprod]:
108  _validation_preprod_fastsim.remove(_entry)
109 from Configuration.Eras.Modifier_fastSim_cff import fastSim
110 fastSim.toReplaceWith(validation_preprod,_validation_preprod_fastsim)
111 
112 validation_prodNoHLT = cms.Sequence(
113  genvalid_all
114  )
115 
116 validation_prod = cms.Sequence(
117  validation_prodNoHLT
118  +hltvalidation_prod
119  )
120 
121 _validation_prod_fastsim = validation_prodNoHLT.copy()
122 for _entry in [hltvalidation_prod]:
123  _validation_prod_fastsim.remove(_entry)
124 from Configuration.Eras.Modifier_fastSim_cff import fastSim
125 fastSim.toReplaceWith(validation_prod,_validation_prod_fastsim)
126