Ejemplo n.º 1
0
tagTimeType = "timestamp"

process = setup_popcon( recordName, tagTimeType )

process.MessageLogger = cms.Service("MessageLogger",
    debugModules = cms.untracked.vstring('*'),
    destinations = cms.untracked.vstring('cout')
)

process.essource = cms.ESSource("PoolDBESSource",
                                connect = cms.string( str(options.destinationDatabase)),
                                DumpStat=cms.untracked.bool(True),
                                toGet = cms.VPSet( psetForRecord( recordName ) )
)

db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()

process.conf_o2o = cms.EDAnalyzer("ExTestEcalLaserAnalyzer",
    SinceAppendMode = cms.bool(True),
    record = cms.string( recordName ),
    loggingOn = cms.untracked.bool(True),
    Source = cms.PSet(
  # maxtime is mandatory
  # it can be expressed either as an absolute time with format YYYY-MM-DD HH24:MI:SS
  # or as a relative time w.r.t. now, using -N, where N is expressed in units of hours
      maxtime = cms.string("-1"),
      sequences = cms.string("20"),  
      OnlineDBUser = cms.string(db_user),
    # debug must be False for production
      debug = cms.bool(False),
    # if fake is True, no insertion in the db is performed
Ejemplo n.º 2
0
)

process.load("CondCore.CondDB.CondDB_cfi")

process.CondDB.connect = conddb_init.options.destinationDatabase
process.CondDB.DBParameters.authenticationPath = ''

process.PoolDBOutputService = cms.Service("PoolDBOutputService",
    process.CondDB, 
    toPut = cms.VPSet(cms.PSet(
        record = cms.string('EcalTPGFineGrainEBGroupRcd'),
        tag = cms.string(conddb_init.options.destinationTag)
    ))
)

db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()

process.Test1 = cms.EDAnalyzer("ExTestEcalTPGFineGrainEBGroupAnalyzer",
    record = cms.string('EcalTPGFineGrainEBGroupRcd'),
    loggingOn= cms.untracked.bool(True),
    IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
    SinceAppendMode=cms.bool(True),
    Source=cms.PSet(
     firstRun = cms.string('200000'),
     lastRun = cms.string('10000000'),
     OnlineDBSID = cms.string(db_service),
     OnlineDBUser = cms.string(db_user),
     OnlineDBPassword = cms.string( db_pwd ),
     LocationSource = cms.string('P5'),
     Location = cms.string('P5_Co'),
     GenTag = cms.string('GLOBAL'),