CMS 3D CMS Logo

fakeEmtfParams_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ## Fills CondFormats from the database
4 from CondCore.CondDB.CondDB_cfi import CondDB
5 CondDB.connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
6 
7 
8 ## Fills firmware, pT LUT, and PC LUT versions manually
9 emtfParamsSource = cms.ESSource(
10  "EmptyESSource",
11  recordName = cms.string('L1TMuonEndCapParamsRcd'),
12  iovIsRunNotTime = cms.bool(True),
13  firstValid = cms.vuint32(1)
14  )
15 
16 emtfParams = cms.ESProducer(
17  "L1TMuonEndCapParamsESProducer",
18  ## Version 5 was used for all of 2016
19  ## Version 6 is the first version used in 2017
20  ## Version 7 was deployed June 8, 2017
21  PtAssignVersion = cms.int32(7),
22  ## 123456 is default (most up-to-date) firmware version
23  ## Versions < 50000 correspond to 2016 (labeled according to Alex's FW version number)
24  ## Versions > 50000 coorespond to 2017 (labeled automatically by timestamp)
25  FirmwareVersion = cms.int32(123456),
26  ## v0 corresponds to data/emtf_luts/ph_lut_v1, used for all of 2016
27  ## v1 corresponds to data/emtf_luts/ph_lut_v2, used at the beginning of 2017
28  PrimConvVersion = cms.int32(1)
29  )
30 
31 
32 ## Fills pT LUT XMLs ("forests") from the database
33 emtfForestsSource = cms.ESSource(
34  "EmptyESSource",
35  recordName = cms.string('L1TMuonEndCapForestRcd'),
36  iovIsRunNotTime = cms.bool(True),
37  firstValid = cms.vuint32(1)
38  )
39 
40 #emtfForestsDB = cms.ESSource(
41 # "PoolDBESSource",
42 # CondDB,
43 # toGet = cms.VPSet(
44 # cms.PSet(
45 # ## https://cms-conddb.cern.ch/cmsDbBrowser/search/Prod/L1TMuonEndCapForest
46 # record = cms.string("L1TMuonEndCapForestRcd"),
47 #
48 # # ## v5 EMTF pT LUTs from ~August 2016
49 # # tag = cms.string("L1TMuonEndCapForest_static_2016_mc")
50 # # ## v6 EMTF pT LUTs from May 24, 2017
51 # # tag = cms.string("L1TMuonEndCapForest_static_Sq_20170523_mc")
52 # ## v7 EMTF pT LUTs from June 7, 2017 - AWB 07.06.17
53 # tag = cms.string("L1TMuonEndCapForest_static_Sq_20170613_v7_mc")
54 # )
55 # )
56 # )
57 
58 # ## EMTF ESProducer. Fills CondFormats from local XML files instead of database.
59 # emtfForests = cms.ESProducer(
60 # "L1TMuonEndCapForestESProducer",
61 # PtAssignVersion = cms.int32(7),
62 # bdtXMLDir = cms.string("2017_v7")
63 # )