CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/CalibMuon/DTCalibration/python/dtT0WireCalibration_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("PROD")
00004 
00005 process.load("FWCore.MessageService.MessageLogger_cfi")
00006 process.MessageLogger.debugModules = cms.untracked.vstring('*')
00007 process.MessageLogger.destinations = cms.untracked.vstring('cerr')
00008 process.MessageLogger.categories.append('resolution')
00009 process.MessageLogger.cerr =  cms.untracked.PSet(
00010     threshold = cms.untracked.string('DEBUG'),
00011     noLineBreaks = cms.untracked.bool(False),
00012     DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
00013     INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
00014     resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
00015 )
00016 
00017 process.load("Configuration.StandardSequences.Geometry_cff")
00018 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00019 process.GlobalTag.globaltag = ""
00020 
00021 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00022 
00023 process.load("DQMServices.Core.DQM_cfg")
00024 
00025 process.source = cms.source("PoolSource",
00026     fileNames = cms.untracked.vstring()
00027 )
00028 
00029 process.maxEvents = cms.untracked.PSet(
00030     input = cms.untracked.int32(-1)
00031 )
00032 
00033 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
00034 
00035 process.dtunpacker = cms.EDProducer("DTUnpackingModule",
00036     dataType = cms.string('DDU'),
00037     inputLabel = cms.InputTag('source'),
00038     fedbyType = cms.bool(False),
00039     useStandardFEDid = cms.bool(True),
00040     dqmOnly = cms.bool(False),                       
00041     readOutParameters = cms.PSet(
00042         debug = cms.untracked.bool(False),
00043         rosParameters = cms.PSet(
00044             writeSC = cms.untracked.bool(True),
00045             readingDDU = cms.untracked.bool(True),
00046             performDataIntegrityMonitor = cms.untracked.bool(False),
00047             readDDUIDfromDDU = cms.untracked.bool(True),
00048             debug = cms.untracked.bool(False),
00049             localDAQ = cms.untracked.bool(False)
00050         ),
00051         localDAQ = cms.untracked.bool(False),
00052         performDataIntegrityMonitor = cms.untracked.bool(False)
00053     )
00054 )
00055 
00056 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00057     process.CondDBSetup,
00058     timetype = cms.untracked.string('runnumber'),
00059     connect = cms.string('sqlite_file:t0.db'),
00060     authenticationMethod = cms.untracked.uint32(0),
00061     toPut = cms.VPSet(cms.PSet(
00062         record = cms.string('DTT0Rcd'),
00063         tag = cms.string('t0')
00064     ))
00065 )
00066 
00067 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
00068     eventInfoFolder = cms.untracked.string('EventInfo/')
00069 )
00070 
00071 # test pulse monitoring
00072 process.load("DQM.DTMonitorModule.dtDigiTask_TP_cfi")
00073 process.load("DQM.DTMonitorClient.dtOccupancyTest_TP_cfi")
00074 process.dtTPmonitor.defaultTtrig = 300
00075 process.dtTPmonitor.defaultTmax = 100
00076 process.dtTPmonitor.inTimeHitsLowerBound = 0
00077 process.dtTPmonitor.inTimeHitsUpperBound = 0
00078 
00079 process.dtT0WireCalibration = cms.EDAnalyzer("DTT0Calibration",
00080     # Cells for which you want the histos (default = None)
00081     cellsWithHisto = cms.untracked.vstring(),
00082     # Label to retrieve DT digis from the event
00083     digiLabel = cms.untracked.string('dtunpacker'),
00084     calibSector = cms.untracked.string('All'),
00085     # Chose the wheel, sector (default = All)
00086     calibWheel = cms.untracked.string('All'),
00087     # Number of events to be used for the t0 per layer histos
00088     eventsForWireT0 = cms.uint32(25000),
00089     # Name of the ROOT file which will contain the test pulse times per layer
00090     rootFileName = cms.untracked.string('DTTestPulses.root'),
00091     debug = cms.untracked.bool(False),
00092     rejectDigiFromPeak = cms.uint32(50),
00093     # Acceptance for TP peak width
00094     tpPeakWidth = cms.double(15.0),
00095     # Number of events to be used for the t0 per layer histos
00096     eventsForLayerT0 = cms.uint32(5000)
00097 )
00098 
00099 process.output = cms.OutputModule("PoolOutputModule",
00100     outputCommands = cms.untracked.vstring('drop *', 
00101                                            'keep *_MEtoEDMConverter_*_*'),
00102     fileName = cms.untracked.string('DQM.root')
00103 )
00104 
00105 process.load("DQMServices.Components.MEtoEDMConverter_cff")
00106 process.DQM.collectorHost = ''
00107 """
00108 process.load("DQMServices.Components.DQMEnvironment_cfi")
00109 process.DQMStore.referenceFileName = ''
00110 process.dqmSaver.convention = 'Offline'
00111 process.dqmSaver.workflow = '/MiniDaq/HIRun2010-v1-dtCalibration-rev1/RAW'
00112 process.DQMStore.collateHistograms = False
00113 process.dqmSaver.convention = "Offline"
00114 """
00115 
00116 process.p = cms.Path(process.dtunpacker*
00117                      process.dtTPmonitor+process.dtTPmonitorTest+
00118                      process.dtT0WireCalibration+
00119                      process.MEtoEDMConverter)
00120 process.outpath = cms.EndPath(process.output)