CMS 3D CMS Logo

OfflineDbClient_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 db_client = cms.EDAnalyzer("SiStripCommissioningOfflineDbClient",
4  # general parameters
5  FilePath = cms.untracked.string('/tmp'),
6  RunNumber = cms.untracked.uint32(0),
7  UseClientFile = cms.untracked.bool(False),
8  UploadHwConfig = cms.untracked.bool(False),
9  UploadAnalyses = cms.untracked.bool(False),
10  DisableDevices = cms.untracked.bool(False),
11  SaveClientFile = cms.untracked.bool(True),
12  SummaryXmlFile = cms.untracked.FileInPath('DQM/SiStripCommissioningClients/data/summary.xml'),
13  # individual parameters
14  ApvTimingParameters = cms.PSet(
15  SkipFecUpdate = cms.bool(False), # skip upload of APV PLL settings
16  SkipFedUpdate = cms.bool(False), # skip upload of FED frame finding threshold
17  TargetDelay = cms.int32(-1) # -1: latest tick (old default), otherwise target delay for all ticks' rising edge
18  ),
19  CalibrationParameters = cms.PSet(),
20  DaqScopeModeParameters = cms.PSet(
21  HighThreshold = cms.double(5),
22  LowThreshold = cms.double(2),
23  DisableBadStrips = cms.bool(False),
24  DeadStripMax = cms.double(10),
25  NoisyStripMin = cms.double(10),
26  KeepsStripsDisabled = cms.bool(False),
27  SkipPedestalUpdate = cms.bool(False),
28  SkipTickUpdate = cms.bool(False)
29  ),
30  FastFedCablingParameters = cms.PSet(),
31  FedCablingParameters = cms.PSet(),
32  FedTimingParameters = cms.PSet(),
33  FineDelayParameters = cms.PSet(
34  cosmic = cms.bool(True)
35  ),
36  LatencyParamameters = cms.PSet(
37  OptimizePerPartition = cms.bool(False)
38  ),
39  NoiseParameters = cms.PSet(),
40  OptoScanParameters = cms.PSet(
41  TargetGain = cms.double(0.863), # target gain (0.863 ~ 690ADC for tickmark)
42  SkipGainUpdate = cms.bool(False) # wether to keep the gain the same as already on the db
43  ),
44  PedestalsParameters = cms.PSet(
45  DeadStripMax = cms.double(10), # number times the noise spread below mean noise
46  NoisyStripMin = cms.double(10), # number times the noise spread above mean noise
47  HighThreshold = cms.double(5), # analysis-wide high threshold for the fed zero suppression
48  LowThreshold = cms.double(2), # analysis-wide low threshold for the fed zero suppression
49  DisableBadStrips = cms.bool(False), # for experts! disables bad strips on the fed level
50  AddBadStrips = cms.bool(False), #for experts! keep and add disabled bad strips.
51  KeepStripsDisabled = cms.bool(False) # for experts! keep strips disabled as in the db's current state
52  ),
53  PedsOnlyParameters = cms.PSet(),
54  ### Bad channel analysis
55  PedsFullNoiseParameters = cms.PSet(
56  #### selections used to define a bad strip
57  MaxDriftResidualCut = cms.double(20), ### the strip baseline can drift during run .. if more then N ADC count, mark the strip as bad
58  MinStripNoiseCut = cms.double(2), ### if a strip has a noise value less the N ADC, mark as low noisy i.e. bad
59  MaxStripNoiseCut = cms.double(30), ### if a strip has a noise value larger than N ADC, mark strip has high noisy i.e. bad
60  MaxStripNoiseSignificanceCut = cms.double(10), ## if a strip has a noise significance larger than N, mark it as bad
61  AdProbabCut = cms.double(0.002699796063), ### this is 3 sigma quantile selection on the AndersonDarling p-value
62  KsProbabCut = cms.double(0.002699796063), ### this is 3 sigma quantile selection on the Kolmogorov Smirnov p-value
63  GenerateRandomHisto = cms.bool(False), ### random sampling of the gaussian fit or not while computing p-values
64  JbProbabCut = cms.double(0.000000573303), ### this is 3 sigma quantile selection on the jacque-Bera p-value
65  Chi2ProbabCut = cms.double(0.000000573303), ### this is 3 sigma quantile selection on the chi2 p-value (from a Gaussian fit)
66  KurtosisCut = cms.double(2), ### max value of kurtosis to identify strips with long tails
67  IntegralNsigma = cms.int32(5), ### this is expressed in terms of number of gaussian quantiles .. 5 means take the integral 5-sigma from the peak
68  IntegralTailCut = cms.double(0.0005), ### selection on the N-sigma integral
69  AshmanDistance = cms.double(2), ### to flag double peaked strips
70  AmplitudeRatio = cms.double(0.85), ### to flag double peaked strips
71  #### Zero suppression information
72  HighThreshold = cms.double(5), ### analysis-wide high threshold for the fed zero suppression
73  LowThreshold = cms.double(2), ### analysis-wide low threshold for the fed zero suppression
74  #### Flags on bad strips
75  DisableBadStrips = cms.bool(True), ### When the upload is performed, strips are masked in case they are flagged by the analysis
76  KeepStripsDisabled = cms.bool(False), ### True: if a strip is already flagged bad in the db, it will be kept bad; False: if a strip was bad, now the analysis will tell us if it's bad or not
77  UploadOnlyStripBadChannelBit = cms.bool(False), ### True: means that pedestal and noise values are not changed in the FED version --> use old values
78  SkipEmptyStrips = cms.bool(True), ### In the analysis, if true strips with no data are not marked as bad but as dead --> could be mis-configured at the time of the run, not masked
79  UploadPedsFullNoiseDBTable = cms.bool(False) ### Tell whether the PedsFullNoise DB table needs to be uploaded --> for the time being this can be done ONLY on the oracle test account.
80  ),
81  SamplingParameters = cms.PSet(),
82  VpspScanParameters = cms.PSet(),
83 )
84