Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:31

0001 #eoscms ls -l /eos/cms/store/group/dpg_hcal/comm_hcal/USC/run327785/USC_327785.root
0002 # choose run in /store/group/dpg_hcal/comm_hcal/USC/
0003 #how to run: cmsRun remoteMonitoring_LED_era2019_cfg.py 331370 /store/group/dpg_hcal/comm_hcal/USC/ /afs/cern.ch/work/z/zhokin/hcal/voc2/CMSSW_11_1_0_pre3/src/DPGAnalysis/HcalTools/scripts/rmt
0004 # cmsRun remoteMonitoring_LEDReco_eraTEST2021_cfg.py 339246 /store/group/dpg_hcal/comm_hcal/USC/ /afs/cern.ch/work/z/zhokin/public/ &
0005 # cmsRun remoteMonitoring_LED_eraTEST2021_cfg.py 339246 /store/group/dpg_hcal/comm_hcal/USC/ ~/qq7/test/ &
0006 
0007 
0008 import sys
0009 import FWCore.ParameterSet.Config as cms
0010 from Configuration.StandardSequences.Eras import eras
0011 #process = cms.Process("TEST", eras.Run2_2018)
0012 
0013 process = cms.Process("TEST", eras.Run3)
0014 process.load("Configuration.StandardSequences.GeometryDB_cff")
0015 process.load("CondCore.CondDB.CondDB_cfi")
0016 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi")
0017 process.l1GtUnpack.DaqGtInputTag = 'source'
0018 # from RelValAlCaPedestal_cfg_2018.py
0019 process.load('Configuration.StandardSequences.Services_cff')
0020 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0021 process.load('FWCore.MessageService.MessageLogger_cfi')
0022 process.load('Configuration.EventContent.EventContent_cff')
0023 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0024 process.load('Configuration.StandardSequences.Reconstruction_Data_cff')
0025 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0026 #process.load('RecoLocalCalo.Configuration.hcalLocalReco_cff')
0027 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0028 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031 #    input = cms.untracked.int32(100)
0032   input = cms.untracked.int32(-1)
0033   )
0034 
0035 process.source = cms.Source("PoolSource",
0036                             skipBadFiles=cms.untracked.bool(True),
0037 #                            firstLuminosityBlockForEachRun = cms.untracked.VLuminosityBlockID([]),
0038 #                            firstRun = cms.untracked.uint32(331370),
0039     fileNames = cms.untracked.vstring(
0040 '/store/data/Commissioning2021/HcalNZS/RAW/v1/000/346/511/00000/f0bffccf-78f2-4a10-88bc-3fc17bd1ee37.root'
0041 ), 
0042                             secondaryFileNames = cms.untracked.vstring()
0043                             )
0044 
0045 process.Analyzer = cms.EDAnalyzer("CMTRawAnalyzer",
0046                                   #
0047                                   Verbosity = cms.untracked.int32(0),
0048                                   #Verbosity = cms.untracked.int32(-9062),
0049                                   #Verbosity = cms.untracked.int32(-9063),
0050                                   #Verbosity = cms.untracked.int32(-9064),
0051                                   #Verbosity = cms.untracked.int32(-9065),
0052                                   #Verbosity = cms.untracked.int32(-84),
0053                                   #Verbosity = cms.untracked.int32(-91),
0054                                   #Verbosity = cms.untracked.int32(-92),
0055                                   #
0056                                   MapCreation = cms.untracked.int32(1),
0057                                   #
0058                                   recordNtuples = cms.untracked.bool(False),
0059                                   #recordNtuples = cms.untracked.bool(True),
0060                                   maxNeventsInNtuple = cms.int32(1),
0061                                   #
0062                                   #recordHistoes = cms.untracked.bool(False),
0063                                   recordHistoes = cms.untracked.bool(True),
0064                                   #
0065                                   ##scripts: zRunRatio34.C, zRunNbadchan.C
0066                                   studyRunDependenceHist = cms.untracked.bool(True),
0067                                   #studyRunDependenceHist = cms.untracked.bool(False),
0068                                   #
0069                                   ##scripts: zerrors.C
0070                                   studyCapIDErrorsHist = cms.untracked.bool(True),
0071                                   #studyCapIDErrorsHist = cms.untracked.bool(False),
0072                                   #
0073                                   ##scripts: zrms.C
0074                                   studyRMSshapeHist = cms.untracked.bool(True),
0075                                   #studyRMSshapeHist = cms.untracked.bool(False),
0076                                   #
0077                                   ##scripts: zratio34.C
0078                                   studyRatioShapeHist = cms.untracked.bool(True),
0079                                   #studyRatioShapeHist = cms.untracked.bool(False),
0080                                   #
0081                                   ##scripts: zadcamplitude.C
0082                                   studyADCAmplHist = cms.untracked.bool(True),
0083                                   #studyADCAmplHist = cms.untracked.bool(False),
0084                                   #
0085                                   ##scripts: ztsmean.C
0086                                   studyTSmeanShapeHist = cms.untracked.bool(True),
0087                                   #studyTSmeanShapeHist = cms.untracked.bool(False),
0088                                   #
0089                                   ##scripts: ztsmaxa.C
0090                                   studyTSmaxShapeHist = cms.untracked.bool(True),
0091                                   #studyTSmaxShapeHist = cms.untracked.bool(False),
0092                                   #
0093                                   ##scripts: zcalib....C
0094                                   studyCalibCellsHist = cms.untracked.bool(True),
0095                                   #studyCalibCellsHist = cms.untracked.bool(False),
0096                                   #
0097                                   ##scripts: zdifampl.C
0098                                   studyDiffAmplHist = cms.untracked.bool(True),
0099                                   #studyDiffAmplHist = cms.untracked.bool(False),
0100                                   #
0101                                   ##scripts: zadcamplitude.C
0102                                   studyPedestalsHist = cms.untracked.bool(True),
0103                                   #studyPedestalsHist = cms.untracked.bool(False),
0104                                   #
0105                                   ##scripts: zamplpedcorr.C
0106                                   studyPedestalCorrelations = cms.untracked.bool(True),
0107                                   #studyPedestalsHist = cms.untracked.bool(False),
0108                                   #
0109                                   #
0110                                   ##DigiCollectionLabel = cms.untracked.InputTag("hcalDigis"),
0111                                   #Verbosity = cms.untracked.int32(-54),
0112                                   #Verbosity = cms.untracked.int32(-22),
0113                                   #Verbosity = cms.untracked.int32(-11),
0114                                   #Verbosity = cms.untracked.int32(-12),
0115                                   #Verbosity = cms.untracked.int32(-13),
0116                                   #Verbosity = cms.untracked.int32(-51),
0117                                   #Verbosity = cms.untracked.int32(-24),
0118                                   #Verbosity = cms.untracked.int32(-244),
0119                                   #Verbosity = cms.untracked.int32(-233),
0120                                   #
0121                                   #
0122                                   #         Normal channels:
0123                                   #
0124                                   # -53 for  BAD HBHEHF channels from study on shape Ratio
0125                                   #Verbosity = cms.untracked.int32(-53),
0126                                   ratioHBMin = cms.double(0.70),
0127                                   ratioHBMax = cms.double(0.94),
0128                                   ratioHEMin = cms.double(0.60),
0129                                   ratioHEMax = cms.double(0.95),
0130                                   ratioHFMin = cms.double(0.45),
0131                                   ratioHFMax = cms.double(1.02),
0132                                   ratioHOMin = cms.double(0.40),
0133                                   ratioHOMax = cms.double(1.04),
0134                                   # -54 for  BAD HBHEHF channels from study on RMS of shapes
0135                                   #Verbosity = cms.untracked.int32(-54),
0136                                   rmsHBMin = cms.double(0.7),
0137                                   rmsHBMax = cms.double(2.5),
0138                                   rmsHEMin = cms.double(0.7),
0139                                   rmsHEMax = cms.double(2.2),
0140                                   rmsHFMin = cms.double(0.1),
0141                                   rmsHFMax = cms.double(2.6),
0142                                   rmsHOMin = cms.double(0.1),
0143                                   rmsHOMax = cms.double(2.8),
0144                                   # -55 for  BAD HBHEHF channels from study on TSmean of shapes
0145                                   #Verbosity = cms.untracked.int32(-55),
0146                                   TSmeanHBMin = cms.double(2.5),
0147                                   TSmeanHBMax = cms.double(5.5),
0148                                   TSmeanHEMin = cms.double(1.0),
0149                                   TSmeanHEMax = cms.double(5.2),
0150                                   TSmeanHFMin = cms.double(1.0),
0151                                   TSmeanHFMax = cms.double(4.2),
0152                                   TSmeanHOMin = cms.double(1.0),
0153                                   TSmeanHOMax = cms.double(4.8),
0154                                   # -55 for  BAD HBHEHF channels from study on TSmax of shapes
0155                                   #Verbosity = cms.untracked.int32(-55),
0156                                   TSpeakHBMin = cms.double(2.2),
0157                                   TSpeakHBMax = cms.double(5.5),
0158                                   TSpeakHEMin = cms.double(1.5),
0159                                   TSpeakHEMax = cms.double(6.5),
0160                                   TSpeakHFMin = cms.double(0.5),
0161                                   TSpeakHFMax = cms.double(4.5),
0162                                   TSpeakHOMin = cms.double(0.5),
0163                                   TSpeakHOMax = cms.double(7.5),
0164                                   # -56 for  BAD HBHEHOHF channels from study on ADC Amplitude
0165                                   #Verbosity = cms.untracked.int32(-56),
0166                                   ADCAmplHBMin = cms.double(10000.),
0167                                   ADCAmplHBMax = cms.double(300000.),
0168                                   ADCAmplHEMin = cms.double(20000.),  
0169                                   ADCAmplHEMax = cms.double(300000.),
0170                                   ADCAmplHFMin = cms.double(50.),
0171                                   ADCAmplHFMax = cms.double(9000.),
0172                                   ADCAmplHOMin = cms.double(50.),
0173                                   ADCAmplHOMax = cms.double(9000.),
0174                                   #
0175                                   # to see channels w/ PedestalSigma < cut
0176                                   #Verbosity = cms.untracked.int32(-57),
0177                                   pedestalwHBMax = cms.double(0.1),
0178                                   pedestalwHEMax = cms.double(0.1),
0179                                   pedestalwHFMax = cms.double(0.4),
0180                                   pedestalwHOMax = cms.double(0.1),
0181                                   #
0182                                   # to see channels for pedestal < cut
0183                                   pedestalHBMax = cms.double(0.1),
0184                                   pedestalHEMax = cms.double(0.6),
0185                                   pedestalHFMax = cms.double(0.8),
0186                                   pedestalHOMax = cms.double(0.1),
0187                                   #
0188                                   #
0189                                   #             CALIBRATION channels:
0190                                   #
0191                                   # for  BAD HBHEHOHF CALIBRATION channels from study on ADC amplitude
0192                                   # cuts for Laser runs:
0193                                   #calibrADCHBMin = cms.double(15.0),
0194                                   #calibrADCHEMin = cms.double(15.0),
0195                                   #calibrADCHOMin = cms.double(15.0),
0196                                   #calibrADCHFMin = cms.double(15.0),
0197                                   # cuts for LED runs:
0198                                   calibrADCHBMin = cms.double(1000.),
0199                   calibrADCHBMax = cms.double(100000000.),
0200                                   calibrADCHEMin = cms.double(1000.),
0201                   calibrADCHEMax = cms.double(100000000.),
0202                                   calibrADCHOMin = cms.double(1000.),
0203                   calibrADCHOMax = cms.double(100000000.),
0204                                   calibrADCHFMin = cms.double(100.),
0205                   calibrADCHFMax = cms.double(100000000.),
0206                   
0207                                   # for  BAD HBHEHOHF CALIBRATION channels from study on shape Ratio
0208                                   calibrRatioHBMin = cms.double(0.76),
0209                   calibrRatioHBMax = cms.double(0.94),
0210                                   calibrRatioHEMin = cms.double(0.76),
0211                   calibrRatioHEMax = cms.double(0.94),
0212                                   calibrRatioHOMin = cms.double(0.85),
0213                   calibrRatioHOMax = cms.double(0.99),
0214                                   calibrRatioHFMin = cms.double(0.5),
0215                   calibrRatioHFMax = cms.double(0.8),
0216                                   # for  BAD HBHEHOHF CALIBRATION channels from study on TSmax
0217                                   calibrTSmaxHBMin = cms.double(1.50),
0218                                   calibrTSmaxHBMax = cms.double(2.50),
0219                                   calibrTSmaxHEMin = cms.double(1.50),
0220                                   calibrTSmaxHEMax = cms.double(2.50),
0221                                   calibrTSmaxHOMin = cms.double(1.50),
0222                                   calibrTSmaxHOMax = cms.double(2.50),
0223                                   calibrTSmaxHFMin = cms.double(3.50),
0224                                   calibrTSmaxHFMax = cms.double(4.50),
0225                                   # for  BAD HBHEHOHF CALIBRATION channels from study on TSmean
0226                                   calibrTSmeanHBMin = cms.double(2.40),
0227                                   calibrTSmeanHBMax = cms.double(3.70),
0228                                   calibrTSmeanHEMin = cms.double(2.40),
0229                                   calibrTSmeanHEMax = cms.double(3.70),
0230                                   calibrTSmeanHOMin = cms.double(1.50),
0231                                   calibrTSmeanHOMax = cms.double(2.70),
0232                                   calibrTSmeanHFMin = cms.double(3.50),
0233                                   calibrTSmeanHFMax = cms.double(4.50),
0234                                   # for  BAD HBHEHOHF CALIBRATION channels from study on Width
0235                                   calibrWidthHBMin = cms.double(1.30),
0236                                   calibrWidthHBMax = cms.double(1.90),
0237                                   calibrWidthHEMin = cms.double(1.30),
0238                                   calibrWidthHEMax = cms.double(1.90),
0239                                   calibrWidthHOMin = cms.double(0.70),
0240                                   calibrWidthHOMax = cms.double(1.65),
0241                                   calibrWidthHFMin = cms.double(0.30),
0242                                   calibrWidthHFMax = cms.double(1.50),
0243                                   #
0244                                   # Special task of run or LS quality:
0245                                   #
0246                                   # flag for ask runs of LSs for RMT & CMT accordingly:
0247                                   #=0-runs, =1-LSs
0248                                   # keep for LED runs this flags =0 always
0249                                   flagtoaskrunsorls = cms.int32(0),
0250                                   #
0251                                   # flag for choice of criterion of bad channels:
0252                                   #=0-CapIdErr, =1-Ratio, =2-Width, =3-TSmax, =4-TSmean, =5-adcAmplitud
0253                                   # keep for CMT (global runs) this flags =0 always
0254                                   flagtodefinebadchannel = cms.int32(0),
0255                                   #how many bins you want on the plots:better to choice (#LS+1)
0256                                   howmanybinsonplots = cms.int32(25),
0257                                   #
0258                                   # ls - range for RBX study (and ??? perhaps for gain stability via abort gap):
0259                                   lsmin = cms.int32(1),
0260                                   #lsmax = cms.int32(620),
0261                                   lsmax = cms.int32(2600),
0262                                   #
0263                                   flagabortgaprejected = cms.int32(1),
0264                                   bcnrejectedlow = cms.int32(3446),
0265                                   bcnrejectedhigh= cms.int32(3564),
0266                                   #
0267                                   # flag cpu time reducing
0268                                   #=0-all plots, =1-optimized number of plots (for Global runs)
0269                                   flagcpuoptimization = cms.int32(0),
0270                                   #
0271                                   # flag for ask type of Normalization for CMT estimators:
0272                                   #=0-normalizationOn#evOfLS;   =1-averageVariable-normalizationOn#entriesInLS;
0273                                   flagestimatornormalization = cms.int32(1),
0274                                   #
0275                                   #
0276                                   # cuts on Nbadchannels to see LS dependences:
0277                                   # Verbosity = cms.untracked.int32(-77),
0278                                   # to select abnormal events,for which Nbcs > this limits
0279                                   lsdep_cut1_peak_HBdepth1 = cms.int32(20),
0280                                   lsdep_cut1_peak_HBdepth2 = cms.int32(7),
0281                                   lsdep_cut1_peak_HEdepth1 = cms.int32(16),
0282                                   lsdep_cut1_peak_HEdepth2 = cms.int32(13),
0283                                   lsdep_cut1_peak_HEdepth3 = cms.int32(4),
0284                                   lsdep_cut1_peak_HFdepth1 = cms.int32(10),
0285                                   lsdep_cut1_peak_HFdepth2 = cms.int32(5),
0286                                   lsdep_cut1_peak_HOdepth4 = cms.int32(45),
0287                                   # to select events with Nbcs > this limits
0288                                   lsdep_cut3_max_HBdepth1 = cms.int32(19),
0289                                   lsdep_cut3_max_HBdepth2 = cms.int32(6),
0290                                   lsdep_cut3_max_HEdepth1 = cms.int32(15),
0291                                   lsdep_cut3_max_HEdepth2 = cms.int32(12),
0292                                   lsdep_cut3_max_HEdepth3 = cms.int32(3),
0293                                   lsdep_cut3_max_HFdepth1 = cms.int32(9),
0294                                   lsdep_cut3_max_HFdepth2 = cms.int32(4),
0295                                   lsdep_cut3_max_HOdepth4 = cms.int32(40),
0296                                   #
0297                                   #
0298                                   #old was for runs:
0299                                   #                                  nbadchannels1 = cms.int32(7),
0300                                   #                                  nbadchannels2 = cms.int32(12),
0301                                   #                                  nbadchannels3 = cms.int32(50),
0302                                   #
0303                                   #Verbosity = cms.untracked.int32(-79),
0304                                   # cuts on Estimator1 to see LS dependences:
0305                                   lsdep_estimator1_HBdepth1 = cms.double(2500.),
0306                                   lsdep_estimator1_HBdepth2 = cms.double(2500.),
0307                                   lsdep_estimator1_HBdepth3 = cms.double(2500.),
0308                                   lsdep_estimator1_HBdepth4 = cms.double(2500.),
0309                                   lsdep_estimator1_HEdepth1 = cms.double(2500.),
0310                                   lsdep_estimator1_HEdepth2 = cms.double(2500.),
0311                                   lsdep_estimator1_HEdepth3 = cms.double(2500.),
0312                                   lsdep_estimator1_HEdepth4 = cms.double(2500.),
0313                                   lsdep_estimator1_HEdepth5 = cms.double(2500.),
0314                                   lsdep_estimator1_HEdepth6 = cms.double(2500.),
0315                                   lsdep_estimator1_HEdepth7 = cms.double(2500.),
0316                                   lsdep_estimator1_HFdepth1 = cms.double(2500.),
0317                                   lsdep_estimator1_HFdepth2 = cms.double(2500.),
0318                                   lsdep_estimator1_HFdepth3 = cms.double(2500.),
0319                                   lsdep_estimator1_HFdepth4 = cms.double(2500.),
0320                                   lsdep_estimator1_HOdepth4 = cms.double(2500.),
0321                                   # cuts on Estimator2 to see LS dependences:
0322                                   lsdep_estimator2_HBdepth1 = cms.double(7.),
0323                                   lsdep_estimator2_HBdepth2 = cms.double(7.),
0324                                   lsdep_estimator2_HEdepth1 = cms.double(7.),
0325                                   lsdep_estimator2_HEdepth2 = cms.double(7.),
0326                                   lsdep_estimator2_HEdepth3 = cms.double(7.),
0327                                   lsdep_estimator2_HFdepth1 = cms.double(7.),
0328                                   lsdep_estimator2_HFdepth2 = cms.double(7.),
0329                                   lsdep_estimator2_HOdepth4 = cms.double(7.),
0330                                   # cuts on Estimator3 to see LS dependences:
0331                                   lsdep_estimator3_HBdepth1 = cms.double(7.),
0332                                   lsdep_estimator3_HBdepth2 = cms.double(7.),
0333                                   lsdep_estimator3_HEdepth1 = cms.double(7.),
0334                                   lsdep_estimator3_HEdepth2 = cms.double(7.),
0335                                   lsdep_estimator3_HEdepth3 = cms.double(7.),
0336                                   lsdep_estimator3_HFdepth1 = cms.double(7.),
0337                                   lsdep_estimator3_HFdepth2 = cms.double(7.),
0338                                   lsdep_estimator3_HOdepth4 = cms.double(7.),
0339                                   # cuts on Estimator4 to see LS dependences:
0340                                   lsdep_estimator4_HBdepth1 = cms.double(5.),
0341                                   lsdep_estimator4_HBdepth2 = cms.double(5.),
0342                                   lsdep_estimator4_HEdepth1 = cms.double(5.),
0343                                   lsdep_estimator4_HEdepth2 = cms.double(5.),
0344                                   lsdep_estimator4_HEdepth3 = cms.double(5.),
0345                                   lsdep_estimator4_HFdepth1 = cms.double(5.),
0346                                   lsdep_estimator4_HFdepth2 = cms.double(5.),
0347                                   lsdep_estimator4_HOdepth4 = cms.double(5.),
0348                                   # cuts on Estimator5 to see LS dependences:
0349                                   lsdep_estimator5_HBdepth1 = cms.double(1.8),
0350                                   lsdep_estimator5_HBdepth2 = cms.double(1.8),
0351                                   lsdep_estimator5_HEdepth1 = cms.double(1.8),
0352                                   lsdep_estimator5_HEdepth2 = cms.double(1.8),
0353                                   lsdep_estimator5_HEdepth3 = cms.double(1.8),
0354                                   lsdep_estimator5_HFdepth1 = cms.double(1.8),
0355                                   lsdep_estimator5_HFdepth2 = cms.double(1.8),
0356                                   lsdep_estimator5_HOdepth4 = cms.double(1.8),
0357                                   #
0358                                   # 
0359                                   #Verbosity = cms.untracked.int32(-81),
0360                                   #Verbosity = cms.untracked.int32(-82),
0361                                   #Verbosity = cms.untracked.int32(-83),
0362                                   # 
0363                                   # use ADC amplitude:
0364                                   useADCmassive = cms.untracked.bool(True),
0365                                   useADCfC = cms.untracked.bool(False),
0366                                   useADCcounts = cms.untracked.bool(False),
0367                                   # 
0368                                   # Pedestals in fC
0369                                   #usePedestalSubtraction = cms.untracked.bool(True),
0370                                   usePedestalSubtraction = cms.untracked.bool(False),
0371                                   #
0372                                   # for possible ignoring of channels w/o signal, apply same cut for
0373                                   # HBHEHFHO on Amplitude, usable for all Estimators 1,2,3,4,5:
0374                                   # forallestimators_amplitude_bigger = cms.double(10.),
0375                                   forallestimators_amplitude_bigger = cms.double(-100.),
0376                                   #
0377                                   #
0378                                   #
0379                                   #usecontinuousnumbering = cms.untracked.bool(False),
0380                                   usecontinuousnumbering = cms.untracked.bool(True),
0381                                   #
0382                                   #
0383                                   #
0384                                   hcalCalibDigiCollectionTag = cms.InputTag('hcalDigis'),
0385                                   hbheDigiCollectionTag = cms.InputTag('hcalDigis'),
0386                                   hoDigiCollectionTag = cms.InputTag('hcalDigis'),
0387                                   hfDigiCollectionTag = cms.InputTag('hcalDigis'),
0388                                   #
0389                                   #
0390                                   #
0391                                   #
0392                                   #for upgrade: ---------------------------------------------------------
0393                                   hbheQIE11DigiCollectionTag = cms.InputTag('hcalDigis'),
0394                                   hbheQIE10DigiCollectionTag = cms.InputTag('hcalDigis'),
0395                                   # flag to use either only old QIE8 digiCollections or only new QIE10,11 digiCollections
0396                                   #=0-all digiCollections(default for normal running), =1-only old QIE8 digiCollections, 
0397                                   #=2-only new QIE1011 digiCollections, =3-only new QIE1011 digiCollections w/o new high depthes
0398                                   #=4-2016fall, =5-2016fall w/o new high depthes, =6-2017bebin, =7-2017bebin w/o new high depthes in HEonly
0399                                   #=8--2017bebin w/o new high depthes, =9-all digiCollections  w/o new high depthes
0400                                   # flag   HBHE8    HBHE11   HF8   HF10  comments:
0401                                   #  0       +        +       +     +     all
0402                                   #  1       +        -       +     -     old
0403                                   #  2       -        +       -     +     new
0404                                   #  3       -        +       -     +     new w/o high depthes
0405                                   #  4       +        -       +     +     2016fall
0406                                   #  5       +        -       +     +     2016fall w/o high depthes
0407                                   #  6       +        +       -     +     2017 && 2018 && 2021
0408                                   #  7       +        +       -     +     2017begin w/o high depthes in HEonly
0409                                   #  8       +        +       -     +     2017begin w/o high depthes
0410                                   #  9       +        +       +     +     all  w/o high depthes
0411                                   # 10       +        -       -     +     2017 w/o HEP17
0412                                   # 
0413                                   flagupgradeqie1011 = cms.int32(6),
0414                                   # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
0415                                   # flaguseshunt = 1 or 6 (6 is default for global runs) 
0416                                   flaguseshunt = cms.int32(6),
0417                                   # flagsipmcorrection: != 0 yes,apply; = 0 do not use;
0418                                   flagsipmcorrection = cms.int32(1),
0419                                   #end upgrade: --------------------------------------------------------- end upgrade
0420                                   #
0421                                   #
0422                                   # for local LASER runs ONLY!!! to be > 0    (,else = 0)
0423                                   flagLaserRaddam = cms.int32(0),
0424                                   # for gaussian fit for local shunt1 (Gsel0) led low-intensity or ped ONLY!!! to be  > 0    (,else = 0)
0425                                   flagfitshunt1pedorledlowintensity = cms.int32(0),
0426                                   #
0427                                   splashesUpperLimit = cms.int32(10000),
0428                                   #
0429                                   #
0430                                   # for use in IterativeMethod of CalibrationGroup!!! to be > 1    (,else = 0)
0431                                   flagIterativeMethodCalibrationGroupDigi = cms.int32(1),
0432                                   #
0433                                   # for use in IterativeMethod of CalibrationGroup!!! to be > 1    (,else = 0)
0434                                   flagIterativeMethodCalibrationGroupReco = cms.int32(1),
0435                                   #
0436                                   hbheInputSignalTag = cms.InputTag('hbherecoMBNZS'),
0437                                   hbheInputNoiseTag = cms.InputTag('hbherecoNoise'),
0438                                   hfInputSignalTag = cms.InputTag('hfrecoMBNZS'),
0439                                   hfInputNoiseTag = cms.InputTag('hfrecoNoise'),
0440                                   #
0441                                   #
0442                                   #
0443                                   #
0444                                   #
0445                                   #
0446                                   #HistOutFile = cms.untracked.string('LED_331370.root'),
0447                                   #HistOutFile = cms.untracked.string(histodir+'/LED_'+runnumber+'.root'),
0448                                   #MAPOutFile = cms.untracked.string('LogEleMapdb.h')
0449                                   #
0450                                   ##OutputFilePath = cms.string('/tmp/zhokin/'),        
0451                                   ##OutputFileExt = cms.string(''),
0452                                   #
0453                                   )     
0454 ###########################################################################
0455 process.TFileService = cms.Service("TFileService",
0456       fileName = cms.string("Global_346511_1.root")
0457       ,closeFileFast = cms.untracked.bool(True)
0458   )
0459 ###########################################################################
0460 
0461 
0462 process.hcal_db_producer = cms.ESProducer("HcalDbProducer",
0463     dump = cms.untracked.vstring(''),
0464     file = cms.untracked.string('')
0465 )
0466 process.es_hardcode = cms.ESSource("HcalHardcodeCalibrations",
0467     toGet = cms.untracked.vstring('QIEShape',
0468         'QIEData',
0469         'ChannelQuality',
0470         'HcalQIEData',
0471         'Pedestals',
0472         'PedestalWidths',
0473         'Gains',
0474         'GainWidths',
0475         'ZSThresholds',
0476         'RespCorrs')
0477 )
0478 
0479 ## Jula's recipe for too many files 
0480 #process.options = cms.untracked.PSet(
0481 #   wantSummary = cms.untracked.bool(False),
0482 #   Rethrow = cms.untracked.vstring("ProductNotFound"), # make this exception fatal
0483 #   fileMode  =  cms.untracked.string('NOMERGE') # no ordering needed, but calls endRun/beginRun etc. at file boundaries
0484 #)
0485 
0486 ######################################################################################## Global Tags for 2018 data taking :
0487 # use twiki site to specify HLT reconstruction Global tags:
0488 #   https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideFrontierConditions
0489 #
0490 #   100X_dataRun2_HLT_v2        for CMSSW_10_0_3 onwards        CRUZET 2018     update of 0T templates for SiPixels
0491 #   100X_dataRun2_HLT_v1        for CMSSW_10_0_0 onwards        MWGRs 2018      first HLT GT for 2018 
0492 #
0493 #
0494 ############################################################################ GlobalTag :1+ good as 5
0495 #from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
0496 #process.GlobalTag = GlobalTag(process.GlobalTag, '100X_dataRun2_HLT_v2', '')
0497 
0498 #from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
0499 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data_FULL', '')
0500 
0501 
0502 #from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag
0503 #process.GlobalTag = GlobalTag(process.GlobalTag, '101X_dataRun2_HLT_v7', '')
0504 
0505 # 2019 Ultra Legacy 2017
0506 #process.GlobalTag.globaltag = '106X_dataRun2_trackerAlignment2017_v1'
0507 # 2019 Ultra Legacy 2018 test TkAl
0508 #process.GlobalTag.globaltag = '106X_dataRun2_v17'
0509 # 2019 Ultra Legacy 2018 
0510 #process.GlobalTag.globaltag = '106X_dataRun2_newTkAl_v18'
0511 # 2019 Ultra Legacy 2016
0512 #process.GlobalTag.globaltag = '106X_dataRun2_UL2016TkAl_v24'
0513 #process.GlobalTag.globaltag = '105X_dataRun2_v8'
0514 
0515 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0516 from Configuration.AlCa.autoCond import autoCond
0517 #process.GlobalTag.globaltag = '104X_dataRun2_v1'
0518 #process.GlobalTag.globaltag = '105X_postLS2_design_v4'
0519 #process.GlobalTag.globaltag = '113X_dataRun3_HLT_v3'
0520 process.GlobalTag.globaltag = '120X_dataRun3_HLT_v3'
0521 
0522 ############################################################################
0523 # V.EPSHTEIN:
0524 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0525 #process.GlobalTag.globaltag = '100X_dataRun2_Prompt_Candidate_2018_01_31_16_01_36'
0526 ###
0527 #process.hcal_db_producer = cms.ESProducer("HcalDbProducer",
0528 #    dump = cms.untracked.vstring(''),
0529 #    file = cms.untracked.string('')
0530 #)
0531 #
0532 #process.hcalDigis= cms.EDProducer("HcalRawToDigi",
0533 #    FilterDataQuality = cms.bool(True),
0534 #    HcalFirstFED = cms.untracked.int32(700),
0535 #    InputLabel = cms.InputTag("source"),
0536 #    UnpackCalib = cms.untracked.bool(True),
0537 #    FEDs = cms.untracked.vint32(1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117),
0538 #)
0539 ###
0540 ############################################################################
0541 process.load('Configuration.StandardSequences.RawToDigi_Data_cff')
0542 #process.hcalDigis.FilterDataQuality = cms.bool(False)
0543 #process.hcalDigis.InputLabel = cms.InputTag("source")
0544 ############################################################################
0545 #process.hcalDigis= cms.EDProducer("HcalRawToDigi",
0546 ##    FilterDataQuality = cms.bool(True),
0547 #    FilterDataQuality = cms.bool(False),
0548 #    HcalFirstFED = cms.untracked.int32(700),
0549 #    InputLabel = cms.InputTag("source"),
0550 #    #InputLabel = cms.InputTag("rawDataCollector"),
0551 #)
0552 #process.hcalDigis.FilterDataQuality = cms.bool(False)
0553 #process.hcalDigis.InputLabel = cms.InputTag("source")
0554 ############################################################################
0555 # Schedule definition for PSM:
0556 #process.load("Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalPedestal_cff")
0557 #process.load("Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalPedestalLocal_cff")
0558 process.load("Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalMinBias_cff")
0559 
0560 ##process.load("ALCARECOHcalCalPedestalLocal_cff")
0561 ############################################################################
0562 # for ALCARECO:
0563 #process.p = cms.Path(process.seqALCARECOHcalCalMinBiasDigiNoHLT*process.seqALCARECOHcalCalMinBias*process.Analyzer)
0564 # for RAW:
0565 process.p = cms.Path(process.hcalDigis*process.seqALCARECOHcalCalMinBiasDigiNoHLT*process.seqALCARECOHcalCalMinBias*process.Analyzer)
0566 ###### see   /afs/cern.ch/work/z/zhokin/public/CMSSW_10_4_0_patch1/src/Calibration/HcalAlCaRecoProducers/python/ALCARECOHcalCalMinBias_cff.py
0567 
0568 #process.p = cms.Path(process.hcalDigis*process.Analyzer)
0569 ############################################################################
0570 process.MessageLogger = cms.Service("MessageLogger",
0571      categories   = cms.untracked.vstring(''),
0572      destinations = cms.untracked.vstring('cout'),
0573      debugModules = cms.untracked.vstring('*'),
0574      cout = cms.untracked.PSet(
0575          threshold = cms.untracked.string('WARNING'),
0576      WARNING = cms.untracked.PSet(limit = cms.untracked.int32(0))
0577      )
0578  )
0579 ############################################################################
0580 
0581 
0582