1 |
cerminar |
1.1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
|
|
3 |
|
|
process = cms.Process("DTTTrigCalib")
|
4 |
|
|
|
5 |
|
|
process.load("UserCode.DTDPGAnalysis.dt_dpganalysis_common_cff")
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
|
9 |
|
|
|
10 |
|
|
process.source = cms.Source("DaqSource",
|
11 |
|
|
readerPluginName = cms.untracked.string("DTROS25FileReader"),
|
12 |
|
|
evtsPerLS = cms.untracked.uint32(1000),
|
13 |
|
|
readerPset = cms.untracked.PSet(
|
14 |
|
|
fileName = cms.untracked.string("/data/c/cerminar/data/local/mb4_0_3_25mv_3_ros25.txt"))
|
15 |
|
|
# skipEvents = cms.untracked.int32(),
|
16 |
|
|
# numberOfHeaderWords = cms.untracked.int32(10)
|
17 |
|
|
)
|
18 |
|
|
|
19 |
|
|
# replace unpacker's parameters to run on local ROS25 data
|
20 |
|
|
import EventFilter.DTRawToDigi.dtunpackerROS25Local_cfi as dtunpacker_module
|
21 |
|
|
process.dtunpackerROS25 = dtunpacker_module.dtunpacker.clone()
|
22 |
|
|
process.dtunpackerROS25.readOutParameters.performDataIntegrityMonitor = True
|
23 |
|
|
process.dtunpackerROS25.readOutParameters.rosParameters.performDataIntegrityMonitor = True
|
24 |
|
|
|
25 |
|
|
process.MessageLogger = cms.Service("MessageLogger",
|
26 |
|
|
debugModules = cms.untracked.vstring('*'),
|
27 |
|
|
destinations = cms.untracked.vstring('cout'),
|
28 |
|
|
categories = cms.untracked.vstring('DTDigiTask'),
|
29 |
|
|
cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'),
|
30 |
|
|
noLineBreaks = cms.untracked.bool(False),
|
31 |
|
|
DEBUG = cms.untracked.PSet(
|
32 |
|
|
limit = cms.untracked.int32(0)),
|
33 |
|
|
INFO = cms.untracked.PSet(
|
34 |
|
|
limit = cms.untracked.int32(0)),
|
35 |
|
|
DTDigiTask = cms.untracked.PSet(
|
36 |
|
|
limit = cms.untracked.int32(-1))
|
37 |
|
|
)
|
38 |
|
|
)
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
|
42 |
|
|
DBParameters = cms.PSet(authenticationPath
|
43 |
|
|
= cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
|
44 |
|
|
),
|
45 |
|
|
authenticationMethod = cms.untracked.uint32(0),
|
46 |
|
|
connect = cms.string('sqlite_file:ttrig_ROS25Local.db'),
|
47 |
|
|
toPut = cms.VPSet(cms.PSet(record = cms.string('DTTtrigRcd'),
|
48 |
|
|
tag = cms.string('ttrig')
|
49 |
|
|
))
|
50 |
|
|
)
|
51 |
|
|
|
52 |
|
|
#Module to calibrate ttrig
|
53 |
|
|
process.ttrigcalib = cms.EDAnalyzer("DTTTrigCalibration",
|
54 |
|
|
# Switch on/off the verbosity
|
55 |
|
|
debug = cms.untracked.bool(False),
|
56 |
|
|
# Label to retrieve DT digis from the event
|
57 |
|
|
digiLabel = cms.untracked.string("dtunpackerROS25"),
|
58 |
|
|
# Name of the ROOT file which will contain the time boxes
|
59 |
|
|
rootFileName = cms.untracked.string("DTTimeBoxes.root"),
|
60 |
|
|
# Switch on/off the subtraction of t0 from pulses
|
61 |
|
|
doSubtractT0 = cms.untracked.bool(True),
|
62 |
|
|
# Switch on/off the DB writing
|
63 |
|
|
fitAndWrite = cms.untracked.bool(True),
|
64 |
|
|
# Switch on/off the check of noisy channels
|
65 |
|
|
checkNoisyChannels = cms.untracked.bool(True),
|
66 |
|
|
# Max number of digi per layer to reject a chamber
|
67 |
|
|
maxDigiPerLayer = cms.untracked.int32(10),
|
68 |
|
|
# Module for t0 subtraction
|
69 |
|
|
tTrigMode = cms.untracked.string('DTTTrigSyncT0Only'),
|
70 |
|
|
# Parameter set for t0 subtraction module
|
71 |
|
|
tTrigModeConfig = cms.untracked.PSet(debug = cms.untracked.bool(False))
|
72 |
|
|
)
|
73 |
|
|
|
74 |
|
|
process.p = cms.Path( process.dtunpackerROS25+ process.ttrigcalib)
|