File indexing completed on 2024-04-06 12:06:25
0001
0002
0003
0004
0005 import sys
0006 import FWCore.ParameterSet.Config as cms
0007 from Configuration.StandardSequences.Eras import eras
0008
0009 process = cms.Process("TEST", eras.Run3)
0010 process.load("Configuration.StandardSequences.GeometryDB_cff")
0011 process.load("CondCore.CondDB.CondDB_cfi")
0012 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi")
0013 process.l1GtUnpack.DaqGtInputTag = 'source'
0014
0015 process.load('Configuration.StandardSequences.Services_cff')
0016 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0017 process.load('FWCore.MessageService.MessageLogger_cfi')
0018 process.load('Configuration.EventContent.EventContent_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0020 process.load('Configuration.StandardSequences.Reconstruction_Data_cff')
0021 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0022
0023 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0024 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0025
0026 runnumber = sys.argv[1]
0027 rundir = sys.argv[2]
0028 histodir = sys.argv[3]
0029
0030
0031
0032
0033
0034
0035 process.maxEvents = cms.untracked.PSet(
0036
0037 input = cms.untracked.int32(-1)
0038 )
0039
0040 process.TFileService = cms.Service("TFileService",
0041 fileName = cms.string(histodir+'/LASER_'+runnumber+'.root')
0042
0043 )
0044
0045
0046
0047 process.source = cms.Source("HcalTBSource",
0048 skipBadFiles=cms.untracked.bool(True),
0049 firstLuminosityBlockForEachRun = cms.untracked.VLuminosityBlockID([]),
0050 firstRun = cms.untracked.uint32(331370),
0051
0052
0053 fileNames = cms.untracked.vstring(
0054 rundir+'/run'+runnumber+'/USC_'+runnumber+'.root'
0055
0056
0057
0058 ),
0059 secondaryFileNames = cms.untracked.vstring()
0060 )
0061
0062 process.Analyzer = cms.EDAnalyzer("CMTRawAnalyzer",
0063
0064 Verbosity = cms.untracked.int32(0),
0065
0066
0067
0068
0069
0070
0071
0072
0073 MapCreation = cms.untracked.int32(1),
0074
0075 recordNtuples = cms.untracked.bool(False),
0076
0077 maxNeventsInNtuple = cms.int32(1),
0078
0079
0080 recordHistoes = cms.untracked.bool(True),
0081
0082
0083 studyRunDependenceHist = cms.untracked.bool(True),
0084
0085
0086
0087 studyCapIDErrorsHist = cms.untracked.bool(True),
0088
0089
0090
0091 studyRMSshapeHist = cms.untracked.bool(True),
0092
0093
0094
0095 studyRatioShapeHist = cms.untracked.bool(True),
0096
0097
0098
0099 studyADCAmplHist = cms.untracked.bool(True),
0100
0101
0102
0103 studyTSmeanShapeHist = cms.untracked.bool(True),
0104
0105
0106
0107 studyTSmaxShapeHist = cms.untracked.bool(True),
0108
0109
0110
0111 studyCalibCellsHist = cms.untracked.bool(True),
0112
0113
0114
0115 studyDiffAmplHist = cms.untracked.bool(True),
0116
0117
0118
0119 studyPedestalsHist = cms.untracked.bool(True),
0120
0121
0122
0123 studyPedestalCorrelations = cms.untracked.bool(True),
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140
0141
0142
0143 ratioHBMin = cms.double(0.50),
0144 ratioHBMax = cms.double(1.00),
0145 ratioHEMin = cms.double(0.55),
0146 ratioHEMax = cms.double(1.00),
0147 ratioHFMin = cms.double(0.60),
0148 ratioHFMax = cms.double(1.02),
0149 ratioHOMin = cms.double(0.55),
0150 ratioHOMax = cms.double(1.04),
0151
0152
0153 rmsHBMin = cms.double(0.3),
0154 rmsHBMax = cms.double(2.5),
0155 rmsHEMin = cms.double(0.9),
0156 rmsHEMax = cms.double(3.6),
0157 rmsHFMin = cms.double(0.2),
0158 rmsHFMax = cms.double(2.1),
0159 rmsHOMin = cms.double(0.2),
0160 rmsHOMax = cms.double(2.6),
0161
0162
0163 TSmeanHBMin = cms.double(5.0),
0164 TSmeanHBMax = cms.double(7.5),
0165 TSmeanHEMin = cms.double(2.5),
0166 TSmeanHEMax = cms.double(6.5),
0167 TSmeanHFMin = cms.double(5.5),
0168 TSmeanHFMax = cms.double(8.5),
0169 TSmeanHOMin = cms.double(1.5),
0170 TSmeanHOMax = cms.double(4.4),
0171
0172
0173 TSpeakHBMin = cms.double(1.8),
0174 TSpeakHBMax = cms.double(8.5),
0175 TSpeakHEMin = cms.double(1.5),
0176 TSpeakHEMax = cms.double(8.5),
0177 TSpeakHFMin = cms.double(1.5),
0178 TSpeakHFMax = cms.double(8.5),
0179 TSpeakHOMin = cms.double(0.5),
0180 TSpeakHOMax = cms.double(6.5),
0181
0182
0183 ADCAmplHBMin = cms.double(10000.),
0184 ADCAmplHBMax = cms.double(300000.),
0185 ADCAmplHEMin = cms.double(20000.),
0186 ADCAmplHEMax = cms.double(300000.),
0187 ADCAmplHFMin = cms.double(50.),
0188 ADCAmplHFMax = cms.double(9000.),
0189 ADCAmplHOMin = cms.double(50.),
0190 ADCAmplHOMax = cms.double(9000.),
0191
0192
0193
0194 pedestalwHBMax = cms.double(0.1),
0195 pedestalwHEMax = cms.double(0.1),
0196 pedestalwHFMax = cms.double(0.4),
0197 pedestalwHOMax = cms.double(0.1),
0198
0199
0200 pedestalHBMax = cms.double(0.1),
0201 pedestalHEMax = cms.double(0.6),
0202 pedestalHFMax = cms.double(0.8),
0203 pedestalHOMax = cms.double(0.1),
0204
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215 calibrADCHBMin = cms.double(1000.),
0216 calibrADCHBMax = cms.double(100000000.),
0217 calibrADCHEMin = cms.double(1000.),
0218 calibrADCHEMax = cms.double(100000000.),
0219 calibrADCHOMin = cms.double(1000.),
0220 calibrADCHOMax = cms.double(100000000.),
0221 calibrADCHFMin = cms.double(100.),
0222 calibrADCHFMax = cms.double(100000000.),
0223
0224
0225 calibrRatioHBMin = cms.double(0.76),
0226 calibrRatioHBMax = cms.double(0.94),
0227 calibrRatioHEMin = cms.double(0.76),
0228 calibrRatioHEMax = cms.double(0.94),
0229 calibrRatioHOMin = cms.double(0.85),
0230 calibrRatioHOMax = cms.double(0.99),
0231 calibrRatioHFMin = cms.double(0.5),
0232 calibrRatioHFMax = cms.double(0.8),
0233
0234 calibrTSmaxHBMin = cms.double(1.50),
0235 calibrTSmaxHBMax = cms.double(2.50),
0236 calibrTSmaxHEMin = cms.double(1.50),
0237 calibrTSmaxHEMax = cms.double(2.50),
0238 calibrTSmaxHOMin = cms.double(1.50),
0239 calibrTSmaxHOMax = cms.double(2.50),
0240 calibrTSmaxHFMin = cms.double(3.50),
0241 calibrTSmaxHFMax = cms.double(4.50),
0242
0243 calibrTSmeanHBMin = cms.double(2.40),
0244 calibrTSmeanHBMax = cms.double(3.70),
0245 calibrTSmeanHEMin = cms.double(2.40),
0246 calibrTSmeanHEMax = cms.double(3.70),
0247 calibrTSmeanHOMin = cms.double(1.50),
0248 calibrTSmeanHOMax = cms.double(2.70),
0249 calibrTSmeanHFMin = cms.double(3.50),
0250 calibrTSmeanHFMax = cms.double(4.50),
0251
0252 calibrWidthHBMin = cms.double(1.30),
0253 calibrWidthHBMax = cms.double(1.90),
0254 calibrWidthHEMin = cms.double(1.30),
0255 calibrWidthHEMax = cms.double(1.90),
0256 calibrWidthHOMin = cms.double(0.70),
0257 calibrWidthHOMax = cms.double(1.65),
0258 calibrWidthHFMin = cms.double(0.30),
0259 calibrWidthHFMax = cms.double(1.50),
0260
0261
0262
0263
0264
0265
0266 flagtoaskrunsorls = cms.int32(0),
0267
0268
0269
0270
0271 flagtodefinebadchannel = cms.int32(0),
0272
0273 howmanybinsonplots = cms.int32(25),
0274
0275
0276 lsmin = cms.int32(1),
0277
0278 lsmax = cms.int32(2600),
0279
0280 flagabortgaprejected = cms.int32(1),
0281 bcnrejectedlow = cms.int32(3446),
0282 bcnrejectedhigh= cms.int32(3564),
0283
0284
0285
0286 flagcpuoptimization = cms.int32(0),
0287
0288
0289
0290 flagestimatornormalization = cms.int32(1),
0291
0292
0293
0294
0295
0296 lsdep_cut1_peak_HBdepth1 = cms.int32(20),
0297 lsdep_cut1_peak_HBdepth2 = cms.int32(7),
0298 lsdep_cut1_peak_HEdepth1 = cms.int32(16),
0299 lsdep_cut1_peak_HEdepth2 = cms.int32(13),
0300 lsdep_cut1_peak_HEdepth3 = cms.int32(4),
0301 lsdep_cut1_peak_HFdepth1 = cms.int32(10),
0302 lsdep_cut1_peak_HFdepth2 = cms.int32(5),
0303 lsdep_cut1_peak_HOdepth4 = cms.int32(45),
0304
0305 lsdep_cut3_max_HBdepth1 = cms.int32(19),
0306 lsdep_cut3_max_HBdepth2 = cms.int32(6),
0307 lsdep_cut3_max_HEdepth1 = cms.int32(15),
0308 lsdep_cut3_max_HEdepth2 = cms.int32(12),
0309 lsdep_cut3_max_HEdepth3 = cms.int32(3),
0310 lsdep_cut3_max_HFdepth1 = cms.int32(9),
0311 lsdep_cut3_max_HFdepth2 = cms.int32(4),
0312 lsdep_cut3_max_HOdepth4 = cms.int32(40),
0313
0314
0315
0316
0317
0318
0319
0320
0321
0322 lsdep_estimator1_HBdepth1 = cms.double(2500.),
0323 lsdep_estimator1_HBdepth2 = cms.double(2500.),
0324 lsdep_estimator1_HBdepth3 = cms.double(2500.),
0325 lsdep_estimator1_HBdepth4 = cms.double(2500.),
0326 lsdep_estimator1_HEdepth1 = cms.double(2500.),
0327 lsdep_estimator1_HEdepth2 = cms.double(2500.),
0328 lsdep_estimator1_HEdepth3 = cms.double(2500.),
0329 lsdep_estimator1_HEdepth4 = cms.double(2500.),
0330 lsdep_estimator1_HEdepth5 = cms.double(2500.),
0331 lsdep_estimator1_HEdepth6 = cms.double(2500.),
0332 lsdep_estimator1_HEdepth7 = cms.double(2500.),
0333 lsdep_estimator1_HFdepth1 = cms.double(2500.),
0334 lsdep_estimator1_HFdepth2 = cms.double(2500.),
0335 lsdep_estimator1_HFdepth3 = cms.double(2500.),
0336 lsdep_estimator1_HFdepth4 = cms.double(2500.),
0337 lsdep_estimator1_HOdepth4 = cms.double(2500.),
0338
0339 lsdep_estimator2_HBdepth1 = cms.double(7.),
0340 lsdep_estimator2_HBdepth2 = cms.double(7.),
0341 lsdep_estimator2_HEdepth1 = cms.double(7.),
0342 lsdep_estimator2_HEdepth2 = cms.double(7.),
0343 lsdep_estimator2_HEdepth3 = cms.double(7.),
0344 lsdep_estimator2_HFdepth1 = cms.double(7.),
0345 lsdep_estimator2_HFdepth2 = cms.double(7.),
0346 lsdep_estimator2_HOdepth4 = cms.double(7.),
0347
0348 lsdep_estimator3_HBdepth1 = cms.double(7.),
0349 lsdep_estimator3_HBdepth2 = cms.double(7.),
0350 lsdep_estimator3_HEdepth1 = cms.double(7.),
0351 lsdep_estimator3_HEdepth2 = cms.double(7.),
0352 lsdep_estimator3_HEdepth3 = cms.double(7.),
0353 lsdep_estimator3_HFdepth1 = cms.double(7.),
0354 lsdep_estimator3_HFdepth2 = cms.double(7.),
0355 lsdep_estimator3_HOdepth4 = cms.double(7.),
0356
0357 lsdep_estimator4_HBdepth1 = cms.double(5.),
0358 lsdep_estimator4_HBdepth2 = cms.double(5.),
0359 lsdep_estimator4_HEdepth1 = cms.double(5.),
0360 lsdep_estimator4_HEdepth2 = cms.double(5.),
0361 lsdep_estimator4_HEdepth3 = cms.double(5.),
0362 lsdep_estimator4_HFdepth1 = cms.double(5.),
0363 lsdep_estimator4_HFdepth2 = cms.double(5.),
0364 lsdep_estimator4_HOdepth4 = cms.double(5.),
0365
0366 lsdep_estimator5_HBdepth1 = cms.double(1.8),
0367 lsdep_estimator5_HBdepth2 = cms.double(1.8),
0368 lsdep_estimator5_HEdepth1 = cms.double(1.8),
0369 lsdep_estimator5_HEdepth2 = cms.double(1.8),
0370 lsdep_estimator5_HEdepth3 = cms.double(1.8),
0371 lsdep_estimator5_HFdepth1 = cms.double(1.8),
0372 lsdep_estimator5_HFdepth2 = cms.double(1.8),
0373 lsdep_estimator5_HOdepth4 = cms.double(1.8),
0374
0375
0376
0377
0378
0379
0380
0381 useADCmassive = cms.untracked.bool(True),
0382 useADCfC = cms.untracked.bool(False),
0383 useADCcounts = cms.untracked.bool(False),
0384
0385
0386
0387 usePedestalSubtraction = cms.untracked.bool(False),
0388
0389
0390
0391
0392 forallestimators_amplitude_bigger = cms.double(-100.),
0393
0394
0395
0396 flagToUseDigiCollectionsORNot = cms.int32(1),
0397
0398
0399 usecontinuousnumbering = cms.untracked.bool(True),
0400
0401
0402
0403 hcalCalibDigiCollectionTag = cms.InputTag('hcalDigis'),
0404 hbheDigiCollectionTag = cms.InputTag('hcalDigis'),
0405 hoDigiCollectionTag = cms.InputTag('hcalDigis'),
0406 hfDigiCollectionTag = cms.InputTag('hcalDigis'),
0407
0408
0409
0410
0411
0412 hbheQIE11DigiCollectionTag = cms.InputTag('hcalDigis'),
0413 hbheQIE10DigiCollectionTag = cms.InputTag('hcalDigis'),
0414
0415
0416
0417
0418
0419
0420
0421
0422
0423
0424
0425
0426
0427
0428
0429
0430
0431
0432 flagupgradeqie1011 = cms.int32(6),
0433
0434
0435 flaguseshunt = cms.int32(6),
0436
0437 flagsipmcorrection = cms.int32(1),
0438
0439
0440
0441
0442 flagLaserRaddam = cms.int32(1),
0443
0444 flagfitshunt1pedorledlowintensity = cms.int32(0),
0445
0446 splashesUpperLimit = cms.int32(10000),
0447
0448
0449
0450 flagIterativeMethodCalibrationGroupDigi = cms.int32(1),
0451
0452
0453 flagIterativeMethodCalibrationGroupReco = cms.int32(1),
0454
0455 hbheInputSignalTag = cms.InputTag('hbherecoMBNZS'),
0456 hbheInputNoiseTag = cms.InputTag('hbherecoNoise'),
0457 hfInputSignalTag = cms.InputTag('hfrecoMBNZS'),
0458 hfInputNoiseTag = cms.InputTag('hfrecoNoise'),
0459
0460
0461
0462
0463
0464
0465
0466
0467
0468
0469
0470
0471
0472 )
0473
0474 process.hcal_db_producer = cms.ESProducer("HcalDbProducer",
0475 dump = cms.untracked.vstring(''),
0476 file = cms.untracked.string('')
0477 )
0478 process.es_hardcode = cms.ESSource("HcalHardcodeCalibrations",
0479 toGet = cms.untracked.vstring('QIEShape',
0480 'QIEData',
0481 'ChannelQuality',
0482 'HcalQIEData',
0483 'Pedestals',
0484 'PedestalWidths',
0485 'Gains',
0486 'GainWidths',
0487 'ZSThresholds',
0488 'RespCorrs')
0489 )
0490
0491
0492
0493
0494
0495
0496
0497
0498
0499
0500
0501
0502
0503
0504
0505
0506
0507
0508
0509
0510
0511
0512
0513
0514
0515
0516
0517
0518
0519
0520
0521
0522
0523
0524
0525
0526
0527 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0528 from Configuration.AlCa.autoCond import autoCond
0529
0530
0531 process.GlobalTag.globaltag = '106X_dataRun3_HLT_v3'
0532
0533
0534
0535
0536
0537
0538
0539
0540
0541
0542
0543
0544
0545
0546
0547
0548
0549
0550
0551
0552
0553 process.load('Configuration.StandardSequences.RawToDigi_Data_cff')
0554 process.hcalDigis.FilterDataQuality = cms.bool(False)
0555 process.hcalDigis.InputLabel = cms.InputTag("source")
0556
0557 process.load('EventFilter.HcalRawToDigi.hcalRawToDigi_cfi')
0558 process.hcalDigis= process.hcalRawToDigi.clone(
0559 FilterDataQuality = False,
0560 InputLabel = "source",
0561
0562 )
0563
0564
0565 process.load("Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalPedestalLocal_cff")
0566
0567
0568
0569
0570
0571
0572 process.p = cms.Path(process.hcalDigis*process.seqALCARECOHcalCalMinBiasDigiNoHLT*process.seqALCARECOHcalCalMinBias*process.Analyzer)
0573
0574
0575
0576
0577 process.MessageLogger = cms.Service("MessageLogger",
0578 categories = cms.untracked.vstring(''),
0579 destinations = cms.untracked.vstring('cout'),
0580 debugModules = cms.untracked.vstring('*'),
0581 cout = cms.untracked.PSet(
0582 threshold = cms.untracked.string('WARNING'),
0583 WARNING = cms.untracked.PSet(limit = cms.untracked.int32(0))
0584 )
0585 )
0586
0587
0588
0589