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") |
46 |
|
# |
47 |
|
###################################################################################### |
48 |
|
|
49 |
< |
if options.Run == "data_MuonA": |
49 |
> |
if options.Run == "data_MuonP1": |
50 |
|
print("") |
51 |
|
print("###################") |
52 |
< |
print("Data Muon 2010 RunA") |
52 |
> |
print("Data Muon 2010 P1") |
53 |
|
print("###################") |
54 |
|
print("") |
55 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
56 |
|
config.TriggerOn = True |
57 |
< |
triggerlist = 'HLT_Mu9','HLT_L1Mu20' |
57 |
> |
triggerlist = 'HLT_Mu9','HLT_DoubleMu3' |
58 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
59 |
|
config.runOnMC = False |
60 |
|
config.runPUMC = False |
61 |
|
config.runGen = False |
62 |
|
|
63 |
< |
elif options.Run == "data_MuonB": |
63 |
> |
elif options.Run == "data_MuonP2": |
64 |
|
print("") |
65 |
|
print("###################") |
66 |
< |
print("Data Muon 2010 RunB") |
66 |
> |
print("Data Muon 2010 P2") |
67 |
|
print("###################") |
68 |
|
print("") |
69 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
70 |
|
config.TriggerOn = True |
71 |
< |
triggerlist = 'HLT_Mu9','HLT_L1Mu20' |
71 |
> |
triggerlist = 'HLT_Mu15','HLT_DoubleMu5_v*' |
72 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
73 |
|
config.runOnMC = False |
74 |
|
config.runPUMC = False |
75 |
|
config.runGen = False |
76 |
|
|
77 |
< |
elif options.Run == "data_ElectronA": |
77 |
> |
elif options.Run == "data_ElectronP1": |
78 |
|
print("") |
79 |
|
print("#######################") |
80 |
< |
print("Data Electron 2010 RunA") |
80 |
> |
print("Data Electron 2010 P1") |
81 |
|
print("#######################") |
82 |
|
print("") |
83 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
84 |
|
config.TriggerOn = True |
85 |
< |
triggerlist = 'HLT_Photon10_L1R','HLT_Photon15_Cleaned_l1R' |
85 |
> |
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' |
86 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
87 |
|
config.runOnMC = False |
88 |
|
config.runPUMC = False |
89 |
|
config.runGen = False |
90 |
|
|
91 |
< |
elif options.Run == "data_ElectronB": |
91 |
> |
elif options.Run == "data_ElectronP2": |
92 |
|
print("") |
93 |
|
print("#######################") |
94 |
< |
print("Data Electron 2010 RunB") |
94 |
> |
print("Data Electron 2010 P2") |
95 |
|
print("#######################") |
96 |
|
print("") |
97 |
|
config.globalTagNameData = 'GR_R_42_V23::All' |
98 |
|
config.TriggerOn = True |
99 |
< |
triggerlist = 'HLT_Ele15_SW_CaloEleId_L1R','HLT_Ele17_SW_CaloEleId_L1R','HLT_Ele17_SW_TightEleId_L1R' |
99 |
> |
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' |
100 |
|
l1list = 'L1_ZeroBias','L1_SingleEG5' |
101 |
|
config.runOnMC = False |
102 |
|
config.runPUMC = False |
329 |
|
# |
330 |
|
###################################################################################### |
331 |
|
|
332 |
< |
process.load("ForwardAnalysis.AnalysisSequences.CommonModulesSequences_cff") |
332 |
> |
process.load("ForwardAnalysis.DiffractiveZAnalysis.diffractiveZAnalysisSequences_cff") |
333 |
|
process.pfCandidateNoiseThresholds.src = "pfNoPileUpPFlow" |
334 |
|
process.tracksTransverseRegion.JetTag = "selectedPatJetsPFlow" |
335 |
|
|
340 |
|
|
341 |
|
from ForwardAnalysis.ForwardTTreeAnalysis.DiffractiveAnalysis_cfi import DiffractiveAnalysis |
342 |
|
from ForwardAnalysis.DiffractiveZAnalysis.DiffractiveZAnalysis_cfi import DiffractiveZAnalysis |
343 |
< |
from ForwardAnalysis.ForwardTTreeAnalysis.PATTriggerInfo_cfi import PATTriggerInfo |
343 |
> |
#from ForwardAnalysis.ForwardTTreeAnalysis.PATTriggerInfo_cfi import PATTriggerInfo |
344 |
|
|
345 |
|
#PATTriggerInfo.L1AlgoBitName = config.l1Paths |
346 |
< |
PATTriggerInfo.HLTAlgoBitName = config.hltPaths |
347 |
< |
PATTriggerInfo.runALLTriggerPath = True |
346 |
> |
#PATTriggerInfo.HLTAlgoBitName = config.hltPaths |
347 |
> |
#PATTriggerInfo.runALLTriggerPath = True |
348 |
|
|
349 |
|
# |
350 |
|
# Define Analyzers |
351 |
|
# |
352 |
|
###################################################################################### |
353 |
|
|
354 |
+ |
process.diffractiveZHLTFilter.HLTPaths = config.hltPaths |
355 |
+ |
|
356 |
|
process.diffractiveZAnalysisTTree = cms.EDAnalyzer("EventInfoDiffractiveDiffractiveZAnalysisTTree", |
357 |
|
EventInfo = cms.PSet( |
358 |
|
RunOnData = cms.untracked.bool(not config.runOnMC), |
363 |
|
DiffractiveZAnalysis = DiffractiveZAnalysis |
364 |
|
) |
365 |
|
|
366 |
< |
process.CommonHLTFilter.HLTPaths = config.hltPaths |
366 |
> |
process.diffractiveZAnalysisTTree.DiffractiveZAnalysis.hltPaths = config.hltPaths |
367 |
|
|
368 |
|
process.diffractiveZAnalysisTTree.DiffractiveAnalysis.hltPath = '' |
369 |
|
process.diffractiveZAnalysisTTree.DiffractiveAnalysis.trackTag = 'analysisTracks' |
373 |
|
process.diffractiveZAnalysisTTree.DiffractiveAnalysis.accessCastorInfo = False |
374 |
|
process.diffractiveZAnalysisTTree.DiffractiveAnalysis.accessZDCInfo = False |
375 |
|
|
376 |
< |
process.diffractiveZAnalysisTTree.DiffractiveZAnalysis.hltPaths = config.hltPaths |
376 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp = process.diffractiveZAnalysisTTree.clone() |
377 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp.DiffractiveAnalysis.particleFlowTag = "pfCandidateNoiseThresholdsShiftedUp" |
378 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp.DiffractiveAnalysis.edmNtupleEtaMaxTag = "edmNtupleEtaMaxShiftedUp" |
379 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp.DiffractiveAnalysis.edmNtupleEtaMinTag = "edmNtupleEtaMinShiftedUp" |
380 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp.DiffractiveZAnalysis.pfTag = "pfCandidateNoiseThresholdsShiftedUp" |
381 |
> |
|
382 |
> |
process.diffractiveZAnalysisTTreePFShiftedDown = process.diffractiveZAnalysisTTree.clone() |
383 |
> |
process.diffractiveZAnalysisTTreePFShiftedDown.DiffractiveAnalysis.particleFlowTag = "pfCandidateNoiseThresholdsShiftedDown" |
384 |
> |
process.diffractiveZAnalysisTTreePFShiftedDown.DiffractiveAnalysis.edmNtupleEtaMaxTag = "edmNtupleEtaMaxShiftedDown" |
385 |
> |
process.diffractiveZAnalysisTTreePFShiftedDown.DiffractiveAnalysis.edmNtupleEtaMinTag = "edmNtupleEtaMinShiftedDown" |
386 |
> |
process.diffractiveZAnalysisTTreePFShiftedDown.DiffractiveZAnalysis.pfTag = "pfCandidateNoiseThresholdsShiftedDown" |
387 |
> |
|
388 |
|
if config.runOnMC: |
389 |
|
process.diffractiveZAnalysisTTree.DiffractiveZAnalysis.RunMC = True |
390 |
|
process.diffractiveZAnalysisTTree.DiffractiveZAnalysis.fCGeVCastor = 0.9375 |
415 |
|
###################################################################################### |
416 |
|
|
417 |
|
process.pat_Producer = cms.Path(process.makePatElectrons + process.makePatMuons) |
405 |
– |
process.analysis_reco_step = cms.Path(process.analysisSequences) |
418 |
|
process.castor_step = cms.Path(process.castorSequence) |
419 |
|
|
408 |
– |
|
420 |
|
if config.TriggerOn: |
421 |
|
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
422 |
< |
process.eventSelectionHLT + process.diffractiveZAnalysisTTree) |
422 |
> |
process.analysisSequencesShiftedUp + process.analysisSequencesShiftedDown + process.analysisSequences + process.eventSelectionHLT + |
423 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp + process.diffractiveZAnalysisTTreePFShiftedDown + process.diffractiveZAnalysisTTree) |
424 |
|
|
425 |
|
else: |
426 |
|
process.analysis_diffractiveDiffractiveZAnalysisPATTriggerInfoTTree_step = cms.Path( |
427 |
< |
process.eventSelection + process.diffractiveZAnalysisTTree) |
427 |
> |
process.analysisSequencesShiftedUp + process.analysisSequencesShiftedDown + process.analysisSequences + process.eventSelection + |
428 |
> |
process.diffractiveZAnalysisTTreePFShiftedUp + process.diffractiveZAnalysisTTreePFShiftedDown + process.diffractiveZAnalysisTTree) |
429 |
|
|