1 |
bendavid |
1.17 |
# $Id: MitTreeFiller_template.py,v 1.16 2008/11/04 19:28:24 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 |
sixie |
1.13 |
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.17 |
'file:/server/02a/bendavid/RECO/QCD_BCtoE_Pt30to80/002D4D9E-7088-DD11-9B22-001CC4445DC2.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 |
|
|
fileNames = cms.untracked.vstring('XX-MITDATASET-XX')
|
27 |
|
|
)
|
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 |
#Load Electron Isolation. For Jurassic isolation veto fix.
|
48 |
|
|
process.load("RecoEgamma.EgammaIsolationAlgos.eleIsolationSequence_cff")
|
49 |
|
|
|
50 |
sixie |
1.10 |
|
51 |
sixie |
1.14 |
#For Jet Corrections (Summer08 Jet corrections)
|
52 |
|
|
process.load("JetMETCorrections.Configuration.L2L3Corrections_Summer08_cff")
|
53 |
|
|
process.prefer("L3JetCorrectorIC5Calo")
|
54 |
|
|
|
55 |
sixie |
1.10 |
#enable Jet Corrections for all of our Jet collections
|
56 |
|
|
process.MitTreeFiller.CaloJets.jetCorrectionsActive = cms.untracked.bool(True)
|
57 |
|
|
process.MitTreeFiller.ItrCone5Jets.jetCorrectionsActive = cms.untracked.bool(True)
|
58 |
|
|
process.MitTreeFiller.SisCone5Jets.jetCorrectionsActive = cms.untracked.bool(True)
|
59 |
|
|
process.MitTreeFiller.SisCone7Jets.jetCorrectionsActive = cms.untracked.bool(True)
|
60 |
|
|
process.MitTreeFiller.Kt4Jets.jetCorrectionsActive = cms.untracked.bool(True)
|
61 |
|
|
process.MitTreeFiller.Kt6Jets.jetCorrectionsActive = cms.untracked.bool(True)
|
62 |
|
|
|
63 |
sixie |
1.12 |
#For JetPlusTracks
|
64 |
|
|
process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
|
65 |
|
|
process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
|
66 |
|
|
process.MitTreeFiller.IC5JetPlusTrack.active = cms.untracked.bool(True)
|
67 |
|
|
|
68 |
sixie |
1.10 |
#Load Met Corrections
|
69 |
|
|
process.load("MitProd.TreeFiller.MetCorrections_cfi")
|
70 |
sixie |
1.1 |
|
71 |
sixie |
1.3 |
#Load Flavor Matching Information
|
72 |
sixie |
1.1 |
process.load("MitProd.TreeFiller.JetsMCFlavourMatching_cfi")
|
73 |
sixie |
1.10 |
#Enable Flavor matching for Reco Jets and GenJets
|
74 |
|
|
process.MitTreeFiller.CaloJets.flavorMatchingActive = cms.untracked.bool(True)
|
75 |
|
|
process.MitTreeFiller.ItrCone5Jets.flavorMatchingActive = cms.untracked.bool(True)
|
76 |
|
|
process.MitTreeFiller.SisCone5Jets.flavorMatchingActive = cms.untracked.bool(True)
|
77 |
|
|
process.MitTreeFiller.SisCone7Jets.flavorMatchingActive = cms.untracked.bool(True)
|
78 |
|
|
process.MitTreeFiller.Kt4Jets.flavorMatchingActive = cms.untracked.bool(True)
|
79 |
|
|
process.MitTreeFiller.Kt6Jets.flavorMatchingActive = cms.untracked.bool(True)
|
80 |
|
|
process.MitTreeFiller.IC5GenJets.flavorMatchingActive = cms.untracked.bool(True)
|
81 |
|
|
process.MitTreeFiller.SC5GenJets.flavorMatchingActive = cms.untracked.bool(True)
|
82 |
|
|
process.MitTreeFiller.SC7GenJets.flavorMatchingActive = cms.untracked.bool(True)
|
83 |
|
|
process.MitTreeFiller.KT4GenJets.flavorMatchingActive = cms.untracked.bool(True)
|
84 |
|
|
process.MitTreeFiller.KT6GenJets.flavorMatchingActive = cms.untracked.bool(True)
|
85 |
ksung |
1.2 |
|
86 |
sixie |
1.3 |
#produce jet vertex association information
|
87 |
|
|
process.load("MitProd.TreeFiller.JetVertexAssociation_cfi")
|
88 |
sixie |
1.10 |
#Enable Jet Vertex association for Reco Jet collections
|
89 |
|
|
process.MitTreeFiller.CaloJets.jetToVertexActive = cms.untracked.bool(True)
|
90 |
|
|
process.MitTreeFiller.ItrCone5Jets.jetToVertexActive = cms.untracked.bool(True)
|
91 |
|
|
process.MitTreeFiller.SisCone5Jets.jetToVertexActive = cms.untracked.bool(True)
|
92 |
|
|
process.MitTreeFiller.SisCone7Jets.jetToVertexActive = cms.untracked.bool(True)
|
93 |
|
|
process.MitTreeFiller.Kt4Jets.jetToVertexActive = cms.untracked.bool(True)
|
94 |
|
|
process.MitTreeFiller.Kt6Jets.jetToVertexActive = cms.untracked.bool(True)
|
95 |
sixie |
1.1 |
|
96 |
bendavid |
1.15 |
#Load track detector associator for Track-ECal association
|
97 |
|
|
process.load("MitProd.TreeFiller.TrackEcalAssociation_cfi")
|
98 |
|
|
process.MitTreeFiller.TrackAssociatorParameters = cms.untracked.PSet(process.TrackAssociatorParameters)
|
99 |
|
|
#enable Track-Ecal assocation in fillers
|
100 |
|
|
process.MitTreeFiller.GeneralTracks.ecalAssocActive = True
|
101 |
|
|
process.MitTreeFiller.StandaloneMuonTracks.ecalAssocActive = True
|
102 |
|
|
process.MitTreeFiller.StandaloneMuonTracksWVtxConstraint.ecalAssocActive = True
|
103 |
|
|
process.MitTreeFiller.GlobalMuonTracks.ecalAssocActive = True
|
104 |
|
|
process.MitTreeFiller.ConversionInOutTracks.ecalAssocActive = True
|
105 |
|
|
process.MitTreeFiller.ConversionOutInTracks.ecalAssocActive = True
|
106 |
|
|
process.MitTreeFiller.GsfTracks.ecalAssocActive = True
|
107 |
|
|
|
108 |
bendavid |
1.16 |
#load gsf track to general track associator
|
109 |
|
|
process.load("MitEdm.Producers.gsfTrackAssociator_cff")
|
110 |
|
|
process.MitTreeFiller.Electrons.gsfTrackAssocName = 'gsfTrackAssociator'
|
111 |
|
|
|
112 |
sixie |
1.3 |
process.p1 = cms.Path(
|
113 |
sixie |
1.13 |
process.eleIsolationSequence *
|
114 |
bendavid |
1.16 |
process.gsfTrackAssociator *
|
115 |
sixie |
1.13 |
process.vProducer *
|
116 |
|
|
process.conversionProducer *
|
117 |
sixie |
1.10 |
( process.MitEIdSequence
|
118 |
|
|
+ process.MitMetCorrections
|
119 |
|
|
+ process.caloJetMCFlavour
|
120 |
sixie |
1.3 |
+ process.jetvertexAssociationSequence
|
121 |
sixie |
1.12 |
+ process.ZSPJetCorrections*process.JetPlusTrackCorrections
|
122 |
sixie |
1.3 |
)
|
123 |
sixie |
1.10 |
*process.MitTreeFiller
|
124 |
|
|
*process.vFiller
|
125 |
bendavid |
1.11 |
*process.conversionFiller
|
126 |
sixie |
1.10 |
)
|