ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/test/toto.py
Revision: 1.17
Committed: Tue Apr 21 13:02:59 2009 UTC (16 years ago) by lethuill
Content type: text/x-python
Branch: MAIN
CVS Tags: JeSuisBeaucoupPlusGrosQunReco_2_2_7_01, RecoPhoton_2_2_7_02
Changes since 1.16: +5 -1 lines
Log Message:
Add dataset xsection and description in runTree

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     process.GlobalTag.globaltag = 'IDEAL_V12::All'
13    
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.1 process.load("RecoEcal.EgammaClusterProducers.geometryForClustering_cff")
23    
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     process.maxEvents = cms.untracked.PSet(
31 lethuill 1.12 input = cms.untracked.int32(10)
32 lethuill 1.1 )
33    
34 lethuill 1.4
35 lethuill 1.1 process.source = cms.Source("PoolSource",
36 lethuill 1.4 # RECO
37 lethuill 1.8 # 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')
38 lethuill 1.6 # 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')
39     # fileNames = cms.untracked.vstring('file:/sps/cms/boumedie/data/0A249693-FC85-DD11-AE0A-000423D99896.root')
40     # fileNames = cms.untracked.vstring('file:/sps/cms/smgascon/MCatNLO_HiggsSM_H_2gamma_mH120_10TeV_cff_py_RAW2DIGI_RECO.root')
41 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')
42 lethuill 1.4 # AOD
43 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')
44     # 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')
45 lethuill 1.4 # PATAOD
46 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')
47 lethuill 1.13 # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_2_3__PATLayer1_Output.fromRECOinputCSA08test2_full.root')
48     fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_2_X__Farida__InclusiveMuPt15_IN2P3__PATL1_InclusiveMuPt15_Sum08_1.root')
49 lethuill 1.6 # PAT
50     # fileNames = cms.untracked.vstring('file:/sps/cms/morgan/data/CMSSW_2_1_10__TQAFLayer1_Output.fromAOD2110_IDEAL_full_0__PATOnly.root')
51 lethuill 1.1 )
52    
53    
54     process.analysis = cms.EDAnalyzer("TotoAnalyzer",
55     myConfig = cms.PSet(
56    
57 lethuill 1.4 # Data type of the PoolSource ( RECO / AOD / PAT / PATAOD )
58 lethuill 1.8 #dataType = cms.untracked.string("RECO"), # only RECO collections are present
59 lethuill 1.4 #dataType = cms.untracked.string("AOD"), # only AOD collections are present
60 lethuill 1.8 dataType = cms.untracked.string("PATAOD"), # mixture of PAT and AOD collections
61 lethuill 1.4 #dataType = cms.untracked.string("PAT"), # only PAT collections are present
62    
63 lethuill 1.1 # Verbosite
64     # 0 = muet
65     # 1 = No evts tous les 10 ou 100 evts
66     # 2 = Indique fonctions executees et nb d'objets reconstruits a chaque evt
67     # 3 = Liste objets de haut niveau (electrons, muons, photons...)
68     # 4 = Liste tous les objets (haut niveau, clusters....)
69     # 5 = Debug
70 lethuill 1.12 verbosity = cms.untracked.int32(5),
71 lethuill 1.1
72     # name of output root file
73 lethuill 1.17 RootFileName = cms.untracked.string('TotoAna.root'),
74 lethuill 1.1
75 lethuill 1.8 # Is PoolSource coming from CSA07 Soup Production ? (needed to get CSA07 Process Id and weights)
76 lethuill 1.1 isCSA07Soup = cms.untracked.bool(False),
77    
78 lethuill 1.17 # DATASET Infos (will be written in runTree)
79     xsection = cms.untracked.double(0.674770994),
80     description = cms.untracked.string('Le dataset pourri a Roberto'),
81    
82 lethuill 1.3 # What is written to rootuple
83 lethuill 1.13 doHLT = cms.untracked.bool(True),
84 lethuill 1.6 doMC = cms.untracked.bool(True),
85 lethuill 1.7 doPDFInfo = cms.untracked.bool(True),
86 lethuill 1.6 doSignalMuMuGamma = cms.untracked.bool(False), # not tested in 2.1.X...
87     doSignalTopTop = cms.untracked.bool(True),
88     # signalGenerator = cms.untracked.string('PYTHIA'),
89 lethuill 1.1 # signalGenerator = cms.untracked.string('COMPHEP'),
90     # signalGenerator = cms.untracked.string('ALPGEN'),
91 lethuill 1.6 signalGenerator = cms.untracked.string('MADGRAPH'),
92 lethuill 1.4 doPhotonConversionMC = cms.untracked.bool(False),
93 lethuill 1.6
94     doPhotonMC = cms.untracked.bool(True),
95     doElectronMC = cms.untracked.bool(True),
96     doMuonMC = cms.untracked.bool(True),
97     doJetMC = cms.untracked.bool(True),
98     doMETMC = cms.untracked.bool(True),
99     doUnstablePartsMC = cms.untracked.bool(True),
100 lethuill 1.12
101 lethuill 1.16 doBeamSpot = cms.untracked.bool(True),
102 lethuill 1.5 doPrimaryVertex = cms.untracked.bool(True),
103 lethuill 1.15 doTrack = cms.untracked.bool(True),
104 lethuill 1.1 doJet = cms.untracked.bool(True),
105     doMuon = cms.untracked.bool(True),
106     doElectron = cms.untracked.bool(True),
107 lethuill 1.12 doPhoton = cms.untracked.bool(True),
108 lethuill 1.4 doCluster = cms.untracked.bool(False),
109 lethuill 1.3 doMET = cms.untracked.bool(True),
110 lethuill 1.6
111 lethuill 1.15 doPhotonVertexCorrection = cms.untracked.bool(False),
112 lethuill 1.4 doPhotonIsolation = cms.untracked.bool(False),
113     doPhotonConversion = cms.untracked.bool(False),
114 lethuill 1.1 conversionLikelihoodWeightsFile = cms.untracked.string('RecoEgamma/EgammaTools/data/TMVAnalysis_Likelihood.weights.txt'),
115 lethuill 1.6
116 lethuill 1.1 # Draw MC particle tree
117 lethuill 1.8 drawMCTree = cms.untracked.bool(False),
118 lethuill 1.1 mcTreePrintP4 = cms.untracked.bool(True),
119     mcTreePrintPtEtaPhi = cms.untracked.bool(False),
120     mcTreePrintVertex = cms.untracked.bool(False),
121     mcTreePrintStatus = cms.untracked.bool(True),
122 lethuill 1.3 mcTreePrintIndex = cms.untracked.bool(True),
123     mcTreeStatus = cms.untracked.vint32( 3 ), # accepted status codes
124    
125 lethuill 1.6
126 lethuill 1.1 # MC particles acceptance cuts
127     photonMC_etaMax = cms.double(3.0),
128     photonMC_ptMin = cms.double(2.0),
129     electronMC_etaMax = cms.double(3.0),
130     electronMC_ptMin = cms.double(2.0),
131 lethuill 1.3 muonMC_etaMax = cms.double(3.0),
132 lethuill 1.2 muonMC_ptMin = cms.double(0.0),
133 lethuill 1.13 jetMC_etaMax = cms.double(10.0),
134     jetMC_ptMin = cms.double(0.0),
135 lethuill 1.6
136 lethuill 1.1 # Photon isolation
137     #ecalIsolation_BarrelBC_type = cms.int32(110), # Type of Clusters used for isolation in barrel (see TRootCluster.h for type definition)
138     #ecalIsolation_EndcapBC_type = cms.int32(120), # Type of Clusters used for isolation in endcap (see TRootCluster.h for type definition)
139     ecalIsolation_BarrelBC_type = cms.int32(210), # Type of Clusters used for isolation in barrel (see TRootCluster.h for type definition)
140     ecalIsolation_EndcapBC_type = cms.int32(320), # Type of Clusters used for isolation in endcap (see TRootCluster.h for type definition)
141     ecalIslandIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - Et of Island BC in this cone are added
142     ecalIslandIsolation_ClusterEt_threshold = cms.double(0.0), # Et threshold for BC added in DR cone
143     ecalDoubleConeIsolation_DRmin = cms.double(0.05), # size of the inner DR cone around photon - BC in this cone are rejected
144     ecalDoubleConeIsolation_DRmax = cms.double(0.3), # size of the outer DR cone around photon - Et of Island BC with DRmin < DR < DRmax are added
145     ecalDoubleConeIsolation_ClusterEt_threshold = cms.double(0.0), # Et threshold for BC added in DR cone
146     hcalRecHitIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - Et of HCAL rechits in this cone are added
147     hcalRecHitIsolation_HitEt_threshold = cms.double(0.0), # Et threshold for HCAL rechits in DR cone
148     trackerIsolation_DRmax = cms.double(0.3), # size of the DR cone around photon - pt of tracks in this cone are added
149     trackerIsolation_pt_threshold = cms.double(0.0), # pt threshold for tracks added in DR cone
150 lethuill 1.14 trackerIsolation_pixelLayers_threshold = cms.int32(0) # minimum number of pixel layers with measurement required for tracks to be added in DR cone isolation
151 lethuill 1.3 ),
152 lethuill 1.1
153 lethuill 1.4 producersNamesRECO = cms.PSet(
154     dataType = cms.untracked.string("RECO"),
155 lethuill 1.3 hltProducer = cms.InputTag("TriggerResults","","HLT"),
156     genParticlesProducer = cms.InputTag("genParticles"),
157 lethuill 1.13 genJetsProducer = cms.InputTag("iterativeCone5GenJets"),
158     genMETsProducer = cms.InputTag("genMet"),
159 lethuill 1.16 beamSpotProducer = cms.InputTag("offlineBeamSpot"),
160 lethuill 1.3 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
161     trackProducer = cms.InputTag("generalTracks"),
162 lethuill 1.6 #jetProducer = cms.InputTag("iterativeCone5CaloJets"),
163     jetProducer = cms.InputTag("iterativeCone5PFJets"),
164 lethuill 1.3 muonProducer = cms.InputTag("muons"),
165     electronProducer = cms.InputTag("pixelMatchGsfElectrons"),
166 lethuill 1.12 photonProducer = cms.InputTag("photons"),
167     photonIDProducer = cms.InputTag("PhotonIDProd","PhotonAssociatedID"),
168 lethuill 1.3 metProducer = cms.InputTag("met"),
169     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
170     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
171 lethuill 1.6 reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
172     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
173     #reducedBarrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
174     #reducedEndcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
175 lethuill 1.3 hbheRecHitProducer = cms.InputTag("hbhereco"),
176     hoRecHitProducer = cms.InputTag("horeco"),
177 lethuill 1.12 hfRecHitProducer = cms.InputTag("hfreco")
178 lethuill 1.4 ),
179    
180     producersNamesAOD = cms.PSet(
181     dataType = cms.untracked.string("AOD"),
182     hltProducer = cms.InputTag("TriggerResults","","HLT"),
183     genParticlesProducer = cms.InputTag("genParticles"),
184 lethuill 1.13 genJetsProducer = cms.InputTag("iterativeCone5GenJets"),
185     genMETsProducer = cms.InputTag("genMet"),
186 lethuill 1.16 beamSpotProducer = cms.InputTag("offlineBeamSpot"),
187 lethuill 1.4 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
188     trackProducer = cms.InputTag("generalTracks"),
189     jetProducer = cms.InputTag("iterativeCone5CaloJets"),
190     muonProducer = cms.InputTag("muons"),
191     electronProducer = cms.InputTag("pixelMatchGsfElectrons"),
192 lethuill 1.12 photonProducer = cms.InputTag("photons"),
193     photonIDProducer = cms.InputTag("PhotonIDProd","PhotonAssociatedID"),
194 lethuill 1.4 metProducer = cms.InputTag("met"),
195     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
196     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
197     reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
198     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
199     hbheRecHitProducer = cms.InputTag("hbhereco"),
200     hoRecHitProducer = cms.InputTag("horeco"),
201 lethuill 1.12 hfRecHitProducer = cms.InputTag("hfreco")
202 lethuill 1.4 ),
203    
204     producersNamesPATAOD = cms.PSet(
205     dataType = cms.untracked.string("PATAOD"),
206     hltProducer = cms.InputTag("TriggerResults","","HLT"),
207     genParticlesProducer = cms.InputTag("genParticles"),
208 lethuill 1.13 genJetsProducer = cms.InputTag("iterativeCone5GenJets"),
209     genMETsProducer = cms.InputTag("genMet"),
210 lethuill 1.16 beamSpotProducer = cms.InputTag("offlineBeamSpot"),
211 lethuill 1.4 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
212     trackProducer = cms.InputTag("generalTracks"),
213     jetProducer = cms.InputTag("selectedLayer1Jets"),
214     muonProducer = cms.InputTag("selectedLayer1Muons"),
215     electronProducer = cms.InputTag("selectedLayer1Electrons"),
216 lethuill 1.12 photonProducer = cms.InputTag("selectedLayer1Photons"),
217     photonIDProducer = cms.InputTag("PhotonIDProd","PhotonAssociatedID"),
218 lethuill 1.4 metProducer = cms.InputTag("selectedLayer1METs"),
219     barrelEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
220     endcapEcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
221     reducedBarrelEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
222     reducedEndcapEcalRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
223     hbheRecHitProducer = cms.InputTag("hbhereco"),
224     hoRecHitProducer = cms.InputTag("horeco"),
225 lethuill 1.12 hfRecHitProducer = cms.InputTag("hfreco")
226 lethuill 1.4 ),
227    
228     producersNamesPAT = cms.PSet(
229     dataType = cms.untracked.string("PAT"),
230     hltProducer = cms.InputTag("PATALACON"),
231     genParticlesProducer = cms.InputTag("PATALACON"),
232 lethuill 1.13 genJetsProducer = cms.InputTag("iterativeCone5GenJets"),
233     genMETsProducer = cms.InputTag("genMet"),
234 lethuill 1.16 beamSpotProducer = cms.InputTag("offlineBeamSpot"),
235 lethuill 1.4 primaryVertexProducer = cms.InputTag("offlinePrimaryVerticesWithBS"),
236     trackProducer = cms.InputTag("PATALACON"),
237     jetProducer = cms.InputTag("selectedLayer1Jets"),
238     muonProducer = cms.InputTag("selectedLayer1Muons"),
239     electronProducer = cms.InputTag("selectedLayer1Electrons"),
240 lethuill 1.12 photonProducer = cms.InputTag("selectedLayer1Photons"),
241     photonIDProducer = cms.InputTag("PATALACON"),
242 lethuill 1.4 metProducer = cms.InputTag("selectedLayer1METs"),
243     barrelEcalRecHitCollection = cms.InputTag("PATALACON"),
244     endcapEcalRecHitCollection = cms.InputTag("PATALACON"),
245     reducedBarrelEcalRecHitCollection = cms.InputTag("PATALACON"),
246     reducedEndcapEcalRecHitCollection = cms.InputTag("PATALACON"),
247     hbheRecHitProducer = cms.InputTag("PATALACON"),
248     hoRecHitProducer = cms.InputTag("PATALACON"),
249 lethuill 1.12 hfRecHitProducer = cms.InputTag("PATALACON")
250 lethuill 1.3 )
251 lethuill 1.1 )
252    
253 lethuill 1.4
254 lethuill 1.6 ##process.hltHighLevel = cms.EDFilter("HLTHighLevel",
255     ## HLTPaths = cms.vstring('HLT2PhotonRelaxed'),
256     ## andOr = cms.bool(True),
257     ## TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
258     ##)
259 lethuill 1.4
260 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)
261     #process.p = cms.Path(process.preshowerClusterShape*process.piZeroDiscriminators*process.analysis)
262     process.p = cms.Path(process.analysis)
263