CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ecalDisplaysByEvent_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("ECALDISPLAYSBYEVENT")
4 process.load("EventFilter.EcalRawToDigi.EcalUnpackerMapping_cfi")
5 process.load("EventFilter.EcalRawToDigi.EcalUnpackerData_cfi")
6 
7 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
8 
9 process.load("Geometry.EcalCommonData.EcalOnly_cfi")
10 
11 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
12 process.load("Geometry.EcalMapping.EcalMapping_cfi")
13 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
14 
15 process.load("CalibCalorimetry.EcalLaserCorrection.ecalLaserCorrectionService_cfi")
16 
17 import RecoLocalCalo.EcalRecProducers.ecalMaxSampleUncalibRecHit_cfi
18 process.ecalUncalibHit = RecoLocalCalo.EcalRecProducers.ecalMaxSampleUncalibRecHit_cfi.ecalMaxSampleUncalibRecHit.clone()
19 process.ecalUncalibHit.EBdigiCollection = 'ecalEBunpacker:ebDigis'
20 process.ecalUncalibHit.EEdigiCollection = 'ecalEBunpacker:eeDigis'
21 
22 process.load("RecoLocalCalo.EcalRecProducers.ecalRecHit_cfi")
23 process.ecalRecHit.ChannelStatusToBeExcluded = [1]
24 process.ecalRecHit.EBuncalibRecHitCollection = 'ecalUncalibHit:EcalUncalibRecHitsEB'
25 process.ecalRecHit.EEuncalibRecHitCollection = 'ecalUncalibHit:EcalUncalibRecHitsEE'
26 
27 process.load("CaloOnlineTools.EcalTools.ecalDisplaysByEvent_cfi")
28 process.load("HLTrigger.special.TriggerTypeFilter_cfi")
29 process.triggerTypeFilter.SelectedTriggerType = 1
30 
31 process.source = cms.Source("PoolSource",
32  skipEvents = cms.untracked.uint32(0),
33  fileNames = cms.untracked.vstring(
34  '/store/data/Commissioning08/BeamHalo/RAW/StuffAlmostToP5_v1/000/061/642/94D3CADF-A47D-DD11-BF3E-000423D94E1C.root'
35  )
36 )
37 process.maxEvents = cms.untracked.PSet(
38  input = cms.untracked.int32(10)
39 )
40 
41 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
42 process.EcalTrivialConditionRetriever.producedEcalWeights = False
43 process.EcalTrivialConditionRetriever.producedEcalPedestals = False
44 process.EcalTrivialConditionRetriever.producedEcalIntercalibConstants = False
45 process.EcalTrivialConditionRetriever.producedEcalIntercalibErrors = False
46 process.EcalTrivialConditionRetriever.producedEcalGainRatios = False
47 process.EcalTrivialConditionRetriever.producedEcalADCToGeVConstant = False
48 process.EcalTrivialConditionRetriever.producedEcalLaserCorrection = False
49 process.EcalTrivialConditionRetriever.producedChannelStatus = cms.untracked.bool(False)
50 #es_prefer_EcalChannelStatus = cms.ESPrefer("EcalTrivialConditionRetriever","EcalChannelStatus")
51 
52 process.load("Configuration.StandardSequences.MagneticField_cff")
53 process.load("Configuration.GlobalRuns.ForceZeroTeslaField_cff")
54 
55 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
56 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_noesprefer_cff")
57 process.GlobalTag.globaltag = 'CRUZET4_V5P::All'
58 
59 process.dumpEv = cms.EDAnalyzer("EventContentAnalyzer")
60 
61 process.MessageLogger = cms.Service("MessageLogger",
62  #suppressInfo = cms.untracked.vstring('ecalEBunpacker'),
63  cout = cms.untracked.PSet(
64  threshold = cms.untracked.string('DEBUG')
65  ),
66  categories = cms.untracked.vstring('EcalMipGraphs'),
67  destinations = cms.untracked.vstring('cout')
68 )
69 
70 process.TFileService = cms.Service("TFileService",
71  fileName = cms.string('ecalDisplaysEvent7691-61642.root'),
72  closeFileFast = cms.untracked.bool(True)
73 )
74 
75 # EventNumberFilter UserCode/CCEcal/CRUZET2/CaloOnlineTools/EventNumberFilter
76 #process.load("CaloOnlineTools.EventNumberFilter.eventNumberFilter_cfi")
77 #process.eventNumberFilter.InterestingEvents = (7691,7995,8282,8551,8853,9116,9414,9694,9999,10295,11971,12261,13073)
78 
79 # L1 Trigger Filter see https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideL1TriggerFAQ
80 #process.load("L1TriggerConfig.L1GtConfigProducers.L1GtConfig_cff")
81 #process.load("L1TriggerConfig.L1GtConfigProducers.startup.startupL1Menu_startup_v3_Unprescaled_cff")
82 #process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerScalesConfig_cff")
83 #process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerPtScaleConfig_cff")
84 #process.load("L1TriggerConfig.L1GtConfigProducers.L1GtBoardMapsConfig_cff")
85 #process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi")
86 #process.gtDigis = process.l1GtUnpack.clone()
87 #process.load("L1Trigger.Skimmer.l1Filter_cfi")
88 # For the time being the only ecal trigger being used is L1_SingleEG2
89 #process.l1Filter.algorithms = cms.vstring('L1_SingleEG2')
90 #process.gtDigis.DaqGtInputTag = 'source'
91 
92 process.p = cms.Path(
93 
94 # gtDigis and l1Filter to filter by EcalTrigger
95 # process.gtDigis
96 # *
97 # process.l1Filter
98 # *
99 
100 # eventNumberFilter to filter specific events
101 # process.eventNumberFilter
102 # *
103 
104 # Standard sequence to run ecalDisplaysByEvent
105  process.ecalEBunpacker
106  *
107  process.ecalUncalibHit
108  *
109  process.ecalRecHit
110  *
111  process.ecalDisplaysByEvent
112 )