Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("APVCyclePhaseProducerTestGR09")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 
0007 process.MessageLogger.files.infos = cms.untracked.PSet(
0008     threshold = cms.untracked.string("INFO"),
0009     default = cms.untracked.PSet(
0010         limit = cms.untracked.int32(10000000)
0011     ),
0012     FwkReport = cms.untracked.PSet(
0013         reportEvery = cms.untracked.int32(10000)
0014     )
0015 )
0016 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0017 
0018 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
0019 
0020 process.source = cms.Source("PoolSource",
0021                             fileNames = cms.untracked.vstring(
0022         '/store/data/CRAFT09/Cosmics/RAW/v1/000/110/958/C81A92C2-D788-DE11-B7BB-000423D6B42C.root', # 110958
0023         '/store/data/Commissioning09/Cosmics/RAW/v3/000/106/019/FECCF15C-4872-DE11-BDB2-000423D944F8.root', # 106019
0024         '/store/data/CRAFT09/Cosmics/RAW/v1/000/110/958/22EF7D51-CF88-DE11-AFB9-001617C3B70E.root' # 110958
0025 #        '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/616/FEF9115E-FB7F-DE11-83FA-001D09F29538.root', # 109616
0026 #        '/store/data/CRAFT09/Cosmics/RAW/v1/000/110/916/CCA16AD0-7588-DE11-B156-001617E30D52.root', # 110916
0027 #        '/store/data/CRAFT09/Cosmics/RAW/v1/000/112/417/FA8CB4E8-3395-DE11-AA3D-001D09F29321.root', # 112417
0028 #        '/store/data/Commissioning09/Cosmics/RAW/v2/000/102/169/F6566668-4267-DE11-8354-001D09F2983F.root', # 102169
0029 #        '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/718/FAA59806-A680-DE11-A5D9-000423D99896.root', # 109718
0030 #        '/store/data/CRAFT09/Cosmics/RAW/v1/000/112/650/FAD443CE-F296-DE11-A25C-000423D6CA72.root' # 112650
0031         
0032 
0033     ),
0034                             skipBadFiles = cms.untracked.bool(True)
0035                             )
0036 
0037 #---------------------------------------------------------------------
0038 # Raw to Digi: TO BE TESTED !!
0039 #---------------------------------------------------------------------
0040 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0041 
0042 # Magnetic fiuld: force mag field to be 3.8 tesla
0043 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0044 
0045 #Geometry
0046 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0047 
0048 # Real data raw to digi
0049 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0050 
0051 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0052 
0053 #-------------------------------------------------
0054 # Global Tag
0055 #-------------------------------------------------
0056 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0057 process.GlobalTag.globaltag = "GR09_31X_V5P::All"
0058 
0059 
0060 #-------------------------------------------------------------------------
0061 
0062 process.load("DPGAnalysis.SiStripTools.configurableapvcyclephaseproducer_GR09_withdefault_cff")
0063 #process.load("DPGAnalysis.SiStripTools.configurableapvcyclephaseproducer_CRAFT08_cfi")
0064 
0065 import DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1abc_GR09_cfi
0066 process.APVPhasesFromL1ABC = DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1abc_GR09_cfi.APVPhases.clone()
0067 process.APVPhasesFromL1ABC.wantHistos = cms.untracked.bool(True)
0068 
0069 process.load("DPGAnalysis.SiStripTools.apvcyclephasemonitor_cfi")
0070 
0071 process.apvcyclephasemonitorfroml1abc = process.apvcyclephasemonitor.clone()
0072 process.apvcyclephasemonitorfroml1abc.apvCyclePhaseCollection = cms.InputTag("APVPhasesFromL1ABC") 
0073 
0074 process.TFileService = cms.Service('TFileService',
0075                                    fileName = cms.string('apvcyclephaseproducer_test_GR09.root')
0076                                    )
0077 
0078 process.p0 = cms.Path(process.scalersRawToDigi +
0079                       process.APVPhases + process.APVPhasesFromL1ABC + 
0080                       process.apvcyclephasemonitor +process.apvcyclephasemonitorfroml1abc )
0081