Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CASTORDQM")
0004 #=================================
0005 # Event Source
0006 #================================+
0007 
0008 
0009 ### data root file
0010 process.source = cms.Source("PoolSource",
0011                             fileNames = cms.untracked.vstring(
0012 #'root://eoscms//eos/cms/store/hidata/HIRun2013/PAMinBiasUPC/RAW/v1/000/210/885/00000/0AC926B5-7268-E211-91F3-BCAEC5329708.root'),
0013 #'file:/tmp/popov/1257F374-8BB0-E611-A096-02163E0145DD-f10.root'),
0014 #'file:/afs/cern.ch/user/p/popov/scratch_bk/data/4C7A69AE-6692-E511-A446-02163E0119EB-RAW262272.root'),
0015 
0016 #'file:/afs/cern.ch/user/p/popov/scratch_bk/data/64E2F5E1-5892-E511-B421-02163E0137E8-RAW262270.root'),
0017 #'file:/eos/user/p/popov/HI2015/AOD-665ED244-96AB-E511-9A9E-02163E011E5B.root'),
0018 
0019 #'file:/eos/cms/store/data/Run2018C/ZeroBias/RAW/v1/000/320/260/00000/80A7FA82-AD90-E811-B3B3-FA163EE997B7.root'),
0020 #'file:/eos/cms/store/data/Run2018C/ZeroBias/RAW/v1/000/320/285/00000/6C275008-4490-E811-9AB4-FA163E7FC1F6.root'),
0021 #'file:/eos/cms/store/data/Run2018C/MinimumBias/RAW/v1/000/320/317/00000/3AA90BCE-6390-E811-8093-FA163E3A93BC.root'),
0022 #'file:/eos/cms/store/data/Run2018C/ZeroBias/RAW/v1/000/320/317/00000/525D2460-6A90-E811-AF46-FA163E9626F3.root'),
0023 'file:/eos/user/p/popov/rundata/Castor2018/525D2460-6A90-E811-RAWrun320317.root'),
0024                             )
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10000)
0028 )
0029 
0030 #================================
0031 # DQM framework
0032 #================================
0033 process.load("DQM.Integration.config.environment_cfi")
0034 process.dqmEnv.subSystemFolder = "Castor"
0035 process.dqmEnv.eventInfoFolder = "EventInfo"
0036 #process.dqmSaver.producer = 'DQM'
0037 process.dqmSaver.path = ""
0038 process.dqmSaver.tag = "Castor"
0039 
0040 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0041 
0042 #============================================
0043 # Castor Conditions: from Global Conditions Tag 
0044 #============================================
0045 
0046 #get from global tag
0047 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0048 #from Configuration.AlCa.GlobalTag import GlobalTag
0049 #process.GlobalTag.globaltag = 'GR_R_61_V7::All' #autoCond['run2_data']
0050 from Configuration.AlCa.autoCond import autoCond
0051 process.GlobalTag.globaltag = autoCond['run2_data']
0052 
0053 #get explicit from db
0054 #process.load("CondCore.DBCommon.CondDBSetup_cfi")
0055 process.load("CondCore.CondDB.CondDB_cfi")
0056 
0057 #process.castor_db_producer = cms.ESProducer("CastorDbProducer") 
0058 
0059 #-----------------------------
0060 # Castor DQM Source + SimpleReconstrctor
0061 #-----------------------------
0062 #process.load("DQM.CastorMonitor.CastorMonitorModule_cfi")
0063 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
0064 
0065 process.castorreco.tsFromDB = cms.bool(False)
0066 
0067 #process.load("EventFilter.CastorRawToDigi.CastorRawToDigi_cfi")
0068 from EventFilter.CastorRawToDigi.CastorRawToDigi_cff import *
0069 #process.castorDigis = castorDigis.clone( UnpackZDC = cms.bool(False))
0070 process.castorDigis = castorDigis.clone()
0071 
0072 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0073 process.castorMonitor = DQMEDAnalyzer("CastorMonitorModule",
0074                            ### GLOBAL VARIABLES
0075    debug = cms.untracked.int32(1), #(=0 - no messages)
0076                            # Turn on/off timing diagnostic
0077                            showTiming          = cms.untracked.bool(False),
0078 #                      dump2database       = cms.untracked.bool(False),
0079 #                      pedestalsInFC = cms.untracked.bool(False),
0080 
0081                # Define Labels
0082      l1tStage2uGtSource = cms.InputTag("gtStage2Digis"),
0083 #     tagTriggerResults   = cms.InputTag("TriggerResults"),
0084      tagTriggerResults   = cms.InputTag('TriggerResults','','HLT'),
0085     HltPaths  = cms.vstring("HLT_ZeroBias","HLT_Random"),
0086 
0087                            digiLabel            = cms.InputTag("castorDigis"),
0088                            rawLabel         = cms.InputTag("rawDataCollector"),
0089                            unpackerReportLabel  = cms.InputTag("castorDigis"),
0090                            CastorRecHitLabel    = cms.InputTag("castorreco"),
0091                            CastorTowerLabel     = cms.InputTag("CastorTowerReco"),
0092                            CastorBasicJetsLabel = cms.InputTag("ak7CastorJets"),
0093                            CastorJetIDLabel     = cms.InputTag("ak7CastorJetID"),
0094                                                     
0095                DataIntMonitor= cms.untracked.bool(True),
0096                TowerJetMonitor= cms.untracked.bool(True),
0097 
0098                            DigiMonitor = cms.untracked.bool(True),
0099                           
0100                            RecHitMonitor = cms.untracked.bool(True), 
0101 
0102                              
0103 #                           LEDMonitor = cms.untracked.bool(True),
0104 #                           LEDPerChannel = cms.untracked.bool(True),
0105                            FirstSignalBin = cms.untracked.int32(0),
0106                            LastSignalBin = cms.untracked.int32(9)
0107 )
0108 
0109 ### the filename prefix 
0110 #process.dqmSaver.dirName = '.'
0111 #convention does not already exist# process.dqmSaver.convention = 'Online'
0112 #saveByRun does not already exist# process.dqmSaver.saveByRun = True
0113 
0114 #-----------------------------
0115 # Scheduling
0116 #-----------------------------
0117 process.options = cms.untracked.PSet(
0118     Rethrow = cms.untracked.vstring('ProductNotFound', 
0119         'TooManyProducts', 
0120         'TooFewProducts')
0121 )
0122 
0123 # castorDigis   -> CastorRawToDigi_cfi
0124 # castorreco    -> CastorSimpleReconstructor_cfi
0125 # castorMonitor -> CastorMonitorModule_cfi
0126 process.out = cms.OutputModule("PoolOutputModule",
0127   fileName = cms.untracked.string('my.root')
0128 )
0129 
0130 #process.p = cms.Path(process.castorMonitor*process.dqmEnv*process.dqmSaver)
0131 process.p = cms.Path(process.castorDigis*process.castorreco*process.castorMonitor)
0132 #process.p = cms.Path(process.castorMonitor)
0133 
0134 process.end_path = cms.EndPath(
0135   process.dqmEnv +
0136   process.dqmSaver
0137 )
0138 
0139 process.schedule = cms.Schedule(
0140   process.p,
0141   process.end_path
0142 )
0143