ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/MitTreeFiller_template.py
Revision: 1.27
Committed: Tue Apr 7 08:08:12 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/x-python
Branch: MAIN
CVS Tags: Mit_009c, Mit_009b, Mit_009a, Mit_009
Changes since 1.26: +8 -1 lines
Log Message:
workaround for gsf tracks problem.

File Contents

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