ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/MitTreeFiller_template.py
Revision: 1.22
Committed: Fri Mar 20 19:55:14 2009 UTC (16 years, 1 month ago) by bendavid
Content type: text/x-python
Branch: MAIN
Changes since 1.21: +10 -5 lines
Log Message:
Cleaned up and nominally finalized top-level configs

File Contents

# User Rev Content
1 bendavid 1.22 # $Id: MitTreeFiller_template.py,v 1.21 2009/03/18 14:58:18 loizides Exp $
2 sixie 1.1 #---------------------------------------------------------------------------------------------------
3 loizides 1.21 # This template config file is intended to be a reference for the "HEAD" bambu tree version.
4 sixie 1.1 # 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 bendavid 1.19 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
17 sixie 1.1 process.source = cms.Source("PoolSource",
18     fileNames = cms.untracked.vstring(
19 bendavid 1.18 'file:/server/02a/bendavid/RECO/Zmumu-IDEAL_V11_redigi_V1/3A9FC4B3-7FCC-DD11-BB45-003048673F9E.root'
20 sixie 1.1 ),
21     secondaryFileNames = cms.untracked.vstring()
22     )
23    
24 sixie 1.10 #Load MitTreeFiller
25     process.TreeService = cms.Service("TreeService",
26 bendavid 1.18 fileNames = cms.untracked.vstring('XX-MITDATASET-XX'),
27 sixie 1.10 )
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 bendavid 1.11 #Load Mit Mvf Conversion producer
35     process.load("MitEdm.Producers.conversionProducer_cff")
36    
37 sixie 1.1 # compute ECAL shower shape variables
38     process.load("Configuration.StandardSequences.Geometry_cff")
39     process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
40     process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
41     process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
42    
43     process.load("FWCore.MessageLogger.MessageLogger_cfi")
44    
45 sixie 1.10 #Load ElectronID information
46     process.load("MitProd.TreeFiller.ElectronID_cfi")
47 sixie 1.13
48 bendavid 1.18 #For Jet Corrections (Summer08 redigi-rereco Jet corrections)
49     process.load("JetMETCorrections.Configuration.L2L3Corrections_Summer08Redigi_cff")
50 sixie 1.14 process.prefer("L3JetCorrectorIC5Calo")
51 bendavid 1.20 process.correctedJets = cms.Sequence(process.L2L3CorJetIC5Calo*
52     process.L2L3CorJetSC5Calo*
53     process.L2L3CorJetSC7Calo*
54     process.L2L3CorJetKT4Calo*
55     process.L2L3CorJetKT6Calo*
56     process.L2L3CorJetIC5JPT)
57 sixie 1.14
58 sixie 1.10 #enable Jet Corrections for all of our Jet collections
59 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.jetCorrectionsActive = True
60     process.MitTreeFiller.SisCone5Jets.jetCorrectionsActive = True
61     process.MitTreeFiller.SisCone7Jets.jetCorrectionsActive = True
62     process.MitTreeFiller.Kt4Jets.jetCorrectionsActive = True
63     process.MitTreeFiller.Kt6Jets.jetCorrectionsActive = True
64     process.MitTreeFiller.IC5JetPlusTrack.jetCorrectionsActive = True
65 bendavid 1.22 process.MitTreeFiller.ItrCone5PFJets.jetCorrectionsActive = True
66 sixie 1.10
67 sixie 1.12 #For JetPlusTracks
68     process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
69     process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
70 bendavid 1.18 process.MitTreeFiller.IC5JetPlusTrack.active = True
71 sixie 1.12
72 sixie 1.10 #Load Met Corrections
73     process.load("MitProd.TreeFiller.MetCorrections_cfi")
74 sixie 1.1
75 bendavid 1.20 #Load MHT sequence
76     process.load("MitProd.TreeFiller.MitMHT_cfi")
77    
78     #load track-corrected MET module
79     process.load("RecoMET.METProducers.TCMET_cfi")
80    
81 sixie 1.3 #Load Flavor Matching Information
82 sixie 1.1 process.load("MitProd.TreeFiller.JetsMCFlavourMatching_cfi")
83 sixie 1.10 #Enable Flavor matching for Reco Jets and GenJets
84 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.flavorMatchingActive = True
85     process.MitTreeFiller.SisCone5Jets.flavorMatchingActive = True
86     process.MitTreeFiller.SisCone7Jets.flavorMatchingActive = True
87     process.MitTreeFiller.Kt4Jets.flavorMatchingActive = True
88     process.MitTreeFiller.Kt6Jets.flavorMatchingActive = True
89 bendavid 1.22 process.MitTreeFiller.ItrCone5PFJets.flavorMatchingActive = True
90 bendavid 1.18 process.MitTreeFiller.IC5GenJets.flavorMatchingActive = True
91     process.MitTreeFiller.SC5GenJets.flavorMatchingActive = True
92     process.MitTreeFiller.SC7GenJets.flavorMatchingActive = True
93     process.MitTreeFiller.KT4GenJets.flavorMatchingActive = True
94     process.MitTreeFiller.KT6GenJets.flavorMatchingActive = True
95 ksung 1.2
96 sixie 1.3 #produce jet vertex association information
97     process.load("MitProd.TreeFiller.JetVertexAssociation_cfi")
98 sixie 1.10 #Enable Jet Vertex association for Reco Jet collections
99 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.jetToVertexActive = True
100     process.MitTreeFiller.SisCone5Jets.jetToVertexActive = True
101     process.MitTreeFiller.SisCone7Jets.jetToVertexActive = True
102     process.MitTreeFiller.Kt4Jets.jetToVertexActive = True
103     process.MitTreeFiller.Kt6Jets.jetToVertexActive = True
104 sixie 1.1
105 bendavid 1.15 #Load track detector associator for Track-ECal association
106     process.load("MitProd.TreeFiller.TrackEcalAssociation_cfi")
107     process.MitTreeFiller.TrackAssociatorParameters = cms.untracked.PSet(process.TrackAssociatorParameters)
108     #enable Track-Ecal assocation in fillers
109     process.MitTreeFiller.GeneralTracks.ecalAssocActive = True
110     process.MitTreeFiller.StandaloneMuonTracks.ecalAssocActive = True
111     process.MitTreeFiller.StandaloneMuonTracksWVtxConstraint.ecalAssocActive = True
112     process.MitTreeFiller.GlobalMuonTracks.ecalAssocActive = True
113     process.MitTreeFiller.ConversionInOutTracks.ecalAssocActive = True
114     process.MitTreeFiller.ConversionOutInTracks.ecalAssocActive = True
115     process.MitTreeFiller.GsfTracks.ecalAssocActive = True
116 bendavid 1.22 process.MitTreeFiller.PFGsfTracks.ecalAssocActive = True
117 bendavid 1.15
118 bendavid 1.16 #load gsf track to general track associator
119     process.load("MitEdm.Producers.gsfTrackAssociator_cff")
120     process.MitTreeFiller.Electrons.gsfTrackAssocName = 'gsfTrackAssociator'
121    
122 sixie 1.3 process.p1 = cms.Path(
123 bendavid 1.16 process.gsfTrackAssociator *
124 bendavid 1.22 process.vProducer *
125     process.conversionProducer *
126 sixie 1.10 ( process.MitEIdSequence
127     + process.MitMetCorrections
128     + process.caloJetMCFlavour
129 bendavid 1.22 + process.pfJetMCFlavour
130     + process.extraPFJetMCFlavour
131 sixie 1.3 + process.jetvertexAssociationSequence
132 sixie 1.12 + process.ZSPJetCorrections*process.JetPlusTrackCorrections
133 bendavid 1.20 + process.correctedJets
134     + process.MitMHT
135     + process.tcMet
136 sixie 1.3 )
137 sixie 1.10 *process.MitTreeFiller
138 bendavid 1.22 *process.vFiller
139     *process.conversionFiller
140 sixie 1.10 )