ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/MitTreeFiller_template.py
Revision: 1.18
Committed: Tue Mar 3 21:34:18 2009 UTC (16 years, 2 months ago) by bendavid
Content type: text/x-python
Branch: MAIN
CVS Tags: Mit_008pre1
Changes since 1.17: +28 -34 lines
Log Message:
Updated FullSim config file for 2_2_x changes, including new jet corrections

File Contents

# User Rev Content
1 bendavid 1.18 # $Id: MitTreeFiller_template.py,v 1.17 2008/11/12 18:20:37 bendavid 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 bendavid 1.18 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1170) )
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    
52 sixie 1.10 #enable Jet Corrections for all of our Jet collections
53 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.jetCorrectionsActive = True
54     process.MitTreeFiller.SisCone5Jets.jetCorrectionsActive = True
55     process.MitTreeFiller.SisCone7Jets.jetCorrectionsActive = True
56     process.MitTreeFiller.Kt4Jets.jetCorrectionsActive = True
57     process.MitTreeFiller.Kt6Jets.jetCorrectionsActive = True
58     process.MitTreeFiller.IC5JetPlusTrack.jetCorrectionsActive = True
59 sixie 1.10
60 sixie 1.12 #For JetPlusTracks
61     process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
62     process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
63 bendavid 1.18 process.MitTreeFiller.IC5JetPlusTrack.active = True
64 sixie 1.12
65 sixie 1.10 #Load Met Corrections
66     process.load("MitProd.TreeFiller.MetCorrections_cfi")
67 sixie 1.1
68 sixie 1.3 #Load Flavor Matching Information
69 sixie 1.1 process.load("MitProd.TreeFiller.JetsMCFlavourMatching_cfi")
70 sixie 1.10 #Enable Flavor matching for Reco Jets and GenJets
71 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.flavorMatchingActive = True
72     process.MitTreeFiller.SisCone5Jets.flavorMatchingActive = True
73     process.MitTreeFiller.SisCone7Jets.flavorMatchingActive = True
74     process.MitTreeFiller.Kt4Jets.flavorMatchingActive = True
75     process.MitTreeFiller.Kt6Jets.flavorMatchingActive = True
76     process.MitTreeFiller.IC5GenJets.flavorMatchingActive = True
77     process.MitTreeFiller.SC5GenJets.flavorMatchingActive = True
78     process.MitTreeFiller.SC7GenJets.flavorMatchingActive = True
79     process.MitTreeFiller.KT4GenJets.flavorMatchingActive = True
80     process.MitTreeFiller.KT6GenJets.flavorMatchingActive = True
81 ksung 1.2
82 sixie 1.3 #produce jet vertex association information
83     process.load("MitProd.TreeFiller.JetVertexAssociation_cfi")
84 sixie 1.10 #Enable Jet Vertex association for Reco Jet collections
85 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.jetToVertexActive = True
86     process.MitTreeFiller.SisCone5Jets.jetToVertexActive = True
87     process.MitTreeFiller.SisCone7Jets.jetToVertexActive = True
88     process.MitTreeFiller.Kt4Jets.jetToVertexActive = True
89     process.MitTreeFiller.Kt6Jets.jetToVertexActive = True
90 sixie 1.1
91 bendavid 1.15 #Load track detector associator for Track-ECal association
92     process.load("MitProd.TreeFiller.TrackEcalAssociation_cfi")
93     process.MitTreeFiller.TrackAssociatorParameters = cms.untracked.PSet(process.TrackAssociatorParameters)
94     #enable Track-Ecal assocation in fillers
95     process.MitTreeFiller.GeneralTracks.ecalAssocActive = True
96     process.MitTreeFiller.StandaloneMuonTracks.ecalAssocActive = True
97     process.MitTreeFiller.StandaloneMuonTracksWVtxConstraint.ecalAssocActive = True
98     process.MitTreeFiller.GlobalMuonTracks.ecalAssocActive = True
99     process.MitTreeFiller.ConversionInOutTracks.ecalAssocActive = True
100     process.MitTreeFiller.ConversionOutInTracks.ecalAssocActive = True
101     process.MitTreeFiller.GsfTracks.ecalAssocActive = True
102    
103 bendavid 1.16 #load gsf track to general track associator
104     process.load("MitEdm.Producers.gsfTrackAssociator_cff")
105     process.MitTreeFiller.Electrons.gsfTrackAssocName = 'gsfTrackAssociator'
106    
107 sixie 1.3 process.p1 = cms.Path(
108 bendavid 1.16 process.gsfTrackAssociator *
109 sixie 1.13 process.vProducer *
110     process.conversionProducer *
111 sixie 1.10 ( process.MitEIdSequence
112     + process.MitMetCorrections
113     + process.caloJetMCFlavour
114 sixie 1.3 + process.jetvertexAssociationSequence
115 sixie 1.12 + process.ZSPJetCorrections*process.JetPlusTrackCorrections
116 sixie 1.3 )
117 sixie 1.10 *process.MitTreeFiller
118     *process.vFiller
119 bendavid 1.11 *process.conversionFiller
120 sixie 1.10 )