ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/MitTreeFiller_template.py
Revision: 1.25
Committed: Wed Mar 25 09:00:25 2009 UTC (16 years, 1 month ago) by bendavid
Content type: text/x-python
Branch: MAIN
Changes since 1.24: +4 -1 lines
Log Message:
Move global tag includes to top level configs

File Contents

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