CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/FastSimulation/CaloRecHitsProducer/python/CaloRecHits_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #To include the ECAL RecHit containment corrections (the famous 0.97 factor)
00004 from SimCalorimetry.EcalSimProducers.ecalNotContainmentSim_cff import *
00005 
00006 # This includes is needed for the ECAL digis
00007 from SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cff import *
00008 
00009 from SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff import *
00010 from SimCalorimetry.HcalSimProducers.hcalSimParameters_cfi import *
00011 
00012 # This includes is needed for the ECAL digis
00013 from SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cff import *
00014 
00015 ecalRecHit = cms.EDProducer("CaloRecHitsProducer",
00016                             InputRecHitCollectionTypes = cms.vuint32(2, 3),
00017                             OutputRecHitCollections = cms.vstring('EcalRecHitsEB', 
00018                                                                   'EcalRecHitsEE'),
00019                             doDigis = cms.bool(False),
00020                             doMiscalib = cms.bool(False),
00021 
00022                             RecHitsFactory = cms.PSet(
00023                                                        ECALBarrel = cms.PSet(
00024                                                        Noise = cms.double(-1.),
00025                                                        NoiseADC = cms.double(1.054),
00026                                                        HighNoiseParameters = cms.vdouble(2.56,0.51,0.0086),
00027                                                        Threshold = cms.double(0.1),
00028                                                        SRThreshold = cms.double(1.),
00029 #                                                      SREtaSize = cms.untracked.int32(1),
00030 #                                                      SRPhiSize = cms.untracked.int32(1),
00031                                                        Refactor = cms.double(1.),
00032                                                        Refactor_mean = cms.double(1.),
00033                                                        MixedSimHits = cms.InputTag("mix","famosSimHitsEcalHitsEB"),
00034                                                        ContFact = cms.PSet(ecal_notCont_sim)),
00035                                                        
00036                                                        ECALEndcap = cms.PSet(
00037                                                        Noise = cms.double(-1.),
00038                                                        NoiseADC = cms.double(2.32),
00039                                                        HighNoiseParameters = cms.vdouble(4.77,1.65,2.7,5.1),
00040                                                        Threshold = cms.double(.32), 
00041                                                        SRThreshold = cms.double(1.),
00042                                                        Refactor = cms.double(1.),
00043                                                        Refactor_mean = cms.double(1.),
00044                                                        MixedSimHits = cms.InputTag("mix","famosSimHitsEcalHitsEE"),
00045                                                        ContFact = cms.PSet(ecal_notCont_sim)),
00046                                                        ))
00047 
00048 
00049 ecalPreshowerRecHit =  cms.EDProducer("CaloRecHitsProducer",
00050                                       InputRecHitCollectionTypes = cms.vuint32(1),
00051                                       OutputRecHitCollections = cms.vstring('EcalRecHitsES'),
00052                                       doDigis = cms.bool(False),
00053                                       doMiscalib = cms.bool(False),
00054 
00055                                       RecHitsFactory = cms.PSet(
00056                                                        ECALPreshower = cms.PSet(
00057                                                        Noise = cms.double(1.5e-05),
00058                                                        Threshold = cms.double(4.5e-05),
00059                                                        MixedSimHits = cms.InputTag("mix","famosSimHitsEcalHitsES"))))
00060 
00061 
00062 hbhereco = cms.EDProducer("CaloRecHitsProducer",
00063                           InputRecHitCollectionTypes = cms.vuint32(4),
00064                           OutputRecHitCollections = cms.vstring(""),
00065                           doDigis = cms.bool(False),
00066                           doMiscalib = cms.bool(False),
00067                           
00068                           RecHitsFactory = cms.PSet(
00069                                            HCAL = cms.PSet(
00070                                            Noise = cms.vdouble(-1.,-1.),
00071                                            Threshold = cms.vdouble(-0.5,-0.5),
00072                                            MixedSimHits = cms.InputTag("mix","famosSimHitsHcalHits"),
00073                                            EnableSaturation = cms.bool(True),
00074                                            Refactor = cms.double(1.),
00075                                            Refactor_mean = cms.double(1.),
00076                                            fileNameHcal = cms.string('hcalmiscalib_0.0.xml'))))
00077 
00078 
00079 horeco = cms.EDProducer("CaloRecHitsProducer",
00080                           InputRecHitCollectionTypes = cms.vuint32(5),
00081                           OutputRecHitCollections = cms.vstring(""),
00082                           doDigis = cms.bool(False),
00083                           doMiscalib = cms.bool(False),
00084                           
00085                           RecHitsFactory = cms.PSet(
00086                                            HCAL = cms.PSet(
00087                                            Noise = cms.vdouble(-1.),
00088                                            Threshold = cms.vdouble(-0.5),
00089                                            MixedSimHits = cms.InputTag("mix","famosSimHitsHcalHits"),
00090                                            EnableSaturation = cms.bool(True),
00091                                            Refactor = cms.double(1.),
00092                                            Refactor_mean = cms.double(1.),
00093                                            fileNameHcal = cms.string('hcalmiscalib_0.0.xml'))))
00094 
00095 hfreco = cms.EDProducer("CaloRecHitsProducer",
00096                         InputRecHitCollectionTypes = cms.vuint32(6),
00097                         OutputRecHitCollections = cms.vstring(""),
00098                         doDigis = cms.bool(False),
00099                         doMiscalib = cms.bool(False),
00100                         
00101                         RecHitsFactory = cms.PSet(
00102                                            HCAL = cms.PSet(
00103                                            Noise = cms.vdouble(-1.),
00104                                            Threshold = cms.vdouble(-0.5),
00105                                            MixedSimHits = cms.InputTag("mix","famosSimHitsHcalHits"),
00106                                            EnableSaturation = cms.bool(True),
00107                                            Refactor = cms.double(1.),
00108                                            Refactor_mean = cms.double(1.),
00109                                            fileNameHcal = cms.string('hcalmiscalib_0.0.xml'))))
00110 
00111 
00112 simHcalTriggerPrimitiveDigis.peakFilter = False
00113 simHcalTriggerPrimitiveDigis.inputLabel =  cms.VInputTag(cms.InputTag('hbhereco'), cms.InputTag('hfreco'))
00114 'hbhereco'
00115 simEcalTriggerPrimitiveDigis.Famos = True
00116 simEcalTriggerPrimitiveDigis.Label = 'ecalRecHit'
00117 
00118 caloRecHits = cms.Sequence(ecalRecHit*ecalPreshowerRecHit*hbhereco*horeco*hfreco)