1 |
yilmaz |
1.1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
|
import sys
|
3 |
|
|
process = cms.Process('LocalRunRaddamMonitor')
|
4 |
|
|
|
5 |
|
|
process.MessageLogger = cms.Service("MessageLogger",
|
6 |
|
|
categories = cms.untracked.vstring(''),
|
7 |
|
|
destinations = cms.untracked.vstring('cout'),
|
8 |
|
|
debugModules = cms.untracked.vstring('*'),
|
9 |
|
|
cout = cms.untracked.PSet(
|
10 |
|
|
threshold = cms.untracked.string('WARNING'),
|
11 |
|
|
WARNING = cms.untracked.PSet(limit = cms.untracked.int32(0))
|
12 |
|
|
)
|
13 |
|
|
)
|
14 |
|
|
|
15 |
|
|
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
|
16 |
|
|
########
|
17 |
|
|
#cms.PSet(
|
18 |
|
|
# record = cms.string('HcalQIEDataRcd'),
|
19 |
|
|
# tag = cms.string('qie_normalmode_v6.01')
|
20 |
|
|
# ),
|
21 |
|
|
#
|
22 |
|
|
########
|
23 |
|
|
|
24 |
|
|
# We are getting the runnumber from the command line now. No need to edit this file.
|
25 |
|
|
print "Enter Runnumber: "
|
26 |
|
|
print "Hasktir ordan..."
|
27 |
|
|
# rn = sys.stdin.readline()
|
28 |
|
|
RUNNUMBER = 180213 # int(rn.strip())
|
29 |
|
|
print "Running on: " + str(RUNNUMBER)
|
30 |
|
|
|
31 |
|
|
process.source = cms.Source("HcalTBSource",
|
32 |
|
|
fileNames= cms.untracked.vstring(
|
33 |
|
|
# "file:/tmp/yalcin/USC_" + str(RUNNUMBER) + ".root", ##"file:/bigspool/USC_" + str(RUNNUMBER) + ".root",
|
34 |
|
|
"file:/d102/yetkin/USC_"+str(RUNNUMBER)+".root"
|
35 |
|
|
)
|
36 |
|
|
)
|
37 |
|
|
|
38 |
|
|
process.TFileService = cms.Service("TFileService",
|
39 |
|
|
fileName = cms.string('./hf_raddam' + str(RUNNUMBER) +'.root')
|
40 |
|
|
)
|
41 |
|
|
|
42 |
|
|
process.hcal_db_producer = cms.ESProducer("HcalDbProducer",
|
43 |
|
|
dump = cms.untracked.vstring(''),
|
44 |
|
|
file = cms.untracked.string('')
|
45 |
|
|
)
|
46 |
|
|
|
47 |
|
|
process.hcalLaserReco = cms.EDProducer( "HcalLaserReco" )
|
48 |
|
|
#HFrechitCollectionPile = cms.InputTag("HFRecHitCollection"),
|
49 |
|
|
|
50 |
|
|
process.plots = cms.EDAnalyzer('Raddam')
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
|
54 |
|
|
|
55 |
|
|
process.GlobalTag.globaltag = 'GR_R_44_V6C::All' #'GR10_P_V2::All'
|
56 |
|
|
|
57 |
|
|
process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
|
58 |
|
|
|
59 |
|
|
process.load("RecoLocalCalo.Configuration.RecoLocalCalo_Cosmics_cff")
|
60 |
|
|
|
61 |
|
|
process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
|
62 |
|
|
process.load("Configuration.StandardSequences.MagneticField_38T_cff")
|
63 |
|
|
process.load("Configuration.StandardSequences.Geometry_cff")
|
64 |
|
|
process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
|
65 |
|
|
#process.hfreco.firstSample = 1
|
66 |
|
|
#process.hfreco.samplesToAdd = 8
|
67 |
|
|
|
68 |
|
|
process.hcalDigis = cms.EDProducer("HcalRawToDigi",
|
69 |
|
|
FilterDataQuality = cms.bool(True),
|
70 |
|
|
HcalFirstFED = cms.untracked.int32(700),
|
71 |
|
|
InputLabel = cms.InputTag("source"),
|
72 |
|
|
UnpackCalib = cms.untracked.bool(True),
|
73 |
|
|
FEDs = cms.untracked.vint32(
|
74 |
|
|
700, 701, 702, 703, 704,
|
75 |
|
|
705, 706, 707, 708, 709,
|
76 |
|
|
710, 711, 712, 713, 714,
|
77 |
|
|
715, 716, 717, 718, 719,
|
78 |
|
|
720, 721, 722, 723, 724,
|
79 |
|
|
725, 726, 727, 728, 729,
|
80 |
|
|
730, 731),
|
81 |
|
|
streams = cms.untracked.vstring(
|
82 |
|
|
'HCAL_Trigger','HCAL_SlowData','HCAL_QADCTDC'
|
83 |
|
|
),
|
84 |
|
|
lastSample = cms.int32(9),
|
85 |
|
|
firstSample = cms.int32(0)
|
86 |
|
|
)
|
87 |
|
|
|
88 |
|
|
process.load("L1Trigger.Configuration.L1DummyConfig_cff")
|
89 |
|
|
process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi")
|
90 |
|
|
process.l1GtUnpack.DaqGtInputTag = 'source'
|
91 |
|
|
|
92 |
|
|
#process.p = cms.Path(process.l1GtUnpack*process.hcalDigis*process.hbhereco*process.hfreco*process.plots)
|
93 |
|
|
#process.p = cms.Path(process.l1GtUnpack*process.hcalDigis*process.plots)
|
94 |
|
|
#process.p = cms.Path(process.hcalLaserReco * process.hcalDigis * process.hfreco * process.plots)
|
95 |
|
|
process.p = cms.Path(process.hcalLaserReco * process.hcalDigis * process.plots)
|