Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:27:12

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