Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 POPULATE_MC = False
0004 FIRST_RUN_DATA = '2'
0005 
0006 if POPULATE_MC: suffix = "mc"
0007 else: suffix = "data"
0008 
0009 process = cms.Process("ProcessOne")
0010 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0011 process.CondDBCommon.connect = 'sqlite_file:ecalcovariances_popcon_'+suffix+'.db'
0012 process.CondDBCommon.DBParameters.authenticationPath = '.'
0013 process.CondDBCommon.DBParameters.messageLevel=cms.untracked.int32(1)
0014 
0015 process.MessageLogger = cms.Service("MessageLogger",
0016     cerr = cms.untracked.PSet(
0017         enable = cms.untracked.bool(False)
0018     ),
0019     cout = cms.untracked.PSet(
0020         enable = cms.untracked.bool(True)
0021     ),
0022     debugModules = cms.untracked.vstring('*')
0023 )
0024 
0025 process.source = cms.Source("EmptyIOVSource",
0026                             firstValue = cms.uint64(1),
0027                             lastValue = cms.uint64(1),
0028                             timetype = cms.string('runnumber'),
0029                             interval = cms.uint64(1)
0030                             )
0031 
0032 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0033     process.CondDBCommon,
0034     logconnect = cms.untracked.string('sqlite_file:logecalcovariances_popcon_'+suffix+'.db'),
0035     timetype = cms.untracked.string('runnumber'),
0036     toPut = cms.VPSet(cms.PSet(
0037         record = cms.string('EcalPulseSymmCovariancesRcd'),
0038         tag = cms.string('EcalPulseSymmCovariances_'+suffix)
0039     ))
0040 )
0041 
0042 process.Test1 = cms.EDAnalyzer("ExTestEcalPulseSymmCovariancesAnalyzer",
0043     SinceAppendMode = cms.bool(True),
0044     record = cms.string('EcalPulseSymmCovariancesRcd'),
0045     loggingOn = cms.untracked.bool(True),
0046     Source = cms.PSet(
0047         firstRun = cms.string('1' if POPULATE_MC else FIRST_RUN_DATA),
0048         inputFileName = cms.string("template_covariances_ECAL.txt"),
0049         EBPulseShapeCovariance = cms.vdouble (
0050             3.001e-06,  1.233e-05,  0.000e+00, -4.416e-06, -4.571e-06, -3.614e-06, -2.636e-06, -1.286e-06, -8.410e-07, -5.296e-07,  0.000e+00,  0.000e+00, 
0051             1.233e-05,  6.154e-05,  0.000e+00, -2.200e-05, -2.309e-05, -1.838e-05, -1.373e-05, -7.334e-06, -5.088e-06, -3.745e-06, -2.428e-06,  0.000e+00, 
0052             0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00, 
0053             -4.416e-06, -2.200e-05,  0.000e+00,  8.319e-06,  8.545e-06,  6.792e-06,  5.059e-06,  2.678e-06,  1.816e-06,  1.223e-06,  8.245e-07,  5.589e-07, 
0054             -4.571e-06, -2.309e-05,  0.000e+00,  8.545e-06,  9.182e-06,  7.219e-06,  5.388e-06,  2.853e-06,  1.944e-06,  1.324e-06,  9.083e-07,  6.335e-07, 
0055             -3.614e-06, -1.838e-05,  0.000e+00,  6.792e-06,  7.219e-06,  6.016e-06,  4.437e-06,  2.385e-06,  1.636e-06,  1.118e-06,  7.754e-07,  5.556e-07, 
0056             -2.636e-06, -1.373e-05,  0.000e+00,  5.059e-06,  5.388e-06,  4.437e-06,  3.602e-06,  1.917e-06,  1.322e-06,  9.079e-07,  6.529e-07,  4.752e-07, 
0057             -1.286e-06, -7.334e-06,  0.000e+00,  2.678e-06,  2.853e-06,  2.385e-06,  1.917e-06,  1.375e-06,  9.100e-07,  6.455e-07,  4.693e-07,  3.657e-07, 
0058             -8.410e-07, -5.088e-06,  0.000e+00,  1.816e-06,  1.944e-06,  1.636e-06,  1.322e-06,  9.100e-07,  9.115e-07,  6.062e-07,  4.436e-07,  3.422e-07, 
0059             -5.296e-07, -3.745e-06,  0.000e+00,  1.223e-06,  1.324e-06,  1.118e-06,  9.079e-07,  6.455e-07,  6.062e-07,  7.217e-07,  4.862e-07,  3.768e-07, 
0060             0.000e+00, -2.428e-06,  0.000e+00,  8.245e-07,  9.083e-07,  7.754e-07,  6.529e-07,  4.693e-07,  4.436e-07,  4.862e-07,  6.509e-07,  4.418e-07, 
0061             0.000e+00,  0.000e+00,  0.000e+00,  5.589e-07,  6.335e-07,  5.556e-07,  4.752e-07,  3.657e-07,  3.422e-07,  3.768e-07,  4.418e-07,  6.142e-07,
0062             ),
0063         
0064         EEPulseShapeCovariance = cms.vdouble (
0065             3.941e-05,  3.333e-05,  0.000e+00, -1.449e-05, -1.661e-05, -1.424e-05, -1.183e-05, -6.842e-06, -4.915e-06, -3.411e-06,  0.000e+00,  0.000e+00, 
0066             3.333e-05,  2.862e-05,  0.000e+00, -1.244e-05, -1.431e-05, -1.233e-05, -1.032e-05, -5.883e-06, -4.154e-06, -2.902e-06, -2.128e-06,  0.000e+00, 
0067             0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00,  0.000e+00, 
0068             -1.449e-05, -1.244e-05,  0.000e+00,  5.840e-06,  6.649e-06,  5.720e-06,  4.812e-06,  2.708e-06,  1.869e-06,  1.330e-06,  9.186e-07,  6.446e-07, 
0069             -1.661e-05, -1.431e-05,  0.000e+00,  6.649e-06,  7.966e-06,  6.898e-06,  5.794e-06,  3.157e-06,  2.184e-06,  1.567e-06,  1.084e-06,  7.575e-07, 
0070             -1.424e-05, -1.233e-05,  0.000e+00,  5.720e-06,  6.898e-06,  6.341e-06,  5.347e-06,  2.859e-06,  1.991e-06,  1.431e-06,  9.839e-07,  6.886e-07, 
0071             -1.183e-05, -1.032e-05,  0.000e+00,  4.812e-06,  5.794e-06,  5.347e-06,  4.854e-06,  2.628e-06,  1.809e-06,  1.289e-06,  9.020e-07,  6.146e-07, 
0072             -6.842e-06, -5.883e-06,  0.000e+00,  2.708e-06,  3.157e-06,  2.859e-06,  2.628e-06,  1.863e-06,  1.296e-06,  8.882e-07,  6.108e-07,  4.283e-07, 
0073             -4.915e-06, -4.154e-06,  0.000e+00,  1.869e-06,  2.184e-06,  1.991e-06,  1.809e-06,  1.296e-06,  1.217e-06,  8.669e-07,  5.751e-07,  3.882e-07, 
0074             -3.411e-06, -2.902e-06,  0.000e+00,  1.330e-06,  1.567e-06,  1.431e-06,  1.289e-06,  8.882e-07,  8.669e-07,  9.522e-07,  6.717e-07,  4.293e-07, 
0075             0.000e+00, -2.128e-06,  0.000e+00,  9.186e-07,  1.084e-06,  9.839e-07,  9.020e-07,  6.108e-07,  5.751e-07,  6.717e-07,  7.911e-07,  5.493e-07, 
0076             0.000e+00,  0.000e+00,  0.000e+00,  6.446e-07,  7.575e-07,  6.886e-07,  6.146e-07,  4.283e-07,  3.882e-07,  4.293e-07,  5.493e-07,  7.027e-07,
0077             )
0078 
0079     )
0080 )
0081 
0082 process.p = cms.Path(process.Test1)