1 |
zhangjin |
1.1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
|
process = cms.Process("TrackerMu")
|
3 |
|
|
|
4 |
|
|
#process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
|
5 |
|
|
process.load("Configuration.StandardSequences.MagneticField_cff")
|
6 |
|
|
#process.load("SimTracker.TrackAssociation.TrackAssociatorByChi2_cfi")
|
7 |
|
|
#process.load("SimTracker.TrackAssociation.TrackAssociatorByHits_cfi")
|
8 |
|
|
#process.load("SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cff")
|
9 |
|
|
|
10 |
|
|
"""
|
11 |
|
|
process.TrackAssociatorByChi2ESProducer = cms.ESProducer("TrackAssociatorByChi2ESProducer",
|
12 |
|
|
chi2cut = cms.double(50.0),
|
13 |
|
|
beamSpot = cms.InputTag("offlineBeamSpot"),
|
14 |
|
|
onlyDiagonal = cms.bool(False)
|
15 |
|
|
)
|
16 |
|
|
"""
|
17 |
|
|
|
18 |
|
|
process.TrackAssociatorByHits = cms.ESProducer("TrackAssociatorByHitsESProducer",
|
19 |
|
|
Quality_SimToReco = cms.double(0.5),
|
20 |
|
|
associateRecoTracks = cms.bool(True),
|
21 |
|
|
UseGrouped = cms.bool(True),
|
22 |
|
|
associatePixel = cms.bool(True),
|
23 |
|
|
ROUList = cms.vstring('TrackerHitsTIBLowTof',
|
24 |
|
|
'TrackerHitsTIBHighTof',
|
25 |
|
|
'TrackerHitsTIDLowTof',
|
26 |
|
|
'TrackerHitsTIDHighTof',
|
27 |
|
|
'TrackerHitsTOBLowTof',
|
28 |
|
|
'TrackerHitsTOBHighTof',
|
29 |
|
|
'TrackerHitsTECLowTof',
|
30 |
|
|
'TrackerHitsTECHighTof',
|
31 |
|
|
'TrackerHitsPixelBarrelLowTof',
|
32 |
|
|
'TrackerHitsPixelBarrelHighTof',
|
33 |
|
|
'TrackerHitsPixelEndcapLowTof',
|
34 |
|
|
'TrackerHitsPixelEndcapHighTof'),
|
35 |
|
|
UseSplitting = cms.bool(True),
|
36 |
|
|
ComponentName = cms.string('TrackAssociatorByHits'),
|
37 |
|
|
UsePixels = cms.bool(True),
|
38 |
|
|
ThreeHitTracksAreSpecial = cms.bool(True),
|
39 |
|
|
AbsoluteNumberOfHits = cms.bool(False),
|
40 |
|
|
associateStrip = cms.bool(True),
|
41 |
|
|
Purity_SimToReco = cms.double(0.75),
|
42 |
|
|
Cut_RecoToSim = cms.double(0.5),
|
43 |
|
|
SimToRecoDenominator = cms.string('sim')) ##"reco"
|
44 |
|
|
|
45 |
|
|
#process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
|
46 |
|
|
|
47 |
|
|
process.source = cms.Source('PoolSource',
|
48 |
|
|
#fileNames = cms.untracked.vstring("file:/home/zhangjin/CSCEffStudy/testCSCEff.root")
|
49 |
|
|
fileNames = cms.untracked.vstring("rfio:/castor/cern.ch/user/z/zhangjin/testCSCEff.root")
|
50 |
|
|
#,eventsToProcess = cms.untracked.VEventRange("1:10925272-1:10925272")
|
51 |
|
|
#,skipEvents = cms.untracked.uint32(1700)
|
52 |
|
|
#fileNames = cms.untracked.vstring("file:/afs/cern.ch/user/z/zhangjin/scratch0/ProblemEvt.root")
|
53 |
|
|
)
|
54 |
|
|
|
55 |
|
|
process.TracksSelector = cms.EDFilter('CSCPriEff',FileName = cms.untracked.string("TrkCands.root")
|
56 |
|
|
,RecoToSimAlgorithm=cms.untracked.string("TrackAssociatorByHits")
|
57 |
|
|
)
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
#process.p2 = cms.Path(process.trackingParticleRecoTrackAsssociation)
|
61 |
|
|
process.p = cms.Path(process.TracksSelector)
|
62 |
|
|
|
63 |
|
|
from FWCore.MessageLogger.MessageLogger_cfi import *
|
64 |
|
|
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
|
65 |
|
|
process.load("FWCore.MessageLogger.MessageLogger_cfi")
|
66 |
|
|
process.MessageLogger.cerr.FwkReport.reportEvery = 1000 #quench the message logger (optional)
|