1 |
+ |
|
2 |
+ |
import FWCore.ParameterSet.VarParsing as VarParsing |
3 |
+ |
ivars = VarParsing.VarParsing('standard') |
4 |
+ |
|
5 |
+ |
ivars.files = [ |
6 |
+ |
# 'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0711/MinBias0711_runs11to20.root' |
7 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/analysis/jets/SignalUnquenchedDijet80to120_runs101to150.root', |
8 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/analysis/jets/SignalUnquenchedDijet80to120_runs151to200.root', |
9 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/analysis/jets/SignalUnquenchedDijet80to120_runs1to50.root', |
10 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/analysis/jets/SignalUnquenchedDijet80to120_runs51to100.root' |
11 |
+ |
] |
12 |
+ |
|
13 |
+ |
|
14 |
+ |
''' |
15 |
+ |
ivars.files = [ |
16 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs11to20.root', |
17 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs1to10.root', |
18 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs1to5.root', |
19 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs21to30.root', |
20 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs31to40.root', |
21 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs41to50.root', |
22 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs51to100.root' |
23 |
+ |
] |
24 |
+ |
''' |
25 |
+ |
|
26 |
+ |
''' |
27 |
+ |
ivars.files = [ |
28 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs101to200.root', |
29 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs1to1.root', |
30 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs1to100.root', |
31 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs201to300.root', |
32 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs301to400.root' |
33 |
+ |
] |
34 |
+ |
''' |
35 |
+ |
|
36 |
+ |
ivars.output = 'towers_mixed_B0_0725.root' |
37 |
+ |
|
38 |
+ |
ivars.maxEvents = -1 |
39 |
+ |
|
40 |
+ |
ivars.register ('randomNumber', |
41 |
+ |
mult=ivars.multiplicity.singleton, |
42 |
+ |
info="for testing") |
43 |
+ |
ivars.randomNumber=5 |
44 |
+ |
ivars.parseArguments() |
45 |
+ |
|
46 |
+ |
import FWCore.ParameterSet.Config as cms |
47 |
+ |
|
48 |
+ |
|
49 |
|
process = cms.Process('ANALYSIS') |
50 |
|
|
51 |
|
process.maxEvents = cms.untracked.PSet( |
52 |
< |
input = cms.untracked.int32(2) |
53 |
< |
) |
52 |
> |
input = cms.untracked.int32(ivars.maxEvents) |
53 |
> |
) |
54 |
> |
|
55 |
|
|
56 |
|
# Input source |
57 |
|
process.source = cms.Source("PoolSource", |
58 |
< |
fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/y/yilmaz/pat/CMSSW_3_7_0/Hydjet_MinBias_2760GeV_000.root') |
10 |
< |
) |
58 |
> |
fileNames = cms.untracked.vstring(ivars.files) |
59 |
|
|
60 |
< |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer') |
60 |
> |
) |
61 |
|
|
62 |
|
process.TFileService = cms.Service('TFileService', |
63 |
< |
fileName = cms.string('plots.root') |
63 |
> |
fileName = cms.string('plots_' + ivars.output) |
64 |
|
) |
65 |
|
|
66 |
< |
process.p = cms.Path(process.ana) |
66 |
> |
|
67 |
> |
process.output = cms.OutputModule("PoolOutputModule", |
68 |
> |
outputCommands = cms.untracked.vstring("keep *_*_*_*"), |
69 |
> |
fileName = cms.untracked.string(ivars.output) |
70 |
> |
) |
71 |
> |
|
72 |
> |
|
73 |
> |
process.load('Configuration/StandardSequences/GeometryExtended_cff') |
74 |
> |
process.load('Configuration/StandardSequences/Services_cff') |
75 |
> |
process.load('Configuration/StandardSequences/ReconstructionHeavyIons_cff') |
76 |
> |
|
77 |
> |
process.RandomNumberGeneratorService.bkg4Jets = cms.PSet(initialSeed = cms.untracked.uint32(ivars.randomNumber), |
78 |
> |
engineName = cms.untracked.string('HepJamesRandom') ) |
79 |
> |
process.RandomNumberGeneratorService.bkg5Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
80 |
> |
process.RandomNumberGeneratorService.bkg6Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
81 |
> |
process.RandomNumberGeneratorService.bkg7Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
82 |
> |
|
83 |
> |
from RecoJets.JetProducers.CaloJetParameters_cfi import * |
84 |
> |
from RecoJets.JetProducers.AnomalousCellParameters_cfi import * |
85 |
> |
|
86 |
> |
process.load('PhysicsTools.PatAlgos.patHeavyIonSequences_cff') |
87 |
> |
from PhysicsTools.PatAlgos.tools.heavyIonTools import * |
88 |
> |
configureHeavyIons(process) |
89 |
> |
|
90 |
> |
process.patJets.addJetCorrFactors = True |
91 |
> |
process.patJets.addGenPartonMatch = False |
92 |
> |
process.patJets.addJetID = False |
93 |
> |
process.patJets.addGenJetMatch = False |
94 |
> |
process.patJets.embedGenJetMatch = False |
95 |
> |
|
96 |
> |
process.icPu5corr = process.patJetCorrFactors.clone() |
97 |
> |
process.icPu5corr.jetSource = cms.InputTag("iterativeConePu5CaloJetsB0","") |
98 |
> |
process.icPu5corr.corrLevels.L2Relative = cms.string('L2Relative_IC5Calo') |
99 |
> |
process.icPu5corr.corrLevels.L3Absolute = cms.string('L3Absolute_IC5Calo') |
100 |
> |
|
101 |
> |
process.icPu5patJets = process.patJets.clone() |
102 |
> |
process.icPu5patJets.jetSource = cms.InputTag("iterativeConePu5CaloJetsB0","") |
103 |
> |
#process.icPu5patJets.genJetMatch = cms.InputTag("icPu5match") |
104 |
> |
process.icPu5patJets.jetCorrFactorsSource = cms.VInputTag(cms.InputTag("icPu5corr") ) |
105 |
> |
|
106 |
> |
''' |
107 |
> |
process.bkg4Jets = cms.EDProducer( |
108 |
> |
# "JetAlgorithmAnalyzer", |
109 |
> |
"BackgroundJetProducer", |
110 |
> |
CaloJetParameters, |
111 |
> |
AnomalousCellParameters, |
112 |
> |
jetAlgorithm = cms.string("IterativeCone"), |
113 |
> |
rParam = cms.double(0.4), |
114 |
> |
avoidNegative = cms.bool(False), |
115 |
> |
subtractorName = cms.string("MultipleAlgoIterator") |
116 |
> |
) |
117 |
> |
|
118 |
> |
process.bkg4Jets.doPUOffsetCorr = True |
119 |
> |
process.bkg4Jets.doPVCorrection = False |
120 |
> |
process.bkg4Jets.jetPtMin = 10 |
121 |
> |
process.bkg4Jets.radiusPU = 0.4 |
122 |
> |
|
123 |
> |
process.bkg5Jets = process.bkg4Jets.clone() |
124 |
> |
process.bkg5Jets.rParam = 0.5 |
125 |
> |
process.bkg5Jets.radiusPU = 0.5 |
126 |
> |
|
127 |
> |
process.bkg6Jets = process.bkg4Jets.clone() |
128 |
> |
process.bkg6Jets.rParam = 0.6 |
129 |
> |
process.bkg6Jets.radiusPU = 0.6 |
130 |
> |
|
131 |
> |
process.bkg7Jets = process.bkg4Jets.clone() |
132 |
> |
process.bkg7Jets.rParam = 0.7 |
133 |
> |
process.bkg7Jets.radiusPU = 0.7 |
134 |
> |
|
135 |
> |
#process.bkgJets = cms.Sequence(process.bkg5Jets) |
136 |
> |
''' |
137 |
> |
|
138 |
> |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer', |
139 |
> |
jetTowersMean = cms.untracked.vdouble(21,21.4,21.4,22,22.5,21.3,17.4,16.1,11.5,0), |
140 |
> |
jetTowersRMS = cms.untracked.vdouble(5.4,5.2,5.2,5.4,5.8,5.8,4.9,4.1,3.2,0), |
141 |
> |
fakeJetSrc = cms.untracked.InputTag("iterativeConePu5CaloJets"), |
142 |
> |
patJetSrc = cms.untracked.InputTag("icPu5patJets","","ANALYSIS"), |
143 |
> |
towersSrc = cms.untracked.InputTag("towerMaker","","RECO"), |
144 |
> |
nBins = cms.untracked.double(10), |
145 |
> |
doRandomCone = cms.untracked.bool(False), |
146 |
> |
centralitySrc = cms.untracked.InputTag("hiCentrality","","RECO") |
147 |
> |
) |
148 |
> |
|
149 |
> |
process.load("CondCore.DBCommon.CondDBCommon_cfi") |
150 |
> |
process.CondDBCommon.connect = "sqlite_file:/net/hisrv0001/home/nart/scratch/july/CMSSW_3_7_0_patch4/src/CmsHi/JulyExercise/data/CentralityTables.db" |
151 |
> |
process.PoolDBESSource = cms.ESSource("PoolDBESSource", |
152 |
> |
process.CondDBCommon, |
153 |
> |
toGet = cms.VPSet(cms.PSet(record = cms.string('HeavyIonRcd'), |
154 |
> |
tag = cms.string('HFhits10_MC_Hydjet2760GeV_MC_3XY_V24_NoZS_v0') |
155 |
> |
) |
156 |
> |
) |
157 |
> |
) |
158 |
> |
|
159 |
> |
process.p = cms.Path( |
160 |
> |
# process.hiEvtPlane * |
161 |
> |
# process.ak5CaloJets * |
162 |
> |
# process.kt4CaloJets * |
163 |
> |
# process.bkgJets * |
164 |
> |
process.icPu5corr + |
165 |
> |
process.icPu5patJets + |
166 |
> |
process.ana |
167 |
> |
) |
168 |
> |
#process.out_step = cms.EndPath(process.output) |
169 |
> |
|
170 |
> |
|
171 |
|
|