Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-25 22:35:18

0001 import FWCore.ParameterSet.Config as cms
0002 from RecoVertex.Configuration.RecoVertex_cff import unsortedOfflinePrimaryVertices, trackWithVertexRefSelector, trackRefsForJets, sortedPrimaryVertices, offlinePrimaryVertices, offlinePrimaryVerticesWithBS,vertexrecoTask
0003 
0004 unsortedOfflinePrimaryVertices4D = unsortedOfflinePrimaryVertices.clone(
0005     TkClusParameters = cms.PSet(algorithm = cms.string("DA2D_vect"),
0006         TkDAClusParameters = cms.PSet(
0007             Tmin = cms.double(4.0),
0008             Tpurge = cms.double(4.0),
0009             Tstop = cms.double(2.0),
0010         )
0011     ),
0012     TrackTimesLabel = cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModel"),
0013     TrackTimeResosLabel = cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModelResolution"),
0014     trackMTDTimeQualityVMapTag = cms.InputTag("mtdTrackQualityMVA:mtdQualMVA"),
0015     useMVACut = cms.bool(False),
0016     minTrackTimeQuality = cms.double(0.8),
0017     vertexCollections = {0: dict(vertexTimeParameters = cms.PSet( algorithm = cms.string('fromTracksPID'))),
0018                          1: dict(vertexTimeParameters = cms.PSet( algorithm = cms.string('fromTracksPID')))}
0019     )
0020 trackWithVertexRefSelectorBeforeSorting4D = trackWithVertexRefSelector.clone(
0021     vertexTag = "unsortedOfflinePrimaryVertices4D",
0022     ptMax = 9e99,
0023     ptErrorCut = 9e99
0024 )
0025 trackRefsForJetsBeforeSorting4D = trackRefsForJets.clone(
0026     src = "trackWithVertexRefSelectorBeforeSorting4D"
0027 )
0028 offlinePrimaryVertices4D = sortedPrimaryVertices.clone(
0029     vertices = "unsortedOfflinePrimaryVertices4D",
0030     particles = "trackRefsForJetsBeforeSorting4D",
0031     trackTimeTag = "trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel",
0032     trackTimeResoTag = "trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution",
0033     assignment = dict(useTiming = True)
0034 )
0035 offlinePrimaryVertices4DWithBS = offlinePrimaryVertices4D.clone(
0036     vertices = "unsortedOfflinePrimaryVertices4D:WithBS"
0037 )
0038 
0039 unsortedOfflinePrimaryVertices4DwithPID = unsortedOfflinePrimaryVertices4D.clone(
0040     TrackTimesLabel = "tofPID4DnoPID:t0safe",
0041     TrackTimeResosLabel = "tofPID4DnoPID:sigmat0safe"
0042 )
0043 trackWithVertexRefSelectorBeforeSorting4DwithPID = trackWithVertexRefSelector.clone(
0044     vertexTag = "unsortedOfflinePrimaryVertices4DwithPID",
0045     ptMax = 9e99,
0046     ptErrorCut = 9e99
0047 )
0048 trackRefsForJetsBeforeSorting4DwithPID = trackRefsForJets.clone(
0049     src = "trackWithVertexRefSelectorBeforeSorting4DwithPID"
0050 )
0051 offlinePrimaryVertices4DwithPID=offlinePrimaryVertices4D.clone(
0052     vertices = "unsortedOfflinePrimaryVertices4DwithPID",
0053     particles = "trackRefsForJetsBeforeSorting4DwithPID",
0054     trackTimeTag = "tofPID4DnoPID:t0safe",
0055     trackTimeResoTag = "tofPID4DnoPID:sigmat0safe"
0056 )
0057 offlinePrimaryVertices4DwithPIDWithBS = offlinePrimaryVertices4DwithPID.clone(
0058     vertices = "unsortedOfflinePrimaryVertices4DwithPID:WithBS"
0059 )
0060 
0061 from SimTracker.TrackerHitAssociation.tpClusterProducer_cfi import tpClusterProducer
0062 from SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi import quickTrackAssociatorByHits
0063 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
0064 from RecoMTD.TimingIDTools.tofPIDProducer_cfi import tofPIDProducer
0065 
0066 tofPID4DnoPID=tofPIDProducer.clone(vtxsSrc='unsortedOfflinePrimaryVertices')
0067 tofPID=tofPIDProducer.clone()
0068 tofPID3D=tofPIDProducer.clone(vtxsSrc='unsortedOfflinePrimaryVertices')
0069 
0070 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
0071 phase2_timing_layer.toModify(tofPID, vtxsSrc='unsortedOfflinePrimaryVertices4D', vertexReassignment=False)
0072 phase2_timing_layer.toModify(tofPID3D, vertexReassignment=False)