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