CMS 3D CMS Logo

ecalMultiFitUncalibRecHit_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 ecalMultiFitUncalibRecHit = cms.EDProducer("EcalUncalibRecHitProducer",
6  EBdigiCollection = cms.InputTag("ecalDigis","ebDigis"),
7  EEdigiCollection = cms.InputTag("ecalDigis","eeDigis"),
8  EBhitCollection = cms.string("EcalUncalibRecHitsEB"),
9  EEhitCollection = cms.string('EcalUncalibRecHitsEE'),
10  algo = cms.string("EcalUncalibRecHitWorkerMultiFit"),
11  algoPSet = cms.PSet(
12  # for multifit method
13  EcalPulseShapeParameters = cms.PSet( ecal_pulse_shape_parameters ),
14  activeBXs = cms.vint32(-5,-4,-3,-2,-1,0,1,2,3,4),
15  ampErrorCalculation = cms.bool(True),
16  useLumiInfoRunHeader = cms.bool(True),
17 
18  doPrefitEB = cms.bool(False),
19  doPrefitEE = cms.bool(False),
20  prefitMaxChiSqEB = cms.double(25.),
21  prefitMaxChiSqEE = cms.double(10.),
22 
23  dynamicPedestalsEB = cms.bool(False),
24  dynamicPedestalsEE = cms.bool(False),
25  mitigateBadSamplesEB = cms.bool(False),
26  mitigateBadSamplesEE = cms.bool(False),
27  gainSwitchUseMaxSampleEB = cms.bool(True),
28  gainSwitchUseMaxSampleEE = cms.bool(False),
29  selectiveBadSampleCriteriaEB = cms.bool(False),
30  selectiveBadSampleCriteriaEE = cms.bool(False),
31  simplifiedNoiseModelForGainSwitch = cms.bool(True),
32  addPedestalUncertaintyEB = cms.double(0.),
33  addPedestalUncertaintyEE = cms.double(0.),
34 
35  # decide which algorithm to be use to calculate the jitter
36  timealgo = cms.string("RatioMethod"),
37 
38  # for ratio method
39  EBtimeFitParameters = cms.vdouble(-2.015452e+00, 3.130702e+00, -1.234730e+01, 4.188921e+01, -8.283944e+01, 9.101147e+01, -5.035761e+01, 1.105621e+01),
40  EEtimeFitParameters = cms.vdouble(-2.390548e+00, 3.553628e+00, -1.762341e+01, 6.767538e+01, -1.332130e+02, 1.407432e+02, -7.541106e+01, 1.620277e+01),
41  EBamplitudeFitParameters = cms.vdouble(1.138,1.652),
42  EEamplitudeFitParameters = cms.vdouble(1.890,1.400),
43  EBtimeFitLimits_Lower = cms.double(0.2),
44  EBtimeFitLimits_Upper = cms.double(1.4),
45  EEtimeFitLimits_Lower = cms.double(0.2),
46  EEtimeFitLimits_Upper = cms.double(1.4),
47  # for time error
48  EBtimeConstantTerm= cms.double(.6),
49  EEtimeConstantTerm= cms.double(1.0),
50 
51  # for kOutOfTime flag
52  EBtimeNconst = cms.double(28.5),
53  EEtimeNconst = cms.double(31.8),
54  outOfTimeThresholdGain12pEB = cms.double(5), # times estimated precision
55  outOfTimeThresholdGain12mEB = cms.double(5), # times estimated precision
56  outOfTimeThresholdGain61pEB = cms.double(5), # times estimated precision
57  outOfTimeThresholdGain61mEB = cms.double(5), # times estimated precision
58  outOfTimeThresholdGain12pEE = cms.double(1000), # times estimated precision
59  outOfTimeThresholdGain12mEE = cms.double(1000), # times estimated precision
60  outOfTimeThresholdGain61pEE = cms.double(1000), # times estimated precision
61  outOfTimeThresholdGain61mEE = cms.double(1000), # times estimated precision
62  amplitudeThresholdEB = cms.double(10),
63  amplitudeThresholdEE = cms.double(10),
64 
65  ebSpikeThreshold = cms.double(1.042),
66 
67  # these are now taken from DB. Here the MC parameters for backward compatibility
68  ebPulseShape = cms.vdouble( 5.2e-05,-5.26e-05 , 6.66e-05, 0.1168, 0.7575, 1., 0.8876, 0.6732, 0.4741, 0.3194 ),
69  eePulseShape = cms.vdouble( 5.2e-05,-5.26e-05 , 6.66e-05, 0.1168, 0.7575, 1., 0.8876, 0.6732, 0.4741, 0.3194 ),
70 
71  # for kPoorReco flag
72  kPoorRecoFlagEB = cms.bool(True),
73  kPoorRecoFlagEE = cms.bool(False),
74  chi2ThreshEB_ = cms.double(65.0),
75  chi2ThreshEE_ = cms.double(50.0),
76 
77  # for crossCorrelationMethod
78  crossCorrelationStartTime = cms.double(-25),
79  crossCorrelationStopTime = cms.double(25),
80  crossCorrelationTargetTimePrecision = cms.double(0.01),
81  )
82 )
ecalPulseShapeParameters_cff