test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorDigiReco.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("CASTORDIGIVALIDATION")
4 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
5 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
6 
7 process.load("SimCalorimetry.CastorSim.castordigi_cfi")
8 
9 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
10 
11 process.load("Configuration.StandardSequences.GeometryExtended_cff")
12 
13 
14 process.load("CondCore.DBCommon.CondDBSetup_cfi")
15 process.load("CondCore.DBCommon.CondDBCommon_cfi")
16 
17 
18 process.castor_db_producer = cms.ESProducer("CastorDbProducer")
19 
20 
21 process.source = cms.Source("PoolSource",
22 duplicateCheckMode = cms.untracked.string("checkEachFile"),
23  debugFlag = cms.untracked.bool(True),
24  debugVebosity = cms.untracked.uint32(100),
25  fileNames = cms.untracked.vstring(
26 #'rfio:/castor/cern.ch/user/o/ochesanu/CMSSW_310_pre6/pions/output_300_50.00_50.01_1.pool.root'
27 'file:/afs/cern.ch/user/o/ochesanu/scratch0/CMSSW_3_2_5/src/SimG4CMS/Forward/python/test/sim_pion.root'
28 )
29 )
30 
31 
32 
33 process.es_pool = cms.ESSource( "PoolDBESSource",
34  process.CondDBSetup,
35  timetype = cms.string('runnumber'),
36 # connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierPrep/CMS_COND_30X_HCAL'),
37  connect = cms.string('sqlite_fle:testExample.db'),
38  authenticationMethod = cms.untracked.uint32(0),
39  toGet = cms.VPSet(
40  cms.PSet(
41  record = cms.string('CastorPedestalsRcd'),
42  tag = cms.string('castor_pedestals_v1.0_test')
43  ),
44  cms.PSet(
45  record = cms.string('CastorPedestalWidthsRcd'),
46  tag = cms.string('castor_widths_v1.0_test')
47  ),
48  cms.PSet(
49  record = cms.string('CastorGainsRcd'),
50  tag = cms.string('castor_gains_v1.0_test')
51  ),
52  cms.PSet(
53  record = cms.string('CastorQIEDataRcd'),
54  tag = cms.string('castor_qie_v1.0_test')
55  ),
56  cms.PSet(
57  record = cms.string('CastorElectronicsMapRcd'),
58  tag = cms.string('castor_emap_v1.0_test')
59  ),
60  cms.PSet(
61  record = cms.string('CastorChannelQualityRcd'),
62  tag = cms.string('castor_channelstatus_v1.0_test')
63 
64  )
65 
66  )
67 )
68 process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
69  toGet = cms.untracked.vstring('GainWidths')
70  )
71 
72 process.digiDumper = cms.EDFilter("HcalDigiDump")
73 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
74  moduleSeeds = cms.PSet(
75  simCastorDigis = cms.untracked.uint32(12345)
76  )
77 )
78 process.hitDumper = cms.EDFilter("HcalRecHitDump")
79 
80 process.hitAnalyzer = cms.EDAnalyzer("CastorHitAnalyzer")
81 
82 process.digiAnalyzer = cms.EDAnalyzer("CastorDigiAnalyzer")
83 
84 process.o1 = cms.OutputModule("PoolOutputModule",
85  fileName = cms.untracked.string('digiout_pions50.root')
86 )
87 
88 process.p = cms.Path(process.mix*process.simCastorDigis)
89 #*process.castorreco)
90 process.outpath = cms.EndPath(process.o1)
91