File indexing completed on 2024-04-06 12:22:46
0001 import FWCore.ParameterSet.Config as cms
0002
0003 class SetParameters:
0004 def __init__(self):
0005 self.parResolFix = cms.vint32()
0006 self.parResolOrder = cms.vint32()
0007 self.parResol = cms.vdouble()
0008 self.parResolStep = cms.untracked.vdouble()
0009 self.parResolMin = cms.untracked.vdouble()
0010 self.parResolMax = cms.untracked.vdouble()
0011
0012 def set(self, fix, order, value, step, min, max):
0013 self.parResolFix.append(fix)
0014 self.parResolOrder.append(order)
0015 self.parResol.append(value)
0016 self.parResolStep.append(step)
0017 self.parResolMin.append(min)
0018 self.parResolMax.append(max)
0019
0020 setter = SetParameters()
0021
0022 setter.set( 0 ,0, -0.00113112 , 0.002, -0.1, 0.1 )
0023 setter.set( 0 ,0, 0.000246547 , 0.00002, -0.01, 0.01 )
0024 setter.set( 0 ,0, 0.00545563 , 0.000002, 0., 0.01 )
0025 setter.set( 0 ,0, 0.00501745 , 0.0002, -0.01, 0.02 )
0026 setter.set( 1 ,0, 0.0091978 , 0.00002, 0., 0.01 )
0027 setter.set( 0 ,0, 0.0999428 , 0.0002, 0., 0.2 )
0028 setter.set( 0 ,0, 0.0484629 , 0.0000002, -0.2, 0.5 )
0029 setter.set( 0 ,0, -1.24738 , 0.0002, -2.2, -0.8 )
0030 setter.set( 1 ,0, 0. , 0.00002, 0., 0.01 )
0031 setter.set( 0 ,0, -0.0499885 , 0.0002, -0.2, 0.1 )
0032 setter.set( 0 ,0, 0.252381 , 0.000002, -0.1, 0.5 )
0033 setter.set( 0 ,0, 1.75024 , 0.0002, 0., 3. )
0034 setter.set( 0 ,0, -1.99739 , 0.001, -2.2, -1.6 )
0035 setter.set( 0 ,0, 1.59216 , 0.001, 1., 2.2 )
0036 setter.set( 1 ,0, 0. , 0.0001, 0., 0.01 )
0037
0038 process = cms.Process("TEST")
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 process.source = cms.Source("EmptySource")
0052 process.maxEvents = cms.untracked.PSet(
0053 input = cms.untracked.int32(0)
0054 )
0055
0056 process.looper = cms.Looper(
0057 "MuScleFit",
0058
0059
0060 MaxEventsFromRootTree = cms.int32(-1),
0061
0062
0063
0064
0065
0066 InputRootTreeFileName = cms.string("/home/castello/7TeV/CMSSW_3_8_5_patch3/src/Tree/Tree_2010AB_INNtk_ICHEPgeom_BS.root"),
0067
0068
0069
0070 OutputRootTreeFileName = cms.string(""),
0071
0072
0073
0074 MuonLabel = cms.InputTag("patMuons"),
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086 MuonType = cms.int32(-1),
0087
0088
0089
0090 PATmuons = cms.untracked.bool(True),
0091
0092
0093
0094
0095
0096
0097
0098 resfind = cms.vint32(1, 0, 0, 0, 0, 0),
0099
0100
0101
0102 maxLoopNumber = cms.untracked.int32(2),
0103
0104 doResolFit = cms.vint32(0,1),
0105 doScaleFit = cms.vint32(1,0),
0106 doBackgroundFit = cms.vint32(0,0),
0107 doCrossSectionFit = cms.vint32(0,0),
0108
0109
0110
0111 UseProbsFile = cms.untracked.bool(True),
0112
0113
0114 speedup = cms.bool(True),
0115
0116
0117 compareToSimTracks = cms.bool(False),
0118
0119
0120
0121 OutputFileName = cms.untracked.string('MuScleFit_4Nov_INNtk_resol42_comb.root'),
0122
0123
0124
0125 BiasType = cms.int32(0),
0126 parBias = cms.vdouble(),
0127
0128
0129
0130 SmearType = cms.int32(0),
0131 parSmear = cms.vdouble(),
0132
0133
0134 ResolFitType = cms.int32(42),
0135 parResolFix = setter.parResolFix,
0136 parResolOrder = setter.parResolOrder,
0137 parResol = setter.parResol,
0138 parResolStep = setter.parResolStep,
0139 parResolMin = setter.parResolMin,
0140 parResolMax = setter.parResolMax,
0141
0142
0143
0144
0145
0146
0147
0148 ScaleFitType = cms.int32(29),
0149 parScaleOrder = cms.vint32( 0, 0, 0, 0, 0),
0150 parScaleFix = cms.vint32(1, 1, 1, 1, 1),
0151 parScale = cms.vdouble(-7.3019e-05, 0., 0.00147514, 0.000114635, 0.246663),
0152
0153
0154
0155
0156
0157
0158
0159
0160
0161
0162
0163
0164
0165
0166
0167
0168 parCrossSectionOrder = cms.vint32(0, 0, 0, 0, 0, 0),
0169 parCrossSectionFix = cms.vint32(0, 0, 0, 0, 0, 0),
0170 parCrossSection = cms.vdouble(1.233, 2.07, 6.33, 13.9, 2.169, 127.2),
0171
0172
0173
0174
0175
0176
0177 LeftWindowBorder = cms.vdouble(70., 8., 1.391495),
0178 RightWindowBorder = cms.vdouble(110., 12., 5.391495),
0179
0180
0181
0182
0183
0184 BgrFitType = cms.vint32(2, 2, 2),
0185
0186 parBgr = cms.vdouble(0., 0., 0., 0., 0., 0.,
0187 0., 0., 0., 0., 0., 0., 0.,0., 0.,0., 0.,0.),
0188 parBgrFix = cms.vint32(0, 0, 0, 0, 0, 0,
0189
0190
0191 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
0192 parBgrOrder = cms.vint32(0, 0, 0, 0, 0, 0,
0193 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
0194
0195
0196
0197
0198
0199 FitStrategy = cms.int32(2),
0200
0201
0202 StartWithSimplex = cms.bool(True),
0203 ComputeMinosErrors = cms.bool(False),
0204 MinimumShapePlots = cms.bool(True),
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215
0216 ProbabilitiesFile = cms.untracked.string("/home/castello/7TeV/CMSSW_3_8_5_patch3/src/MuonAnalysis/MomentumScaleCalibration/test/Probs_merge.root"),
0217
0218
0219 TriggerResultsLabel = cms.untracked.string("TriggerResults"),
0220 TriggerResultsProcess = cms.untracked.string("HLT"),
0221
0222
0223 TriggerPath = cms.untracked.string("All"),
0224
0225 NegateTrigger = cms.untracked.bool(False),
0226
0227 debug = cms.untracked.int32(0),
0228 )