Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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