Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:08

0001 #!/usr/bin/env cmsRun
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("cvrtest")
0006 
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 process.load("Configuration.StandardSequences.MagneticField_cff")
0009 process.load("Configuration.StandardSequences.GeometryIdeal_cff")
0010 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByChi2_cfi")
0011 # process.load("Geometry.CMSCommonData.cmsAllGeometryXML_cfi")
0012 # process.load("Geometry.CommonTopologies.globalTrackingGeometry_cfi")
0013 # process.load("Geometry.CommonTopologies.bareGlobalTrackingGeometry_cfi")
0014 # process.load("Configuration.StandardSequences.AlCaRecoStreams_cff")
0015 # process.load("Configuration.StandardSequences.OfflineDQM_cff")
0016 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 process.GlobalTag.globaltag = cms.string('STARTUP_V4::All')
0018 process.load("TrackingTools.TransientTrack.TransientTrackBuilder_cfi")
0019 process.load("RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi")
0020 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
0021 # GlobalTrackingGeometryRecord
0022 
0023 process.source = cms.Source("PoolSource",
0024     fileNames = cms.untracked.vstring('/store/relval/CMSSW_2_1_10/RelValBJets_Pt_50_120/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v2/0000/246E6DD9-B299-DD11-987C-000423D6B2D8.root')
0025 )
0026 
0027 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1))
0028 
0029 process.cVRAnalysis = cms.EDFilter("CVRAnalysis",
0030     trackcoll = cms.string('generalTracks'),
0031     vertexreco = cms.PSet(
0032         seccut = cms.double(6.0),
0033         primcut = cms.double(2.0),
0034         smoothing = cms.bool(False),
0035         finder = cms.string('avr'),
0036         minweight = cms.double(0.5),
0037         weightthreshold = cms.double(0.001)
0038     ),
0039     truth = cms.InputTag ('mergedtruth:MergedTrackTruth'),
0040     associator = cms.string ( 'trackAssociatorByChi2' ),
0041     vertexcoll = cms.string('offlinePrimaryVertices'),
0042     beamspot = cms.string('offlineBeamSpot')
0043 )
0044 
0045 process.p = cms.Path( process.offlinePrimaryVertices + process.trackAssociatorByChi2 *process.cVRAnalysis )
0046 process.MessageLogger.debugModules = ['cVRAnalysis']
0047