CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ecalCosmicsHists_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("COSMICSANALYSIS")
4 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
5 
6 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
7 
8 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
9 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_noesprefer_cff")
10 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
11 process.GlobalTag.globaltag = 'CRUZET4_V5P::All'
12 
13 process.EcalTrivialConditionRetriever.producedEcalWeights = False
14 process.EcalTrivialConditionRetriever.producedEcalPedestals = False
15 process.EcalTrivialConditionRetriever.producedEcalIntercalibConstants = False
16 process.EcalTrivialConditionRetriever.producedEcalIntercalibErrors = False
17 process.EcalTrivialConditionRetriever.producedEcalGainRatios = False
18 process.EcalTrivialConditionRetriever.producedEcalADCToGeVConstant = False
19 #process.EcalTrivialConditionRetriever.producedEcalADCToGeVConstant = True
20 #process.EcalTrivialConditionRetriever.adcToGeVEBConstant = 0.035
21 #process.EcalTrivialConditionRetriever.adcToGeVEEConstant = 0.060
22 process.EcalTrivialConditionRetriever.producedEcalLaserCorrection = False
23 #process.EcalTrivialConditionRetriever.producedEcalChannelStatus = False
24 process.EcalTrivialConditionRetriever.producedEcalChannelStatus = cms.untracked.bool(False)
25 #process.EcalTrivialConditionRetriever.channelStatusFile = 'CaloOnlineTools/EcalTools/data/listCRUZET4.v5.hashed.txt'
26 #process.es_prefer_EcalTrivialConditionRetriever = cms.ESPrefer("EcalTrivialConditionRetriever")
27 
28 process.load("CalibCalorimetry.EcalLaserCorrection.ecalLaserCorrectionService_cfi")
29 
31 process.siStripPedestalFrontier = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone()
32 process.siStripPedestalFrontier.connect = 'frontier://PromptProd/CMS_COND_21X_STRIP'
33 process.siStripPedestalFrontier.toGet = cms.VPSet(cms.PSet(
34  record = cms.string('SiStripPedestalsRcd'),
35  tag = cms.string('SiStripPedestals_TKCC_21X_v3_hlt')
36  ))
37 process.siStripPedestalFrontier.BlobStreamerName = 'TBufferBlobStreamingService'
38 process.es_prefer_SiStripFake = cms.ESPrefer("PoolDBESSource","siStripPedestalFrontier")
39 
40 process.load("EventFilter.EcalRawToDigi.EcalUnpackerMapping_cfi")
41 process.load("EventFilter.EcalRawToDigi.EcalUnpackerData_cfi")
42 
44 process.ecalUncalibHit = RecoLocalCalo.EcalRecProducers.ecalFixedAlphaBetaFitUncalibRecHit_cfi.ecalFixedAlphaBetaFitUncalibRecHit.clone()
45 process.load("RecoLocalCalo.EcalRecProducers.ecalRecHit_cfi")
46 
47 process.load("RecoEcal.EgammaClusterProducers.geometryForClustering_cff")
48 process.load("RecoEcal.EgammaClusterProducers.cosmicClusteringSequence_cff")
49 
50 process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerScalesConfig_cff")
51 process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerPtScaleConfig_cff")
52 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtBoardMapsConfig_cff")
53 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtConfig_cff")
54 process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v3_Unprescaled_cff")
56 process.dumpEv = FWCore.Modules.printContent_cfi.printContent.clone()
57 
59 process.gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
60 process.load("CaloOnlineTools.EcalTools.ecalCosmicsHists_cfi")
61 
62 process.load("Configuration.StandardSequences.MagneticField_cff")
63 
64 process.load("Geometry.EcalMapping.EcalMapping_cfi")
65 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
66 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
67 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
68 process.load("Geometry.CommonTopologies.globalTrackingGeometry_cfi")
69 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
70 
71 process.load("TrackingTools.TrackAssociator.DetIdAssociatorESProducer_cff")
72 process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
73 process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
74 process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
75 process.load("Configuration.GlobalRuns.ForceZeroTeslaField_cff")
76 
77 process.load("EventFilter.HcalRawToDigi.HcalRawToDigi_cfi")
78 process.load("RecoLocalCalo.Configuration.hcalLocalReco_cff")
79 
80 process.load("HLTrigger.special.TriggerTypeFilter_cfi")
81 
82 process.source = cms.Source("PoolSource",
83  skipEvents = cms.untracked.uint32(0),
84  fileNames = (cms.untracked.vstring(
85  '/store/data/Commissioning08/BeamHalo/RAW/StuffAlmostToP5_v1/000/061/642/94D3CADF-A47D-DD11-BF3E-000423D94E1C.root'
86 ))
87 )
88 
89 process.maxEvents = cms.untracked.PSet(
90  input = cms.untracked.int32(-1)
91 )
92 
93 process.MessageLogger = cms.Service("MessageLogger",
94  suppressWarning = cms.untracked.vstring('ecalEBunpacker','ecalUncalibHit','ecalRecHit',
95  'hcalDigis','hcalLocalRecoSequence','ecalCosmicsHists'),
96  suppressInfo = cms.untracked.vstring('ecalEBunpacker', 'ecalUncalibHit',
97  'ecalRecHit', 'hcalDigis','hcalLocalRecoSequence'),
98  cout = cms.untracked.PSet(
99  threshold = cms.untracked.string('ERROR')
100  ),
101  categories = cms.untracked.vstring('EcalCosmicsHists','CosmicClusterAlgo','CosmicClusterProducer'),
102  destinations = cms.untracked.vstring('cout')
103 )
104 
105 process.p = cms.Path(process.triggerTypeFilter*process.ecalEBunpacker*process.ecalUncalibHit*process.ecalRecHit*process.cosmicClusteringSequence*process.gtDigis*process.ecalCosmicsHists)
106 
107 process.ecalUncalibHit.EBdigiCollection = 'ecalEBunpacker:ebDigis'
108 process.ecalUncalibHit.EEdigiCollection = 'ecalEBunpacker:eeDigis'
109 process.ecalRecHit.ChannelStatusToBeExcluded = [1]
110 process.ecalRecHit.EBuncalibRecHitCollection = 'ecalUncalibHit:EcalUncalibRecHitsEB'
111 process.ecalRecHit.EEuncalibRecHitCollection = 'ecalUncalibHit:EcalUncalibRecHitsEE'
112 process.cosmicBasicClusters.barrelUnHitProducer = "ecalUncalibHit"
113 process.cosmicBasicClusters.endcapUnHitProducer = "ecalUncalibHit"
114 
115 process.gtDigis.DaqGtInputTag = 'source'
116 
117 process.ecalCosmicsHists.fileName = 'EcalCosmicsHists'
118 process.ecalCosmicsHists.runInFileName = True
119 #process.ecalCosmicsHists.MinTimingAmpEB = 0.1, # for adcToGeV=0.009, gain 200
120 #process.ecalCosmicsHists.MinRecHitAmpEB = 0.027, # for adcToGeV=0.009, gain 200
121 process.ecalCosmicsHists.MinTimingAmpEB = 0.35 # for adcToGeV=0.035, gain 50
122 process.ecalCosmicsHists.MinRecHitAmpEB = 0.070 # for adcToGeV=0.035, gain 50
123 process.ecalCosmicsHists.MinTimingAmpEE = 0.9 # for adcToGeV=0.06
124 process.ecalCosmicsHists.MinRecHitAmpEE = 0.180 # for adcToGeV=0.06
125 
126 process.hbhereco = process.hbheprereco.clone()
127 process.hbhereco.firstSample = 1
128 process.hbhereco.samplesToAdd = 8
129 process.hbhereco.correctForTimeslew = True
130 process.hbhereco.correctForPhaseContainment = True
131 process.hbhereco.correctionPhaseNS = 10.0
132 process.horeco.firstSample = 1
133 process.horeco.samplesToAdd = 8
134 process.horeco.correctForTimeslew = True
135 process.horeco.correctForPhaseContainment = True
136 process.horeco.correctionPhaseNS = 10.
137 process.hfreco.firstSample = 1
138 process.hfreco.samplesToAdd = 8
139 process.hfreco.correctForTimeslew = True
140 process.hfreco.correctForPhaseContainment = True
141 process.hfreco.correctionPhaseNS = 10.
142 
143 process.triggerTypeFilter.SelectedTriggerType = 1
144