4 "Enable new muon validation sequence, both for sources and harvesting" 6 if hasattr(process,
"validation")
and \
7 not hasattr(process,
"validationHI")
and \
8 not hasattr(process,
"prevalidation_step2")
and \
9 hasattr(process,
"recoMuonValidation") :
11 print "[enableNewMuonVal] : pp RECO" 13 process.load(
"Validation.RecoMuon.NewMuonValidation_cff")
15 if hasattr(process,
"validation") :
16 process.validation.replace(process.recoMuonValidation, \
17 process.NEWrecoMuonValidation)
19 if hasattr(process,
"globalPrevalidationMuons")
and \
20 hasattr(process,
"prevalidation_step2")
and \
21 not hasattr(process,
"validationHI")
and \
22 hasattr(process,
"recoMuonValidation") :
24 print "[enableNewMuonVal] : pp RECO Upgrades" 26 process.load(
"Validation.RecoMuon.NewMuonValidation_cff")
28 if hasattr(process,
"validation") :
29 process.globalPrevalidationMuons.replace(process.recoMuonValidation, \
30 process.NEWrecoMuonValidation)
32 if hasattr(process,
"hltvalidation")
and \
33 not hasattr(process,
"validationHI")
and \
34 hasattr(process,
"recoMuonValidation") :
36 print "[enableNewMuonVal] : HLT" 38 process.load(
"Validation.RecoMuon.NewMuonValidationHLT_cff")
40 if hasattr(process,
"hltvalidation") :
41 process.hltvalidation.replace(process.recoMuonValidationHLT_seq, \
42 process.NEWrecoMuonValidationHLT_seq)
45 if hasattr(process,
"globalValidationCosmics")
and \
46 hasattr(process,
"recoCosmicMuonValidation") :
48 print "[enableNewMuonVal] : Cosmic RECO" 50 process.load(
"Validation.RecoMuon.NewMuonValidation_cff")
52 if hasattr(process,
"validationCosmics") :
53 process.validation.replace(process.recoCosmicMuonValidation, \
54 process.NEWrecoCosmicMuonValidation)
57 if hasattr(process,
"validation")
and \
58 hasattr(process,
"validationHI")
and \
59 hasattr(process,
"hiRecoMuonPrevalidation")
and \
60 hasattr(process,
"hiRecoMuonValidation") :
62 print "[enableNewMuonVal] : HI RECO" 64 process.load(
"Validation.RecoHI.NewMuonValidationHeavyIons_cff")
66 if hasattr(process,
"prevalidation") :
67 print "[enableNewMuonVal] : HI RECO prevalidation" 68 process.prevalidation.replace(process.hiRecoMuonPrevalidation, \
69 process.NEWhiRecoMuonPrevalidation)
71 if hasattr(process,
"validation") :
72 print "[enableNewMuonVal] : HI RECO validation" 73 process.validation.replace(process.hiRecoMuonValidation, \
74 process.NEWhiRecoMuonValidation)
76 if hasattr(process,
"postValidation")
and \
77 hasattr(process,
"recoMuonPostProcessors") :
79 process.load(
"Validation.RecoMuon.NewPostProcessor_cff")
81 if hasattr(process,
"postValidation") :
82 process.postValidation.replace(process.recoMuonPostProcessors, \
83 process.NEWrecoMuonPostProcessors)
85 if hasattr(process,
"postValidation_muons")
and \
86 hasattr(process,
"recoMuonPostProcessors") :
88 process.load(
"Validation.RecoMuon.NewPostProcessor_cff")
90 if hasattr(process,
"postValidation_muons") :
91 process.postValidation_muons.replace(process.recoMuonPostProcessors, \
92 process.NEWrecoMuonPostProcessors)
94 if hasattr(process,
"postValidationHI")
and \
95 hasattr(process,
"recoMuonPostProcessors") :
97 process.load(
"Validation.RecoMuon.NewPostProcessor_cff")
99 if hasattr(process,
"postValidation") :
100 process.postValidationHI.replace(process.recoMuonPostProcessors, \
101 process.NEWrecoMuonPostProcessors)
104 if hasattr(process,
"postValidation_fastsim")
and \
105 hasattr(process,
"recoMuonPostProcessors") :
107 process.load(
"Validation.RecoMuon.NewPostProcessor_cff")
109 if hasattr(process,
"postValidation_fastsim") :
110 process.postValidation_fastsim.replace(process.recoMuonPostProcessors, \
111 process.NEWrecoMuonPostProcessors)
114 if hasattr(process,
"hltpostvalidation")
and \
115 hasattr(process,
"recoMuonPostProcessorsHLT") :
117 process.load(
"Validation.RecoMuon.NewPostProcessorHLT_cff")
118 if hasattr(process,
"hltpostvalidation") :
119 process.hltpostvalidation.replace(process.recoMuonPostProcessorsHLT, \
120 process.NEWrecoMuonPostProcessorsHLT)
123 if hasattr(process,
"postValidationCosmics")
and \
124 hasattr(process,
"postProcessorMuonMultiTrack") :
126 process.load(
"Validation.RecoMuon.NewPostProcessor_cff")
128 if hasattr(process,
"postValidationCosmics") :
129 process.postValidationCosmics.replace(process.postProcessorMuonMultiTrack, \
130 process.NEWpostProcessorMuonTrack)
133 def enableNewMuonVal(process)