CMS 3D CMS Logo

Functions
customiseForNewMuonValidation Namespace Reference

Functions

def enableNewMuonVal (process)
 

Function Documentation

def customiseForNewMuonValidation.enableNewMuonVal (   process)

Definition at line 3 of file customiseForNewMuonValidation.py.

3 def enableNewMuonVal(process):
4  "Enable new muon validation sequence, both for sources and harvesting"
5 
6  if hasattr(process,"validation") and \
7  not hasattr(process,"validationHI") and \
8  not hasattr(process,"prevalidation_step2") and \
9  hasattr(process,"recoMuonValidation") :
10 
11  print "[enableNewMuonVal] : pp RECO"
12 
13  process.load("Validation.RecoMuon.NewMuonValidation_cff")
14 
15  if hasattr(process,"validation") :
16  process.validation.replace(process.recoMuonValidation, \
17  process.NEWrecoMuonValidation)
18 
19  if hasattr(process,"globalPrevalidationMuons") and \
20  hasattr(process,"prevalidation_step2") and \
21  not hasattr(process,"validationHI") and \
22  hasattr(process,"recoMuonValidation") :
23 
24  print "[enableNewMuonVal] : pp RECO Upgrades"
25 
26  process.load("Validation.RecoMuon.NewMuonValidation_cff")
27 
28  if hasattr(process,"validation") :
29  process.globalPrevalidationMuons.replace(process.recoMuonValidation, \
30  process.NEWrecoMuonValidation)
31 
32  if hasattr(process,"hltvalidation") and \
33  not hasattr(process,"validationHI") and \
34  hasattr(process,"recoMuonValidation") :
35 
36  print "[enableNewMuonVal] : HLT"
37 
38  process.load("Validation.RecoMuon.NewMuonValidationHLT_cff")
39 
40  if hasattr(process,"hltvalidation") :
41  process.hltvalidation.replace(process.recoMuonValidationHLT_seq, \
42  process.NEWrecoMuonValidationHLT_seq)
43 
44 
45  if hasattr(process,"globalValidationCosmics") and \
46  hasattr(process,"recoCosmicMuonValidation") :
47 
48  print "[enableNewMuonVal] : Cosmic RECO"
49 
50  process.load("Validation.RecoMuon.NewMuonValidation_cff")
51 
52  if hasattr(process,"validationCosmics") :
53  process.validation.replace(process.recoCosmicMuonValidation, \
54  process.NEWrecoCosmicMuonValidation)
55 
56 
57  if hasattr(process,"validation") and \
58  hasattr(process,"validationHI") and \
59  hasattr(process,"hiRecoMuonPrevalidation") and \
60  hasattr(process,"hiRecoMuonValidation") :
61 
62  print "[enableNewMuonVal] : HI RECO"
63 
64  process.load("Validation.RecoHI.NewMuonValidationHeavyIons_cff")
65 
66  if hasattr(process,"prevalidation") :
67  print "[enableNewMuonVal] : HI RECO prevalidation"
68  process.prevalidation.replace(process.hiRecoMuonPrevalidation, \
69  process.NEWhiRecoMuonPrevalidation)
70 
71  if hasattr(process,"validation") :
72  print "[enableNewMuonVal] : HI RECO validation"
73  process.validation.replace(process.hiRecoMuonValidation, \
74  process.NEWhiRecoMuonValidation)
75 
76  if hasattr(process,"postValidation") and \
77  hasattr(process,"recoMuonPostProcessors") :
78 
79  process.load("Validation.RecoMuon.NewPostProcessor_cff")
80 
81  if hasattr(process,"postValidation") :
82  process.postValidation.replace(process.recoMuonPostProcessors, \
83  process.NEWrecoMuonPostProcessors)
84 
85  if hasattr(process,"postValidation_muons") and \
86  hasattr(process,"recoMuonPostProcessors") :
87 
88  process.load("Validation.RecoMuon.NewPostProcessor_cff")
89 
90  if hasattr(process,"postValidation_muons") :
91  process.postValidation_muons.replace(process.recoMuonPostProcessors, \
92  process.NEWrecoMuonPostProcessors)
93 
94  if hasattr(process,"postValidationHI") and \
95  hasattr(process,"recoMuonPostProcessors") :
96 
97  process.load("Validation.RecoMuon.NewPostProcessor_cff")
98 
99  if hasattr(process,"postValidation") :
100  process.postValidationHI.replace(process.recoMuonPostProcessors, \
101  process.NEWrecoMuonPostProcessors)
102 
103 
104  if hasattr(process,"postValidation_fastsim") and \
105  hasattr(process,"recoMuonPostProcessors") :
106 
107  process.load("Validation.RecoMuon.NewPostProcessor_cff")
108 
109  if hasattr(process,"postValidation_fastsim") :
110  process.postValidation_fastsim.replace(process.recoMuonPostProcessors, \
111  process.NEWrecoMuonPostProcessors)
112 
113 
114  if hasattr(process,"hltpostvalidation") and \
115  hasattr(process,"recoMuonPostProcessorsHLT") :
116 
117  process.load("Validation.RecoMuon.NewPostProcessorHLT_cff")
118  if hasattr(process,"hltpostvalidation") :
119  process.hltpostvalidation.replace(process.recoMuonPostProcessorsHLT, \
120  process.NEWrecoMuonPostProcessorsHLT)
121 
122 
123  if hasattr(process,"postValidationCosmics") and \
124  hasattr(process,"postProcessorMuonMultiTrack") :
125 
126  process.load("Validation.RecoMuon.NewPostProcessor_cff")
127 
128  if hasattr(process,"postValidationCosmics") :
129  process.postValidationCosmics.replace(process.postProcessorMuonMultiTrack, \
130  process.NEWpostProcessorMuonTrack)
131 
132  return process