CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dtT0WireCalibration_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("PROD")
4 
5 process.load("FWCore.MessageService.MessageLogger_cfi")
6 process.MessageLogger.debugModules = cms.untracked.vstring('*')
7 process.MessageLogger.destinations = cms.untracked.vstring('cerr')
8 process.MessageLogger.categories.append('resolution')
9 process.MessageLogger.cerr = cms.untracked.PSet(
10  threshold = cms.untracked.string('DEBUG'),
11  noLineBreaks = cms.untracked.bool(False),
12  DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
13  INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
14  resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
15 )
16 
17 process.load("Configuration.StandardSequences.Geometry_cff")
18 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
19 process.GlobalTag.globaltag = ""
20 
21 process.load("CondCore.DBCommon.CondDBSetup_cfi")
22 
23 process.load("DQMServices.Core.DQM_cfg")
24 
25 process.source = cms.Source("PoolSource",
26  fileNames = cms.untracked.vstring()
27 )
28 
29 process.maxEvents = cms.untracked.PSet(
30  input = cms.untracked.int32(-1)
31 )
32 
33 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
34 
35 process.dtunpacker = cms.EDProducer("DTUnpackingModule",
36  dataType = cms.string('DDU'),
37  inputLabel = cms.InputTag('source'),
38  fedbyType = cms.bool(False),
39  useStandardFEDid = cms.bool(True),
40  dqmOnly = cms.bool(False),
41  readOutParameters = cms.PSet(
42  debug = cms.untracked.bool(False),
43  rosParameters = cms.PSet(
44  writeSC = cms.untracked.bool(True),
45  readingDDU = cms.untracked.bool(True),
46  performDataIntegrityMonitor = cms.untracked.bool(False),
47  readDDUIDfromDDU = cms.untracked.bool(True),
48  debug = cms.untracked.bool(False),
49  localDAQ = cms.untracked.bool(False)
50  ),
51  localDAQ = cms.untracked.bool(False),
52  performDataIntegrityMonitor = cms.untracked.bool(False)
53  )
54 )
55 
56 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
57  process.CondDBSetup,
58  timetype = cms.untracked.string('runnumber'),
59  connect = cms.string('sqlite_file:t0.db'),
60  authenticationMethod = cms.untracked.uint32(0),
61  toPut = cms.VPSet(cms.PSet(
62  record = cms.string('DTT0Rcd'),
63  tag = cms.string('t0')
64  ))
65 )
66 
67 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
68  eventInfoFolder = cms.untracked.string('EventInfo/')
69 )
70 
71 # test pulse monitoring
72 process.load("DQM.DTMonitorModule.dtDigiTask_TP_cfi")
73 process.load("DQM.DTMonitorClient.dtOccupancyTest_TP_cfi")
74 process.dtTPmonitor.defaultTtrig = 300
75 process.dtTPmonitor.defaultTmax = 100
76 process.dtTPmonitor.inTimeHitsLowerBound = 0
77 process.dtTPmonitor.inTimeHitsUpperBound = 0
78 
79 process.dtT0WireCalibration = cms.EDAnalyzer("DTT0Calibration",
80  # Cells for which you want the histos (default = None)
81  cellsWithHisto = cms.untracked.vstring(),
82  # Label to retrieve DT digis from the event
83  digiLabel = cms.untracked.string('dtunpacker'),
84  calibSector = cms.untracked.string('All'),
85  # Chose the wheel, sector (default = All)
86  calibWheel = cms.untracked.string('All'),
87  # Number of events to be used for the t0 per layer histos
88  eventsForWireT0 = cms.uint32(25000),
89  # Name of the ROOT file which will contain the test pulse times per layer
90  rootFileName = cms.untracked.string('DTTestPulses.root'),
91  debug = cms.untracked.bool(False),
92  rejectDigiFromPeak = cms.uint32(50),
93  # Acceptance for TP peak width
94  tpPeakWidth = cms.double(15.0),
95  # Number of events to be used for the t0 per layer histos
96  eventsForLayerT0 = cms.uint32(5000)
97 )
98 
99 process.output = cms.OutputModule("PoolOutputModule",
100  outputCommands = cms.untracked.vstring('drop *',
101  'keep *_MEtoEDMConverter_*_*'),
102  fileName = cms.untracked.string('DQM.root')
103 )
104 
105 process.load("DQMServices.Components.MEtoEDMConverter_cff")
106 process.DQM.collectorHost = ''
107 """
108 process.load("DQMServices.Components.DQMEnvironment_cfi")
109 process.DQMStore.referenceFileName = ''
110 process.dqmSaver.convention = 'Offline'
111 process.dqmSaver.workflow = '/MiniDaq/HIRun2010-v1-dtCalibration-rev1/RAW'
112 process.DQMStore.collateHistograms = False
113 process.dqmSaver.convention = "Offline"
114 """
115 
116 process.p = cms.Path(process.dtunpacker*
117  process.dtTPmonitor+process.dtTPmonitorTest+
118  process.dtT0WireCalibration+
119  process.MEtoEDMConverter)
120 process.outpath = cms.EndPath(process.output)