Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CREATESQLITE")
0004 process.load("CondCore.CondDB.CondDB_cfi")
0005 process.load('Configuration.StandardSequences.GeometryDB_cff')
0006 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0007 from Configuration.AlCa.autoCond import autoCond
0008 process.GlobalTag.globaltag = autoCond['phase2_realistic']
0009 
0010 process.CondDB.connect = 'sqlite_file:MuonSystemAging.db'
0011 
0012 process.source = cms.Source("EmptyIOVSource",
0013     lastValue = cms.uint64(1),
0014     timetype = cms.string('runnumber'),
0015     firstValue = cms.uint64(1),
0016     interval = cms.uint64(1)
0017 )
0018 
0019 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0020     process.CondDB,
0021     timetype = cms.untracked.string('runnumber'),
0022     toPut = cms.VPSet(cms.PSet(
0023         record = cms.string('MuonSystemAgingRcd'),
0024         tag = cms.string('MuonSystemAging_test')
0025     ))
0026 )
0027 
0028 process.produceAgingObject = cms.EDAnalyzer("ProduceAgingObject",
0029 
0030             maskedGEMIDs = cms.vint32([
0031             671105280,671121664,671105792,671122176,671106304,671122688,671106816,
0032             671123200,671107328,671123712,671107840,671124224,671108352,671124736,
0033             671105794,671122178,671105282,671121666,671106306,671122690,671106818,
0034             671123202,671107330,671123714,671107842,671124226,671108354,671124738,
0035             671105056, 671121440, 671105568, 671121952, 671106080, 671122464, 
0036             671106592, 671122976, 671107104, 671123488, 671107616, 671124000, 
0037             671105058, 671121442, 671105570, 671121954, 671106082, 671122466, 
0038             671106594, 671122978, 671107106, 671123490, 671107618, 671124002, 
0039             ]),
0040 
0041             # GE11MinusIDs
0042             # cms.vint32([
0043             # 671105280,671121664,671105792,671122176,671106304,671122688,671106816,
0044             # 671123200,671107328,671123712,671107840,671124224,671108352,671124736,
0045             # 671108864,671125248,671109376,671125760,671109888,671126272,671110400,
0046             # 671126784,671110912,671127296,671111424,671127808,671111936,671128320,
0047             # 671112448,671128832,671112960,671129344,671113472,671129856,671113984,
0048             # 671130368,671105024,671121408,671105536,671121920,671106048,671122432,
0049             # 671106560,671122944,671107072,671123456,671107584,671123968,671108096,
0050             # 671124480,671108608,671124992,671109120,671125504,671109632,671126016,
0051             # 671110144,671126528,671110656,671127040,671111168,671127552,671111680,
0052             # 671128064,671112192,671128576,671112704,671129088,671113216,671129600,
0053             # 671113728,671130112
0054             # ]),
0055 
0056             # GE11PlusIDs 
0057             # cms.vint32([
0058             # 671105794,671122178,671105282,671121666,671106306,671122690,671106818,
0059             # 671123202,671107330,671123714,671107842,671124226,671108354,671124738,
0060             # 671108866,671125250,671109378,671125762,671109890,671126274,671110402,
0061             # 671126786,671110914,671127298,671111426,671127810,671111938,671128322,
0062             # 671112450,671128834,671112962,671129346,671113474,671129858,671113986,
0063             # 671130370,671105026,671121410,671105538,671121922,671106050,671122434,
0064             # 671106562,671122946,671107074,671123458,671107586,671123970,671108098,
0065             # 671124482,671108610,671124994,671109122,671125506,671109634,671126018,
0066             # 671110146,671126530,671110658,671127042,671111170,671127554,671111682,
0067             # 671128066,671112194,671128578,671112706,671129090,671113218,671129602,
0068             # 671113730,671130114
0069             # ]),
0070 
0071             # GE21MinusIDs 
0072             # cms.vint32([
0073             # 671105056, 671121440, 671105568, 671121952, 671106080, 671122464, 
0074             # 671106592, 671122976, 671107104, 671123488, 671107616, 671124000, 
0075             # 671108128, 671124512, 671108640, 671125024, 671109152, 671125536, 
0076             # 671105312, 671121696, 671105824, 671122208, 671106336, 671122720, 
0077             # 671106848, 671123232, 671107360, 671123744, 671107872, 671124256, 
0078             # 671108384, 671124768, 671108896, 671125280, 671109408, 671125792
0079             # ]),
0080 
0081             # GE21PlusIDs 
0082             # cms.vint32([
0083             # 671105058, 671121442, 671105570, 671121954, 671106082, 671122466, 
0084             # 671106594, 671122978, 671107106, 671123490, 671107618, 671124002, 
0085             # 671108130, 671124514, 671108642, 671125026, 671109154, 671125538, 
0086             # 671105314, 671121698, 671105826, 671122210, 671106338, 671122722, 
0087             # 671106850, 671123234, 671107362, 671123746, 671107874, 671124258, 
0088             # 671108386, 671124770, 671108898, 671125282, 671109410, 671125794
0089             # ]),
0090 
0091             maskedME0IDs = cms.vint32([]),
0092             
0093             # Accept lists or regular expression as from:
0094             # http://www.cplusplus.com/reference/regex/ECMAScript/
0095             dtRegEx = cms.vstring([
0096             # A chamber by chamber list in format CHAMBER:EFF
0097 
0098             # MB4 of top sectors with EFF = 0
0099             "WH-2_ST4_SEC2$:0.","WH-2_ST4_SEC3$:0.","WH-2_ST4_SEC4$:0.",
0100             "WH-2_ST4_SEC5$:0.","WH-2_ST4_SEC6$:0.","WH-1_ST4_SEC2$:0.",
0101             "WH-1_ST4_SEC3$:0.","WH-1_ST4_SEC4$:0.","WH-1_ST4_SEC5$:0.",
0102             "WH-1_ST4_SEC6$:0.","WH0_ST4_SEC2$:0.","WH0_ST4_SEC3$:0.",
0103             "WH0_ST4_SEC4$:0.","WH0_ST4_SEC5$:0.","WH0_ST4_SEC6$:0.",
0104             "WH1_ST4_SEC2$:0.","WH1_ST4_SEC3$:0.","WH1_ST4_SEC4$:0.",
0105             "WH1_ST4_SEC5$:0.","WH1_ST4_SEC6$:0.","WH2_ST4_SEC2$:0.",
0106             "WH2_ST4_SEC3$:0.","WH2_ST4_SEC4$:0.","WH2_ST4_SEC5$:0.",
0107             "WH2_ST4_SEC6$:0.",
0108             # MB1 of external wheels with EFF = 0
0109             "WH-2_ST1_SEC1$:0.","WH-2_ST1_SEC2$:0.","WH-2_ST1_SEC3$:0.",
0110             "WH-2_ST1_SEC4$:0.","WH-2_ST1_SEC5$:0.","WH-2_ST1_SEC6$:0.",
0111             "WH-2_ST1_SEC7$:0.","WH-2_ST1_SEC8$:0.","WH-2_ST1_SEC9$:0.",
0112             "WH-2_ST1_SEC10$:0.","WH-2_ST1_SEC11$:0.","WH-2_ST1_SEC12$:0.",
0113             "WH2_ST1_SEC1$:0.","WH2_ST1_SEC2$:0.","WH2_ST1_SEC3$:0.",
0114             "WH2_ST1_SEC4$:0.","WH2_ST1_SEC5$:0.","WH2_ST1_SEC6$:0.",
0115             "WH2_ST1_SEC7$:0.","WH2_ST1_SEC8$:0.","WH2_ST1_SEC9$:0.",
0116             "WH2_ST1_SEC10$:0.","WH2_ST1_SEC11$:0.","WH2_ST1_SEC12$:0.",
0117             # 5 MB2s of external wheels with EFF = 0
0118             "WH2_ST2_SEC3$:0.","WH2_ST2_SEC6$:0.","WH2_ST2_SEC9$:0.",
0119             "WH-2_ST2_SEC2$:0.","WH-2_ST2_SEC4$:0.",
0120             # more sparse failures with EFF = 0
0121             "WH-2_ST2_SEC8$:0.","WH-1_ST1_SEC1$:0.","WH-1_ST2_SEC1$:0.",
0122             "WH-1_ST1_SEC4$:0.","WH-1_ST3_SEC7$:0.","WH0_ST2_SEC2$:0.",
0123             "WH0_ST3_SEC5$:0.","WH0_ST4_SEC12$:0.","WH1_ST1_SEC6$:0.",
0124             "WH1_ST1_SEC10$:0.","WH1_ST3_SEC3$:0."
0125 
0126             # Or a RegEx setting efficiency  for all chamber to 10%
0127             #"(WH-?\\\d_ST\\\d_SEC\\\\d+):0.1"
0128             ]),
0129             
0130             cscRegEx = cms.vstring([
0131             # # Set 70% type-2 efficiency on ME-1
0132             # "(ME[-]1/\\\d/\\\\d+):2,0.7",
0133 
0134             # # Set 30% type-1 efficiency on ME- endcap
0135             # "(-\\\d/\\\d/\\\\d+):1,0.3",
0136 
0137             # type-xy efficiency: x is layer (0 for chamber), 
0138             # y = 0,1,2 for all digis, strip digis, wire digis
0139             # Set 0% type-1 efficiency on ME+1/1/10A --> No strip digis
0140             # "ME\\\+1/4/10:1,0.0",
0141             # Set 0% type-1 efficiency on ME+1/1/10B --> No strip digis
0142             "ME\\\+1/1/10:1,0.0",
0143             # Set 0% type-0 efficiency on ME+1/2/4 --> No digis
0144             "ME\\\+1/2/4:0,0.0",
0145             # Set 0% type-2 efficiency on ME+1/2/15 --> No wire digis
0146             "ME\\\+1/2/15:2,0.0",
0147             # Set 0% type-31 efficiency on ME+1/2/26 --> No digis on layer 3
0148             "ME\\\+1/2/26:30,0.0", 
0149             # Set 0% type-31 efficiency on ME-1/2/7 --> No strip digis on layer 3
0150             "ME\\\-1/2/7:31,0.0",
0151             # Set 50% type-32 efficiency on ME-1/2/18 --> 50% wire digis on layer 3
0152             "ME\\\-1/2/18:32,0.5",
0153             ]),
0154 
0155            rpcRegEx = cms.vstring(["637570221:0.0","637602989:0.5","637569561:0.7"])
0156 
0157 
0158 )
0159 
0160 process.p = cms.Path(process.produceAgingObject)
0161