CMS 3D CMS Logo

EcalCondDBWriter_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
3 
4 from DQM.EcalMonitorTasks.EnergyTask_cfi import ecalEnergyTask
5 from DQM.EcalMonitorTasks.IntegrityTask_cfi import ecalIntegrityTask
6 from DQM.EcalMonitorTasks.LaserTask_cfi import ecalLaserTask
7 from DQM.EcalMonitorTasks.LedTask_cfi import ecalLedTask
8 from DQM.EcalMonitorTasks.OccupancyTask_cfi import ecalOccupancyTask
9 from DQM.EcalMonitorTasks.PedestalTask_cfi import ecalPedestalTask
10 from DQM.EcalMonitorTasks.PresampleTask_cfi import ecalPresampleTask
11 from DQM.EcalMonitorTasks.PNDiodeTask_cfi import ecalPnDiodeTask
12 from DQM.EcalMonitorTasks.RawDataTask_cfi import ecalRawDataTask
13 from DQM.EcalMonitorTasks.TestPulseTask_cfi import ecalTestPulseTask
14 from DQM.EcalMonitorTasks.TimingTask_cfi import ecalTimingTask
15 from DQM.EcalMonitorClient.IntegrityClient_cfi import ecalIntegrityClient
16 from DQM.EcalMonitorClient.LaserClient_cfi import ecalLaserClient
17 from DQM.EcalMonitorClient.LedClient_cfi import ecalLedClient
18 from DQM.EcalMonitorClient.PedestalClient_cfi import ecalPedestalClient
19 from DQM.EcalMonitorClient.PresampleClient_cfi import ecalPresampleClient
20 from DQM.EcalMonitorClient.PNIntegrityClient_cfi import ecalPnIntegrityClient
21 from DQM.EcalMonitorClient.TestPulseClient_cfi import ecalTestPulseClient
22 from DQM.EcalMonitorClient.TimingClient_cfi import ecalTimingClient
23 
24 energyTask = ecalEnergyTask.MEs
25 integrityTask = ecalIntegrityTask.MEs
26 laserTask = ecalLaserTask.MEs
27 ledTask = ecalLedTask.MEs
28 occupancyTask = ecalOccupancyTask.MEs
29 pedestalTask = ecalPedestalTask.MEs
30 presampleTask = ecalPresampleTask.MEs
31 pnDiodeTask = ecalPnDiodeTask.MEs
32 rawDataTask = ecalRawDataTask.MEs
33 testPulseTask = ecalTestPulseTask.MEs
34 timingTask = ecalTimingTask.MEs
35 integrityClient = ecalIntegrityClient.MEs
36 laserClient = ecalLaserClient.MEs
37 ledClient = ecalLedClient.MEs
38 pedestalClient = ecalPedestalClient.MEs
39 presampleClient = ecalPresampleClient.MEs
40 pnIntegrityClient = ecalPnIntegrityClient.MEs
41 testPulseClient = ecalTestPulseClient.MEs
42 timingClient = ecalTimingClient.MEs
43 
44 cosmic = "COSMIC"
45 beam = "BEAM"
46 laser = "LASER"
47 led = "LED"
48 testpulse = "TEST_PULSE"
49 pedestal = "PEDESTAL"
50 pedestalOffset = "PEDESTAL-OFFSET"
51 physics = "PHYSICS"
52 halo = "HALO"
53 
54 # run tags are only used if the DAQ failed to write the RunIOV
55 # Otherwise existing IOV will be used
56 
57 ecalCondDBWriter = DQMEDHarvester("EcalCondDBWriter",
58  DBName = cms.untracked.string(""),
59  hostName = cms.untracked.string(""),
60  hostPort = cms.untracked.int32(0),
61  userName = cms.untracked.string(""),
62  password = cms.untracked.string(""),
63  location = cms.untracked.string(""), # tag for the run - where was the run taken?
64  runType = cms.untracked.string(""), # tag for the run - what is the purpose of the run?
65  runGeneralTag = cms.untracked.string(""), # tag for the run - global or local?
66  monRunGeneralTag = cms.untracked.string(""), # identifies the process writing into DB
67  inputRootFiles = cms.untracked.vstring(),
68  workerParams = cms.untracked.PSet(
69  Integrity = cms.untracked.PSet(
70  runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, pedestalOffset, led, physics),
71  source = cms.untracked.PSet(
72  Quality = integrityClient.Quality,
73  Digi = occupancyTask.Digi,
74  Gain = integrityTask.Gain,
75  ChId = integrityTask.ChId,
76  GainSwitch = integrityTask.GainSwitch,
77  TowerId = integrityTask.TowerId,
78  BlockSize = integrityTask.BlockSize,
79  L1AFE = rawDataTask.L1AFE,
80  BXFE = rawDataTask.BXFE,
81  MEMDigi = pnDiodeTask.Occupancy,
82  MEMChId = pnDiodeTask.MEMChId,
83  MEMGain = pnDiodeTask.MEMGain,
84  PNQuality = pnIntegrityClient.QualitySummary,
85  MEMTowerId = pnDiodeTask.MEMTowerId,
86  MEMBlockSize = pnDiodeTask.MEMBlockSize
87  )
88  ),
89  Laser = cms.untracked.PSet(
90  runTypes = cms.untracked.vstring(cosmic, beam, laser, physics),
91  source = cms.untracked.PSet(
92  Amplitude = laserTask.Amplitude,
93  AOverP = laserTask.AOverP,
94  Timing = laserTask.Timing,
95  Quality = laserClient.Quality,
96  PNAmplitude = laserTask.PNAmplitude,
97  PNQuality = laserClient.PNQualitySummary,
98  PNPedestal = pnDiodeTask.Pedestal
99  )
100  ),
101  Pedestal = cms.untracked.PSet(
102  runTypes = cms.untracked.vstring(pedestal),
103  source = cms.untracked.PSet(
104  Pedestal = pedestalTask.Pedestal,
105  Quality = pedestalClient.Quality,
106  PNPedestal = pedestalTask.PNPedestal,
107  PNQuality = pedestalClient.PNQualitySummary
108  )
109  ),
110  Presample = cms.untracked.PSet(
111  runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, led, physics),
112  source = cms.untracked.PSet(
113  Pedestal = presampleTask.Pedestal,
114  Quality = presampleClient.Quality
115  )
116  ),
117  TestPulse = cms.untracked.PSet(
118  runTypes = cms.untracked.vstring(cosmic, beam, testpulse, physics),
119  source = cms.untracked.PSet(
120  Amplitude = testPulseTask.Amplitude,
121  Shape = testPulseTask.Shape,
122  Quality = testPulseClient.Quality,
123  PNAmplitude = testPulseTask.PNAmplitude,
124  PNPedestal = pnDiodeTask.Pedestal,
125  PNQuality = testPulseClient.PNQualitySummary
126  )
127  ),
128  Timing = cms.untracked.PSet(
129  runTypes = cms.untracked.vstring(beam, physics),
130  source = cms.untracked.PSet(
131  Timing = timingTask.TimeMap,
132  Quality = timingClient.Quality
133  )
134  ),
135  Led = cms.untracked.PSet(
136  runTypes = cms.untracked.vstring(cosmic, beam, led, physics),
137  source = cms.untracked.PSet(
138  Amplitude = ledTask.Amplitude,
139  AOverP = ledTask.AOverP,
140  Timing = ledTask.Timing,
141  Quality = ledClient.Quality
142 # MON_PN_LED1_DAT and MON_PN_LED2_DAT do not exist in the DB as of September 2012
143 # PNAmplitude = ledTask.PNAmplitude,
144 # PNQuality = ledClient.PNQualitySummary,
145 # PNPedestal = pnDiodeTask.Pedestal
146  )
147  ),
148  Occupancy = cms.untracked.PSet(
149  runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, pedestalOffset, led, physics),
150  source = cms.untracked.PSet(
151  Occupancy = occupancyTask.Digi,
152  Energy = energyTask.HitMap
153  )
154  ),
155  Summary = cms.untracked.PSet(
156  runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, pedestalOffset, led, physics, halo)
157  ),
158  laserWavelengths = cms.untracked.vint32(1, 2, 3, 4),
159  ledWavelengths = cms.untracked.vint32(1, 2),
160  MGPAGains = cms.untracked.vint32(1, 6, 12),
161  MGPAGainsPN = cms.untracked.vint32(1, 16)
162  ),
163  verbosity = cms.untracked.int32(0)
164 )
DQMEDHarvester
Definition: DQMEDHarvester.py:1