Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process( "RawDataConverter" )
0004 
0005 ## Choose the input files (and if needed the Event ranges)
0006 process.source = cms.Source( "PoolSource",
0007   fileNames = cms.untracked.vstring(
0008        '/store/data/Run2010A/TestEnables/RAW/v1/000/140/124/56E00D1B-308F-DF11-BE54-001D09F24691.root'              
0009     ),
0010     eventsToProcess = cms.untracked.VEventRange(
0011     '140124:1141118271-140124:2134733046'
0012     )
0013 )
0014 
0015 # Choose how many events should be processed
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32( 2000 )
0018 )
0019 
0020 ## message logger
0021 process.MessageLogger = cms.Service("MessageLogger",
0022     cerr = cms.untracked.PSet(
0023         threshold = cms.untracked.string('ERROR')
0024     ),
0025     cout = cms.untracked.PSet(
0026         enable = cms.untracked.bool(True),
0027         threshold = cms.untracked.string('INFO')
0028     ),
0029     debugModules = cms.untracked.vstring('RawDataConverter')
0030 )
0031 
0032 
0033 # Choose the correct global tag for the data
0034 process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff" )
0035 process.GlobalTag.globaltag = cms.string('GR_R_37X_V6::All')
0036 
0037 
0038 # Laser Alignment Event Filter
0039 process.load('Alignment.LaserAlignment.LaserAlignmentEventFilter_cfi')
0040 
0041 
0042 # strip digitizer
0043 process.load( "EventFilter.SiStripRawToDigi.SiStripDigis_cfi" )
0044 process.siStripDigis.ProductLabel = 'source'
0045 process.siStripDigis.TriggerFedId = -1
0046 
0047 
0048 # multiple sets can be given, only those will be output
0049 process.load( "Alignment.LaserAlignment.LaserAlignmentT0Producer_cfi" )
0050 process.laserAlignmentT0Producer.DigiProducerList = cms.VPSet(
0051   cms.PSet(
0052     DigiLabel = cms.string( 'ZeroSuppressed' ),
0053     DigiType = cms.string( 'Processed' ),
0054     DigiProducer = cms.string( 'siStripDigis' )
0055   )
0056 )
0057 
0058 
0059 # Raw Data Converter
0060 process.load('Alignment.LaserAlignment.RawDataConverter_cfi')
0061 process.RawDataConverter.OutputFileName = cms.untracked.string( 'RawDataConverter.root' ) #@@@ output file
0062 
0063 
0064 # Define what should go into the Producer Output file (in this case we choose only th T0 Producer products)
0065 process.out = cms.OutputModule( "PoolOutputModule",
0066   outputCommands = cms.untracked.vstring(
0067     'drop *', 
0068     'keep *_laserAlignmentT0Producer_*_*'
0069   ),
0070   fileName = cms.untracked.string( '/tmp/wittmer/RawDataConverterTest_T0.root' )
0071 )
0072 
0073 # Run the full chain of LAS analysis
0074 process.p = cms.Path(process.LaserAlignmentEventFilter + process.siStripDigis + process.laserAlignmentT0Producer + process.RawDataConverter + process.out)