ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/MitTreeFiller_template.py
Revision: 1.10
Committed: Tue Sep 30 15:59:42 2008 UTC (16 years, 7 months ago) by sixie
Content type: text/x-python
Branch: MAIN
Changes since 1.9: +54 -65 lines
Log Message:
clean up loading of various options. options to turn on various features will be completely done in this file from now on. Added vproducers from Matt.

File Contents

# User Rev Content
1 sixie 1.10 # $Id: MitTreeFiller_template.py,v 1.9 2008/09/29 17:07:47 sixie Exp $
2 sixie 1.1 #---------------------------------------------------------------------------------------------------
3     # This template config file is intended to be a reference for the "HEAD" OAK tree version.
4     # This config file will be used by the mitprod account to do production on CRAB. It must
5     # be ensured that this config file is always working with the production CMSSW release
6     #---------------------------------------------------------------------------------------------------
7     # List of paramters to be properly replaced
8     #
9     # - XX-MITDATASET-XX - MIT type dataset name (ex. csa08-1ipb-jpsi)
10     #
11     #---------------------------------------------------------------------------------------------------
12    
13     import FWCore.ParameterSet.Config as cms
14     process = cms.Process("FILLER")
15    
16 sixie 1.10 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(50) )
17 sixie 1.1 process.source = cms.Source("PoolSource",
18     fileNames = cms.untracked.vstring(
19     'file:/server/02a/sixie/RECO/001EA63A-DF60-DD11-9D5A-001A92810AA6.root'
20     ),
21     secondaryFileNames = cms.untracked.vstring()
22     )
23    
24 sixie 1.10 #Load MitTreeFiller
25     process.TreeService = cms.Service("TreeService",
26     fileNames = cms.untracked.vstring('XX-MITDATASET-XX')
27     )
28     process.add_(cms.Service("ObjectService"))
29     process.load("MitProd.TreeFiller.MitTreeFiller_cfi")
30    
31     #Load Mit vProducer
32     process.load("MitEdm.Producers.vProducer_cff")
33    
34 sixie 1.1 # compute ECAL shower shape variables
35     process.load("Configuration.StandardSequences.Geometry_cff")
36     process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
37     process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
38     process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
39    
40     process.load("FWCore.MessageLogger.MessageLogger_cfi")
41    
42 sixie 1.10 #Load ElectronID information
43     process.load("MitProd.TreeFiller.ElectronID_cfi")
44    
45     #For Jet Corrections
46     process.load("MitProd.TreeFiller.JetCorrections_cfi")
47     process.prefer("L3JetCorrectorIcone5")
48     #enable Jet Corrections for all of our Jet collections
49     process.MitTreeFiller.CaloJets.jetCorrectionsActive = cms.untracked.bool(True)
50     process.MitTreeFiller.ItrCone5Jets.jetCorrectionsActive = cms.untracked.bool(True)
51     process.MitTreeFiller.SisCone5Jets.jetCorrectionsActive = cms.untracked.bool(True)
52     process.MitTreeFiller.SisCone7Jets.jetCorrectionsActive = cms.untracked.bool(True)
53     process.MitTreeFiller.Kt4Jets.jetCorrectionsActive = cms.untracked.bool(True)
54     process.MitTreeFiller.Kt6Jets.jetCorrectionsActive = cms.untracked.bool(True)
55    
56     #Load Met Corrections
57     process.load("MitProd.TreeFiller.MetCorrections_cfi")
58 sixie 1.1
59 sixie 1.3 #Load Flavor Matching Information
60 sixie 1.1 process.load("MitProd.TreeFiller.JetsMCFlavourMatching_cfi")
61 sixie 1.10 #Enable Flavor matching for Reco Jets and GenJets
62     process.MitTreeFiller.CaloJets.flavorMatchingActive = cms.untracked.bool(True)
63     process.MitTreeFiller.ItrCone5Jets.flavorMatchingActive = cms.untracked.bool(True)
64     process.MitTreeFiller.SisCone5Jets.flavorMatchingActive = cms.untracked.bool(True)
65     process.MitTreeFiller.SisCone7Jets.flavorMatchingActive = cms.untracked.bool(True)
66     process.MitTreeFiller.Kt4Jets.flavorMatchingActive = cms.untracked.bool(True)
67     process.MitTreeFiller.Kt6Jets.flavorMatchingActive = cms.untracked.bool(True)
68     process.MitTreeFiller.IC5GenJets.flavorMatchingActive = cms.untracked.bool(True)
69     process.MitTreeFiller.SC5GenJets.flavorMatchingActive = cms.untracked.bool(True)
70     process.MitTreeFiller.SC7GenJets.flavorMatchingActive = cms.untracked.bool(True)
71     process.MitTreeFiller.KT4GenJets.flavorMatchingActive = cms.untracked.bool(True)
72     process.MitTreeFiller.KT6GenJets.flavorMatchingActive = cms.untracked.bool(True)
73 ksung 1.2
74 sixie 1.3 #produce jet vertex association information
75     process.load("MitProd.TreeFiller.JetVertexAssociation_cfi")
76 sixie 1.10 #Enable Jet Vertex association for Reco Jet collections
77     process.MitTreeFiller.CaloJets.jetToVertexActive = cms.untracked.bool(True)
78     process.MitTreeFiller.ItrCone5Jets.jetToVertexActive = cms.untracked.bool(True)
79     process.MitTreeFiller.SisCone5Jets.jetToVertexActive = cms.untracked.bool(True)
80     process.MitTreeFiller.SisCone7Jets.jetToVertexActive = cms.untracked.bool(True)
81     process.MitTreeFiller.Kt4Jets.jetToVertexActive = cms.untracked.bool(True)
82     process.MitTreeFiller.Kt6Jets.jetToVertexActive = cms.untracked.bool(True)
83 sixie 1.1
84 sixie 1.3 process.p1 = cms.Path(
85 sixie 1.10 process.vProducer *
86     ( process.MitEIdSequence
87     + process.MitMetCorrections
88     + process.caloJetMCFlavour
89 sixie 1.3 + process.jetvertexAssociationSequence
90     )
91 sixie 1.10 *process.MitTreeFiller
92     *process.vFiller
93     )