Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 from RecoVertex.Configuration.RecoVertex_cff import unsortedOfflinePrimaryVertices, trackWithVertexRefSelector, trackRefsForJets, sortedPrimaryVertices, offlinePrimaryVertices, offlinePrimaryVerticesWithBS,vertexrecoTask
0003 
0004 from RecoVertex.PrimaryVertexProducer.TkClusParameters_cff import DA2D_vectParameters
0005 
0006 unsortedOfflinePrimaryVertices4D = unsortedOfflinePrimaryVertices.clone(
0007     TkClusParameters = DA2D_vectParameters,
0008     TrackTimesLabel = cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModel"),
0009     TrackTimeResosLabel = cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModelResolution"),
0010 )
0011 trackWithVertexRefSelectorBeforeSorting4D = trackWithVertexRefSelector.clone(
0012     vertexTag = "unsortedOfflinePrimaryVertices4D",
0013     ptMax = 9e99,
0014     ptErrorCut = 9e99
0015 )
0016 trackRefsForJetsBeforeSorting4D = trackRefsForJets.clone(
0017     src = "trackWithVertexRefSelectorBeforeSorting4D"
0018 )
0019 offlinePrimaryVertices4D = sortedPrimaryVertices.clone(
0020     vertices = "unsortedOfflinePrimaryVertices4D",
0021     particles = "trackRefsForJetsBeforeSorting4D",
0022     trackTimeTag = "trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel",
0023     trackTimeResoTag = "trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution",
0024     assignment = dict(useTiming = True)
0025 )
0026 offlinePrimaryVertices4DWithBS = offlinePrimaryVertices4D.clone(
0027     vertices = "unsortedOfflinePrimaryVertices4D:WithBS"
0028 )
0029 
0030 unsortedOfflinePrimaryVertices4DnoPID = unsortedOfflinePrimaryVertices4D.clone(
0031     TrackTimesLabel = "trackExtenderWithMTD:generalTrackt0",
0032     TrackTimeResosLabel = "trackExtenderWithMTD:generalTracksigmat0"
0033 )
0034 trackWithVertexRefSelectorBeforeSorting4DnoPID = trackWithVertexRefSelector.clone(
0035     vertexTag = "unsortedOfflinePrimaryVertices4DnoPID",
0036     ptMax = 9e99,
0037     ptErrorCut = 9e99
0038 )
0039 trackRefsForJetsBeforeSorting4DnoPID = trackRefsForJets.clone(
0040     src = "trackWithVertexRefSelectorBeforeSorting4DnoPID"
0041 )
0042 offlinePrimaryVertices4DnoPID = offlinePrimaryVertices4D.clone(
0043     vertices = "unsortedOfflinePrimaryVertices4DnoPID",
0044     particles = "trackRefsForJetsBeforeSorting4DnoPID",
0045     trackTimeTag = "trackExtenderWithMTD:generalTrackt0",
0046     trackTimeResoTag = "trackExtenderWithMTD:generalTracksigmat0"
0047 )
0048 offlinePrimaryVertices4DnoPIDWithBS=offlinePrimaryVertices4DnoPID.clone(
0049     vertices = "unsortedOfflinePrimaryVertices4DnoPID:WithBS"
0050 )
0051 
0052 unsortedOfflinePrimaryVertices4DwithPID = unsortedOfflinePrimaryVertices4D.clone(
0053     TrackTimesLabel = "tofPID4DnoPID:t0safe",
0054     TrackTimeResosLabel = "tofPID4DnoPID:sigmat0safe"
0055 )
0056 trackWithVertexRefSelectorBeforeSorting4DwithPID = trackWithVertexRefSelector.clone(
0057     vertexTag = "unsortedOfflinePrimaryVertices4DwithPID",
0058     ptMax = 9e99,
0059     ptErrorCut = 9e99
0060 )
0061 trackRefsForJetsBeforeSorting4DwithPID = trackRefsForJets.clone(
0062     src = "trackWithVertexRefSelectorBeforeSorting4DwithPID"
0063 )
0064 offlinePrimaryVertices4DwithPID=offlinePrimaryVertices4D.clone(
0065     vertices = "unsortedOfflinePrimaryVertices4DwithPID",
0066     particles = "trackRefsForJetsBeforeSorting4DwithPID",
0067     trackTimeTag = "tofPID4DnoPID:t0safe",
0068     trackTimeResoTag = "tofPID4DnoPID:sigmat0safe"
0069 )
0070 offlinePrimaryVertices4DwithPIDWithBS = offlinePrimaryVertices4DwithPID.clone(
0071     vertices = "unsortedOfflinePrimaryVertices4DwithPID:WithBS"
0072 )
0073 
0074 from SimTracker.TrackerHitAssociation.tpClusterProducer_cfi import tpClusterProducer
0075 from SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi import quickTrackAssociatorByHits
0076 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
0077 from RecoMTD.TimingIDTools.tofPIDProducer_cfi import tofPIDProducer
0078 
0079 tofPID4DnoPID=tofPIDProducer.clone(vtxsSrc='unsortedOfflinePrimaryVertices4DnoPID')
0080 tofPID=tofPIDProducer.clone()
0081 
0082 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
0083 phase2_timing_layer.toModify(tofPID, vtxsSrc='unsortedOfflinePrimaryVertices4D')
0084