CMS 3D CMS Logo

testFFTrackingParticleHits.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("DISPLAY")
4 
5 
6 #process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
7 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
8 from Configuration.AlCa.autoCond import autoCond
9 process.GlobalTag.globaltag = autoCond['mc']
10 process.load("Configuration.StandardSequences.Geometry_cff")
11 process.load("Configuration.StandardSequences.Reconstruction_cff")
12 
13 
14 ### Expects test.root in current directory.
15 # fileNames=cms.untracked.vstring('root://xrootd.t2.ucsd.edu//tas-5/cerati/TTbarEventsPU/step2_ttbar_45PU25ns.root')
16 process.source = cms.Source(
17  "PoolSource",
18  fileNames=cms.untracked.vstring('file:/home/alja/cms-dev/tracking.root')
19 )
20 
21 process.POurFilter = cms.EDFilter("RandomFilter",
22  acceptRate = cms.untracked.double(1.0))
23 
24 
25 
27 process.load("SimGeneral.TrackingAnalysis.simHitTPAssociation_cfi")
28 
29 
30 
31 process.xxx=cms.EDProducer('SimHitTPAssociationProducer',
32 simHitSrc = cms.VInputTag(cms.InputTag('g4SimHits','MuonDTHits'),
33 cms.InputTag('g4SimHits','MuonCSCHits'),
34 cms.InputTag('g4SimHits','MuonRPCHits'),
35 cms.InputTag('g4SimHits','TrackerHitsTIBLowTof'),
36 cms.InputTag('g4SimHits','TrackerHitsTIBHighTof'),
37 cms.InputTag('g4SimHits','TrackerHitsTIDLowTof'),
38 cms.InputTag('g4SimHits','TrackerHitsTIDHighTof'),
39 cms.InputTag('g4SimHits','TrackerHitsTOBLowTof'),
40 cms.InputTag('g4SimHits','TrackerHitsTOBHighTof'),
41 cms.InputTag('g4SimHits','TrackerHitsTECLowTof'),
42 cms.InputTag('g4SimHits','TrackerHitsTECHighTof'),
43 cms.InputTag( 'g4SimHits','TrackerHitsPixelBarrelLowTof'),
44 cms.InputTag('g4SimHits','TrackerHitsPixelBarrelHighTof'),
45 cms.InputTag('g4SimHits','TrackerHitsPixelEndcapLowTof'),
46 cms.InputTag('g4SimHits','TrackerHitsPixelEndcapHighTof') ),
47 trackingParticleSrc = cms.InputTag('mix', 'MergedTrackTruth'),
48 simHitTpMapTag = cms.InputTag("simHitTPAssocProducer")
49 )
50 
51 
52 process.mypath = cms.Path(process.xxx)
53 
54 
Expects test.root in current directory.