Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:26

0001 import FWCore.ParameterSet.Config as cms
0002 import math
0003 
0004 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0005 OuterTrackerMonitorTrackingParticles = DQMEDAnalyzer('OuterTrackerMonitorTrackingParticles',
0006     TopFolderName = cms.string('SiOuterTrackerV'),
0007     trackingParticleToken = cms.InputTag("mix","MergedTrackTruth"), #tracking particles
0008     MCTruthStubInputTag = cms.InputTag("TTStubAssociatorFromPixelDigis", "StubAccepted"), #truth stub associator
0009     MCTruthTrackInputTag = cms.InputTag("TTTrackAssociatorFromPixelDigis", "Level1TTTracks"), #truth track associator
0010     MCTruthClusterInputTag = cms.InputTag("TTClusterAssociatorFromPixelDigis", "ClusterAccepted"), #truth cluster associator
0011     L1Tk_minNStub = cms.int32(4),       # L1 tracks with >= 4 stubs
0012     L1Tk_maxChi2dof = cms.double(25.0),# L1 tracks with Chi2 <= X
0013     TP_minNStub = cms.int32(4),      # require TP to have >= X number of stubs associated with it
0014     TP_minNLayersStub = cms.int32(4),   # require TP to have >= X number of layers hit with stubs
0015     TP_minPt = cms.double(2.0),      # only save TPs with pt > X GeV
0016     TP_maxEta = cms.double(2.4),     # only save TPs with |eta| < X
0017     TP_maxVtxZ = cms.double(15.0),     # only save TPs with |z0| < X cm
0018 
0019 # tracking particles vs eta
0020     TH1TrackParts_Eta = cms.PSet(
0021         Nbinsx = cms.int32(45),
0022         xmax = cms.double(3),
0023         xmin = cms.double(-3)
0024         ),
0025 
0026 # tracking particles vs phi
0027     TH1TrackParts_Phi = cms.PSet(
0028         Nbinsx = cms.int32(60),
0029         xmax = cms.double(math.pi),
0030         xmin = cms.double(-math.pi)
0031         ),
0032 
0033 # tracking particles vs pT
0034     TH1TrackParts_Pt = cms.PSet(
0035         Nbinsx = cms.int32(45),
0036         xmax = cms.double(100),
0037         xmin = cms.double(0)
0038         ),
0039 
0040 # tracking particles vs pT_relative
0041     TH1Res_ptRel = cms.PSet(
0042         Nbinsx = cms.int32(200),
0043         xmax = cms.double(0.5),
0044         xmin = cms.double(-0.5)
0045         ),
0046 
0047 # tracking particles vs pT (for efficiency)
0048     TH1Effic_pt = cms.PSet(
0049         Nbinsx = cms.int32(50),
0050         xmax = cms.double(100),
0051         xmin = cms.double(0)
0052         ),
0053 
0054 # tracking particles vs pT (for efficiency)
0055     TH1Effic_pt_zoom = cms.PSet(
0056         Nbinsx = cms.int32(50),
0057         xmax = cms.double(10),
0058         xmin = cms.double(0)
0059         ),
0060 
0061 # tracking particles vs eta (for efficiency)
0062     TH1Effic_eta = cms.PSet(
0063         Nbinsx = cms.int32(50),
0064         xmax = cms.double(2.5),
0065         xmin = cms.double(-2.5)
0066         ),
0067 
0068 # tracking particles vs d0 (for efficiency)
0069     TH1Effic_d0 = cms.PSet(
0070         Nbinsx = cms.int32(50),
0071         xmax = cms.double(2),
0072         xmin = cms.double(-2)
0073         ),
0074 
0075 # tracking particles vs VtxR/vxy (for efficiency)
0076     TH1Effic_VtxR = cms.PSet(
0077         Nbinsx = cms.int32(50),
0078         xmax = cms.double(5),
0079         xmin = cms.double(-5)
0080         ),
0081 
0082 # tracking particles vs z0 (for efficiency)
0083     TH1Effic_VtxZ = cms.PSet(
0084         Nbinsx = cms.int32(50),
0085         xmax = cms.double(30),
0086         xmin = cms.double(-30)
0087         ),
0088 
0089 # tracking particles vs relative pT (for resolution plots)
0090     TH1Res_pt = cms.PSet(
0091         Nbinsx = cms.int32(100),
0092         xmax = cms.double(0.2),
0093         xmin = cms.double(-0.2)
0094         ),
0095 
0096 # tracking particles vs eta (for resolution)
0097     TH1Res_eta = cms.PSet(
0098         Nbinsx = cms.int32(100),
0099         xmax = cms.double(0.01),
0100         xmin = cms.double(-0.01)
0101         ),
0102 
0103 # tracking particles vs phi (for resolution)
0104     TH1Res_phi = cms.PSet(
0105         Nbinsx = cms.int32(100),
0106         xmax = cms.double(0.01),
0107         xmin = cms.double(-0.01)
0108         ),
0109 
0110 # tracking particles vs z0 (for resolution)
0111     TH1Res_VtxZ = cms.PSet(
0112         Nbinsx = cms.int32(100),
0113         xmax = cms.double(1.0),
0114         xmin = cms.double(-1.0)
0115         ),
0116 
0117 # tracking particles vs d0 (for resolution)
0118     TH1Res_d0 = cms.PSet(
0119         Nbinsx = cms.int32(100),
0120         xmax = cms.double(0.05),
0121         xmin = cms.double(-0.05)
0122         ),
0123 )
0124 
0125 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0126 premix_stage2.toModify(OuterTrackerMonitorTrackingParticles, trackingParticleToken = "mixData:MergedTrackTruth")