Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:04

0001 #
0002 # cfg file for: 
0003 #
0004 #   Run the L1 GT emulator on the unpacked GCT and GMT data.
0005 #   Compare the GT data records with the GT emulated records
0006 
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 # process
0011 process = cms.Process("RunL1GtDataEmulAnalyzer")
0012 
0013 # number of events to be processed and source file
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(50)
0016 )
0017 
0018 process.source = cms.Source("PoolSource",
0019     fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/g/ghete/scratch0/CmsswTestFiles/testGt_DataEmulAnalyzer_source.root')
0020 )
0021 
0022 process.PoolSource.fileNames = ['/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/04AA7F35-C426-DD11-B047-001D09F2516D.root', 
0023     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/04F935C6-C426-DD11-AE42-001D09F24637.root', 
0024     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/0663785C-C626-DD11-8118-000423D94534.root', 
0025     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/068D1384-C526-DD11-A027-000423D94A04.root', 
0026     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/069F542D-C426-DD11-B4FD-001D09F290CE.root', 
0027     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/088C9FC0-C426-DD11-80A5-000423D99CEE.root', 
0028     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/0A89B10E-C526-DD11-886F-001D09F2532F.root', 
0029     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/0E2F9E85-C626-DD11-B460-001D09F231B0.root', 
0030     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/1012C6C0-C426-DD11-8E75-000423D6B444.root', 
0031     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/1212CF82-C526-DD11-8840-001617E30D0A.root', 
0032     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/14287A88-C526-DD11-978F-000423D99896.root', 
0033     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/16AE8487-C526-DD11-88F5-001D09F24498.root', 
0034     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/1A728D7F-C526-DD11-9363-001617C3B6E2.root', 
0035     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/1C63F034-C426-DD11-98A0-001D09F24F65.root', 
0036     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/1E4EC288-C526-DD11-94B0-001D09F2525D.root', 
0037     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/20C9B509-C526-DD11-BD8C-001D09F244DE.root', 
0038     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/2642ADCA-C426-DD11-A971-001D09F2906A.root', 
0039     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/2A9FB786-C526-DD11-BB6D-001617C3B6CC.root', 
0040     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/2C1C5209-C526-DD11-A4B5-001D09F24D67.root', 
0041     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/2E4FB3C8-C426-DD11-91E0-0019B9F705A3.root', 
0042     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/2E53B076-C526-DD11-AF83-001D09F2A465.root', 
0043     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/325C9484-C626-DD11-9123-001D09F24F65.root', 
0044     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/34D18586-C526-DD11-AE6E-001617C3B69C.root', 
0045     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/3A4BB185-C526-DD11-A030-0019B9F705A3.root', 
0046     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/3AFE8409-C526-DD11-9F2C-001617DBD332.root', 
0047     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/3CDBC0B0-C626-DD11-9A8F-001D09F2525D.root', 
0048     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/3E44DA7D-C526-DD11-8555-000423D951D4.root', 
0049     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/4058E48A-C526-DD11-97FF-001617E30F56.root', 
0050     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/44F9F281-C526-DD11-B6CE-000423D99AA2.root', 
0051     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/48D9347F-C526-DD11-B90E-001617E30D52.root', 
0052     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/4EF5B58B-C526-DD11-B608-001D09F2A49C.root', 
0053     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/50E8D437-C426-DD11-A66B-001D09F251FE.root', 
0054     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/5473F70C-C526-DD11-84D8-001D09F24DDA.root', 
0055     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/5690A985-C626-DD11-8F78-001D09F2932B.root', 
0056     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/58B44484-C526-DD11-BE92-000423D9939C.root', 
0057     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/5C95A980-C526-DD11-AA27-001617DBD332.root', 
0058     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/5CAA59AB-C626-DD11-9451-001D09F25456.root', 
0059     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/5EA14E0A-C526-DD11-AF5C-001D09F28E80.root', 
0060     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/5EADB005-C526-DD11-B7A1-001D09F24399.root', 
0061     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/668DEA01-C526-DD11-B7DB-001D09F2546F.root', 
0062     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/66F05B87-C526-DD11-ACAA-000423D94E70.root', 
0063     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/6ABEE90D-C626-DD11-B9E9-0030487A18F2.root', 
0064     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/6C142B89-C526-DD11-BC79-001617C3B706.root', 
0065     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/6C36B389-C526-DD11-A4FF-001D09F28F25.root', 
0066     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/6C6E8381-C526-DD11-949A-000423D98B28.root', 
0067     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/6E15E00D-C526-DD11-8DBB-001D09F24EC0.root', 
0068     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/6E28C8BD-C426-DD11-8219-000423D944F8.root', 
0069     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/70E8F2C1-C426-DD11-9B3E-001D09F2503C.root', 
0070     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/72CEF283-C526-DD11-B393-000423D98DC4.root', 
0071     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/76D1AB05-C526-DD11-A4DB-001D09F2841C.root', 
0072     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/7AAA5B7D-C526-DD11-9E9C-000423D944FC.root', 
0073     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/7C1F29C1-C426-DD11-81E4-000423D944FC.root', 
0074     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/7CDE918E-C526-DD11-8B51-0019B9F707D8.root', 
0075     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/8037767E-C626-DD11-839B-001D09F2960F.root', 
0076     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/8060D709-C526-DD11-B39E-001D09F251E0.root', 
0077     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/82065F1A-C626-DD11-A0AC-001D09F231C9.root', 
0078     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/84D88E85-C526-DD11-A46F-001617C3B6CE.root', 
0079     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/8620AD09-C526-DD11-B0DC-001D09F28F11.root', 
0080     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/863AE5CB-C426-DD11-8154-001D09F28E80.root', 
0081     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/884FA985-C626-DD11-82A9-001D09F291D7.root', 
0082     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/9692F0C6-C426-DD11-AD86-0019B9F72BFF.root', 
0083     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/98FBFF87-C526-DD11-A0AE-001D09F24EC0.root', 
0084     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/A8AB9B85-C626-DD11-BCDE-001D09F2305C.root', 
0085     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/AA0E6689-C526-DD11-9FD8-001D09F24DA8.root', 
0086     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/AE1B864B-C326-DD11-AF5A-000423D986C4.root', 
0087     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/AE437109-C526-DD11-BC07-001D09F2438A.root', 
0088     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/AEF6E086-C526-DD11-8326-0019B9F704D1.root', 
0089     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/B4710DA7-C526-DD11-B659-001D09F23A6B.root', 
0090     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/B4EF9581-C626-DD11-8E4A-001D09F28E80.root', 
0091     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/BAA4138B-C526-DD11-870F-000423D944F0.root', 
0092     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/BAB50884-C626-DD11-8418-001D09F2525D.root', 
0093     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/C4147609-C526-DD11-A649-001D09F292D1.root', 
0094     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/C6B5B17F-C526-DD11-8145-000423D99660.root', 
0095     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/CA88975E-C526-DD11-8ED6-001617C3B76E.root', 
0096     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/CEB69E7F-C526-DD11-9E94-000423D98BC4.root', 
0097     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/CECA5B7C-C526-DD11-A158-001617DBD5AC.root', 
0098     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/D0352C1C-C526-DD11-9B7B-001D09F29538.root', 
0099     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/D2D36EC1-C426-DD11-B413-001D09F250AF.root', 
0100     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/D42DF0D3-C526-DD11-9A01-001D09F2A49C.root', 
0101     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/D6CAAA9D-C526-DD11-9F52-000423D98750.root', 
0102     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/DC14738A-C526-DD11-8814-000423D99264.root', 
0103     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/DCE0C480-C526-DD11-993D-000423D9997E.root', 
0104     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/DEE7C481-C526-DD11-8E06-001617E30D12.root', 
0105     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/E435D97C-C626-DD11-969E-001D09F251E0.root', 
0106     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/E43DDA88-C526-DD11-B226-001D09F2AD4D.root', 
0107     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/E839788B-C526-DD11-9487-000423D99BF2.root', 
0108     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/EAA00680-C526-DD11-AEA9-000423D98800.root', 
0109     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/F23E5C02-C526-DD11-81FC-001D09F23D1D.root', 
0110     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/F2BD4C0B-C526-DD11-A42F-001D09F23A3E.root', 
0111     '/store/data/2008/5/20/T0ReReco-GlobalCruzet1-A-v1/0004/FA19908B-C526-DD11-A839-0019B9F730D2.root']
0112 
0113 
0114 # load and configure modules
0115 
0116 process.load("Configuration.StandardSequences.FakeConditions_cff")
0117 process.load("Configuration.StandardSequences.GeometryDB_cff")
0118 
0119 process.load("L1Trigger.Configuration.L1Config_cff")
0120 
0121 # L1 menu    
0122 process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.lumi1x1032.L1Menu_CRUZET200805_gr7_muon_cff")
0123 
0124 # Global Trigger emulator
0125 
0126 import L1Trigger.GlobalTrigger.gtDigis_cfi
0127 process.l1GtEmulDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
0128 
0129 # block GCT input and the technical triggers (only FDL and GMT active) 0x0101
0130 process.l1GtParameters.DaqActiveBoards = 0x010d
0131 
0132 # block GMT input (0xdd12)
0133 #process.l1GtParameters.DaqActiveBoards = 0x00FF
0134         
0135 # block both GCT and GMT (FDL and techTrig active)
0136 #process.l1GtParameters.DaqActiveBoards = 0x0003
0137 
0138 # input tag for GMT readout collection: 
0139 process.l1GtEmulDigis.GmtInputTag = 'gtDigis'
0140 
0141 # input tag for GCT readout collections: 
0142 #process.l1GtEmulDigis.GctInputTag = 'gctDigis'
0143 
0144 # logical flag to produce the L1 GT DAQ readout record
0145 #     if true, produce the record (default)
0146 #process.l1GtEmulDigis.ProduceL1GtDaqRecord = False
0147     
0148 # logical flag to produce the L1 GT EVM readout record
0149 #     if true, produce the record (default)
0150 #process.l1GtEmulDigis.ProduceL1GtEvmRecord = False
0151 
0152 # logical flag to produce the L1 GT object map record
0153 #     if true, produce the record (default)
0154 #process.l1GtEmulDigis.ProduceL1GtObjectMapRecord = False
0155 
0156 # logical flag to write the PSB content in the  L1 GT DAQ record
0157 #     if true, write the PSB content in the record (default)
0158 #process.l1GtEmulDigis.WritePsbL1GtDaqRecord = False
0159 
0160 # logical flag to read the technical trigger records
0161 #     if true, it will read via getMany the available records (default)
0162 #process.l1GtEmulDigis.ReadTechnicalTriggerRecords = False
0163 
0164 # number of "bunch crossing in the event" (BxInEvent) to be emulated
0165 # symmetric around L1Accept (BxInEvent = 0):
0166 #    1 (BxInEvent = 0); 3 (F 0 1) (standard record); 5 (E F 0 1 2) (debug record)
0167 # even numbers (except 0) "rounded" to the nearest lower odd number
0168 # negative value: emulate TotalBxInEvent as given in EventSetup  
0169 #process.l1GtEmulDigis.EmulateBxInEvent = 3
0170 
0171 
0172 # Global Trigger report
0173 
0174 import L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi
0175 process.l1GtTrigReportData = L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi.l1GtTrigReport.clone()
0176 
0177 process.l1GtTrigReportData.L1GtRecordInputTag = 'gtDigis'
0178 
0179 #
0180 import L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi
0181 process.l1GtTrigReportEmul = L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi.l1GtTrigReport.clone()
0182 
0183 process.l1GtTrigReportEmul.L1GtRecordInputTag = 'l1GtEmulDigis'
0184 
0185 #
0186 # compare the L1 GT data and emulator digis
0187 process.load("L1Trigger.GlobalTriggerAnalyzer.l1GtDataEmulAnalyzer_cfi")
0188 process.l1GtDataEmulAnalyzer.L1GtEmulInputTag = 'l1GtEmulDigis'
0189 
0190 # paths to be run
0191 process.p = cms.Path(process.l1GtEmulDigis*process.l1GtDataEmulAnalyzer*process.l1GtTrigReportData*process.l1GtTrigReportEmul)
0192 
0193 # services
0194 
0195 # Message Logger
0196 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0197 
0198 process.MessageLogger.cerr.enable = False
0199 process.MessageLogger.cout = cms.untracked.PSet(
0200     enable = cms.untracked.bool(True),
0201     threshold = cms.untracked.string('INFO'),
0202     INFO = cms.untracked.PSet(
0203         #limit = cms.untracked.int32(-1)
0204         limit = cms.untracked.int32(1000)
0205     )#,
0206     
0207     #threshold = cms.untracked.string('DEBUG'), ## DEBUG 
0208 
0209     #DEBUG = cms.untracked.PSet( ## DEBUG, all messages  
0210     #
0211     #    limit = cms.untracked.int32(-1)
0212     #)
0213 )
0214 process.MessageLogger.debugModules = ['l1GtEmulDigis']
0215 
0216 # histogram service
0217 process.TFileService = cms.Service("TFileService",
0218     fileName = cms.string('L1GtDataEmulAnalyzer.root')
0219 )
0220 
0221 # summary
0222 process.options = cms.untracked.PSet(
0223     wantSummary = cms.untracked.bool(True)
0224 )
0225 
0226 # output 
0227 process.outputL1GtDataEmul = cms.OutputModule("PoolOutputModule",
0228     fileName = cms.untracked.string('testGt_DataEmulAnalyzer_output.root'),
0229     outputCommands = cms.untracked.vstring('drop *', 
0230         'keep *_l1GtDataDigis_*_*', 
0231         'keep *_l1GtEmulDigis_*_*', 
0232         'keep *_l1GctDataDigis_*_*')
0233 )
0234 
0235 process.outpath = cms.EndPath(process.outputL1GtDataEmul)