Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:35

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PEDS")
0004 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0005 
0006 process.source = cms.Source("HcalTBSource",
0007     streams = cms.untracked.vstring('HCAL_Trigger', 
0008         'HCAL_DCC690','HCAL_DCC691','HCAL_DCC692', 
0009 ),
0010     fileNames = cms.untracked.vstring('/store/caft2/user/campbell/castor_localruns/USC_119814.root')
0011 )
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(10000)
0015 )
0016 
0017 process.castorDigis = cms.EDProducer("CastorRawToDigi",
0018    CastorFirstFED = cms.untracked.int32(690),
0019    FilterDataQuality = cms.bool(True),
0020    ExceptionEmptyData = cms.untracked.bool(True),
0021    InputLabel = cms.InputTag("source"),
0022    UnpackCalib = cms.untracked.bool(False),
0023    FEDs = cms.untracked.vint32(690,691,692),
0024    lastSample = cms.int32(9),
0025    firstSample = cms.int32(0)
0026 ) 
0027 
0028 process.out = cms.OutputModule("PoolOutputModule",
0029     fileName = cms.untracked.string('USC_XXXXXX_unpacked.root')
0030 )
0031 process.dumpRaw = cms.EDAnalyzer( "DumpFEDRawDataProduct",
0032 
0033    feds = cms.untracked.vint32( 690,691,692,693 ),
0034    dumpPayload = cms.untracked.bool( True )
0035 )
0036 
0037 process.m = cms.EDAnalyzer("HcalDigiDump")
0038 
0039 process.dump = cms.EDAnalyzer('HcalTBObjectDump',
0040                               hcalTBTriggerDataTag = cms.InputTag('tbunpack'),
0041                               hcalTBRunDataTag = cms.InputTag('tbunpack'),
0042                               hcalTBEventPositionTag = cms.InputTag('tbunpack'),
0043                               hcalTBTimingTag = cms.InputTag('tbunpack')
0044 )
0045 
0046 process.dumpECA = cms.EDAnalyzer("EventContentAnalyzer")
0047 
0048 process.CastorDbProducer = cms.ESProducer("CastorDbProducer")
0049 
0050 #process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
0051     #toGet = cms.untracked.vstring('Gains', 
0052         #'Pedestals', 
0053         #'PedestalWidths', 
0054         #'GainWidths', 
0055         #'QIEShape', 
0056         #'QIEData', 
0057         #'ChannelQuality', 
0058         #'RespCorrs', 
0059         #'ZSThresholds')
0060 #)
0061 
0062 #process.es_ascii = cms.ESSource("CastorTextCalibrations",
0063    #input = cms.VPSet(cms.PSet(
0064        #object = cms.string('ElectronicsMap'),
0065        #file = cms.FileInPath('cmssw_emap_3dcc_v1.txt')
0066    #))
0067 #)
0068 
0069 # use this when it works
0070 #   connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_31X_HCAL'),
0071 
0072 process.es_pool = cms.ESSource(
0073    "PoolDBESSource",
0074    process.CondDBSetup,
0075    timetype = cms.string('runnumber'),
0076    connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierPrep/CMS_COND_30X_HCAL'),
0077    authenticationMethod = cms.untracked.uint32(0),
0078    toGet = cms.VPSet(
0079        cms.PSet(
0080            record = cms.string('CastorPedestalsRcd'),
0081            tag = cms.string('castor_pedestals_v1.0_test')
0082            ),
0083        cms.PSet(
0084            record = cms.string('CastorPedestalWidthsRcd'),
0085            tag = cms.string('castor_pedestalwidths_v1.0_test')
0086            ),
0087        cms.PSet(
0088            record = cms.string('CastorGainsRcd'),
0089            tag = cms.string('castor_gains_v1.0_test')
0090            ),
0091        cms.PSet(
0092            record = cms.string('CastorGainWidthsRcd'),
0093            tag = cms.string('castor_gainwidths_v1.0_test')
0094            ),
0095        cms.PSet(
0096            record = cms.string('CastorQIEDataRcd'),
0097            tag = cms.string('castor_qie_v1.0_test')
0098            ),
0099        cms.PSet(
0100            record = cms.string('CastorChannelQualityRcd'),
0101            tag = cms.string('castor_channelquality_v1.0_test')
0102            ),
0103        cms.PSet(
0104            record = cms.string('CastorElectronicsMapRcd'),
0105            tag = cms.string('castor_emap_dcc_v1.0_test')
0106            )
0107    )
0108 )
0109 
0110 process.castorpedestalsanalysis = cms.EDAnalyzer("CastorPedestalsAnalysis",
0111     hiSaveFlag  = cms.untracked.bool( False ),
0112     verboseflag = cms.untracked.bool( True ),
0113     firstTS = cms.untracked.int32(0),
0114     lastTS = cms.untracked.int32(9),
0115     castorDigiCollectionTag = cms.InputTag('castorDigis')
0116 )
0117 
0118 process.TFileService = cms.Service("TFileService",
0119    fileName = cms.string('castorDigis.root')
0120 )
0121 
0122 process.load("FWCore.MessageService.MessageLogger_cfi")
0123 process.MessageLogger.cerr.enable = False
0124 process.MessageLogger.files.detailedInfo = dict(extension = 'txt')
0125 
0126 #process.p = cms.Path(process.dumpRaw*process.castorDigis*process.dump*process.m*process.dumpECA)
0127 process.p = cms.Path(process.castorDigis*process.castorpedestalsanalysis)
0128 process.ep = cms.EndPath(process.out)
0129