1 |
|
2 |
|
3 |
RUN="___RUN___"
|
4 |
|
5 |
import FWCore.ParameterSet.Config as cms
|
6 |
|
7 |
process = cms.Process("HCAL")
|
8 |
process.load("FWCore.MessageLogger.MessageLogger_cfi")
|
9 |
|
10 |
|
11 |
process.load("Configuration.StandardSequences.Geometry_cff")
|
12 |
|
13 |
process.load("RecoLocalCalo.Configuration.RecoLocalCalo_Cosmics_cff")
|
14 |
|
15 |
process.load("CondCore.DBCommon.CondDBSetup_cfi")
|
16 |
|
17 |
process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
|
18 |
|
19 |
process.load("EventFilter.HcalRawToDigi.HcalRawToDigi_cfi")
|
20 |
process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
|
21 |
#process.load("Configuration.GlobalRuns.ForceZeroTeslaField_cff")
|
22 |
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
|
23 |
|
24 |
|
25 |
import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
|
26 |
process.hcalDigis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
|
27 |
#process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
|
28 |
|
29 |
process.GlobalTag.globaltag = 'GR_P_V27::All'
|
30 |
process.prefer("GlobalTag")
|
31 |
process.Timing = cms.Service("Timing")
|
32 |
|
33 |
process.maxEvents = cms.untracked.PSet(
|
34 |
input = cms.untracked.int32(1000)
|
35 |
)
|
36 |
process.source = cms.Source("HcalTBSource",
|
37 |
streams = cms.untracked.vstring('HCAL_DCC700',
|
38 |
'HCAL_DCC701',
|
39 |
'HCAL_DCC702',
|
40 |
'HCAL_DCC703',
|
41 |
'HCAL_DCC704',
|
42 |
'HCAL_DCC705',
|
43 |
'HCAL_DCC706',
|
44 |
'HCAL_DCC707',
|
45 |
'HCAL_DCC708',
|
46 |
'HCAL_DCC709',
|
47 |
'HCAL_DCC710',
|
48 |
'HCAL_DCC711',
|
49 |
'HCAL_DCC712',
|
50 |
'HCAL_DCC713',
|
51 |
'HCAL_DCC714',
|
52 |
'HCAL_DCC715',
|
53 |
'HCAL_DCC716',
|
54 |
'HCAL_DCC717',
|
55 |
'HCAL_DCC718',
|
56 |
'HCAL_DCC719',
|
57 |
'HCAL_DCC720',
|
58 |
'HCAL_DCC721',
|
59 |
'HCAL_DCC722',
|
60 |
'HCAL_DCC723',
|
61 |
'HCAL_DCC724',
|
62 |
'HCAL_DCC725',
|
63 |
'HCAL_DCC726',
|
64 |
'HCAL_DCC727',
|
65 |
'HCAL_DCC728',
|
66 |
'HCAL_DCC729',
|
67 |
'HCAL_DCC730',
|
68 |
'HCAL_DCC731',
|
69 |
'HCAL_Trigger',
|
70 |
'HCAL_SlowData',
|
71 |
'HCAL_QADCTDC'),
|
72 |
fileNames = cms.untracked.vstring('file:./USC_'+RUN+'.root')
|
73 |
)
|
74 |
|
75 |
process.options = cms.untracked.PSet(
|
76 |
wantSummary = cms.untracked.bool(True)
|
77 |
)
|
78 |
process.hcal_db_producer = cms.ESProducer("HcalDbProducer",
|
79 |
dump = cms.untracked.vstring(''),
|
80 |
file = cms.untracked.string('')
|
81 |
)
|
82 |
|
83 |
|
84 |
|
85 |
process.hcalLaserReco = cms.EDProducer("HcalLaserReco")
|
86 |
|
87 |
process.myanalysis = cms.EDAnalyzer("HcalRaddamAnalyzer",
|
88 |
hcalLaserLabel = cms.InputTag("hcalLaserReco"),
|
89 |
nevtsample = cms.untracked.int32(100),
|
90 |
STreshold = cms.untracked.double(20.0),
|
91 |
ADCTreshold = cms.untracked.double(20.0),
|
92 |
DHFL_Treshold = cms.untracked.double(3.8),
|
93 |
p4noise = cms.untracked.double(69.0),
|
94 |
DHFS_Treshold = cms.untracked.double(3.8),
|
95 |
EventsToStore = cms.untracked.double(100.0),
|
96 |
rsigma = cms.untracked.double(3.0),
|
97 |
ADCdigiTS = cms.untracked.double(4.0),
|
98 |
HFL_Treshold = cms.untracked.double(0.65),
|
99 |
outputFileName = cms.string('NtupleLaser'+RUN+'.root'),
|
100 |
textoutputFileName = cms.string('newraddam'+RUN+'.txt'),
|
101 |
textoutFileName = cms.string('rad-out.txt'),
|
102 |
radfib2 = cms.untracked.int32(4),
|
103 |
radfib1 = cms.untracked.int32(3),
|
104 |
LASERON = cms.bool(True),
|
105 |
hfperchan = cms.bool(True),
|
106 |
HFS_Treshold = cms.untracked.double(0.9),
|
107 |
dsigma = cms.untracked.double(12.0),
|
108 |
)
|
109 |
|
110 |
process.TFileService = cms.Service("TFileService",
|
111 |
fileName = cms.string('HistoLaser'+RUN+'.root')
|
112 |
)
|
113 |
|
114 |
process.RawToDigi = cms.Sequence(process.hcalDigis)
|
115 |
process.allPath = cms.Path(process.hcalDigis*process.hcalLaserReco*process.myanalysis)
|