Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-12 23:01:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def DiMuonVertexValidation(**kwargs):
0004   mod = cms.EDAnalyzer('DiMuonVertexValidation',
0005     useReco = cms.bool(True),
0006     muons = cms.InputTag('muons'),
0007     decayMotherName = cms.string('Z'),
0008     tracks = cms.InputTag('generalTracks'),
0009     vertices = cms.InputTag('offlinePrimaryVertices'),
0010     pTThresholds = cms.vdouble(
0011       30,
0012       10
0013     ),
0014     useClosestVertex = cms.bool(True),
0015     maxSVdist = cms.double(50),
0016     DiMuMassConfig = cms.PSet(
0017       name = cms.string('DiMuMass'),
0018       title = cms.string('M(#mu#mu)'),
0019       yUnits = cms.string('[GeV]'),
0020       NxBins = cms.int32(24),
0021       NyBins = cms.int32(50),
0022       ymin = cms.double(70),
0023       ymax = cms.double(120)
0024     ),
0025     CosPhiConfig = cms.PSet(
0026       name = cms.string('CosPhi'),
0027       title = cms.string('cos(#phi_{xy})'),
0028       yUnits = cms.string(''),
0029       NxBins = cms.int32(50),
0030       NyBins = cms.int32(50),
0031       ymin = cms.double(-1),
0032       ymax = cms.double(1)
0033     ),
0034     CosPhi3DConfig = cms.PSet(
0035       name = cms.string('CosPhi3D'),
0036       title = cms.string('cos(#phi_{3D})'),
0037       yUnits = cms.string(''),
0038       NxBins = cms.int32(50),
0039       NyBins = cms.int32(50),
0040       ymin = cms.double(-1),
0041       ymax = cms.double(1)
0042     ),
0043     VtxProbConfig = cms.PSet(
0044       name = cms.string('VtxProb'),
0045       title = cms.string('Prob(#chi^{2}_{SV})'),
0046       yUnits = cms.string(''),
0047       NxBins = cms.int32(50),
0048       NyBins = cms.int32(50),
0049       ymin = cms.double(0),
0050       ymax = cms.double(1)
0051     ),
0052     VtxDistConfig = cms.PSet(
0053       name = cms.string('VtxDist'),
0054       title = cms.string('d_{xy}(PV,SV)'),
0055       yUnits = cms.string('[#mum]'),
0056       NxBins = cms.int32(50),
0057       NyBins = cms.int32(100),
0058       ymin = cms.double(0),
0059       ymax = cms.double(300)
0060     ),
0061     VtxDist3DConfig = cms.PSet(
0062       name = cms.string('VtxDist3D'),
0063       title = cms.string('d_{3D}(PV,SV)'),
0064       yUnits = cms.string('[#mum]'),
0065       NxBins = cms.int32(50),
0066       NyBins = cms.int32(250),
0067       ymin = cms.double(0),
0068       ymax = cms.double(500)
0069     ),
0070     VtxDistSigConfig = cms.PSet(
0071       name = cms.string('VtxDistSig'),
0072       title = cms.string('d_{xy}(PV,SV)/#sigma_{dxy}(PV,SV)'),
0073       yUnits = cms.string(''),
0074       NxBins = cms.int32(50),
0075       NyBins = cms.int32(100),
0076       ymin = cms.double(0),
0077       ymax = cms.double(5)
0078     ),
0079     VtxDist3DSigConfig = cms.PSet(
0080       name = cms.string('VtxDist3DSig'),
0081       title = cms.string('d_{3D}(PV,SV)/#sigma_{d3D}(PV,SV)'),
0082       yUnits = cms.string(''),
0083       NxBins = cms.int32(50),
0084       NyBins = cms.int32(100),
0085       ymin = cms.double(0),
0086       ymax = cms.double(5)
0087     ),
0088     mightGet = cms.optional.untracked.vstring
0089   )
0090   for k,v in kwargs.items():
0091     setattr(mod, k, v)
0092   return mod