Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CSCDigitizerTest")
0004 #untracked PSet maxEvents = {untracked int32 input = 100}
0005 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0006 
0007 process.load("Geometry.MuonCommonData.muonIdealGeometryXML_cfi")
0008 
0009 process.load("Geometry.CSCGeometry.cscGeometry_cfi")
0010 
0011 #process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")
0012 
0013 process.load("Configuration/StandardSequences/MagneticField_cff")
0014 
0015 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0016 
0017 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0018 
0019 #include "SimMuon/CSCDigitizer/data/muonCSCDbConditions.cfi"
0020 #replace muonCSCDigis.stripConditions = "Database"
0021 #replace muonCSCDigis.strips.ampGainSigma = 0.
0022 #replace muonCSCDigis.strips.peakTimeSigma = 0.
0023 #replace muonCSCDigis.strips.doNoise = false
0024 #replace muonCSCDigis.wires.doNoise = false
0025 #replace muonCSCDigis.strips.doCrosstalk = false
0026 #process.load("CalibMuon.Configuration.CSC_FakeDBConditions_cff")
0027 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0028 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0029 
0030 # initialize MessageLogger and output report
0031 process.MessageLogger = cms.Service("MessageLogger",
0032     cerr = cms.untracked.PSet(
0033         enable = cms.untracked.bool(False)
0034     ),
0035     debugModules = cms.untracked.vstring('muonCSCDigis'),
0036     files = cms.untracked.PSet(
0037         detailedInfo = cms.untracked.PSet(
0038             CSCRawToDigi = cms.untracked.PSet(
0039                 limit = cms.untracked.int32(10000000)
0040             ),
0041             DEBUG = cms.untracked.PSet(
0042                 limit = cms.untracked.int32(0)
0043             ),
0044             EventInfo = cms.untracked.PSet(
0045                 limit = cms.untracked.int32(10000000)
0046             ),
0047             FwkReport = cms.untracked.PSet(
0048                 limit = cms.untracked.int32(10000000),
0049                 reportEvery = cms.untracked.int32(1)
0050             ),
0051             FwkSummary = cms.untracked.PSet(
0052                 limit = cms.untracked.int32(10000000),
0053                 reportEvery = cms.untracked.int32(1)
0054             ),
0055             INFO = cms.untracked.PSet(
0056                 limit = cms.untracked.int32(0)
0057             ),
0058             Root_NoDictionary = cms.untracked.PSet(
0059                 limit = cms.untracked.int32(0)
0060             ),
0061             StatusDigi = cms.untracked.PSet(
0062                 limit = cms.untracked.int32(10000000)
0063             ),
0064             TRACE = cms.untracked.PSet(
0065                 limit = cms.untracked.int32(0)
0066             ),
0067             default = cms.untracked.PSet(
0068                 limit = cms.untracked.int32(10000000)
0069             ),
0070             noTimeStamps = cms.untracked.bool(False),
0071             threshold = cms.untracked.string('DEBUG')
0072         )
0073     )
0074 )
0075 
0076 #   include
0077 #   "CalibMuon/Configuration/data/CSC_FrontierConditions.cff"
0078 #   replace
0079 #   cscConditions.toGet
0080 #   =
0081 #   {
0082 #        {
0083 #        string
0084 #        record
0085 #        =
0086 #        "CSCDBGainsRcd"
0087 #          string
0088 #          tag
0089 #          =
0090 #          "CSCDBGains_ideal"},
0091 #        {string
0092 #        record
0093 #        =
0094 #        "CSCNoiseMatrixRcd"
0095 #          string
0096 #          tag
0097 #          =
0098 #          "CSCNoiseMatrix_ideal"},
0099 #        {string
0100 #        record
0101 #        =
0102 #        "CSCcrosstalkRcd"
0103 #          string
0104 #          tag
0105 #          =
0106 #          "CSCCrosstalk_ideal"},
0107 #        {string
0108 #        record
0109 #        =
0110 #        "CSCPedestalsRcd"
0111 #         string
0112 #         tag
0113 #         =
0114 #         "CSCPedestals_ideal"}
0115 #    }
0116 #process.load("EventFilter.CSCRawToDigi.cscUnpacker_cfi")
0117 #process.load("EventFilter.CSCRawToDigi.cscFrontierCablingUnpck_cff")
0118 
0119 #process.GlobalTag.globaltag = 'CRAFT_V3P::All'
0120 process.GlobalTag.globaltag = "CRAFT_30X::All"
0121 
0122 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
0123 
0124 process.source = cms.Source("PoolSource",
0125   debugFlag = cms.untracked.bool(True),
0126   #skipEvents = cms.untracked.uint32(18237),
0127   #skipEvents = cms.untracked.uint32(60),
0128   skipEvents = cms.untracked.uint32(0),
0129   #debugVebosity = cms.untracked.uint32(10),
0130   fileNames = cms.untracked.vstring(
0131     #'rfio:/afs/cern.ch/user/a/asakharo/scratch0/events/my_good_events.root'
0132     #'/store/data/Commissioning08/Cosmics/RAW/v1/000/064/257/A6B9F13F-CC90-DD11-9BCA-001617E30CE8.root'
0133     #'/store/data/Commissioning08/BeamHalo/RAW/GRtoBeam_v1/000/062/096/863014FF-7C7F-DD11-8E83-0019DB29C614.root'
0134     #'/store/data/Commissioning08/Cosmics/RAW/v1/000/069/365/84E8B55A-EEAA-DD11-A18C-001617C3B65A.root'
0135     #'rfio:/afs/cern.ch/user/a/asakharo/scratch0/events/run_66740_FED_errors.root'
0136     #'rfio:/castor/cern.ch/user/a/asakharo/CMSevents/run_66740_FED_errors.root'
0137     #'/store/data/Commissioning09/Cosmics/RAW/v1/000/079/035/422F78CA-7019-DE11-A599-001617E30CD4.root'
0138     '/store/data/Commissioning09/Cosmics/RAW/v1/000/079/035/422F78CA-7019-DE11-A599-001617E30CD4.root',
0139     '/store/data/Commissioning09/Cosmics/RAW/v1/000/079/035/764D08CA-7019-DE11-813F-001617C3B69C.root',
0140     '/store/data/Commissioning09/Cosmics/RAW/v1/000/079/035/963C5DCA-7019-DE11-9ABF-001617DBD316.root',
0141     '/store/data/Commissioning09/Cosmics/RAW/v1/000/079/035/C882B9D5-7219-DE11-8B69-000423D6BA18.root'
0142   )
0143 )
0144 
0145 process.DQMStore = cms.Service("DQMStore")
0146 
0147 process.dump = cms.EDFilter("CSCDigiDump",
0148   wireDigiTag = cms.InputTag("muonCSCDigis","MuonCSCWireDigi"),
0149   empt = cms.InputTag(""),
0150   stripDigiTag = cms.InputTag("muonCSCDigis","MuonCSCStripDigi"),
0151   comparatorDigiTag = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi")
0152 )
0153 
0154 process.muonCSCDigis = cms.EDFilter("CSCDCCUnpacker",
0155   PrintEventNumber = cms.untracked.bool(False),
0156   UseExaminer = cms.untracked.bool(True),
0157   ErrorMask = cms.untracked.uint32(0x0),
0158   InputObjects = cms.InputTag("rawDataCollector"),
0159   ExaminerMask = cms.untracked.uint32(0x1FEBF3F6),
0160   UnpackStatusDigis = cms.untracked.bool(True),
0161   UseSelectiveUnpacking = cms.untracked.bool(True),
0162   isMTCCData = cms.untracked.bool(False),
0163   Debug = cms.untracked.bool(True),
0164   VisualFEDInspect=cms.untracked.bool(True),
0165   VisualFEDShort=cms.untracked.bool(False)
0166 )
0167 
0168 process.out = cms.OutputModule("PoolOutputModule",
0169   dataset = cms.untracked.PSet(dataTier = cms.untracked.string('DIGI')),
0170   fileName = cms.untracked.string('digi_test.root'),
0171 )
0172 
0173 #process.d=cms.EDAnalyzer('EventContentAnalyzer')
0174 
0175 #process.muonCSCDigis.InputObjects = "rawDataCollector"
0176 #process.p = cms.Path(process.d)
0177 process.p1 = cms.Path(process.muonCSCDigis)
0178 #process.k = cms.Path(process.d)
0179 #process.e = cms.EndPath(process.out)
0180 #process.c=cms.Path(process.dump)