Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:53

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0004 AlcaBeamMonitor = DQMEDAnalyzer('AlcaBeamMonitor',
0005                                  MonitorName        = cms.untracked.string('AlcaBeamMonitor'),
0006                                  PrimaryVertexLabel = cms.untracked.InputTag('offlinePrimaryVertices'),
0007                                  perLSsaving        = cms.untracked.bool(False), #driven by DQMServices/Core/python/DQMStore_cfi.py
0008                                  #TrackLabel         = cms.untracked.InputTag('ALCARECOTkAlMinBias'),
0009                                  TrackLabel         = cms.untracked.InputTag('generalTracks'),
0010                                  ScalerLabel        = cms.untracked.InputTag('scalerBeamSpot'),
0011                                  BeamFitter = cms.PSet(
0012                                    Debug = cms.untracked.bool(False),
0013                                    #TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias'),
0014                                    TrackCollection = cms.untracked.InputTag('generalTracks'),
0015                                    IsMuonCollection = cms.untracked.bool(False),
0016                                    WriteAscii = cms.untracked.bool(False),
0017                                    AsciiFileName = cms.untracked.string('BeamFit.txt'), ## all results
0018                                    AppendRunToFileName = cms.untracked.bool(True), #runnumber will be inserted to the file name
0019                                    WriteDIPAscii = cms.untracked.bool(False),
0020                                    DIPFileName = cms.untracked.string('BeamFitDIP.txt'),
0021                                    SaveNtuple = cms.untracked.bool(False),
0022                                    SavePVVertices = cms.untracked.bool(False),
0023                                    SaveFitResults = cms.untracked.bool(False),
0024                                    OutputFileName = cms.untracked.string('BeamFit.root'), ## ntuple filename
0025                                    MinimumPt = cms.untracked.double(1.0),
0026                                    MaximumEta = cms.untracked.double(2.4),
0027                                    MaximumImpactParameter = cms.untracked.double(1.0),
0028                                    MaximumZ = cms.untracked.double(60),
0029                                    MinimumTotalLayers = cms.untracked.int32(6),
0030                                    MinimumPixelLayers = cms.untracked.int32(0),
0031                                    MaximumNormChi2 = cms.untracked.double(10.0),
0032                                    TrackAlgorithm = cms.untracked.vstring(), ## ctf,rs,cosmics,initialStep,lowPtTripletStep...; for all algos, leave it blank
0033                                    TrackQuality = cms.untracked.vstring(), ## loose, tight, highPurity...; for all qualities, leave it blank
0034                                    InputBeamWidth = cms.untracked.double(0.0060), ## beam width used for Trk fitter, used only when result from PV is not available
0035                                    FractionOfFittedTrks = cms.untracked.double(0.9),
0036                                    MinimumInputTracks = cms.untracked.int32(150)
0037                                    ),
0038                                  PVFitter = cms.PSet(
0039                                    Debug = cms.untracked.bool(False),
0040                                    Apply3DFit = cms.untracked.bool(True),
0041                                    VertexCollection = cms.untracked.InputTag('offlinePrimaryVertices'),
0042                                    #WriteAscii = cms.untracked.bool(True),
0043                                    #AsciiFileName = cms.untracked.string('PVFit.txt'),
0044                                    maxNrStoredVertices = cms.untracked.uint32(10000),
0045                                    minNrVerticesForFit = cms.untracked.uint32(50),
0046                                    minVertexNdf = cms.untracked.double(10.),
0047                                    maxVertexNormChi2 = cms.untracked.double(10.),
0048                                    minVertexNTracks = cms.untracked.uint32(0),
0049                                    minVertexMeanWeight = cms.untracked.double(0.5),
0050                                    maxVertexR = cms.untracked.double(2),
0051                                    maxVertexZ = cms.untracked.double(10),
0052                                    errorScale = cms.untracked.double(0.9),
0053                                    nSigmaCut = cms.untracked.double(5.),
0054                                    FitPerBunchCrossing = cms.untracked.bool(False),
0055                                    useOnlyFirstPV = cms.untracked.bool(False),
0056                                    minSumPt = cms.untracked.double(0.)
0057                                    ),
0058                                )
0059 
0060 # This customization is needed in the trackingLowPU era to be able to
0061 # compute the beamspot also in the cases in which the pixel detector
0062 # is not included in data-taking, like it was the case for "Quiet
0063 # Beam" collisions on 2016 with run 269207.
0064 
0065 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
0066 trackingLowPU.toModify(AlcaBeamMonitor,
0067                             BeamFitter = dict(MaximumImpactParameter = 5.0,
0068                                               MinimumInputTracks = 50))