Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:57

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 from DQM.EcalMonitorTasks.EnergyTask_cfi import ecalEnergyTask
0005 from DQM.EcalMonitorTasks.IntegrityTask_cfi import ecalIntegrityTask
0006 from DQM.EcalMonitorTasks.LaserTask_cfi import ecalLaserTask
0007 from DQM.EcalMonitorTasks.LedTask_cfi import ecalLedTask
0008 from DQM.EcalMonitorTasks.OccupancyTask_cfi import ecalOccupancyTask
0009 from DQM.EcalMonitorTasks.PedestalTask_cfi import ecalPedestalTask
0010 from DQM.EcalMonitorTasks.PresampleTask_cfi import ecalPresampleTask
0011 from DQM.EcalMonitorTasks.PNDiodeTask_cfi import ecalPnDiodeTask
0012 from DQM.EcalMonitorTasks.RawDataTask_cfi import ecalRawDataTask
0013 from DQM.EcalMonitorTasks.TestPulseTask_cfi import ecalTestPulseTask
0014 from DQM.EcalMonitorTasks.TimingTask_cfi import ecalTimingTask
0015 from DQM.EcalMonitorClient.IntegrityClient_cfi import ecalIntegrityClient
0016 from DQM.EcalMonitorClient.LaserClient_cfi import ecalLaserClient
0017 from DQM.EcalMonitorClient.LedClient_cfi import ecalLedClient
0018 from DQM.EcalMonitorClient.PedestalClient_cfi import ecalPedestalClient
0019 from DQM.EcalMonitorClient.PresampleClient_cfi import ecalPresampleClient
0020 from DQM.EcalMonitorClient.PNIntegrityClient_cfi import ecalPnIntegrityClient
0021 from DQM.EcalMonitorClient.TestPulseClient_cfi import ecalTestPulseClient
0022 from DQM.EcalMonitorClient.TimingClient_cfi import ecalTimingClient
0023 
0024 energyTask = ecalEnergyTask.MEs
0025 integrityTask = ecalIntegrityTask.MEs
0026 laserTask = ecalLaserTask.MEs
0027 ledTask = ecalLedTask.MEs
0028 occupancyTask = ecalOccupancyTask.MEs
0029 pedestalTask = ecalPedestalTask.MEs
0030 presampleTask = ecalPresampleTask.MEs
0031 pnDiodeTask = ecalPnDiodeTask.MEs
0032 rawDataTask = ecalRawDataTask.MEs
0033 testPulseTask = ecalTestPulseTask.MEs
0034 timingTask = ecalTimingTask.MEs
0035 integrityClient = ecalIntegrityClient.MEs
0036 laserClient = ecalLaserClient.MEs
0037 ledClient = ecalLedClient.MEs
0038 pedestalClient = ecalPedestalClient.MEs
0039 presampleClient = ecalPresampleClient.MEs
0040 pnIntegrityClient = ecalPnIntegrityClient.MEs
0041 testPulseClient = ecalTestPulseClient.MEs
0042 timingClient = ecalTimingClient.MEs
0043 
0044 cosmic = "COSMIC"
0045 beam = "BEAM"
0046 laser = "LASER"
0047 led = "LED"
0048 testpulse = "TEST_PULSE"
0049 pedestal = "PEDESTAL"
0050 pedestalOffset = "PEDESTAL-OFFSET"
0051 physics = "PHYSICS"
0052 halo = "HALO"
0053 
0054 # run tags are only used if the DAQ failed to write the RunIOV
0055 # Otherwise existing IOV will be used
0056 
0057 ecalCondDBWriter = DQMEDHarvester("EcalCondDBWriter",
0058     DBName = cms.untracked.string(""),
0059     hostName = cms.untracked.string(""),
0060     hostPort = cms.untracked.int32(0),
0061     userName = cms.untracked.string(""),
0062     password = cms.untracked.string(""),
0063     location = cms.untracked.string(""), # tag for the run - where was the run taken?
0064     runType = cms.untracked.string(""), # tag for the run - what is the purpose of the run? 
0065     runGeneralTag = cms.untracked.string(""), # tag for the run - global or local?
0066     monRunGeneralTag = cms.untracked.string(""), # identifies the process writing into DB
0067     inputRootFiles = cms.untracked.vstring(),
0068     workerParams = cms.untracked.PSet(
0069         Integrity = cms.untracked.PSet(
0070             runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, pedestalOffset, led, physics),
0071             source = cms.untracked.PSet(
0072                 Quality = integrityClient.Quality,
0073                 Digi = occupancyTask.Digi,
0074                 Gain = integrityTask.Gain,
0075                 ChId = integrityTask.ChId,
0076                 GainSwitch = integrityTask.GainSwitch,
0077                 TowerId = integrityTask.TowerId,
0078                 BlockSize = integrityTask.BlockSize,
0079                 L1AFE = rawDataTask.L1AFE,
0080                 BXFE = rawDataTask.BXFE,
0081                 MEMDigi = pnDiodeTask.Occupancy,
0082                 MEMChId = pnDiodeTask.MEMChId,
0083                 MEMGain = pnDiodeTask.MEMGain,
0084                 PNQuality = pnIntegrityClient.QualitySummary,
0085                 MEMTowerId = pnDiodeTask.MEMTowerId,
0086                 MEMBlockSize = pnDiodeTask.MEMBlockSize
0087             )
0088         ),
0089         Laser = cms.untracked.PSet(
0090             runTypes = cms.untracked.vstring(cosmic, beam, laser, physics),
0091             source = cms.untracked.PSet(
0092                 Amplitude = laserTask.Amplitude,
0093                 AOverP = laserTask.AOverP,
0094                 Timing = laserTask.Timing,
0095                 Quality = laserClient.Quality,
0096                 PNAmplitude = laserTask.PNAmplitude,
0097                 PNQuality = laserClient.PNQualitySummary,
0098                 PNPedestal = pnDiodeTask.Pedestal
0099             )
0100         ),
0101         Pedestal = cms.untracked.PSet(
0102             runTypes = cms.untracked.vstring(pedestal),
0103             source = cms.untracked.PSet(
0104                 Pedestal = pedestalTask.Pedestal,
0105                 Quality = pedestalClient.Quality,
0106                 PNPedestal = pedestalTask.PNPedestal,
0107                 PNQuality = pedestalClient.PNQualitySummary
0108             )
0109         ),
0110         Presample = cms.untracked.PSet(
0111             runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, led, physics),
0112             source = cms.untracked.PSet(
0113                 Pedestal = presampleTask.Pedestal,
0114                 Quality = presampleClient.Quality
0115             )
0116         ),
0117         TestPulse = cms.untracked.PSet(
0118             runTypes = cms.untracked.vstring(cosmic, beam, testpulse, physics),
0119             source = cms.untracked.PSet(
0120                 Amplitude = testPulseTask.Amplitude,
0121                 Shape = testPulseTask.Shape,
0122                 Quality = testPulseClient.Quality,
0123                 PNAmplitude = testPulseTask.PNAmplitude,
0124                 PNPedestal = pnDiodeTask.Pedestal,
0125                 PNQuality = testPulseClient.PNQualitySummary
0126             )
0127         ),
0128         Timing = cms.untracked.PSet(
0129             runTypes = cms.untracked.vstring(beam, physics),
0130             source = cms.untracked.PSet(
0131                 Timing = timingTask.TimeMap,
0132                 Quality = timingClient.Quality
0133             )
0134         ),
0135         Led = cms.untracked.PSet(
0136             runTypes = cms.untracked.vstring(cosmic, beam, led, physics),
0137             source = cms.untracked.PSet(
0138                 Amplitude = ledTask.Amplitude,
0139                 AOverP = ledTask.AOverP,
0140                 Timing = ledTask.Timing,
0141                 Quality = ledClient.Quality
0142 # MON_PN_LED1_DAT and MON_PN_LED2_DAT do not exist in the DB as of September 2012                
0143 #                PNAmplitude = ledTask.PNAmplitude,
0144 #                PNQuality = ledClient.PNQualitySummary,
0145 #                PNPedestal = pnDiodeTask.Pedestal
0146             )
0147         ),
0148         Occupancy = cms.untracked.PSet(
0149             runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, pedestalOffset, led, physics),
0150             source = cms.untracked.PSet(
0151                 Occupancy = occupancyTask.Digi,
0152                 Energy = energyTask.HitMap
0153             )
0154         ),
0155         Summary = cms.untracked.PSet(
0156             runTypes = cms.untracked.vstring(cosmic, beam, laser, testpulse, pedestal, pedestalOffset, led, physics, halo)
0157         ),
0158         laserWavelengths = cms.untracked.vint32(1, 2, 3, 4),
0159         ledWavelengths = cms.untracked.vint32(1, 2),
0160         MGPAGains = cms.untracked.vint32(1, 6, 12),
0161         MGPAGainsPN = cms.untracked.vint32(1, 16)
0162     ),
0163     verbosity = cms.untracked.int32(0)
0164 )