Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("EcalSelectiveReadoutValid")
0004 
0005 #Number of events to process
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(-1)
0008 )
0009 
0010 #Input files
0011 process.source = cms.Source("PoolSource",
0012 #    fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/c/ccecal/BEAM/Skims/Collisions7TeV/run132440/express/bit40or41skim_startingFromSkim2_run132440.root')
0013      fileNames = cms.untracked.vstring('file:/tmp/pgras/bit40or41skim_startingFromSkim2_run132440.root')
0014 )
0015 
0016 # initialize  MessageLogger
0017 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0018 
0019 # initialize magnetic field
0020 process.load("Configuration.StandardSequences.MagneticField_cff")
0021 
0022 # geometry (Only Ecal)
0023 process.load("Geometry.EcalCommonData.EcalOnly_cfi")
0024 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
0025 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0026 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0027 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
0028 
0029 # DQM services
0030 process.load("DQMServices.Core.DQM_cfg")
0031 
0032 #process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
0033 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0034 
0035 ###process.GlobalTag.globaltag = 'MC_3XY_V18::All'
0036 process.GlobalTag.globaltag = 'GR10_P_V4::All'
0037  
0038 # ECAL digitization sequence
0039 process.load("SimCalorimetry.Configuration.ecalDigiSequence_cff")
0040 process.simEcalDigis.trigPrimProducer = cms.string('ecalEBunpacker')
0041 process.simEcalDigis.trigPrimCollection =  cms.string('EcalTriggerPrimitives')
0042 process.simEcalDigis.digiProducer = cms.string('ecalEBunpacker')
0043 process.simEcalDigis.EBdigiCollection = cms.string('ebDigis')
0044 process.simEcalDigis.EEdigiCollection = cms.string('eeDigis')
0045 
0046 # Defines Ecal seletive readout validation module, ecalSelectiveReadoutValidation:
0047 process.load("Validation.EcalDigis.ecalSelectiveReadoutValidation_cfi")
0048 process.ecalSelectiveReadoutValidation.outputFile = 'srvalid_hists.root'
0049 #process.ecalSelectiveReadoutValidation.EbDigiCollection = cms.InputTag("selectDigi", "selectedEcalEBDigiCollection");
0050 #process.ecalSelectiveReadoutValidation.EeDigiCollection = cms.InputTag("selectDigi", "selectedEcalEEDigiCollection");
0051 #process.ecalSelectiveReadoutValidation.EbSrFlagCollection = cms.InputTag("ecalDigis","");
0052 #process.ecalSelectiveReadoutValidation.EeSrFlagCollection = cms.InputTag("ecalDigis","");
0053 
0054 process.ecalSelectiveReadoutValidation.EbDigiCollection = cms.InputTag("ecalEBunpacker", "ebDigis")
0055 process.ecalSelectiveReadoutValidation.EeDigiCollection = cms.InputTag("ecalEBunpacker","eeDigis")
0056 #process.ecalSelectiveReadoutValidation.EbUnsuppressedDigiCollection = cms.InputTag("simEcalUnsuppressedDigis")
0057 #process.ecalSelectiveReadoutValidation.EeUnsuppressedDigiCollection = cms.InputTag("simEcalUnsuppressedDigis")
0058 process.ecalSelectiveReadoutValidation.EbSrFlagCollection = cms.InputTag("ecalEBunpacker","")
0059 process.ecalSelectiveReadoutValidation.EeSrFlagCollection = cms.InputTag("ecalEBunpacker","")
0060 process.ecalSelectiveReadoutValidation.EbSrFlagFromTTCollection = cms.InputTag("simEcalDigis","ebSrFlags")
0061 process.ecalSelectiveReadoutValidation.EeSrFlagFromTTCollection = cms.InputTag("simEcalDigis","eeSrFlags")
0062 #rocess.ecalSelectiveReadoutValidation.EbSimHitCollection = cms.InputTag("g4SimHits","EcalHitsEB")
0063 #process.ecalSelectiveReadoutValidation.EeSimHitCollection = cms.InputTag("g4SimHits","EcalHitsEE")
0064 process.ecalSelectiveReadoutValidation.TrigPrimCollection = cms.InputTag("ecalEBunpacker", "EcalTriggerPrimitives")
0065 process.ecalSelectiveReadoutValidation.EbRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB")
0066 #process.ecalSelectiveReadoutValidation.EeRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE")
0067 #process.ecalSelectiveReadoutValidation.FEDRawCollection = cms.InputTag("source")
0068 #process.ecalSelectiveReadoutValidation.EventHeaderCollection = cms.InputTag("ecalEBunpacker")
0069 process.ecalSelectiveReadoutValidation.ecalDccZs1stSample = 3
0070 process.ecalSelectiveReadoutValidation.dccWeights = [ -1.1865, 0.0195, 0.2900, 0.3477, 0.3008, 0.2266 ]
0071 process.ecalSelectiveReadoutValidation.histDir = ''
0072 process.ecalSelectiveReadoutValidation.histograms = [ 'all' ]
0073 #[ "h2ChOcc",
0074 #"h2FRORu",
0075 #"h2ForcedRu",
0076 #"h2ForcedTtf",
0077 #"h2HiTtf",
0078 #"h2LtTtf",
0079 #"h2MiTtf",
0080 #"h2Tp",
0081 #"h2TpVsEtSum",
0082 #"h2TtfVsEtSum",
0083 #"h2TtfVsTp",
0084 #"h2Zs1Ru",
0085 #"hCompleteZSMap",
0086 #"hCompleteZSRate",
0087 #"hCompleteZsCnt",
0088 #"hDccHiVol",
0089 #"hDccLiVol",
0090 #"hDccVol",
0091 #"hDccVolFromData",
0092 #"hDroppedFROCnt",
0093 #"hDroppedFROMap",
0094 #"hDroppedFRORateMap",
0095 #"hEbEMean",
0096 #"hEbFROCnt",
0097 #"hEbRecE",
0098 #"hEbZsErrCnt",
0099 #"hEbZsErrType1Cnt",
0100 #"hEeEMean",
0101 #"hEeFROCnt",
0102 #"hEeRecE",
0103 #"hEeZsErrCnt",
0104 #"hEeZsErrType1Cnt",
0105 #"hFROCnt",
0106 #"hIncompleteFROCnt",
0107 #"hIncompleteFROMap",
0108 #"hIncompleteFRORateMap",
0109 #"hSRAlgoErrorMap",
0110 #"hTp",
0111 #"hTtf",
0112 #"hVol",
0113 #"hVolB",
0114 #"hVolBHI",
0115 #"hVolBLI",
0116 #"hVolE",
0117 #"hVolEHI",
0118 #"hVolELI",
0119 #"hVolHI",
0120 #"hVolLI",
0121 #"hZsErrCnt",
0122 #"hZsErrType1Cnt",
0123 #"zsEbHiFIRemu",
0124 #"zsEbLiFIRemu",
0125 #"zsEeHiFIRemu",
0126 #"zsEeLiFIRemu"
0127 #]
0128 #process.ecalSelectiveReadoutValidation.useEventRate = False
0129 process.ecalSelectiveReadoutValidation.LocalReco = cms.bool(False)
0130 
0131 # ECAL Unpacker:
0132 process.load("EventFilter.EcalRawToDigi.EcalUnpackerMapping_cfi")
0133 process.load("EventFilter.EcalRawToDigi.EcalUnpackerData_cfi")
0134 process.ecalEBunpacker.silentMode = cms.untracked.bool(True)
0135     
0136 
0137 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0138 
0139 process.tpparams12 = cms.ESSource("EmptyESSource",
0140     recordName = cms.string('EcalTPGPhysicsConstRcd'),
0141     iovIsRunNotTime = cms.bool(True),
0142     firstValid = cms.vuint32(1)
0143 )
0144 
0145 #process.load("pgras.ListCollection.ListCollection_cfi")
0146 
0147 process.p1 = cms.Path(process.ecalEBunpacker*process.simEcalDigis*process.ecalSelectiveReadoutValidation)
0148 process.DQM.collectorHost = ''