Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:26

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 from PhysicsTools.PatAlgos.recoLayer0.stringResolutionProvider_cfi import *
0005 
0006 print("*** Including object resolutions derived from Summer11 MC for:")
0007 print("*** - electrons   - muons   - udscJetsPF     - bJetsPF     - pfMET")
0008 print("*** Please make sure that you are really using resolutions that are suited for the objects in your analysis!")
0009 
0010 udscResolutionPF = stringResolution.clone(parametrization = 'EtEtaPhi',
0011                                           functions = cms.VPSet(
0012     cms.PSet(
0013     bin = cms.string('0.000<=abs(eta) && abs(eta)<0.087'),
0014     et  = cms.string('et * (sqrt(0.06^2 + (1.0023/sqrt(et))^2 + (0/et)^2))'),
0015     eta  = cms.string('sqrt(0.00901^2 + (1.5284/et)^2)'),
0016     phi  = cms.string('sqrt(0.0104^2 + (1.6004/et)^2)'),
0017     ),
0018     cms.PSet(
0019     bin = cms.string('0.087<=abs(eta) && abs(eta)<0.174'),
0020     et  = cms.string('et * (sqrt(0.0633^2 + (0.964/sqrt(et))^2 + (1.49/et)^2))'),
0021     eta  = cms.string('sqrt(0.00927^2 + (1.486/et)^2)'),
0022     phi  = cms.string('sqrt(0.01113^2 + (1.5354/et)^2)'),
0023     ),
0024     cms.PSet(
0025     bin = cms.string('0.174<=abs(eta) && abs(eta)<0.261'),
0026     et  = cms.string('et * (sqrt(0.0595^2 + (0.973/sqrt(et))^2 + (1.52/et)^2))'),
0027     eta  = cms.string('sqrt(0.00958^2 + (1.4794/et)^2)'),
0028     phi  = cms.string('sqrt(0.01093^2 + (1.5387/et)^2)'),
0029     ),
0030     cms.PSet(
0031     bin = cms.string('0.261<=abs(eta) && abs(eta)<0.348'),
0032     et  = cms.string('et * (sqrt(0.058^2 + (0.991/sqrt(et))^2 + (1.3/et)^2))'),
0033     eta  = cms.string('sqrt(0.00884^2 + (1.5269/et)^2)'),
0034     phi  = cms.string('sqrt(0.01107^2 + (1.5398/et)^2)'),
0035     ),
0036     cms.PSet(
0037     bin = cms.string('0.348<=abs(eta) && abs(eta)<0.435'),
0038     et  = cms.string('et * (sqrt(0.0597^2 + (0.96/sqrt(et))^2 + (1.82/et)^2))'),
0039     eta  = cms.string('sqrt(0.00915^2 + (1.5229/et)^2)'),
0040     phi  = cms.string('sqrt(0.01079^2 + (1.557/et)^2)'),
0041     ),
0042     cms.PSet(
0043     bin = cms.string('0.435<=abs(eta) && abs(eta)<0.522'),
0044     et  = cms.string('et * (sqrt(0.0582^2 + (0.977/sqrt(et))^2 + (1.45/et)^2))'),
0045     eta  = cms.string('sqrt(0.00936^2 + (1.5322/et)^2)'),
0046     phi  = cms.string('sqrt(0.01055^2 + (1.5636/et)^2)'),
0047     ),
0048     cms.PSet(
0049     bin = cms.string('0.522<=abs(eta) && abs(eta)<0.609'),
0050     et  = cms.string('et * (sqrt(0.0603^2 + (0.96/sqrt(et))^2 + (1.58/et)^2))'),
0051     eta  = cms.string('sqrt(0.00959^2 + (1.5176/et)^2)'),
0052     phi  = cms.string('sqrt(0.01042^2 + (1.5547/et)^2)'),
0053     ),
0054     cms.PSet(
0055     bin = cms.string('0.609<=abs(eta) && abs(eta)<0.696'),
0056     et  = cms.string('et * (sqrt(0.0535^2 + (1/sqrt(et))^2 + (1.31/et)^2))'),
0057     eta  = cms.string('sqrt(0.00971^2 + (1.5233/et)^2)'),
0058     phi  = cms.string('sqrt(0.01043^2 + (1.5674/et)^2)'),
0059     ),
0060     cms.PSet(
0061     bin = cms.string('0.696<=abs(eta) && abs(eta)<0.783'),
0062     et  = cms.string('et * (sqrt(0.0472^2 + (1.039/sqrt(et))^2 + (0.67/et)^2))'),
0063     eta  = cms.string('sqrt(0.00966^2 + (1.5239/et)^2)'),
0064     phi  = cms.string('sqrt(0.01021^2 + (1.5725/et)^2)'),
0065     ),
0066     cms.PSet(
0067     bin = cms.string('0.783<=abs(eta) && abs(eta)<0.870'),
0068     et  = cms.string('et * (sqrt(0.0561^2 + (1.016/sqrt(et))^2 + (1.31/et)^2))'),
0069     eta  = cms.string('sqrt(0.00969^2 + (1.5407/et)^2)'),
0070     phi  = cms.string('sqrt(0.00981^2 + (1.5962/et)^2)'),
0071     ),
0072     cms.PSet(
0073     bin = cms.string('0.870<=abs(eta) && abs(eta)<0.957'),
0074     et  = cms.string('et * (sqrt(0.0543^2 + (1.0701/sqrt(et))^2 + (0/et)^2))'),
0075     eta  = cms.string('sqrt(0.00976^2 + (1.5745/et)^2)'),
0076     phi  = cms.string('sqrt(0.01039^2 + (1.6025/et)^2)'),
0077     ),
0078     cms.PSet(
0079     bin = cms.string('0.957<=abs(eta) && abs(eta)<1.044'),
0080     et  = cms.string('et * (sqrt(0.0544^2 + (1.071/sqrt(et))^2 + (1.2/et)^2))'),
0081     eta  = cms.string('sqrt(0.01025^2 + (1.5794/et)^2)'),
0082     phi  = cms.string('sqrt(0.01002^2 + (1.6162/et)^2)'),
0083     ),
0084     cms.PSet(
0085     bin = cms.string('1.044<=abs(eta) && abs(eta)<1.131'),
0086     et  = cms.string('et * (sqrt(0.0537^2 + (1.1222/sqrt(et))^2 + (0/et)^2))'),
0087     eta  = cms.string('sqrt(0.01038^2 + (1.5695/et)^2)'),
0088     phi  = cms.string('sqrt(0.01093^2 + (1.6176/et)^2)'),
0089     ),
0090     cms.PSet(
0091     bin = cms.string('1.131<=abs(eta) && abs(eta)<1.218'),
0092     et  = cms.string('et * (sqrt(0.0509^2 + (1.1539/sqrt(et))^2 + (0/et)^2))'),
0093     eta  = cms.string('sqrt(0.01099^2 + (1.6058/et)^2)'),
0094     phi  = cms.string('sqrt(0.01018^2 + (1.6654/et)^2)'),
0095     ),
0096     cms.PSet(
0097     bin = cms.string('1.218<=abs(eta) && abs(eta)<1.305'),
0098     et  = cms.string('et * (sqrt(0.0444^2 + (1.2024/sqrt(et))^2 + (0/et)^2))'),
0099     eta  = cms.string('sqrt(0.01353^2 + (1.6026/et)^2)'),
0100     phi  = cms.string('sqrt(0.0108^2 + (1.6873/et)^2)'),
0101     ),
0102     cms.PSet(
0103     bin = cms.string('1.305<=abs(eta) && abs(eta)<1.392'),
0104     et  = cms.string('et * (sqrt(0.0426^2 + (1.2401/sqrt(et))^2 + (0/et)^2))'),
0105     eta  = cms.string('sqrt(0.01863^2 + (1.5378/et)^2)'),
0106     phi  = cms.string('sqrt(0.01338^2 + (1.7234/et)^2)'),
0107     ),
0108     cms.PSet(
0109     bin = cms.string('1.392<=abs(eta) && abs(eta)<1.479'),
0110     et  = cms.string('et * (sqrt(0.0435^2 + (1.2544/sqrt(et))^2 + (0/et)^2))'),
0111     eta  = cms.string('sqrt(0.01234^2 + (1.6169/et)^2)'),
0112     phi  = cms.string('sqrt(0.01361^2 + (1.7677/et)^2)'),
0113     ),
0114     cms.PSet(
0115     bin = cms.string('1.479<=abs(eta) && abs(eta)<1.566'),
0116     et  = cms.string('et * (sqrt(0^2 + (1.2566/sqrt(et))^2 + (0/et)^2))'),
0117     eta  = cms.string('sqrt(0.01286^2 + (1.6066/et)^2)'),
0118     phi  = cms.string('sqrt(0.01145^2 + (1.7966/et)^2)'),
0119     ),
0120     cms.PSet(
0121     bin = cms.string('1.566<=abs(eta) && abs(eta)<1.653'),
0122     et  = cms.string('et * (sqrt(0^2 + (1.1734/sqrt(et))^2 + (0/et)^2))'),
0123     eta  = cms.string('sqrt(0.01086^2 + (1.6108/et)^2)'),
0124     phi  = cms.string('sqrt(0.01042^2 + (1.792/et)^2)'),
0125     ),
0126     cms.PSet(
0127     bin = cms.string('1.653<=abs(eta) && abs(eta)<1.740'),
0128     et  = cms.string('et * (sqrt(0^2 + (1.1259/sqrt(et))^2 + (0/et)^2))'),
0129     eta  = cms.string('sqrt(0.01056^2 + (1.626/et)^2)'),
0130     phi  = cms.string('sqrt(0.00983^2 + (1.7587/et)^2)'),
0131     ),
0132     cms.PSet(
0133     bin = cms.string('1.740<=abs(eta) && abs(eta)<1.830'),
0134     et  = cms.string('et * (sqrt(0^2 + (1.0982/sqrt(et))^2 + (0/et)^2))'),
0135     eta  = cms.string('sqrt(0.00922^2 + (1.6977/et)^2)'),
0136     phi  = cms.string('sqrt(0.0094^2 + (1.7323/et)^2)'),
0137     ),
0138     cms.PSet(
0139     bin = cms.string('1.830<=abs(eta) && abs(eta)<1.930'),
0140     et  = cms.string('et * (sqrt(0^2 + (0.988/sqrt(et))^2 + (2.678/et)^2))'),
0141     eta  = cms.string('sqrt(0.00982^2 + (1.6827/et)^2)'),
0142     phi  = cms.string('sqrt(0.0085^2 + (1.7074/et)^2)'),
0143     ),
0144     cms.PSet(
0145     bin = cms.string('1.930<=abs(eta) && abs(eta)<2.043'),
0146     et  = cms.string('et * (sqrt(0^2 + (0.957/sqrt(et))^2 + (2.569/et)^2))'),
0147     eta  = cms.string('sqrt(0.01029^2 + (1.6801/et)^2)'),
0148     phi  = cms.string('sqrt(0.00834^2 + (1.6954/et)^2)'),
0149     ),
0150     cms.PSet(
0151     bin = cms.string('2.043<=abs(eta) && abs(eta)<2.172'),
0152     et  = cms.string('et * (sqrt(0^2 + (0.9455/sqrt(et))^2 + (2.48/et)^2))'),
0153     eta  = cms.string('sqrt(0.01114^2 + (1.6469/et)^2)'),
0154     phi  = cms.string('sqrt(0.0082^2 + (1.6705/et)^2)'),
0155     ),
0156     cms.PSet(
0157     bin = cms.string('2.172<=abs(eta) && abs(eta)<2.322'),
0158     et  = cms.string('et * (sqrt(0^2 + (0.9015/sqrt(et))^2 + (2.75/et)^2))'),
0159     eta  = cms.string('sqrt(0.0105^2 + (1.6086/et)^2)'),
0160     phi  = cms.string('sqrt(0.00883^2 + (1.6729/et)^2)'),
0161     ),
0162     cms.PSet(
0163     bin = cms.string('2.322<=abs(eta) && abs(eta)<2.500'),
0164     et  = cms.string('et * (sqrt(0^2 + (0.9007/sqrt(et))^2 + (3.059/et)^2))'),
0165     eta  = cms.string('sqrt(0.01117^2 + (1.926/et)^2)'),
0166     phi  = cms.string('sqrt(0.01045^2 + (1.7223/et)^2)'),
0167     ),
0168     ),
0169                                           constraints = cms.vdouble(0)
0170                                           )
0171 
0172 bjetResolutionPF = stringResolution.clone(parametrization = 'EtEtaPhi',
0173                                           functions = cms.VPSet(
0174     cms.PSet(
0175     bin = cms.string('0.000<=abs(eta) && abs(eta)<0.087'),
0176     et  = cms.string('et * (sqrt(0.0849^2 + (0.855/sqrt(et))^2 + (3.43/et)^2))'),
0177     eta  = cms.string('sqrt(0.00672^2 + (1.5978/et)^2)'),
0178     phi  = cms.string('sqrt(0.00842^2 + (1.6991/et)^2)'),
0179     ),
0180     cms.PSet(
0181     bin = cms.string('0.087<=abs(eta) && abs(eta)<0.174'),
0182     et  = cms.string('et * (sqrt(0.08^2 + (0.959/sqrt(et))^2 + (2.15/et)^2))'),
0183     eta  = cms.string('sqrt(0.00595^2 + (1.6273/et)^2)'),
0184     phi  = cms.string('sqrt(0.00802^2 + (1.7211/et)^2)'),
0185     ),
0186     cms.PSet(
0187     bin = cms.string('0.174<=abs(eta) && abs(eta)<0.261'),
0188     et  = cms.string('et * (sqrt(0.0734^2 + (0.998/sqrt(et))^2 + (1.67/et)^2))'),
0189     eta  = cms.string('sqrt(0.00656^2 + (1.6177/et)^2)'),
0190     phi  = cms.string('sqrt(0.00789^2 + (1.7235/et)^2)'),
0191     ),
0192     cms.PSet(
0193     bin = cms.string('0.261<=abs(eta) && abs(eta)<0.348'),
0194     et  = cms.string('et * (sqrt(0.0786^2 + (0.935/sqrt(et))^2 + (2.23/et)^2))'),
0195     eta  = cms.string('sqrt(0.00618^2 + (1.6293/et)^2)'),
0196     phi  = cms.string('sqrt(0.00779^2 + (1.7145/et)^2)'),
0197     ),
0198     cms.PSet(
0199     bin = cms.string('0.348<=abs(eta) && abs(eta)<0.435'),
0200     et  = cms.string('et * (sqrt(0.0721^2 + (1.001/sqrt(et))^2 + (1.42/et)^2))'),
0201     eta  = cms.string('sqrt(0.00623^2 + (1.6427/et)^2)'),
0202     phi  = cms.string('sqrt(0.00806^2 + (1.7107/et)^2)'),
0203     ),
0204     cms.PSet(
0205     bin = cms.string('0.435<=abs(eta) && abs(eta)<0.522'),
0206     et  = cms.string('et * (sqrt(0.0682^2 + (1.011/sqrt(et))^2 + (1.37/et)^2))'),
0207     eta  = cms.string('sqrt(0.00678^2 + (1.657/et)^2)'),
0208     phi  = cms.string('sqrt(0.00806^2 + (1.7229/et)^2)'),
0209     ),
0210     cms.PSet(
0211     bin = cms.string('0.522<=abs(eta) && abs(eta)<0.609'),
0212     et  = cms.string('et * (sqrt(0.0637^2 + (1.037/sqrt(et))^2 + (1.24/et)^2))'),
0213     eta  = cms.string('sqrt(0.00633^2 + (1.6528/et)^2)'),
0214     phi  = cms.string('sqrt(0.00785^2 + (1.722/et)^2)'),
0215     ),
0216     cms.PSet(
0217     bin = cms.string('0.609<=abs(eta) && abs(eta)<0.696'),
0218     et  = cms.string('et * (sqrt(0.0658^2 + (1.032/sqrt(et))^2 + (0.83/et)^2))'),
0219     eta  = cms.string('sqrt(0.00684^2 + (1.6606/et)^2)'),
0220     phi  = cms.string('sqrt(0.00777^2 + (1.7348/et)^2)'),
0221     ),
0222     cms.PSet(
0223     bin = cms.string('0.696<=abs(eta) && abs(eta)<0.783'),
0224     et  = cms.string('et * (sqrt(0.0661^2 + (1.0633/sqrt(et))^2 + (0/et)^2))'),
0225     eta  = cms.string('sqrt(0.00722^2 + (1.6615/et)^2)'),
0226     phi  = cms.string('sqrt(0.00786^2 + (1.7394/et)^2)'),
0227     ),
0228     cms.PSet(
0229     bin = cms.string('0.783<=abs(eta) && abs(eta)<0.870'),
0230     et  = cms.string('et * (sqrt(0.0649^2 + (1.0755/sqrt(et))^2 + (0/et)^2))'),
0231     eta  = cms.string('sqrt(0.00803^2 + (1.655/et)^2)'),
0232     phi  = cms.string('sqrt(0.0077^2 + (1.7591/et)^2)'),
0233     ),
0234     cms.PSet(
0235     bin = cms.string('0.870<=abs(eta) && abs(eta)<0.957'),
0236     et  = cms.string('et * (sqrt(0.0731^2 + (1.054/sqrt(et))^2 + (0.6/et)^2))'),
0237     eta  = cms.string('sqrt(0.00817^2 + (1.678/et)^2)'),
0238     phi  = cms.string('sqrt(0.00807^2 + (1.7585/et)^2)'),
0239     ),
0240     cms.PSet(
0241     bin = cms.string('0.957<=abs(eta) && abs(eta)<1.044'),
0242     et  = cms.string('et * (sqrt(0.068^2 + (1.0925/sqrt(et))^2 + (0/et)^2))'),
0243     eta  = cms.string('sqrt(0.0085^2 + (1.6774/et)^2)'),
0244     phi  = cms.string('sqrt(0.00805^2 + (1.7778/et)^2)'),
0245     ),
0246     cms.PSet(
0247     bin = cms.string('1.044<=abs(eta) && abs(eta)<1.131'),
0248     et  = cms.string('et * (sqrt(0.0662^2 + (1.1339/sqrt(et))^2 + (0/et)^2))'),
0249     eta  = cms.string('sqrt(0.00858^2 + (1.7079/et)^2)'),
0250     phi  = cms.string('sqrt(0.00852^2 + (1.7953/et)^2)'),
0251     ),
0252     cms.PSet(
0253     bin = cms.string('1.131<=abs(eta) && abs(eta)<1.218'),
0254     et  = cms.string('et * (sqrt(0.064^2 + (1.1553/sqrt(et))^2 + (0/et)^2))'),
0255     eta  = cms.string('sqrt(0.00927^2 + (1.7597/et)^2)'),
0256     phi  = cms.string('sqrt(0.00856^2 + (1.8331/et)^2)'),
0257     ),
0258     cms.PSet(
0259     bin = cms.string('1.218<=abs(eta) && abs(eta)<1.305'),
0260     et  = cms.string('et * (sqrt(0.0692^2 + (1.1655/sqrt(et))^2 + (0/et)^2))'),
0261     eta  = cms.string('sqrt(0.01203^2 + (1.7792/et)^2)'),
0262     phi  = cms.string('sqrt(0.00904^2 + (1.8867/et)^2)'),
0263     ),
0264     cms.PSet(
0265     bin = cms.string('1.305<=abs(eta) && abs(eta)<1.392'),
0266     et  = cms.string('et * (sqrt(0.0756^2 + (1.1773/sqrt(et))^2 + (0/et)^2))'),
0267     eta  = cms.string('sqrt(0.01479^2 + (1.774/et)^2)'),
0268     phi  = cms.string('sqrt(0.0108^2 + (1.9241/et)^2)'),
0269     ),
0270     cms.PSet(
0271     bin = cms.string('1.392<=abs(eta) && abs(eta)<1.479'),
0272     et  = cms.string('et * (sqrt(0.0761^2 + (1.1932/sqrt(et))^2 + (0/et)^2))'),
0273     eta  = cms.string('sqrt(0.01191^2 + (1.791/et)^2)'),
0274     phi  = cms.string('sqrt(0.011^2 + (2.006/et)^2)'),
0275     ),
0276     cms.PSet(
0277     bin = cms.string('1.479<=abs(eta) && abs(eta)<1.566'),
0278     et  = cms.string('et * (sqrt(0.0631^2 + (1.2178/sqrt(et))^2 + (0/et)^2))'),
0279     eta  = cms.string('sqrt(0.01287^2 + (1.764/et)^2)'),
0280     phi  = cms.string('sqrt(0.01025^2 + (1.998/et)^2)'),
0281     ),
0282     cms.PSet(
0283     bin = cms.string('1.566<=abs(eta) && abs(eta)<1.653'),
0284     et  = cms.string('et * (sqrt(0.0429^2 + (1.2103/sqrt(et))^2 + (0/et)^2))'),
0285     eta  = cms.string('sqrt(0.01092^2 + (1.789/et)^2)'),
0286     phi  = cms.string('sqrt(0.00904^2 + (1.99/et)^2)'),
0287     ),
0288     cms.PSet(
0289     bin = cms.string('1.653<=abs(eta) && abs(eta)<1.740'),
0290     et  = cms.string('et * (sqrt(0^2 + (1.2206/sqrt(et))^2 + (0/et)^2))'),
0291     eta  = cms.string('sqrt(0.00985^2 + (1.784/et)^2)'),
0292     phi  = cms.string('sqrt(0.0083^2 + (1.954/et)^2)'),
0293     ),
0294     cms.PSet(
0295     bin = cms.string('1.740<=abs(eta) && abs(eta)<1.830'),
0296     et  = cms.string('et * (sqrt(0^2 + (1.1902/sqrt(et))^2 + (0/et)^2))'),
0297     eta  = cms.string('sqrt(0.00916^2 + (1.881/et)^2)'),
0298     phi  = cms.string('sqrt(0.00728^2 + (1.937/et)^2)'),
0299     ),
0300     cms.PSet(
0301     bin = cms.string('1.830<=abs(eta) && abs(eta)<1.930'),
0302     et  = cms.string('et * (sqrt(0^2 + (1.1441/sqrt(et))^2 + (0/et)^2))'),
0303     eta  = cms.string('sqrt(0.01144^2 + (1.811/et)^2)'),
0304     phi  = cms.string('sqrt(0.00664^2 + (1.9/et)^2)'),
0305     ),
0306     cms.PSet(
0307     bin = cms.string('1.930<=abs(eta) && abs(eta)<2.043'),
0308     et  = cms.string('et * (sqrt(0^2 + (1.1221/sqrt(et))^2 + (0/et)^2))'),
0309     eta  = cms.string('sqrt(0.01113^2 + (1.864/et)^2)'),
0310     phi  = cms.string('sqrt(0.00618^2 + (1.857/et)^2)'),
0311     ),
0312     cms.PSet(
0313     bin = cms.string('2.043<=abs(eta) && abs(eta)<2.172'),
0314     et  = cms.string('et * (sqrt(0^2 + (1.0843/sqrt(et))^2 + (1.73/et)^2))'),
0315     eta  = cms.string('sqrt(0.01176^2 + (1.844/et)^2)'),
0316     phi  = cms.string('sqrt(0.00624^2 + (1.855/et)^2)'),
0317     ),
0318     cms.PSet(
0319     bin = cms.string('2.172<=abs(eta) && abs(eta)<2.322'),
0320     et  = cms.string('et * (sqrt(0^2 + (1.0579/sqrt(et))^2 + (1.78/et)^2))'),
0321     eta  = cms.string('sqrt(0.01076^2 + (1.821/et)^2)'),
0322     phi  = cms.string('sqrt(0.00543^2 + (1.884/et)^2)'),
0323     ),
0324     cms.PSet(
0325     bin = cms.string('2.322<=abs(eta) && abs(eta)<2.500'),
0326     et  = cms.string('et * (sqrt(0^2 + (1.1037/sqrt(et))^2 + (1.62/et)^2))'),
0327     eta  = cms.string('sqrt(0.00883^2 + (2.189/et)^2)'),
0328     phi  = cms.string('sqrt(0.00836^2 + (1.959/et)^2)'),
0329     ),
0330     ),
0331                                           constraints = cms.vdouble(0)
0332                                           )
0333 
0334 muonResolution = stringResolution.clone(parametrization = 'EtEtaPhi',
0335                                         functions = cms.VPSet(
0336     cms.PSet(
0337     bin = cms.string('0.000<=abs(eta) && abs(eta)<0.100'),
0338     et  = cms.string('et * (0.00527 + 0.0001431 * et)'),
0339     eta  = cms.string('sqrt(0.0004308^2 + (0.00314/et)^2)'),
0340     phi  = cms.string('sqrt(7.22e-05^2 + (8e-05/sqrt(et))^2 + (0.00314/et)^2)'),
0341     ),
0342     cms.PSet(
0343     bin = cms.string('0.100<=abs(eta) && abs(eta)<0.200'),
0344     et  = cms.string('et * (0.00546 + 0.0001361 * et)'),
0345     eta  = cms.string('sqrt(0.0003871^2 + (0.00267/et)^2)'),
0346     phi  = cms.string('sqrt(7.28e-05^2 + (0.00013/sqrt(et))^2 + (0.00298/et)^2)'),
0347     ),
0348     cms.PSet(
0349     bin = cms.string('0.200<=abs(eta) && abs(eta)<0.300'),
0350     et  = cms.string('et * (0.00604 + 0.0001343 * et)'),
0351     eta  = cms.string('sqrt(0.0003385^2 + (0.00262/et)^2)'),
0352     phi  = cms.string('sqrt(6.62e-05^2 + (0.000293/sqrt(et))^2 + (0.00293/et)^2)'),
0353     ),
0354     cms.PSet(
0355     bin = cms.string('0.300<=abs(eta) && abs(eta)<0.400'),
0356     et  = cms.string('et * (0.00675 + 0.0001295 * et)'),
0357     eta  = cms.string('sqrt(0.000307^2 + (0.00244/et)^2)'),
0358     phi  = cms.string('sqrt(6.34e-05^2 + (0.000341/sqrt(et))^2 + (0.00291/et)^2)'),
0359     ),
0360     cms.PSet(
0361     bin = cms.string('0.400<=abs(eta) && abs(eta)<0.500'),
0362     et  = cms.string('et * (0.00694 + 0.000134 * et)'),
0363     eta  = cms.string('sqrt(0.0002882^2 + (0.00197/et)^2)'),
0364     phi  = cms.string('sqrt(6.36e-05^2 + (0.000336/sqrt(et))^2 + (0.00306/et)^2)'),
0365     ),
0366     cms.PSet(
0367     bin = cms.string('0.500<=abs(eta) && abs(eta)<0.600'),
0368     et  = cms.string('et * (0.00751 + 0.0001272 * et)'),
0369     eta  = cms.string('sqrt(0.0002852^2 + (0.0019/et)^2)'),
0370     phi  = cms.string('sqrt(6.57e-05^2 + (0.000314/sqrt(et))^2 + (0.00308/et)^2)'),
0371     ),
0372     cms.PSet(
0373     bin = cms.string('0.600<=abs(eta) && abs(eta)<0.700'),
0374     et  = cms.string('et * (0.00765 + 0.0001277 * et)'),
0375     eta  = cms.string('sqrt(0.0002842^2 + (0.00237/et)^2)'),
0376     phi  = cms.string('sqrt(6.05e-05^2 + (0.000396/sqrt(et))^2 + (0.00312/et)^2)'),
0377     ),
0378     cms.PSet(
0379     bin = cms.string('0.700<=abs(eta) && abs(eta)<0.800'),
0380     et  = cms.string('et * (0.00819 + 0.000125 * et)'),
0381     eta  = cms.string('sqrt(0.0002752^2 + (0.00294/et)^2)'),
0382     phi  = cms.string('sqrt(6.71e-05^2 + (0.000353/sqrt(et))^2 + (0.0032/et)^2)'),
0383     ),
0384     cms.PSet(
0385     bin = cms.string('0.800<=abs(eta) && abs(eta)<0.900'),
0386     et  = cms.string('et * (0.00924 + 0.0001259 * et)'),
0387     eta  = cms.string('sqrt(0.0002579^2 + (0.00271/et)^2)'),
0388     phi  = cms.string('sqrt(6.03e-05^2 + (0.000458/sqrt(et))^2 + (0.00319/et)^2)'),
0389     ),
0390     cms.PSet(
0391     bin = cms.string('0.900<=abs(eta) && abs(eta)<1.000'),
0392     et  = cms.string('et * (0.0108 + 0.0001502 * et)'),
0393     eta  = cms.string('sqrt(0.0002424^2 + (0.00278/et)^2)'),
0394     phi  = cms.string('sqrt(6.49e-05^2 + (0.000539/sqrt(et))^2 + (0.00323/et)^2)'),
0395     ),
0396     cms.PSet(
0397     bin = cms.string('1.000<=abs(eta) && abs(eta)<1.100'),
0398     et  = cms.string('et * (0.01196 + 0.0001424 * et)'),
0399     eta  = cms.string('sqrt(0.0002268^2 + (0.00355/et)^2)'),
0400     phi  = cms.string('sqrt(7.1e-05^2 + (0.0005/sqrt(et))^2 + (0.00346/et)^2)'),
0401     ),
0402     cms.PSet(
0403     bin = cms.string('1.100<=abs(eta) && abs(eta)<1.200'),
0404     et  = cms.string('et * (0.01364 + 0.0001263 * et)'),
0405     eta  = cms.string('sqrt(0.0002178^2 + (0.00345/et)^2)'),
0406     phi  = cms.string('sqrt(5.27e-05^2 + (0.000635/sqrt(et))^2 + (0.00365/et)^2)'),
0407     ),
0408     cms.PSet(
0409     bin = cms.string('1.200<=abs(eta) && abs(eta)<1.300'),
0410     et  = cms.string('et * (0.01412 + 0.0001404 * et)'),
0411     eta  = cms.string('sqrt(0.0002077^2 + (0.00356/et)^2)'),
0412     phi  = cms.string('sqrt(5.38e-05^2 + (0.000682/sqrt(et))^2 + (0.00364/et)^2)'),
0413     ),
0414     cms.PSet(
0415     bin = cms.string('1.300<=abs(eta) && abs(eta)<1.400'),
0416     et  = cms.string('et * (0.01473 + 0.0001449 * et)'),
0417     eta  = cms.string('sqrt(0.0002175^2 + (0.00354/et)^2)'),
0418     phi  = cms.string('sqrt(5.57e-05^2 + (0.000737/sqrt(et))^2 + (0.00339/et)^2)'),
0419     ),
0420     cms.PSet(
0421     bin = cms.string('1.400<=abs(eta) && abs(eta)<1.500'),
0422     et  = cms.string('et * (0.01408 + 0.0001535 * et)'),
0423     eta  = cms.string('sqrt(0.0002271^2 + (0.00344/et)^2)'),
0424     phi  = cms.string('sqrt(0^2 + (0.000909/sqrt(et))^2 + (0.00309/et)^2)'),
0425     ),
0426     cms.PSet(
0427     bin = cms.string('1.500<=abs(eta) && abs(eta)<1.600'),
0428     et  = cms.string('et * (0.01252 + 0.0001749 * et)'),
0429     eta  = cms.string('sqrt(0.0002216^2 + (0.00366/et)^2)'),
0430     phi  = cms.string('sqrt(0^2 + (0.000985/sqrt(et))^2 + (0.00251/et)^2)'),
0431     ),
0432     cms.PSet(
0433     bin = cms.string('1.600<=abs(eta) && abs(eta)<1.700'),
0434     et  = cms.string('et * (0.01281 + 0.0001934 * et)'),
0435     eta  = cms.string('sqrt(0.000227^2 + (0.00376/et)^2)'),
0436     phi  = cms.string('sqrt(5.5e-05^2 + (0.000935/sqrt(et))^2 + (0.00323/et)^2)'),
0437     ),
0438     cms.PSet(
0439     bin = cms.string('1.700<=abs(eta) && abs(eta)<1.800'),
0440     et  = cms.string('et * (0.01256 + 0.0002733 * et)'),
0441     eta  = cms.string('sqrt(0.0002608^2 + (0.00333/et)^2)'),
0442     phi  = cms.string('sqrt(7.6e-05^2 + (0.001002/sqrt(et))^2 + (0.00307/et)^2)'),
0443     ),
0444     cms.PSet(
0445     bin = cms.string('1.800<=abs(eta) && abs(eta)<1.900'),
0446     et  = cms.string('et * (0.01434 + 0.000339 * et)'),
0447     eta  = cms.string('sqrt(0.0002799^2 + (0.00382/et)^2)'),
0448     phi  = cms.string('sqrt(9.4e-05^2 + (0.001078/sqrt(et))^2 + (0.0029/et)^2)'),
0449     ),
0450     cms.PSet(
0451     bin = cms.string('1.900<=abs(eta) && abs(eta)<2.000'),
0452     et  = cms.string('et * (0.01478 + 0.000451 * et)'),
0453     eta  = cms.string('sqrt(0.0002988^2 + (0.00402/et)^2)'),
0454     phi  = cms.string('sqrt(8.8e-05^2 + (0.001284/sqrt(et))^2 + (0.0024/et)^2)'),
0455     ),
0456     cms.PSet(
0457     bin = cms.string('2.000<=abs(eta) && abs(eta)<2.100'),
0458     et  = cms.string('et * (0.01692 + 0.000581 * et)'),
0459     eta  = cms.string('sqrt(0.0003203^2 + (0.00434/et)^2)'),
0460     phi  = cms.string('sqrt(0.000148^2 + (0.00115/sqrt(et))^2 + (0.00352/et)^2)'),
0461     ),
0462     cms.PSet(
0463     bin = cms.string('2.100<=abs(eta) && abs(eta)<2.200'),
0464     et  = cms.string('et * (0.01935 + 0.000653 * et)'),
0465     eta  = cms.string('sqrt(0.0003774^2 + (0.00437/et)^2)'),
0466     phi  = cms.string('sqrt(0.00018^2 + (0.0011/sqrt(et))^2 + (0.0044/et)^2)'),
0467     ),
0468     cms.PSet(
0469     bin = cms.string('2.200<=abs(eta) && abs(eta)<2.300'),
0470     et  = cms.string('et * (0.01821 + 0.000889 * et)'),
0471     eta  = cms.string('sqrt(0.0004375^2 + (0.00435/et)^2)'),
0472     phi  = cms.string('sqrt(0.000204^2 + (0.00121/sqrt(et))^2 + (0.00451/et)^2)'),
0473     ),
0474     cms.PSet(
0475     bin = cms.string('2.300<=abs(eta) && abs(eta)<2.400'),
0476     et  = cms.string('et * (0.0173 + 0.001261 * et)'),
0477     eta  = cms.string('sqrt(0.0005159^2 + (0.00488/et)^2)'),
0478     phi  = cms.string('sqrt(0.000223^2 + (0.00152/sqrt(et))^2 + (0.00459/et)^2)'),
0479     ),
0480     ),
0481                                         constraints = cms.vdouble(0)
0482                                         )
0483 
0484 elecResolution = stringResolution.clone(parametrization = 'EtEtaPhi',
0485                                         functions = cms.VPSet(
0486     cms.PSet(
0487     bin = cms.string('0.000<=abs(eta) && abs(eta)<0.174'),
0488     et  = cms.string('et * (sqrt(0.0059^2 + (0.0746/sqrt(et))^2 + (0.177/et)^2))'),
0489     eta  = cms.string('sqrt(0.000453^2 + (0.00379/et)^2)'),
0490     phi  = cms.string('sqrt(0^2 + (0.0014637/sqrt(et))^2 + (0/et)^2)'),
0491     ),
0492     cms.PSet(
0493     bin = cms.string('0.174<=abs(eta) && abs(eta)<0.261'),
0494     et  = cms.string('et * (sqrt(0.00536^2 + (0.0798/sqrt(et))^2 + (0/et)^2))'),
0495     eta  = cms.string('sqrt(0.0003882^2 + (0.00319/et)^2)'),
0496     phi  = cms.string('sqrt(0^2 + (0.00146341/sqrt(et))^2 + (0/et)^2)'),
0497     ),
0498     cms.PSet(
0499     bin = cms.string('0.261<=abs(eta) && abs(eta)<0.348'),
0500     et  = cms.string('et * (sqrt(0.00485^2 + (0.0838/sqrt(et))^2 + (0/et)^2))'),
0501     eta  = cms.string('sqrt(0.0003601^2 + (0.0001/et)^2)'),
0502     phi  = cms.string('sqrt(9.99e-05^2 + (0.001282/sqrt(et))^2 + (0.00245/et)^2)'),
0503     ),
0504     cms.PSet(
0505     bin = cms.string('0.348<=abs(eta) && abs(eta)<0.435'),
0506     et  = cms.string('et * (sqrt(0.0056^2 + (0.0878/sqrt(et))^2 + (0/et)^2))'),
0507     eta  = cms.string('sqrt(0.0003317^2 + (0.00176/et)^2)'),
0508     phi  = cms.string('sqrt(8.71e-05^2 + (0.001451/sqrt(et))^2 + (0/et)^2)'),
0509     ),
0510     cms.PSet(
0511     bin = cms.string('0.435<=abs(eta) && abs(eta)<0.522'),
0512     et  = cms.string('et * (sqrt(0.00287^2 + (0.0962/sqrt(et))^2 + (0/et)^2))'),
0513     eta  = cms.string('sqrt(0.000313^2 + (0.00241/et)^2)'),
0514     phi  = cms.string('sqrt(6.66e-05^2 + (0.001485/sqrt(et))^2 + (0/et)^2)'),
0515     ),
0516     cms.PSet(
0517     bin = cms.string('0.522<=abs(eta) && abs(eta)<0.609'),
0518     et  = cms.string('et * (sqrt(0.00395^2 + (0.089/sqrt(et))^2 + (0/et)^2))'),
0519     eta  = cms.string('sqrt(0.0003226^2 + (0.00053/et)^2)'),
0520     phi  = cms.string('sqrt(9.9e-05^2 + (0.001377/sqrt(et))^2 + (0.00228/et)^2)'),
0521     ),
0522     cms.PSet(
0523     bin = cms.string('0.609<=abs(eta) && abs(eta)<0.696'),
0524     et  = cms.string('et * (sqrt(0.00364^2 + (0.0912/sqrt(et))^2 + (0/et)^2))'),
0525     eta  = cms.string('sqrt(0.0003297^2 + (0.00275/et)^2)'),
0526     phi  = cms.string('sqrt(0.0001094^2 + (0.00134/sqrt(et))^2 + (0.00341/et)^2)'),
0527     ),
0528     cms.PSet(
0529     bin = cms.string('0.696<=abs(eta) && abs(eta)<0.783'),
0530     et  = cms.string('et * (sqrt(0^2 + (0.10127/sqrt(et))^2 + (0/et)^2))'),
0531     eta  = cms.string('sqrt(0.0003302^2 + (0.0026/et)^2)'),
0532     phi  = cms.string('sqrt(0.0001378^2 + (0.001337/sqrt(et))^2 + (0.00272/et)^2)'),
0533     ),
0534     cms.PSet(
0535     bin = cms.string('0.783<=abs(eta) && abs(eta)<0.870'),
0536     et  = cms.string('et * (sqrt(0.0021^2 + (0.1076/sqrt(et))^2 + (0/et)^2))'),
0537     eta  = cms.string('sqrt(0.0003062^2 + (0.00296/et)^2)'),
0538     phi  = cms.string('sqrt(0.000128^2 + (0.001587/sqrt(et))^2 + (0/et)^2)'),
0539     ),
0540     cms.PSet(
0541     bin = cms.string('0.870<=abs(eta) && abs(eta)<0.957'),
0542     et  = cms.string('et * (sqrt(0^2 + (0.1096/sqrt(et))^2 + (0.068/et)^2))'),
0543     eta  = cms.string('sqrt(0.0002929^2 + (0.00279/et)^2)'),
0544     phi  = cms.string('sqrt(0.000146^2 + (0.001682/sqrt(et))^2 + (0.0002/et)^2)'),
0545     ),
0546     cms.PSet(
0547     bin = cms.string('0.957<=abs(eta) && abs(eta)<1.044'),
0548     et  = cms.string('et * (sqrt(0^2 + (0.1228/sqrt(et))^2 + (0/et)^2))'),
0549     eta  = cms.string('sqrt(0.0002839^2 + (0.00314/et)^2)'),
0550     phi  = cms.string('sqrt(0.0001911^2 + (0.001345/sqrt(et))^2 + (0.0048/et)^2)'),
0551     ),
0552     cms.PSet(
0553     bin = cms.string('1.044<=abs(eta) && abs(eta)<1.131'),
0554     et  = cms.string('et * (sqrt(0^2 + (0.1323/sqrt(et))^2 + (0.43/et)^2))'),
0555     eta  = cms.string('sqrt(0.0002854^2 + (0.00363/et)^2)'),
0556     phi  = cms.string('sqrt(0.0001752^2 + (0.00187/sqrt(et))^2 + (0/et)^2)'),
0557     ),
0558     cms.PSet(
0559     bin = cms.string('1.131<=abs(eta) && abs(eta)<1.218'),
0560     et  = cms.string('et * (sqrt(0^2 + (0.1545/sqrt(et))^2 + (0.588/et)^2))'),
0561     eta  = cms.string('sqrt(0.0002801^2 + (0.00364/et)^2)'),
0562     phi  = cms.string('sqrt(0.000207^2 + (0.00191/sqrt(et))^2 + (0/et)^2)'),
0563     ),
0564     cms.PSet(
0565     bin = cms.string('1.218<=abs(eta) && abs(eta)<1.305'),
0566     et  = cms.string('et * (sqrt(0^2 + (0.1469/sqrt(et))^2 + (0.738/et)^2))'),
0567     eta  = cms.string('sqrt(0.0002675^2 + (0.00364/et)^2)'),
0568     phi  = cms.string('sqrt(0.000249^2 + (0.001882/sqrt(et))^2 + (0/et)^2)'),
0569     ),
0570     cms.PSet(
0571     bin = cms.string('1.305<=abs(eta) && abs(eta)<1.392'),
0572     et  = cms.string('et * (sqrt(0^2 + (0.162/sqrt(et))^2 + (0.689/et)^2))'),
0573     eta  = cms.string('sqrt(0.0002894^2 + (0.00391/et)^2)'),
0574     phi  = cms.string('sqrt(0.000266^2 + (0.001999/sqrt(et))^2 + (0/et)^2)'),
0575     ),
0576     cms.PSet(
0577     bin = cms.string('1.392<=abs(eta) && abs(eta)<1.479'),
0578     et  = cms.string('et * (sqrt(0^2 + (0.1778/sqrt(et))^2 + (0.664/et)^2))'),
0579     eta  = cms.string('sqrt(0.0002828^2 + (0.00337/et)^2)'),
0580     phi  = cms.string('sqrt(0.00029^2 + (0.00204/sqrt(et))^2 + (0/et)^2)'),
0581     ),
0582     cms.PSet(
0583     bin = cms.string('1.479<=abs(eta) && abs(eta)<1.653'),
0584     et  = cms.string('et * (sqrt(0.0228^2 + (0.208/sqrt(et))^2 + (0.42/et)^2))'),
0585     eta  = cms.string('sqrt(0.0002823^2 + (0.00331/et)^2)'),
0586     phi  = cms.string('sqrt(0.000336^2 + (0.00217/sqrt(et))^2 + (0/et)^2)'),
0587     ),
0588     cms.PSet(
0589     bin = cms.string('1.653<=abs(eta) && abs(eta)<1.740'),
0590     et  = cms.string('et * (sqrt(0.0141^2 + (0.18/sqrt(et))^2 + (0.67/et)^2))'),
0591     eta  = cms.string('sqrt(0.0002728^2 + (0.00446/et)^2)'),
0592     phi  = cms.string('sqrt(0.000385^2 + (0.0021/sqrt(et))^2 + (0/et)^2)'),
0593     ),
0594     cms.PSet(
0595     bin = cms.string('1.740<=abs(eta) && abs(eta)<1.830'),
0596     et  = cms.string('et * (sqrt(0.008^2 + (0.18/sqrt(et))^2 + (0.38/et)^2))'),
0597     eta  = cms.string('sqrt(0.0003102^2 + (0/et)^2)'),
0598     phi  = cms.string('sqrt(0.000364^2 + (0.00267/sqrt(et))^2 + (0/et)^2)'),
0599     ),
0600     cms.PSet(
0601     bin = cms.string('1.830<=abs(eta) && abs(eta)<1.930'),
0602     et  = cms.string('et * (sqrt(0.0095^2 + (0.1742/sqrt(et))^2 + (0/et)^2))'),
0603     eta  = cms.string('sqrt(0.0003092^2 + (0.00393/et)^2)'),
0604     phi  = cms.string('sqrt(0.000323^2 + (0.003/sqrt(et))^2 + (0/et)^2)'),
0605     ),
0606     cms.PSet(
0607     bin = cms.string('1.930<=abs(eta) && abs(eta)<2.043'),
0608     et  = cms.string('et * (sqrt(0.0154^2 + (0.108/sqrt(et))^2 + (0.523/et)^2))'),
0609     eta  = cms.string('sqrt(0.0003313^2 + (0.00459/et)^2)'),
0610     phi  = cms.string('sqrt(0.000312^2 + (0.00319/sqrt(et))^2 + (0/et)^2)'),
0611     ),
0612     cms.PSet(
0613     bin = cms.string('2.043<=abs(eta) && abs(eta)<2.172'),
0614     et  = cms.string('et * (sqrt(0.0129^2 + (0.1387/sqrt(et))^2 + (0/et)^2))'),
0615     eta  = cms.string('sqrt(0.0003632^2 + (0.0046/et)^2)'),
0616     phi  = cms.string('sqrt(0.0003^2 + (0.00343/sqrt(et))^2 + (0/et)^2)'),
0617     ),
0618     cms.PSet(
0619     bin = cms.string('2.172<=abs(eta) && abs(eta)<2.322'),
0620     et  = cms.string('et * (sqrt(0.0123^2 + (0.1297/sqrt(et))^2 + (0/et)^2))'),
0621     eta  = cms.string('sqrt(0.0004504^2 + (0.00348/et)^2)'),
0622     phi  = cms.string('sqrt(0.000278^2 + (0.00372/sqrt(et))^2 + (0/et)^2)'),
0623     ),
0624     cms.PSet(
0625     bin = cms.string('2.322<=abs(eta) && abs(eta)<2.500'),
0626     et  = cms.string('et * (sqrt(0.0189^2 + (0.0762/sqrt(et))^2 + (0/et)^2))'),
0627     eta  = cms.string('sqrt(0.000575^2 + (0.00358/et)^2)'),
0628     phi  = cms.string('sqrt(0.00026^2 + (0.00486/sqrt(et))^2 + (0/et)^2)'),
0629     ),
0630     ),
0631                                         constraints = cms.vdouble(0)
0632                                         )
0633 
0634 metResolutionPF  = stringResolution.clone(parametrization = 'EtEtaPhi',
0635                                           functions = cms.VPSet(
0636     cms.PSet(
0637     et  = cms.string('et * (sqrt(0.0351^2 + (0/sqrt(et))^2 + (20.288/et)^2))'),
0638     eta  = cms.string('sqrt(0^2 + (0/sqrt(et))^2 + (0/et)^2)'),
0639     phi  = cms.string('sqrt(0^2 + (1.1664/sqrt(et))^2 + (3.579/et)^2)'),
0640     ),
0641     ),
0642                                           constraints = cms.vdouble(0)
0643                                           )