26 |
|
|
27 |
|
from FWCore.ParameterSet.VarParsing import VarParsing |
28 |
|
options = VarParsing ('analysis') |
29 |
< |
options.register('Run','data_MuonA',VarParsing.multiplicity.singleton, VarParsing.varType.string,"Option to Run: data or MC.") |
29 |
> |
options.register('Run','data_MuonP1',VarParsing.multiplicity.singleton, VarParsing.varType.string,"Option to Run: data or MC.") |
30 |
|
options.parseArguments() |
31 |
|
|
32 |
|
process = cms.Process("Analysis") |
40 |
|
config.trackAnalyzerName = 'trackHistoAnalyzer' |
41 |
|
config.trackTagName = 'analysisTracks' |
42 |
|
config.NumberOfEvents = 100 |
43 |
+ |
config.sys = True |
44 |
|
|
45 |
|
# |
46 |
|
# Define Options to Run |
47 |
|
# |
48 |
|
###################################################################################### |
49 |
|
|
50 |
< |
if options.Run == "data_MuonA": |
50 |
> |
if options.Run == "data_MuonP1": |
51 |
|
print("") |
52 |
|
print("###################") |
53 |
< |
print("Data Muon 2010 RunA") |
53 |
> |
print("Data Muon 2010 P1") |
54 |
|
print("###################") |
55 |
|
print("") |
56 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
57 |
|
config.TriggerOn = True |
58 |
< |
#triggerlist = 'HLT_Mu9','HLT_L1Mu20' |
58 |
< |
triggerlist = 'HLT_Mu9','HLT_L1' |
58 |
> |
triggerlist = 'HLT_Mu9','HLT_DoubleMu3' |
59 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
60 |
|
config.runOnMC = False |
61 |
|
config.runPUMC = False |
62 |
|
config.runGen = False |
63 |
|
|
64 |
< |
elif options.Run == "data_MuonB": |
64 |
> |
elif options.Run == "data_MuonP2": |
65 |
|
print("") |
66 |
|
print("###################") |
67 |
< |
print("Data Muon 2010 RunB") |
67 |
> |
print("Data Muon 2010 P2") |
68 |
|
print("###################") |
69 |
|
print("") |
70 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
71 |
|
config.TriggerOn = True |
72 |
< |
triggerlist = 'HLT_Mu9','HLT_L1Mu20' |
72 |
> |
triggerlist = 'HLT_Mu15','HLT_DoubleMu5_v*' |
73 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
74 |
|
config.runOnMC = False |
75 |
|
config.runPUMC = False |
76 |
|
config.runGen = False |
77 |
|
|
78 |
< |
elif options.Run == "data_ElectronA": |
78 |
> |
elif options.Run == "data_ElectronP1": |
79 |
|
print("") |
80 |
|
print("#######################") |
81 |
< |
print("Data Electron 2010 RunA") |
81 |
> |
print("Data Electron 2010 P1") |
82 |
|
print("#######################") |
83 |
|
print("") |
84 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
85 |
|
config.TriggerOn = True |
86 |
< |
triggerlist = 'HLT_Photon10_L1R','HLT_Photon15_Cleaned_l1R' |
86 |
> |
triggerlist = 'HLT_Photon10_L1R','HLT_Photon15_Cleaned_L1R','HLT_Ele15_SW_CaloEleId_L1R','HLT_Ele17_SW_CaloEleId_L1R','HLT_Ele17_SW_TightEleId_L1R','HLT_Ele22_SW_TighterCaloIdIsol_L1R_v1','HLT_Ele22_SW_TighterCaloIdIsol_L1R_v2' |
87 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
88 |
|
config.runOnMC = False |
89 |
|
config.runPUMC = False |
90 |
|
config.runGen = False |
91 |
|
|
92 |
< |
elif options.Run == "data_ElectronB": |
92 |
> |
elif options.Run == "data_ElectronP2": |
93 |
|
print("") |
94 |
|
print("#######################") |
95 |
< |
print("Data Electron 2010 RunB") |
95 |
> |
print("Data Electron 2010 P2") |
96 |
|
print("#######################") |
97 |
|
print("") |
98 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
99 |
|
config.TriggerOn = True |
100 |
< |
triggerlist = 'HLT_Ele15_SW_CaloEleId_L1R','HLT_Ele17_SW_CaloEleId_L1R','HLT_Ele17_SW_TightEleId_L1R' |
100 |
> |
triggerlist = 'HLT_Photon10_L1R','HLT_Photon15_Cleaned_L1R','HLT_Ele15_SW_CaloEleId_L1R','HLT_Ele17_SW_CaloEleId_L1R','HLT_Ele17_SW_TightEleId_L1R','HLT_Ele22_SW_TighterCaloIdIsol_L1R_v1','HLT_Ele22_SW_TighterCaloIdIsol_L1R_v2' |
101 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
102 |
|
config.runOnMC = False |
103 |
|
config.runPUMC = False |
418 |
|
process.pat_Producer = cms.Path(process.makePatElectrons + process.makePatMuons) |
419 |
|
process.castor_step = cms.Path(process.castorSequence) |
420 |
|
|
421 |
< |
if config.TriggerOn: |
422 |
< |
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
423 |
< |
process.analysisSequencesShiftedUp + process.analysisSequencesShiftedDown + process.analysisSequences + process.eventSelectionHLT + |
424 |
< |
process.diffractiveZAnalysisTTreePFShiftedUp + process.diffractiveZAnalysisTTreePFShiftedDown + process.diffractiveZAnalysisTTree) |
421 |
> |
|
422 |
> |
if config.sys: |
423 |
> |
|
424 |
> |
if config.TriggerOn: |
425 |
> |
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
426 |
> |
process.analysisSequencesShiftedUp + process.analysisSequencesShiftedDown + process.analysisSequences + process.eventSelectionHLT + |
427 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp + process.diffractiveZAnalysisTTreePFShiftedDown + process.diffractiveZAnalysisTTree) |
428 |
> |
|
429 |
> |
else: |
430 |
> |
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
431 |
> |
process.analysisSequencesShiftedUp + process.analysisSequencesShiftedDown + process.analysisSequences + process.eventSelection + |
432 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp + process.diffractiveZAnalysisTTreePFShiftedDown + process.diffractiveZAnalysisTTree) |
433 |
|
|
434 |
|
else: |
435 |
< |
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
436 |
< |
process.analysisSequencesShiftedUp + process.analysisSequencesShiftedDown + process.analysisSequences + process.eventSelection + |
437 |
< |
process.diffractiveZAnalysisTTreePFShiftedUp + process.diffractiveZAnalysisTTreePFShiftedDown + process.diffractiveZAnalysisTTree) |
435 |
> |
|
436 |
> |
if config.TriggerOn: |
437 |
> |
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
438 |
> |
process.analysisSequences + process.eventSelectionHLT + process.diffractiveZAnalysisTTree) |
439 |
> |
|
440 |
> |
else: |
441 |
> |
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
442 |
> |
process.analysisSequences + process.eventSelection + process.diffractiveZAnalysisTTree) |
443 |
> |
|
444 |
|
|