CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  targetRiseTime = cms.double(50),
21  targetDecayTime = cms.double(125),
22  tuneSimultaneously = cms.bool(False)
23  ),
24  DaqScopeModeParameters = cms.PSet(
25  HighThreshold = cms.double(5),
26  LowThreshold = cms.double(2),
27  DisableBadStrips = cms.bool(False),
28  DeadStripMax = cms.double(10),
29  NoisyStripMin = cms.double(10),
30  KeepsStripsDisabled = cms.bool(False),
31  SkipPedestalUpdate = cms.bool(False),
32  SkipTickUpdate = cms.bool(False)
33  ),
34  FastFedCablingParameters = cms.PSet(),
35  FedCablingParameters = cms.PSet(),
36  FedTimingParameters = cms.PSet(),
37  FineDelayParameters = cms.PSet(
38  cosmic = cms.bool(True)
39  ),
40  LatencyParamameters = cms.PSet(
41  OptimizePerPartition = cms.bool(False)
42  ),
43  NoiseParameters = cms.PSet(),
44  OptoScanParameters = cms.PSet(
45  TargetGain = cms.double(0.863), # target gain (0.863 ~ 690ADC for tickmark)
46  SkipGainUpdate = cms.bool(False) # wether to keep the gain the same as already on the db
47  ),
48  PedestalsParameters = cms.PSet(
49  DeadStripMax = cms.double(10), # number times the noise spread below mean noise
50  NoisyStripMin = cms.double(10), # number times the noise spread above mean noise
51  HighThreshold = cms.double(5), # analysis-wide high threshold for the fed zero suppression
52  LowThreshold = cms.double(2), # analysis-wide low threshold for the fed zero suppression
53  DisableBadStrips = cms.bool(False), # for experts! disables bad strips on the fed level
54  AddBadStrips = cms.bool(False), #for experts! keep and add disabled bad strips.
55  KeepStripsDisabled = cms.bool(False) # for experts! keep strips disabled as in the db's current state
56  ),
57  PedsOnlyParameters = cms.PSet(),
58  ### Bad channel analysis
59  PedsFullNoiseParameters = cms.PSet(
60  #### selections used to define a bad strip
61  MaxDriftResidualCut = cms.double(20), ### the strip baseline can drift during run .. if more then N ADC count, mark the strip as bad
62  MinStripNoiseCut = cms.double(2), ### if a strip has a noise value less the N ADC, mark as low noisy i.e. bad
63  MaxStripNoiseCut = cms.double(30), ### if a strip has a noise value larger than N ADC, mark strip has high noisy i.e. bad
64  MaxStripNoiseSignificanceCut = cms.double(10), ## if a strip has a noise significance larger than N, mark it as bad
65  AdProbabCut = cms.double(0.002699796063), ### this is 3 sigma quantile selection on the AndersonDarling p-value
66  KsProbabCut = cms.double(0.002699796063), ### this is 3 sigma quantile selection on the Kolmogorov Smirnov p-value
67  GenerateRandomHisto = cms.bool(False), ### random sampling of the gaussian fit or not while computing p-values
68  JbProbabCut = cms.double(0.000000573303), ### this is 3 sigma quantile selection on the jacque-Bera p-value
69  Chi2ProbabCut = cms.double(0.000000573303), ### this is 3 sigma quantile selection on the chi2 p-value (from a Gaussian fit)
70  KurtosisCut = cms.double(2), ### max value of kurtosis to identify strips with long tails
71  IntegralNsigma = cms.int32(5), ### this is expressed in terms of number of gaussian quantiles .. 5 means take the integral 5-sigma from the peak
72  IntegralTailCut = cms.double(0.0005), ### selection on the N-sigma integral
73  AshmanDistance = cms.double(2), ### to flag double peaked strips
74  AmplitudeRatio = cms.double(0.85), ### to flag double peaked strips
75  #### Zero suppression information
76  HighThreshold = cms.double(5), ### analysis-wide high threshold for the fed zero suppression
77  LowThreshold = cms.double(2), ### analysis-wide low threshold for the fed zero suppression
78  #### Flags on bad strips
79  DisableBadStrips = cms.bool(True), ### When the upload is performed, strips are masked in case they are flagged by the analysis
80  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
81  UploadOnlyStripBadChannelBit = cms.bool(False), ### True: means that pedestal and noise values are not changed in the FED version --> use old values
82  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
83  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.
84  ),
85  SamplingParameters = cms.PSet(),
86  VpspScanParameters = cms.PSet(),
87 )
88