ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/test/toto.py
Revision: 1.6
Committed: Mon Dec 15 19:08:52 2008 UTC (16 years, 4 months ago) by lethuill
Content type: text/x-python
Branch: MAIN
CVS Tags: pat_2_1_12_01
Changes since 1.5: +46 -33 lines
Log Message:
MC infos from Silvano

File Contents

# User Rev Content
1 lethuill 1.1 import FWCore.ParameterSet.Config as cms
2    
3     process = cms.Process("NewProcess")
4    
5     #keep the logging output to a nice level
6     process.load("FWCore.MessageLogger.MessageLogger_cfi")
7    
8     process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
9    
10     # Global geometry
11     process.load("Configuration.StandardSequences.Geometry_cff")
12    
13     # geometry needed for clustering and calo shapes variables
14     process.load("RecoEcal.EgammaClusterProducers.geometryForClustering_cff")
15     # 3 folllowing config files included in RecoEcal.EgammaClusterProducers.geometryForClustering_cff
16     #process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
17     #process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
18     #process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
19    
20     # ES cluster for pi0 discrimination variables
21     #process.load("RecoEcal.EgammaClusterProducers.preshowerClusterShape_cfi")
22    
23     # pi0 discrimination variables
24     #process.load("RecoEcal.EgammaClusterProducers.piZeroDiscriminators_cfi")
25    
26     process.maxEvents = cms.untracked.PSet(
27 lethuill 1.6 input = cms.untracked.int32(3)
28 lethuill 1.1 )
29    
30 lethuill 1.4
31 lethuill 1.1 process.source = cms.Source("PoolSource",
32 lethuill 1.4 # RECO
33 lethuill 1.6 # 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')
34     # 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')
35     # fileNames = cms.untracked.vstring('file:/sps/cms/boumedie/data/0A249693-FC85-DD11-AE0A-000423D99896.root')
36     # fileNames = cms.untracked.vstring('file:/sps/cms/smgascon/MCatNLO_HiggsSM_H_2gamma_mH120_10TeV_cff_py_RAW2DIGI_RECO.root')
37 lethuill 1.4 # AOD
38 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')
39     # 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')
40 lethuill 1.4 # PATAOD
41 lethuill 1.6 fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_10__Summer08__TTJets-madgraph__IDEAL_V9__PATLayer1_OutputFromAOD_full_113.root')
42     # PAT
43     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_10__TQAFLayer1_Output.fromAOD2110_IDEAL_full_0__PATOnly.root')
44 lethuill 1.1 )
45    
46    
47     process.analysis = cms.EDAnalyzer("TotoAnalyzer",
48     myConfig = cms.PSet(
49    
50 lethuill 1.4 # Data type of the PoolSource ( RECO / AOD / PAT / PATAOD )
51     #dataType = cms.untracked.string("RECO"), # only RECO collections are present
52     #dataType = cms.untracked.string("AOD"), # only AOD collections are present
53     dataType = cms.untracked.string("PATAOD"), # mixture of PAT and AOD collections
54     #dataType = cms.untracked.string("PAT"), # only PAT collections are present
55    
56 lethuill 1.1 # Verbosite
57     # 0 = muet
58     # 1 = No evts tous les 10 ou 100 evts
59     # 2 = Indique fonctions executees et nb d'objets reconstruits a chaque evt
60     # 3 = Liste objets de haut niveau (electrons, muons, photons...)
61     # 4 = Liste tous les objets (haut niveau, clusters....)
62     # 5 = Debug
63 lethuill 1.6 verbosity = cms.untracked.int32(10),
64 lethuill 1.1
65     # name of output root file
66     RootFileName = cms.untracked.string('TotoAna.root'),
67    
68 lethuill 1.4 #
69 lethuill 1.1 isCSA07Soup = cms.untracked.bool(False),
70    
71 lethuill 1.3 # What is written to rootuple
72 lethuill 1.4 doHLT = cms.untracked.bool(False),
73 lethuill 1.6 doMC = cms.untracked.bool(True),
74     doSignalMuMuGamma = cms.untracked.bool(False), # not tested in 2.1.X...
75     doSignalTopTop = cms.untracked.bool(True),
76     # signalGenerator = cms.untracked.string('PYTHIA'),
77 lethuill 1.1 # signalGenerator = cms.untracked.string('COMPHEP'),
78     # signalGenerator = cms.untracked.string('ALPGEN'),
79 lethuill 1.6 signalGenerator = cms.untracked.string('MADGRAPH'),
80 lethuill 1.4 doPhotonConversionMC = cms.untracked.bool(False),
81 lethuill 1.6
82     doPhotonMC = cms.untracked.bool(True),
83     doElectronMC = cms.untracked.bool(True),
84     doMuonMC = cms.untracked.bool(True),
85     doJetMC = cms.untracked.bool(True),
86     doMETMC = cms.untracked.bool(True),
87     doUnstablePartsMC = cms.untracked.bool(True),
88 lethuill 1.5 doPrimaryVertex = cms.untracked.bool(True),
89 lethuill 1.4 doTrack = cms.untracked.bool(False),
90 lethuill 1.1 doJet = cms.untracked.bool(True),
91     doMuon = cms.untracked.bool(True),
92     doElectron = cms.untracked.bool(True),
93 lethuill 1.4 doPhoton = cms.untracked.bool(False),
94     doCluster = cms.untracked.bool(False),
95 lethuill 1.3 doMET = cms.untracked.bool(True),
96 lethuill 1.6
97 lethuill 1.4 doPhotonIsolation = cms.untracked.bool(False),
98     doPhotonConversion = cms.untracked.bool(False),
99 lethuill 1.1 conversionLikelihoodWeightsFile = cms.untracked.string('RecoEgamma/EgammaTools/data/TMVAnalysis_Likelihood.weights.txt'),
100 lethuill 1.6
101 lethuill 1.1 # Draw MC particle tree
102 lethuill 1.3 drawMCTree = cms.untracked.bool(True),
103 lethuill 1.1 mcTreePrintP4 = cms.untracked.bool(True),
104     mcTreePrintPtEtaPhi = cms.untracked.bool(False),
105     mcTreePrintVertex = cms.untracked.bool(False),
106     mcTreePrintStatus = cms.untracked.bool(True),
107 lethuill 1.3 mcTreePrintIndex = cms.untracked.bool(True),
108     mcTreeStatus = cms.untracked.vint32( 3 ), # accepted status codes
109    
110 lethuill 1.6
111 lethuill 1.1 # MC particles acceptance cuts
112     photonMC_etaMax = cms.double(3.0),
113     photonMC_ptMin = cms.double(2.0),
114     electronMC_etaMax = cms.double(3.0),
115     electronMC_ptMin = cms.double(2.0),
116 lethuill 1.3 muonMC_etaMax = cms.double(3.0),
117 lethuill 1.2 muonMC_ptMin = cms.double(0.0),
118 lethuill 1.6 #jetMC_etaMax = cms.double(6.0),
119     #jetMC_ptMin = cms.double(5.0),
120    
121 lethuill 1.1 # Photon isolation
122     #ecalIsolation_BarrelBC_type = cms.int32(110), # Type of Clusters used for isolation in barrel (see TRootCluster.h for type definition)
123     #ecalIsolation_EndcapBC_type = cms.int32(120), # Type of Clusters used for isolation in endcap (see TRootCluster.h for type definition)
124     ecalIsolation_BarrelBC_type = cms.int32(210), # Type of Clusters used for isolation in barrel (see TRootCluster.h for type definition)
125     ecalIsolation_EndcapBC_type = cms.int32(320), # Type of Clusters used for isolation in endcap (see TRootCluster.h for type definition)
126     ecalIslandIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - Et of Island BC in this cone are added
127     ecalIslandIsolation_ClusterEt_threshold = cms.double(0.0), # Et threshold for BC added in DR cone
128     ecalDoubleConeIsolation_DRmin = cms.double(0.05), # size of the inner DR cone around photon - BC in this cone are rejected
129     ecalDoubleConeIsolation_DRmax = cms.double(0.3), # size of the outer DR cone around photon - Et of Island BC with DRmin < DR < DRmax are added
130     ecalDoubleConeIsolation_ClusterEt_threshold = cms.double(0.0), # Et threshold for BC added in DR cone
131     hcalRecHitIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - Et of HCAL rechits in this cone are added
132     hcalRecHitIsolation_HitEt_threshold = cms.double(0.0), # Et threshold for HCAL rechits in DR cone
133     trackerIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - pt of tracks in this cone are added
134     trackerIsolation_pt_threshold = cms.double(0.0), # pt threshold for tracks added in DR cone
135     trackerIsolation_pixelHits_threshold = cms.int32(0) # pt threshold for tracks added in DR cone
136 lethuill 1.3 ),
137 lethuill 1.1
138 lethuill 1.4 producersNamesRECO = cms.PSet(
139     dataType = cms.untracked.string("RECO"),
140 lethuill 1.3 hltProducer = cms.InputTag("TriggerResults","","HLT"),
141     genParticlesProducer = cms.InputTag("genParticles"),
142 lethuill 1.6 genJetsProducer = cms.InputTag("genJets"),
143 lethuill 1.3 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
144     trackProducer = cms.InputTag("generalTracks"),
145 lethuill 1.6 #jetProducer = cms.InputTag("iterativeCone5CaloJets"),
146     jetProducer = cms.InputTag("iterativeCone5PFJets"),
147 lethuill 1.3 muonProducer = cms.InputTag("muons"),
148     electronProducer = cms.InputTag("pixelMatchGsfElectrons"),
149     photonProducer = cms.string("photons"),
150     metProducer = cms.InputTag("met"),
151     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
152     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
153 lethuill 1.6 reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
154     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
155     #reducedBarrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
156     #reducedEndcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
157 lethuill 1.3 hbheRecHitProducer = cms.InputTag("hbhereco"),
158     hoRecHitProducer = cms.InputTag("horeco"),
159     hfRecHitProducer = cms.InputTag("hfreco"),
160     photonIDProducer = cms.InputTag("PhotonIDProd","PhotonAssociatedID")
161 lethuill 1.4 ),
162    
163     producersNamesAOD = cms.PSet(
164     dataType = cms.untracked.string("AOD"),
165     hltProducer = cms.InputTag("TriggerResults","","HLT"),
166     genParticlesProducer = cms.InputTag("genParticles"),
167 lethuill 1.6 genJetsProducer = cms.InputTag("genJets"),
168 lethuill 1.4 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
169     trackProducer = cms.InputTag("generalTracks"),
170     jetProducer = cms.InputTag("iterativeCone5CaloJets"),
171     muonProducer = cms.InputTag("muons"),
172     electronProducer = cms.InputTag("pixelMatchGsfElectrons"),
173     photonProducer = cms.string("photons"),
174     metProducer = cms.InputTag("met"),
175     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
176     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
177     reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
178     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
179     hbheRecHitProducer = cms.InputTag("hbhereco"),
180     hoRecHitProducer = cms.InputTag("horeco"),
181     hfRecHitProducer = cms.InputTag("hfreco"),
182     photonIDProducer = cms.InputTag("PhotonIDProd","PhotonAssociatedID")
183     ),
184    
185     producersNamesPATAOD = cms.PSet(
186     dataType = cms.untracked.string("PATAOD"),
187     hltProducer = cms.InputTag("TriggerResults","","HLT"),
188     genParticlesProducer = cms.InputTag("genParticles"),
189 lethuill 1.6 genJetsProducer = cms.InputTag("genJets"),
190 lethuill 1.4 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
191     trackProducer = cms.InputTag("generalTracks"),
192     jetProducer = cms.InputTag("selectedLayer1Jets"),
193     muonProducer = cms.InputTag("selectedLayer1Muons"),
194     electronProducer = cms.InputTag("selectedLayer1Electrons"),
195 lethuill 1.6 photonProducer = cms.string("selectedLayer1Photons"),
196 lethuill 1.4 metProducer = cms.InputTag("selectedLayer1METs"),
197     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
198     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
199     reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
200     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
201     hbheRecHitProducer = cms.InputTag("hbhereco"),
202     hoRecHitProducer = cms.InputTag("horeco"),
203     hfRecHitProducer = cms.InputTag("hfreco"),
204     photonIDProducer = cms.InputTag("PhotonIDProd","PhotonAssociatedID")
205     ),
206    
207     producersNamesPAT = cms.PSet(
208     dataType = cms.untracked.string("PAT"),
209     hltProducer = cms.InputTag("PATALACON"),
210     genParticlesProducer = cms.InputTag("PATALACON"),
211 lethuill 1.6 genJetsProducer = cms.InputTag("genJets"),
212 lethuill 1.4 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
213     trackProducer = cms.InputTag("PATALACON"),
214     jetProducer = cms.InputTag("selectedLayer1Jets"),
215     muonProducer = cms.InputTag("selectedLayer1Muons"),
216     electronProducer = cms.InputTag("selectedLayer1Electrons"),
217 lethuill 1.6 photonProducer = cms.string("selectedLayer1Photons"),
218 lethuill 1.4 metProducer = cms.InputTag("selectedLayer1METs"),
219     barrelEcalRecHitCollection = cms.InputTag("PATALACON"),
220     endcapEcalRecHitCollection = cms.InputTag("PATALACON"),
221     reducedBarrelEcalRecHitCollection = cms.InputTag("PATALACON"),
222     reducedEndcapEcalRecHitCollection = cms.InputTag("PATALACON"),
223     hbheRecHitProducer = cms.InputTag("PATALACON"),
224     hoRecHitProducer = cms.InputTag("PATALACON"),
225     hfRecHitProducer = cms.InputTag("PATALACON"),
226     photonIDProducer = cms.InputTag("PATALACON")
227 lethuill 1.3 )
228 lethuill 1.1 )
229    
230 lethuill 1.4
231 lethuill 1.6 ##process.hltHighLevel = cms.EDFilter("HLTHighLevel",
232     ## HLTPaths = cms.vstring('HLT2PhotonRelaxed'),
233     ## andOr = cms.bool(True),
234     ## TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
235     ##)
236 lethuill 1.4
237 lethuill 1.1 #process.egammIsolation = cms.Sequence(process.egammaHcalIsolation+process.egammaHOE+process.egammaTowerIsolation+process.egammaHOETower+process.egammaElectronTkIsolation+process.egammaElectronTkRelIsolation+process.egammaElectronTkNumIsolation+process.egammaPhotonTkIsolation+process.egammaPhotonTkRelIsolation+process.egammaEcalRelIsolationSequence+process.egammaEcalIsolationSequence)
238     #process.p = cms.Path(process.preshowerClusterShape*process.piZeroDiscriminators*process.analysis)
239     process.p = cms.Path(process.analysis)
240