CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FCDTask.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 
5 # FCD channel coordinates (ieta, iphi, depth)
6 fcd_channels_tuple = [
7  (-1, 5, -98),
8  (-1, 6, -98),
9  (-1, 7, -98),
10  (-1, 8, -98),
11  (-1, 9, -98),
12  (-1, 10, -98),
13  (-1, 11, -98),
14  (-1, 12, -98),
15  (-1, 13, -98),
16  (-1, 14, -98),
17  (-1, 15, -98),
18  (-1, 16, -98),
19  (-1, 17, -98),
20  (-1, 18, -98),
21  (-1, 19, -98),
22  (-1, 20, -98),
23  (-1, 21, -98),
24  (-1, 22, -98),
25  (-1, 23, -98),
26  (-1, 24, -98),
27  (-1, 25, -98),
28  (-1, 26, -98),
29  (-1, 27, -98),
30  (-1, 28, -98),
31 ]
32 
33 fcd_channels_tuple = [
34  (38, 11, 0, 0),
35  (38, 11, 0, 1),
36  (38, 11, 0, 2),
37  (38, 11, 0, 3),
38  (38, 11, 1, 0),
39  (38, 11, 1, 1),
40  (38, 11, 1, 2),
41  (38, 11, 1, 3),
42  (38, 11, 2, 0),
43  (38, 11, 2, 1),
44  (38, 11, 2, 2),
45  (38, 11, 2, 3),
46  (38, 11, 3, 0),
47  (38, 11, 3, 1),
48  (38, 11, 3, 2),
49  (38, 11, 3, 3),
50  (38, 11, 4, 0),
51  (38, 11, 4, 1),
52  (38, 11, 4, 2),
53  (38, 11, 4, 3),
54  (38, 11, 5, 0),
55  (38, 11, 5, 1),
56  (38, 11, 5, 2),
57  (38, 11, 5, 3),
58 ]
59 
60 # Convert tuple to CMSSW object
61 fcd_channels = cms.PSet(
62  crate = cms.untracked.vint32(),
63  slot = cms.untracked.vint32(),
64  fiber = cms.untracked.vint32(),
65  fiber_channel = cms.untracked.vint32()
66 )
67 for channel in fcd_channels_tuple:
68  fcd_channels.crate.append(channel[0])
69  fcd_channels.slot.append(channel[1])
70  fcd_channels.fiber.append(channel[2])
71  fcd_channels.fiber_channel.append(channel[3])
72 
73 fcdTask = DQMEDAnalyzer(
74  "FCDTask",
75  # standard parameters
76  name = cms.untracked.string("FDCTask"),
77  debug = cms.untracked.int32(0),
78  runkeyVal = cms.untracked.int32(0),
79  runkeyName = cms.untracked.string("pp_run"),
80  ptype = cms.untracked.int32(0),
81  mtype = cms.untracked.bool(True),
82  subsystem = cms.untracked.string("Hcal"),
83 
84  # tags
85  tagFCDDigis = cms.untracked.InputTag('hcalDigis', 'ZDC'),
86 
87  fcdChannels = fcd_channels,
88 )