ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/MitTreeFiller_template.py
Revision: 1.20
Committed: Fri Mar 6 18:46:46 2009 UTC (16 years, 2 months ago) by bendavid
Content type: text/x-python
Branch: MAIN
Changes since 1.19: +16 -1 lines
Log Message:
Added MHT and tcMet on cmssw side in config files, not added to filler configs yet

File Contents

# User Rev Content
1 bendavid 1.20 # $Id: MitTreeFiller_template.py,v 1.19 2009/03/06 14:40:10 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.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 sixie 1.10
66 sixie 1.12 #For JetPlusTracks
67     process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
68     process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
69 bendavid 1.18 process.MitTreeFiller.IC5JetPlusTrack.active = True
70 sixie 1.12
71 sixie 1.10 #Load Met Corrections
72     process.load("MitProd.TreeFiller.MetCorrections_cfi")
73 sixie 1.1
74 bendavid 1.20 #Load MHT sequence
75     process.load("MitProd.TreeFiller.MitMHT_cfi")
76    
77     #load track-corrected MET module
78     process.load("RecoMET.METProducers.TCMET_cfi")
79    
80 sixie 1.3 #Load Flavor Matching Information
81 sixie 1.1 process.load("MitProd.TreeFiller.JetsMCFlavourMatching_cfi")
82 sixie 1.10 #Enable Flavor matching for Reco Jets and GenJets
83 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.flavorMatchingActive = True
84     process.MitTreeFiller.SisCone5Jets.flavorMatchingActive = True
85     process.MitTreeFiller.SisCone7Jets.flavorMatchingActive = True
86     process.MitTreeFiller.Kt4Jets.flavorMatchingActive = True
87     process.MitTreeFiller.Kt6Jets.flavorMatchingActive = True
88     process.MitTreeFiller.IC5GenJets.flavorMatchingActive = True
89     process.MitTreeFiller.SC5GenJets.flavorMatchingActive = True
90     process.MitTreeFiller.SC7GenJets.flavorMatchingActive = True
91     process.MitTreeFiller.KT4GenJets.flavorMatchingActive = True
92     process.MitTreeFiller.KT6GenJets.flavorMatchingActive = True
93 ksung 1.2
94 sixie 1.3 #produce jet vertex association information
95     process.load("MitProd.TreeFiller.JetVertexAssociation_cfi")
96 sixie 1.10 #Enable Jet Vertex association for Reco Jet collections
97 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.jetToVertexActive = True
98     process.MitTreeFiller.SisCone5Jets.jetToVertexActive = True
99     process.MitTreeFiller.SisCone7Jets.jetToVertexActive = True
100     process.MitTreeFiller.Kt4Jets.jetToVertexActive = True
101     process.MitTreeFiller.Kt6Jets.jetToVertexActive = True
102 sixie 1.1
103 bendavid 1.15 #Load track detector associator for Track-ECal association
104     process.load("MitProd.TreeFiller.TrackEcalAssociation_cfi")
105     process.MitTreeFiller.TrackAssociatorParameters = cms.untracked.PSet(process.TrackAssociatorParameters)
106     #enable Track-Ecal assocation in fillers
107     process.MitTreeFiller.GeneralTracks.ecalAssocActive = True
108     process.MitTreeFiller.StandaloneMuonTracks.ecalAssocActive = True
109     process.MitTreeFiller.StandaloneMuonTracksWVtxConstraint.ecalAssocActive = True
110     process.MitTreeFiller.GlobalMuonTracks.ecalAssocActive = True
111     process.MitTreeFiller.ConversionInOutTracks.ecalAssocActive = True
112     process.MitTreeFiller.ConversionOutInTracks.ecalAssocActive = True
113     process.MitTreeFiller.GsfTracks.ecalAssocActive = True
114    
115 bendavid 1.16 #load gsf track to general track associator
116     process.load("MitEdm.Producers.gsfTrackAssociator_cff")
117     process.MitTreeFiller.Electrons.gsfTrackAssocName = 'gsfTrackAssociator'
118    
119 sixie 1.3 process.p1 = cms.Path(
120 bendavid 1.16 process.gsfTrackAssociator *
121 bendavid 1.19 #process.vProducer *
122     #process.conversionProducer *
123 sixie 1.10 ( process.MitEIdSequence
124     + process.MitMetCorrections
125     + process.caloJetMCFlavour
126 sixie 1.3 + process.jetvertexAssociationSequence
127 sixie 1.12 + process.ZSPJetCorrections*process.JetPlusTrackCorrections
128 bendavid 1.20 + process.correctedJets
129     + process.MitMHT
130     + process.tcMet
131 sixie 1.3 )
132 sixie 1.10 *process.MitTreeFiller
133 bendavid 1.19 #*process.vFiller
134     #*process.conversionFiller
135 sixie 1.10 )