ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/JulyExercise/python/highPtAnalysisSkim.py
Revision: 1.7
Committed: Wed Aug 4 16:13:38 2010 UTC (14 years, 9 months ago) by frankma
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +4 -3 lines
Log Message:
update to run with full mc info

File Contents

# User Rev Content
1 nart 1.5
2 yilmaz 1.1 import FWCore.ParameterSet.Config as cms
3    
4     process = cms.Process('PAT')
5    
6 nart 1.6
7 yilmaz 1.1 process.source = cms.Source("PoolSource",
8 nart 1.6 fileNames = cms.untracked.vstring("dcache:/pnfs/cmsaf.mit.edu/t2bat/cms/store/user/kimy/MinimumBiasHI/Spring10-JulyAnalysisExercise_MC_37Y_V4-HardEnriched-GEN-SIM-RECO/6a7752772a3d4259db7cafda4079c785/hiRecoJEX_RAW2DIGI_RECO_9_1_062.root"),
9    
10 yilmaz 1.4 inputCommands = cms.untracked.vstring("keep *_*_*_*",
11     "drop *_iterativeConePu5CaloJets_*_*"
12     ),
13     dropDescendantsOfDroppedBranches = cms.untracked.bool(False)
14 nart 1.6
15 yilmaz 1.4 )
16 yilmaz 1.1
17     process.maxEvents = cms.untracked.PSet(
18 yilmaz 1.4 input = cms.untracked.int32(2)
19 yilmaz 1.1 )
20    
21 nart 1.6
22 yilmaz 1.4 process.load('Configuration/StandardSequences/GeometryExtended_cff')
23 nart 1.5 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
24     process.load('Configuration/StandardSequences/MagneticField_38T_cff')
25     process.GlobalTag.globaltag = 'MC_37Y_V5::All'
26    
27 nart 1.6
28 yilmaz 1.4 process.load('Configuration/StandardSequences/ReconstructionHeavyIons_cff')
29 nart 1.6 process.load('PhysicsTools.PatAlgos.patHeavyIonSequences_cff')
30     # process.load('RecoHI.HiJetAlgos.HiGenCleaner_cff')
31 yilmaz 1.4
32     process.hiCentrality.produceHFhits = False
33     process.hiCentrality.produceHFtowers = False
34     process.hiCentrality.produceEcalhits = False
35     process.hiCentrality.produceBasicClusters = False
36     process.hiCentrality.produceZDChits = False
37     process.hiCentrality.produceETmidRapidity = True
38 nart 1.5 process.hiCentrality.producePixelhits = True
39 yilmaz 1.4
40 nart 1.6
41 yilmaz 1.2 from PhysicsTools.PatAlgos.tools.heavyIonTools import *
42 yilmaz 1.1 configureHeavyIons(process)
43    
44    
45     process.load("HeavyIonsAnalysis.Configuration.analysisProducers_cff")
46     process.load("HeavyIonsAnalysis.Configuration.analysisEventContent_cff")
47    
48 nart 1.6
49 yilmaz 1.1 process.output = cms.OutputModule("PoolOutputModule",
50 nart 1.5 process.jetTrkSkimContent,
51 nart 1.6 fileName = cms.untracked.string("output.root")
52 nart 1.5 )
53 yilmaz 1.1
54 nart 1.6
55    
56 yilmaz 1.4 process.output.outputCommands.extend([
57     "keep recoVertexs_hiSelectedVertex__RECO",
58     "keep recoTracks_hiSelectedTracks__RECO",
59     "keep recoPhotons_*_*_*" ,
60 nart 1.5 "keep edmTriggerResults_TriggerResults__*" ,
61 frankma 1.7 "keep triggerTriggerEvent_hltTriggerSummaryAOD__*",
62     "keep *_hiGenParticles_*_*",
63 yilmaz 1.4 ])
64    
65     process.prod = cms.Path(
66 frankma 1.7 process.heavyIon +
67 nart 1.5 process.siPixelRecHits +
68 yilmaz 1.4 process.iterativeConePu5CaloJets +
69 nart 1.5 process.kt4CaloJets +
70     process.ak5CaloJets +
71 yilmaz 1.4 process.hiCentrality +
72 yilmaz 1.1 process.makeHeavyIonJets
73     )
74 nart 1.6
75 frankma 1.7 from CmsHi.JulyExercise.DisableMC_cff import *
76 nart 1.6 #disableMC(process)
77 yilmaz 1.1
78     process.out_step = cms.EndPath(process.output)
79    
80 nart 1.5