1 |
+ |
import FWCore.ParameterSet.VarParsing as VarParsing |
2 |
+ |
ivars = VarParsing.VarParsing('standard') |
3 |
+ |
|
4 |
+ |
ivars.files = [ |
5 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs11to20.root', |
6 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs1to10.root', |
7 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs1to5.root', |
8 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs21to30.root', |
9 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs31to40.root', |
10 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs41to50.root', |
11 |
+ |
'file:/net/hisrv0001/home/yetkin/hibat0007/aod/JulyExercise/MinBias0709/MinBias0709_runs51to100.root' |
12 |
+ |
] |
13 |
+ |
|
14 |
+ |
''' |
15 |
+ |
ivars.files = [ |
16 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs101to200.root', |
17 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs1to1.root', |
18 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs1to100.root', |
19 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs201to300.root', |
20 |
+ |
'file:/net/hisrv0001/home/yetkin/pstore02/reco/NoZSP/local2/Hydjet_MinBias_2760GeV_d20100628/Hydjet_MinBias_2760GeV_runs301to400.root' |
21 |
+ |
] |
22 |
+ |
''' |
23 |
+ |
|
24 |
+ |
ivars.output = 'towers_data01.root' |
25 |
+ |
|
26 |
+ |
ivars.maxEvents = -1 |
27 |
+ |
|
28 |
+ |
ivars.register ('randomNumber', |
29 |
+ |
mult=ivars.multiplicity.singleton, |
30 |
+ |
info="for testing") |
31 |
+ |
ivars.randomNumber=5 |
32 |
+ |
ivars.parseArguments() |
33 |
+ |
|
34 |
|
import FWCore.ParameterSet.Config as cms |
35 |
|
|
36 |
|
|
37 |
|
process = cms.Process('ANALYSIS') |
38 |
|
|
39 |
|
process.maxEvents = cms.untracked.PSet( |
40 |
< |
input = cms.untracked.int32(2) |
8 |
< |
|
40 |
> |
input = cms.untracked.int32(ivars.maxEvents) |
41 |
|
) |
42 |
|
|
43 |
|
|
12 |
– |
|
44 |
|
# Input source |
45 |
|
process.source = cms.Source("PoolSource", |
46 |
< |
fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/y/yilmaz/pat/CMSSW_3_7_0/SignalQuenchedDijet80to120_runs1to100.root') |
46 |
> |
fileNames = cms.untracked.vstring(ivars.files) |
47 |
|
|
48 |
|
) |
49 |
|
|
50 |
|
process.TFileService = cms.Service('TFileService', |
51 |
< |
fileName = cms.string('plots.root') |
51 |
> |
fileName = cms.string('plots_' + ivars.output) |
52 |
|
) |
53 |
|
|
54 |
+ |
|
55 |
+ |
process.output = cms.OutputModule("PoolOutputModule", |
56 |
+ |
outputCommands = cms.untracked.vstring("keep *_*_*_*"), |
57 |
+ |
fileName = cms.untracked.string(ivars.output) |
58 |
+ |
) |
59 |
+ |
|
60 |
+ |
|
61 |
|
process.load('Configuration/StandardSequences/GeometryExtended_cff') |
62 |
+ |
process.load('Configuration/StandardSequences/Services_cff') |
63 |
+ |
|
64 |
+ |
process.RandomNumberGeneratorService.bkg4Jets = cms.PSet(initialSeed = cms.untracked.uint32(ivars.randomNumber), |
65 |
+ |
engineName = cms.untracked.string('HepJamesRandom') ) |
66 |
+ |
process.RandomNumberGeneratorService.bkg5Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
67 |
+ |
process.RandomNumberGeneratorService.bkg6Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
68 |
+ |
process.RandomNumberGeneratorService.bkg7Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
69 |
|
|
70 |
|
from RecoJets.JetProducers.CaloJetParameters_cfi import * |
71 |
|
from RecoJets.JetProducers.AnomalousCellParameters_cfi import * |
72 |
|
|
73 |
|
process.bkg4Jets = cms.EDProducer( |
74 |
< |
"JetAlgorithmAnalyzer", |
75 |
< |
# "BackgroundJetProducer", |
74 |
> |
# "JetAlgorithmAnalyzer", |
75 |
> |
"BackgroundJetProducer", |
76 |
|
CaloJetParameters, |
77 |
|
AnomalousCellParameters, |
78 |
|
jetAlgorithm = cms.string("IterativeCone"), |
100 |
|
|
101 |
|
process.bkgJets = cms.Sequence(process.bkg5Jets) |
102 |
|
|
103 |
< |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer') |
104 |
< |
|
103 |
> |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer', |
104 |
> |
jetTowersMean = cms.untracked.vdouble(21,21.4,21.4,22,22.5,21.3,17.4,16.1,11.5,0), |
105 |
> |
jetTowersRMS = cms.untracked.vdouble(5.4,5.2,5.2,5.4,5.8,5.8,4.9,4.1,3.2,0), |
106 |
> |
fakeJetSrc = cms.untracked.InputTag('bkg5Jets'), |
107 |
> |
patJetSrc = cms.untracked.InputTag('patJets') |
108 |
> |
) |
109 |
|
|
110 |
|
process.load("CondCore.DBCommon.CondDBCommon_cfi") |
111 |
< |
process.CondDBCommon.connect = "sqlite_file:/afs/cern.ch/user/n/nart/scratch0/CMSSW_3_7_0_patch4/src/CmsHi/JulyExercise/data/CentralityTables.db" |
111 |
> |
process.CondDBCommon.connect = "sqlite_file:/net/hisrv0001/home/yetkin/cvs/UserCode/CmsHi/JulyExercise/data/CentralityTables.db" |
112 |
|
process.PoolDBESSource = cms.ESSource("PoolDBESSource", |
113 |
|
process.CondDBCommon, |
114 |
|
toGet = cms.VPSet(cms.PSet(record = cms.string('HeavyIonRcd'), |
115 |
< |
tag = cms.string('HFhits40_DataJulyExercise_Hydjet2760GeV_MC_37Y_V5_v0') |
115 |
> |
tag = cms.string('HFhits10_DataJulyExercise_AMPT2760GeV_MC_37Y_V5_NZS_v0') |
116 |
|
) |
117 |
|
) |
118 |
|
) |
119 |
|
|
120 |
< |
process.p = cms.Path(process.bkgJets*process.ana) |
120 |
> |
process.p = cms.Path(process.bkgJets |
121 |
> |
*process.ana |
122 |
> |
) |
123 |
> |
#process.out_step = cms.EndPath(process.output) |
124 |
> |
|
125 |
> |
|
126 |
|
|