ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/test/toto.py
Revision: 1.20
Committed: Fri Sep 18 14:14:21 2009 UTC (15 years, 7 months ago) by lethuill
Content type: text/x-python
Branch: MAIN
CVS Tags: all_3_2_5_01
Changes since 1.19: +18 -16 lines
Log Message:
Update for 3.2.X

File Contents

# User Rev Content
1 lethuill 1.1 import FWCore.ParameterSet.Config as cms
2    
3     process = cms.Process("NewProcess")
4    
5 lethuill 1.15 # Keep the logging output to a nice level
6 lethuill 1.1 process.load("FWCore.MessageLogger.MessageLogger_cfi")
7    
8     process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
9    
10 lethuill 1.15 # Needed for GlobalPositionRcd
11     process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
12 lethuill 1.20 process.GlobalTag.globaltag = 'MC_31X_V1::All'
13 lethuill 1.15
14 lethuill 1.1 # Global geometry
15     process.load("Configuration.StandardSequences.Geometry_cff")
16 lethuill 1.15 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
17    
18     # Transient Track Builder
19     process.load("TrackingTools.TransientTrack.TransientTrackBuilder_cfi")
20 lethuill 1.1
21 lethuill 1.15 # Geometry needed for clustering and calo shapes variables
22 lethuill 1.20 # process.load("RecoEcal.EgammaClusterProducers.geometryForClustering_cff")
23 lethuill 1.1
24     # ES cluster for pi0 discrimination variables
25     #process.load("RecoEcal.EgammaClusterProducers.preshowerClusterShape_cfi")
26    
27     # pi0 discrimination variables
28     #process.load("RecoEcal.EgammaClusterProducers.piZeroDiscriminators_cfi")
29    
30 lethuill 1.18 # Needed to re-run Photon Id
31     process.load("RecoEgamma.PhotonIdentification.photonId_cff")
32    
33 lethuill 1.1 process.maxEvents = cms.untracked.PSet(
34 lethuill 1.12 input = cms.untracked.int32(10)
35 lethuill 1.1 )
36    
37 lethuill 1.4
38 lethuill 1.1 process.source = cms.Source("PoolSource",
39 lethuill 1.4 # RECO
40 lethuill 1.20 fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_3_2_5__RelValZTT__GEN-SIM-RECO__STARTUP31X_V4-v1__0011__1820860F-828E-DE11-A33B-000423D99CEE.root')
41     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_3_1_2__RelValH130GGgluonfusion__GEN-SIM-RECO__STARTUP31X_V2-v1__0007__104E25AC-CC78-DE11-AE55-001D09F2447F.root')
42     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_3_1_2__RelValTTbar__GEN-SIM-RECO__STARTUP31X_V2-v1__0006__0CC00E3B-5A78-DE11-A2AB-000423D94A04.root')
43     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_3_1_2__RelValZMM__GEN-SIM-RECO__STARTUP31X_V2-v1__0007__360B09AE-CC78-DE11-8933-001D09F254CE.root')
44     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_2_1__Summer08__H120_gg__GEN-SIM-RECO__IDEAL_V11_redigi_v2__0009__F8176F88-7124-DE11-BE7A-00151796C0E0.root')
45 lethuill 1.12 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_2_1__QCDpt170__Summer08_IDEAL_V11_redigi_v1__GEN-SIM-RECO__0010115D-6FE7-DD11-AFDC-0019B9E7CD05.root')
46 lethuill 1.20 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_10__RelValH130GGgluonfusion__GEN-SIM-DIGI-RAW-HLTDEBUG-RECO__STARTUP_V7_v1__0001__00616C72-FA9A-DD11-A526-00304867902E.root')
47 lethuill 1.18 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_8__Summer08__H120_gg__GEN-SIM-RECO__IDEAL_V9_v1__0000__FE60393A-76E6-DD11-BDF1-001D0964474D.root')
48     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_8__Summer08__H120_gg__GEN-SIM-RECO__IDEAL_V9_v1__0000__FAE31F8E-6CE6-DD11-A953-0015C5EC47A2.root')
49 lethuill 1.20 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_7__RelValTTbar__GEN-SIM-RECO__IDEAL_V9_v2__0002__56B92AB9-8B7E-DD11-A821-000423D6AF24.root')
50 lethuill 1.4 # AOD
51 lethuill 1.6 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_7__Summer08__QCDDiJetPt380to470__AODSIM__IDEAL_V9_AODSIM_v1__0000__F630AA5F-EBA4-DD11-BABD-001D0967D71F.root')
52     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_7__Summer08__TTJets-madgraph__AODSIM__IDEAL_V9_AODSIM_v1__0004__000BCB88-49AF-DD11-A760-00E081791887.root')
53 lethuill 1.18 # PAT + some RECO Collections
54 lethuill 1.11 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_10__Summer08__TTJets-madgraph__IDEAL_V9__PATLayer1_OutputFromAOD_full_113.root')
55 lethuill 1.13 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_2_3__PATLayer1_Output.fromRECOinputCSA08test2_full.root')
56 lethuill 1.18 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_2_X__Farida__InclusiveMuPt15_IN2P3__PATL1_InclusiveMuPt15_Sum08_1.root')
57 lethuill 1.20 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_2_X__Farida__Hgg__PATL1_test.root')
58 lethuill 1.18 # Only PAT Collections
59 lethuill 1.6 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_10__TQAFLayer1_Output.fromAOD2110_IDEAL_full_0__PATOnly.root')
60 lethuill 1.1 )
61    
62    
63     process.analysis = cms.EDAnalyzer("TotoAnalyzer",
64     myConfig = cms.PSet(
65    
66 lethuill 1.18 # Data type of the PoolSource ( RECO / PAT )
67 lethuill 1.20 dataType = cms.untracked.string("RECO"), # use reco::Objects
68     #dataType = cms.untracked.string("PAT"), # use pat::Objects
69 lethuill 1.4
70 lethuill 1.1 # Verbosite
71     # 0 = muet
72     # 1 = No evts tous les 10 ou 100 evts
73     # 2 = Indique fonctions executees et nb d'objets reconstruits a chaque evt
74     # 3 = Liste objets de haut niveau (electrons, muons, photons...)
75     # 4 = Liste tous les objets (haut niveau, clusters....)
76     # 5 = Debug
77 lethuill 1.12 verbosity = cms.untracked.int32(5),
78 lethuill 1.1
79     # name of output root file
80 lethuill 1.20 RootFileName = cms.untracked.string('RecoAna.root'),
81 lethuill 1.1
82 lethuill 1.18 # DATASET Infos (will be written in runTree for bookeeping)
83 lethuill 1.17 xsection = cms.untracked.double(0.674770994),
84     description = cms.untracked.string('Le dataset pourri a Roberto'),
85 lethuill 1.18
86 lethuill 1.3 # What is written to rootuple
87 lethuill 1.13 doHLT = cms.untracked.bool(True),
88 lethuill 1.6 doMC = cms.untracked.bool(True),
89 lethuill 1.7 doPDFInfo = cms.untracked.bool(True),
90 lethuill 1.6 doSignalMuMuGamma = cms.untracked.bool(False), # not tested in 2.1.X...
91     doSignalTopTop = cms.untracked.bool(True),
92     # signalGenerator = cms.untracked.string('PYTHIA'),
93 lethuill 1.1 # signalGenerator = cms.untracked.string('COMPHEP'),
94     # signalGenerator = cms.untracked.string('ALPGEN'),
95 lethuill 1.6 signalGenerator = cms.untracked.string('MADGRAPH'),
96 lethuill 1.18 doPhotonConversionMC = cms.untracked.bool(True),
97 lethuill 1.6
98     doPhotonMC = cms.untracked.bool(True),
99     doElectronMC = cms.untracked.bool(True),
100     doMuonMC = cms.untracked.bool(True),
101     doJetMC = cms.untracked.bool(True),
102     doMETMC = cms.untracked.bool(True),
103     doUnstablePartsMC = cms.untracked.bool(True),
104 lethuill 1.12
105 lethuill 1.16 doBeamSpot = cms.untracked.bool(True),
106 lethuill 1.5 doPrimaryVertex = cms.untracked.bool(True),
107 lethuill 1.15 doTrack = cms.untracked.bool(True),
108 lethuill 1.1 doJet = cms.untracked.bool(True),
109     doMuon = cms.untracked.bool(True),
110     doElectron = cms.untracked.bool(True),
111 lethuill 1.12 doPhoton = cms.untracked.bool(True),
112 lethuill 1.18 doCluster = cms.untracked.bool(True),
113 lethuill 1.3 doMET = cms.untracked.bool(True),
114 lethuill 1.6
115 lethuill 1.15 doPhotonVertexCorrection = cms.untracked.bool(False),
116 lethuill 1.18 doPhotonIsolation = cms.untracked.bool(True),
117     doPhotonConversion = cms.untracked.bool(True),
118 lethuill 1.1 conversionLikelihoodWeightsFile = cms.untracked.string('RecoEgamma/EgammaTools/data/TMVAnalysis_Likelihood.weights.txt'),
119 lethuill 1.6
120 lethuill 1.1 # Draw MC particle tree
121 lethuill 1.8 drawMCTree = cms.untracked.bool(False),
122 lethuill 1.1 mcTreePrintP4 = cms.untracked.bool(True),
123     mcTreePrintPtEtaPhi = cms.untracked.bool(False),
124     mcTreePrintVertex = cms.untracked.bool(False),
125     mcTreePrintStatus = cms.untracked.bool(True),
126 lethuill 1.3 mcTreePrintIndex = cms.untracked.bool(True),
127 lethuill 1.18 mcTreeStatus = cms.untracked.vint32( 1,2,3 ), # accepted status codes
128 lethuill 1.3
129 lethuill 1.1 # MC particles acceptance cuts
130     photonMC_etaMax = cms.double(3.0),
131     photonMC_ptMin = cms.double(2.0),
132     electronMC_etaMax = cms.double(3.0),
133     electronMC_ptMin = cms.double(2.0),
134 lethuill 1.3 muonMC_etaMax = cms.double(3.0),
135 lethuill 1.2 muonMC_ptMin = cms.double(0.0),
136 lethuill 1.13 jetMC_etaMax = cms.double(10.0),
137     jetMC_ptMin = cms.double(0.0),
138 lethuill 1.6
139 lethuill 1.1 # Photon isolation
140 lethuill 1.18 basicClustersIsolation_BarrelBC_type = cms.int32(210), # Type of Clusters used for isolation in barrel (see TRootCluster.h for type definition)
141     basicClustersIsolation_EndcapBC_type = cms.int32(320), # Type of Clusters used for isolation in endcap (see TRootCluster.h for type definition)
142     basicClustersIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - Et of BC in this cone are added
143     basicClustersIsolation_ClusterEt_threshold = cms.double(0.0), # Et threshold for BC added in DR cone
144     basicClustersDoubleConeIsolation_BarrelBC_type = cms.int32(210), # Type of Clusters used for isolation in barrel (see TRootCluster.h for type definition)
145     basicClustersDoubleConeIsolation_EndcapBC_type = cms.int32(320), # Type of Clusters used for isolation in endcap (see TRootCluster.h for type definition)
146     basicClustersDoubleConeIsolation_DRmin = cms.double(0.05), # size of the inner DR cone around photon - BC in this cone are rejected
147     basicClustersDoubleConeIsolation_DRmax = cms.double(0.3), # size of the outer DR cone around photon - Et of BC with DRmin < DR < DRmax are added
148     basicClustersDoubleConeIsolation_ClusterEt_threshold = cms.double(0.0), # Et threshold for BC added in DR cone
149     hcalRecHitIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - Et of HCAL rechits in this cone are added
150     hcalRecHitIsolation_HitEt_threshold = cms.double(0.0), # Et threshold for HCAL rechits in DR cone
151     trackerIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - pt of tracks in this cone are added
152     trackerIsolation_pt_threshold = cms.double(0.0), # pt threshold for tracks added in DR cone
153     trackerIsolation_pixelLayers_threshold = cms.int32(0) # minimum number of pixel layers with measurement required for tracks to be added in DR cone isolation
154 lethuill 1.3 ),
155 lethuill 1.1
156 lethuill 1.4 producersNamesRECO = cms.PSet(
157 lethuill 1.18 dataType = cms.untracked.string("RECO"),
158     allowMissingCollection = cms.untracked.bool(True),
159 lethuill 1.3 hltProducer = cms.InputTag("TriggerResults","","HLT"),
160     genParticlesProducer = cms.InputTag("genParticles"),
161 lethuill 1.13 genJetsProducer = cms.InputTag("iterativeCone5GenJets"),
162 lethuill 1.20 genMETsProducer = cms.InputTag("genMetCalo"),
163     #genMETsProducer = cms.InputTag("genMetTrue"),
164 lethuill 1.16 beamSpotProducer = cms.InputTag("offlineBeamSpot"),
165 lethuill 1.3 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
166     trackProducer = cms.InputTag("generalTracks"),
167 lethuill 1.19 jetProducer = cms.InputTag("iterativeCone5CaloJets"),
168 lethuill 1.20 #jetProducer = cms.InputTag("iterativeConaloJets"
169     #jetProducer = cms.InputTag("antikt5CaloJets"),
170 lethuill 1.3 muonProducer = cms.InputTag("muons"),
171 lethuill 1.20 electronProducer = cms.InputTag("gsfElectrons"),
172 lethuill 1.12 photonProducer = cms.InputTag("photons"),
173 lethuill 1.3 metProducer = cms.InputTag("met"),
174     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
175     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
176 lethuill 1.6 reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
177     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
178 lethuill 1.3 hbheRecHitProducer = cms.InputTag("hbhereco"),
179     hoRecHitProducer = cms.InputTag("horeco"),
180 lethuill 1.12 hfRecHitProducer = cms.InputTag("hfreco")
181 lethuill 1.4 ),
182    
183 lethuill 1.18 producersNamesPAT = cms.PSet(
184     dataType = cms.untracked.string("PAT"),
185     allowMissingCollection = cms.untracked.bool(True),
186     patEncapsulation = cms.untracked.bool(False),
187 lethuill 1.4 hltProducer = cms.InputTag("TriggerResults","","HLT"),
188     genParticlesProducer = cms.InputTag("genParticles"),
189 lethuill 1.13 genJetsProducer = cms.InputTag("iterativeCone5GenJets"),
190     genMETsProducer = cms.InputTag("genMet"),
191 lethuill 1.16 beamSpotProducer = cms.InputTag("offlineBeamSpot"),
192 lethuill 1.4 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
193     trackProducer = cms.InputTag("generalTracks"),
194     jetProducer = cms.InputTag("selectedLayer1Jets"),
195     muonProducer = cms.InputTag("selectedLayer1Muons"),
196     electronProducer = cms.InputTag("selectedLayer1Electrons"),
197 lethuill 1.12 photonProducer = cms.InputTag("selectedLayer1Photons"),
198 lethuill 1.4 metProducer = cms.InputTag("selectedLayer1METs"),
199     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
200     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
201     reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
202     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
203     hbheRecHitProducer = cms.InputTag("hbhereco"),
204     hoRecHitProducer = cms.InputTag("horeco"),
205 lethuill 1.12 hfRecHitProducer = cms.InputTag("hfreco")
206 lethuill 1.3 )
207 lethuill 1.1 )
208    
209 lethuill 1.4
210 lethuill 1.6 ##process.hltHighLevel = cms.EDFilter("HLTHighLevel",
211     ## HLTPaths = cms.vstring('HLT2PhotonRelaxed'),
212     ## andOr = cms.bool(True),
213     ## TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
214     ##)
215 lethuill 1.4
216 lethuill 1.1 #process.p = cms.Path(process.preshowerClusterShape*process.piZeroDiscriminators*process.analysis)
217 lethuill 1.18 #process.p = cms.Path(process.photonIDSequence*process.analysis)
218 lethuill 1.1 process.p = cms.Path(process.analysis)
219