CMS 3D CMS Logo

AlcaBeamMonitor_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 AlcaBeamMonitor = DQMEDAnalyzer('AlcaBeamMonitor',
5  MonitorName = cms.untracked.string('AlcaBeamMonitor'),
6  PrimaryVertexLabel = cms.untracked.InputTag('offlinePrimaryVertices'),
7  BeamSpotLabel = cms.untracked.InputTag('offlineBeamSpot'),
8  #TrackLabel = cms.untracked.InputTag('ALCARECOTkAlMinBias'),
9  TrackLabel = cms.untracked.InputTag('generalTracks'),
10  ScalerLabel = cms.untracked.InputTag('scalerBeamSpot'),
11  BeamFitter = cms.PSet(
12  Debug = cms.untracked.bool(False),
13  #TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias'),
14  TrackCollection = cms.untracked.InputTag('generalTracks'),
15  IsMuonCollection = cms.untracked.bool(False),
16  WriteAscii = cms.untracked.bool(False),
17  AsciiFileName = cms.untracked.string('BeamFit.txt'), ## all results
18  AppendRunToFileName = cms.untracked.bool(True), #runnumber will be inserted to the file name
19  WriteDIPAscii = cms.untracked.bool(False),
20  DIPFileName = cms.untracked.string('BeamFitDIP.txt'),
21  SaveNtuple = cms.untracked.bool(False),
22  SavePVVertices = cms.untracked.bool(False),
23  SaveFitResults = cms.untracked.bool(False),
24  OutputFileName = cms.untracked.string('BeamFit.root'), ## ntuple filename
25  MinimumPt = cms.untracked.double(1.0),
26  MaximumEta = cms.untracked.double(2.4),
27  MaximumImpactParameter = cms.untracked.double(1.0),
28  MaximumZ = cms.untracked.double(60),
29  MinimumTotalLayers = cms.untracked.int32(6),
30  MinimumPixelLayers = cms.untracked.int32(0),
31  MaximumNormChi2 = cms.untracked.double(10.0),
32  TrackAlgorithm = cms.untracked.vstring(), ## ctf,rs,cosmics,initialStep,lowPtTripletStep...; for all algos, leave it blank
33  TrackQuality = cms.untracked.vstring(), ## loose, tight, highPurity...; for all qualities, leave it blank
34  InputBeamWidth = cms.untracked.double(0.0060), ## beam width used for Trk fitter, used only when result from PV is not available
35  FractionOfFittedTrks = cms.untracked.double(0.9),
36  MinimumInputTracks = cms.untracked.int32(150),
37  deltaSignificanceCut = cms.untracked.double(10)
38  ),
39  PVFitter = cms.PSet(
40  Debug = cms.untracked.bool(False),
41  Apply3DFit = cms.untracked.bool(True),
42  VertexCollection = cms.untracked.InputTag('offlinePrimaryVertices'),
43  #WriteAscii = cms.untracked.bool(True),
44  #AsciiFileName = cms.untracked.string('PVFit.txt'),
45  maxNrStoredVertices = cms.untracked.uint32(10000),
46  minNrVerticesForFit = cms.untracked.uint32(50),
47  minVertexNdf = cms.untracked.double(10.),
48  maxVertexNormChi2 = cms.untracked.double(10.),
49  minVertexNTracks = cms.untracked.uint32(0),
50  minVertexMeanWeight = cms.untracked.double(0.5),
51  maxVertexR = cms.untracked.double(2),
52  maxVertexZ = cms.untracked.double(10),
53  errorScale = cms.untracked.double(0.9),
54  nSigmaCut = cms.untracked.double(5.),
55  FitPerBunchCrossing = cms.untracked.bool(False),
56  useOnlyFirstPV = cms.untracked.bool(False),
57  minSumPt = cms.untracked.double(0.)
58  ),
59  )
60 
61 # This customization is needed in the trackingLowPU era to be able to
62 # compute the beamspot also in the cases in which the pixel detector
63 # is not included in data-taking, like it was the case for "Quiet
64 # Beam" collisions on 2016 with run 269207.
65 
66 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
67 trackingLowPU.toModify(AlcaBeamMonitor,
68  BeamFitter = dict(MaximumImpactParameter = 5.0,
69  MinimumInputTracks = 50))