ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/MitTreeFiller_template.py
Revision: 1.26
Committed: Wed Mar 25 10:07:19 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/x-python
Branch: MAIN
CVS Tags: Mit_008
Changes since 1.25: +15 -12 lines
Log Message:
Move to V12 and 2_2_6++.

File Contents

# User Rev Content
1 loizides 1.26 # $Id: MitTreeFiller_template.py,v 1.25 2009/03/25 09:00:25 bendavid 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 loizides 1.26 #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 sixie 1.10 #Load MitTreeFiller
32     process.TreeService = cms.Service("TreeService",
33 bendavid 1.18 fileNames = cms.untracked.vstring('XX-MITDATASET-XX'),
34 sixie 1.10 )
35     process.add_(cms.Service("ObjectService"))
36     process.load("MitProd.TreeFiller.MitTreeFiller_cfi")
37    
38     #Load Mit vProducer
39 loizides 1.24 process.load("MitProd.TreeFiller.vProducer_cff")
40 sixie 1.10
41 bendavid 1.11 #Load Mit Mvf Conversion producer
42 loizides 1.24 process.load("MitProd.TreeFiller.conversionProducer_cff")
43     process.load("MitProd.TreeFiller.conversionRemovalProducer_cff")
44 bendavid 1.11
45 loizides 1.26 #Compute ECAL shower shape variables
46 sixie 1.1 process.load("Configuration.StandardSequences.Geometry_cff")
47     process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
48     process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
49     process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
50    
51 sixie 1.10 #Load ElectronID information
52     process.load("MitProd.TreeFiller.ElectronID_cfi")
53 sixie 1.13
54 bendavid 1.18 #For Jet Corrections (Summer08 redigi-rereco Jet corrections)
55     process.load("JetMETCorrections.Configuration.L2L3Corrections_Summer08Redigi_cff")
56 sixie 1.14 process.prefer("L3JetCorrectorIC5Calo")
57 bendavid 1.20 process.correctedJets = cms.Sequence(process.L2L3CorJetIC5Calo*
58     process.L2L3CorJetSC5Calo*
59     process.L2L3CorJetSC7Calo*
60     process.L2L3CorJetKT4Calo*
61     process.L2L3CorJetKT6Calo*
62     process.L2L3CorJetIC5JPT)
63 sixie 1.14
64 loizides 1.26 #Enable Jet Corrections for all of our Jet collections
65 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.jetCorrectionsActive = True
66     process.MitTreeFiller.SisCone5Jets.jetCorrectionsActive = True
67     process.MitTreeFiller.SisCone7Jets.jetCorrectionsActive = True
68     process.MitTreeFiller.Kt4Jets.jetCorrectionsActive = True
69     process.MitTreeFiller.Kt6Jets.jetCorrectionsActive = True
70     process.MitTreeFiller.IC5JetPlusTrack.jetCorrectionsActive = True
71 loizides 1.24 process.MitTreeFiller.ItrCone5PFJets.jetCorrectionsActive = True
72 sixie 1.10
73 sixie 1.12 #For JetPlusTracks
74     process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
75     process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
76 bendavid 1.18 process.MitTreeFiller.IC5JetPlusTrack.active = True
77 sixie 1.12
78 sixie 1.10 #Load Met Corrections
79     process.load("MitProd.TreeFiller.MetCorrections_cfi")
80 sixie 1.1
81 bendavid 1.20 #Load MHT sequence
82     process.load("MitProd.TreeFiller.MitMHT_cfi")
83    
84     #load track-corrected MET module
85     process.load("RecoMET.METProducers.TCMET_cfi")
86    
87 sixie 1.3 #Load Flavor Matching Information
88 sixie 1.1 process.load("MitProd.TreeFiller.JetsMCFlavourMatching_cfi")
89 sixie 1.10 #Enable Flavor matching for Reco Jets and GenJets
90 loizides 1.24 process.MitTreeFiller.ItrCone5Jets.flavorMatchingActive = True
91     process.MitTreeFiller.SisCone5Jets.flavorMatchingActive = True
92     process.MitTreeFiller.SisCone7Jets.flavorMatchingActive = True
93     process.MitTreeFiller.Kt4Jets.flavorMatchingActive = True
94     process.MitTreeFiller.Kt6Jets.flavorMatchingActive = True
95 bendavid 1.22 process.MitTreeFiller.ItrCone5PFJets.flavorMatchingActive = True
96 loizides 1.24 process.MitTreeFiller.IC5GenJets.flavorMatchingActive = True
97     process.MitTreeFiller.SC5GenJets.flavorMatchingActive = True
98     process.MitTreeFiller.SC7GenJets.flavorMatchingActive = True
99     process.MitTreeFiller.KT4GenJets.flavorMatchingActive = True
100     process.MitTreeFiller.KT6GenJets.flavorMatchingActive = True
101 ksung 1.2
102 loizides 1.26 #Produce jet vertex association information
103 sixie 1.3 process.load("MitProd.TreeFiller.JetVertexAssociation_cfi")
104 sixie 1.10 #Enable Jet Vertex association for Reco Jet collections
105 bendavid 1.18 process.MitTreeFiller.ItrCone5Jets.jetToVertexActive = True
106     process.MitTreeFiller.SisCone5Jets.jetToVertexActive = True
107     process.MitTreeFiller.SisCone7Jets.jetToVertexActive = True
108     process.MitTreeFiller.Kt4Jets.jetToVertexActive = True
109     process.MitTreeFiller.Kt6Jets.jetToVertexActive = True
110 sixie 1.1
111 bendavid 1.15 #Load track detector associator for Track-ECal association
112     process.load("MitProd.TreeFiller.TrackEcalAssociation_cfi")
113     process.MitTreeFiller.TrackAssociatorParameters = cms.untracked.PSet(process.TrackAssociatorParameters)
114 loizides 1.26 #Enable Track-Ecal assocation in fillers
115 bendavid 1.15 process.MitTreeFiller.GeneralTracks.ecalAssocActive = True
116     process.MitTreeFiller.StandaloneMuonTracks.ecalAssocActive = True
117     process.MitTreeFiller.StandaloneMuonTracksWVtxConstraint.ecalAssocActive = True
118     process.MitTreeFiller.GlobalMuonTracks.ecalAssocActive = True
119     process.MitTreeFiller.ConversionInOutTracks.ecalAssocActive = True
120     process.MitTreeFiller.ConversionOutInTracks.ecalAssocActive = True
121     process.MitTreeFiller.GsfTracks.ecalAssocActive = True
122 bendavid 1.22 process.MitTreeFiller.PFGsfTracks.ecalAssocActive = True
123 bendavid 1.15
124 loizides 1.26 #Load gsf track to general track associator
125 bendavid 1.16 process.load("MitEdm.Producers.gsfTrackAssociator_cff")
126     process.MitTreeFiller.Electrons.gsfTrackAssocName = 'gsfTrackAssociator'
127    
128 sixie 1.3 process.p1 = cms.Path(
129 bendavid 1.16 process.gsfTrackAssociator *
130 bendavid 1.22 process.vProducer *
131     process.conversionProducer *
132 bendavid 1.23 process.conversionRemovalProducer *
133 sixie 1.10 ( process.MitEIdSequence
134     + process.MitMetCorrections
135     + process.caloJetMCFlavour
136 bendavid 1.22 + process.pfJetMCFlavour
137     + process.extraPFJetMCFlavour
138 sixie 1.3 + process.jetvertexAssociationSequence
139 sixie 1.12 + process.ZSPJetCorrections*process.JetPlusTrackCorrections
140 bendavid 1.20 + process.correctedJets
141     + process.MitMHT
142     + process.tcMet
143 loizides 1.24 ) *
144     process.MitTreeFiller *
145     process.vFiller *
146     process.conversionFiller *
147 loizides 1.26 process.conversionRemovalFiller
148     )