CMS 3D CMS Logo

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