CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelGainCalibrationAnalysis_cfi.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 # this input combined rejects values above suppressZeroAndPlateausInFitFrac of the full range (0-225) from the fit. This effectively rejects plateau values
4 
5 # fraction of maximum value. if 0.05 the top 0.05 fraction of the gain curve will not be included in the fit
6 
7 # option to reject points with one entry or less (so only VCAL points with two or more adc hits are taken into account... Improves fit stability but means big errors in data might be ignored
8 
9 # minimum chi2/NDOF at which histograms on pixel level are saved. Set to very high or -1 to disable.
10 
11 # possiblity to save ALL gain curve histograms. Makes program slow and produces HUGE output files.
12 # !!!Use with care!!!!
13 
14 # Database Record name...
15 
16 import FWCore.ParameterSet.Config as cms
17 
19 
20 #
21 # sipixelgaincalibrationanalysis.cfi
22 # CMSSW configuration init file for pixel gain calibrations in CMSSW>=180
23 # Original Author: Freya Blekman
24 # Created: November 15 2007
25 #
26 #
27 siPixelGainCalibrationAnalysis = cms.EDFilter("SiPixelGainCalibrationAnalysis",
28  # parameter set from CondTools/SiPixel/ module SiPixelGalibrationService
29  SiPixelGainCalibrationServiceParameters,
30  saveFile = cms.untracked.bool(True),
31  maxChi2InHist = cms.untracked.double(50.0),
32  savePixelLevelHists = cms.untracked.bool(False),
33  saveAllHistograms = cms.untracked.bool(False),
34  listOfDetIDs = cms.untracked.vuint32(),
35  # try to create database. 'true' setting for expert use only.
36  writeDatabase = cms.untracked.bool(False),
37  record = cms.string('SiPixelGainCalibrationRcd'),
38  suppressPointsWithOneEntryOrLess = cms.untracked.bool(True),
39  #parameters common to SiPixelOfflineCalibAnalysisBase
40  DetSetVectorSiPixelCalibDigiTag = cms.InputTag("siPixelCalibDigis"),
41  outputFileName = cms.string('Pixel_DQM_Calibration.root'),
42  suppressZeroAndPlateausInFitFrac = cms.untracked.double(0.2),
43  suppressPlateauInFit = cms.untracked.bool(True),
44  minChi2NDFforHistSave = cms.untracked.double(25.0),
45  minChi2ProbforHistSave = cms.untracked.double(0.001),
46  plateauSlopeMax = cms.untracked.double(1.0),
47  appendDatabaseMode = cms.untracked.bool(False),
48  # the gain is defined as 1/slope of fit.
49  # maxGainInHist fixes the range of the 1D gain summary plots to [0,maxGainInHist]]
50  maxGainInHist = cms.untracked.double(25.),
51  useVCALHIGH = cms.bool(True),
52  # conversion factor to go from VCAL_HIGH to VCAL_LOW. Current best estimate: VCAL_HIGH = 7 * VCAL_LOW, which is encoded in the parameter below
53  vcalHighToLowConversionFac = cms.double(7.0),
54  # use this mode if you want to analyze S-Curve data with the Gain analysis
55  ignoreMode = cms.untracked.bool(False)
56 )
57 
58