Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:25

0001 #########################
0002 #Author: Sam Higginbotham
0003 #Purpose: To investigate the AlCaPCCProducer input and output. 
0004 #########################
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("ALCARECO")
0008 
0009 process.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring('file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/1CF2A210-5B7E-E511-8F4F-02163E014145.root','file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/1E2B0829-707E-E511-B51B-02163E0145FE.root','file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/2666E76A-707E-E511-92E4-02163E014689.root','file:/eos/cms/store/data/Run2015D/AlCaLumiPixels/ALCARECO/LumiPixels-PromptReco-v4/000/260/039/00000/2A1E3304-707E-E511-946C-02163E014241.root')
0011 )
0012 
0013 #Added process to select the appropriate events 
0014 process.OutALCARECOPromptCalibProdPCC = cms.PSet(
0015     SelectEvents = cms.untracked.PSet(
0016         SelectEvents = cms.vstring('pathALCARECOPromptCalibProdPCC')
0017     ),
0018     outputCommands = cms.untracked.vstring('drop *', 
0019         'keep *_alcaPCCProducer_*_*', 
0020         'keep *_MEtoEDMConvertSiStrip_*_*')
0021 )
0022 #Make sure that variables match in producer.cc and .h
0023 process.alcaPCCProducer = cms.EDProducer("AlcaPCCProducer",
0024     pixelClusterLabel = cms.InputTag("siPixelClustersForLumi"),
0025     #Mod factor to count lumi and the string to specify output 
0026     trigstring = cms.untracked.string("alcaPCCRand") 
0027 )
0028 
0029 process.OutALCARECOLumiPixels = cms.PSet(
0030     SelectEvents = cms.untracked.PSet(
0031         SelectEvents = cms.vstring('pathALCARECOLumiPixels')
0032     ),
0033     outputCommands = cms.untracked.vstring('drop *', 
0034         'keep *_siPixelClustersForLumi_*_*', 
0035         'keep *_TriggerResults_*_HLT')
0036 )
0037 
0038 
0039 process.OutALCARECOLumiPixels_noDrop = cms.PSet(
0040     SelectEvents = cms.untracked.PSet(
0041         SelectEvents = cms.vstring('pathALCARECOLumiPixels')
0042     ),
0043     outputCommands = cms.untracked.vstring('keep *_siPixelClustersForLumi_*_*', 
0044         'keep *_TriggerResults_*_HLT')
0045 )
0046 
0047 process.siPixelClustersForLumi = cms.EDProducer("SiPixelClusterProducer",
0048     ChannelThreshold = cms.int32(1000),
0049     ClusterThreshold = cms.double(4000.0),
0050     MissCalibrate = cms.untracked.bool(True),
0051     SeedThreshold = cms.int32(1000),
0052     SplitClusters = cms.bool(False),
0053     VCaltoElectronGain = cms.int32(65),
0054     VCaltoElectronOffset = cms.int32(-414),
0055     maxNumberOfClusters = cms.int32(-1),
0056     payloadType = cms.string('Offline'),
0057     src = cms.InputTag("siPixelDigisForLumi")
0058 )
0059 
0060 
0061 process.siPixelDigisForLumi = cms.EDProducer("SiPixelRawToDigi",
0062     CablingMapLabel = cms.string(''),
0063     ErrorList = cms.vint32(29),
0064     IncludeErrors = cms.bool(True),
0065     InputLabel = cms.InputTag("hltFEDSelectorLumiPixels"),
0066     Regions = cms.PSet(
0067 
0068     ),
0069     UsePhase1 = cms.bool(False),
0070     UsePilotBlade = cms.bool(False),
0071     UseQualityInfo = cms.bool(False),
0072     UserErrorList = cms.vint32(40)
0073 )
0074 
0075 
0076 
0077 
0078 #HLT filter for PCC
0079 process.ALCARECOHltFilterForPCC = cms.EDFilter("HLTHighLevel",
0080     HLTPaths = cms.vstring("*Random*"),
0081     eventSetupPathsKey = cms.string(""),
0082     TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0083     andOr = cms.bool(True),
0084     throw = cms.bool(False)
0085 )
0086 #From the end path, this is where we specify format for our output.
0087 process.ALCARECOStreamPromptCalibProdPCC = cms.OutputModule("PoolOutputModule",
0088     SelectEvents = cms.untracked.PSet(
0089         SelectEvents = cms.vstring('pathALCARECOPromptCalibProdPCC')
0090     ),
0091     dataset = cms.untracked.PSet(
0092         dataTier = cms.untracked.string('ALCAPROMPT'),
0093         filterName = cms.untracked.string('PromptCalibProdPCC')
0094     ),
0095     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0096     fileName = cms.untracked.string('ProdPCC_Random_100.root'),
0097     outputCommands = cms.untracked.vstring('drop *', 
0098         'keep *_alcaPCCProducer_*_*', 
0099         'keep *_MEtoEDMConvertSiStrip_*_*')
0100 )
0101 
0102 
0103 #
0104 process.alcaPCC = cms.Sequence(process.alcaPCCProducer)
0105 
0106 #This is the key sequence that we are adding first...
0107 process.seqALCARECOPromptCalibProdPCC = cms.Sequence(process.ALCARECOHltFilterForPCC+process.alcaPCCProducer)
0108 
0109 process.pathALCARECOPromptCalibProdPCC = cms.Path(process.seqALCARECOPromptCalibProdPCC)
0110 
0111 process.seqALCARECOLumiPixels = cms.Sequence(process.siPixelDigisForLumi+process.siPixelClustersForLumi)
0112 
0113 process.pathALCARECOLumiPixels = cms.Path(process.seqALCARECOLumiPixels)
0114 
0115 process.ALCARECOStreamPromptCalibProdOutPath = cms.EndPath(process.ALCARECOStreamPromptCalibProdPCC)
0116 
0117 process.MessageLogger = cms.Service("MessageLogger",
0118     cerr = cms.untracked.PSet(
0119         FwkJob = cms.untracked.PSet(
0120             limit = cms.untracked.int32(0)
0121         ),
0122         FwkReport = cms.untracked.PSet(
0123             limit = cms.untracked.int32(10000000),
0124             reportEvery = cms.untracked.int32(100000)
0125         ),
0126         FwkSummary = cms.untracked.PSet(
0127             limit = cms.untracked.int32(10000000),
0128             reportEvery = cms.untracked.int32(1)
0129         ),
0130         INFO = cms.untracked.PSet(
0131             limit = cms.untracked.int32(0)
0132         ),
0133         Root_NoDictionary = cms.untracked.PSet(
0134             limit = cms.untracked.int32(0)
0135         ),
0136         default = cms.untracked.PSet(
0137             limit = cms.untracked.int32(10000000)
0138         ),
0139         noTimeStamps = cms.untracked.bool(False),
0140         threshold = cms.untracked.string('INFO'),
0141         enableStatistics = cms.untracked.bool(True),
0142         statisticsThreshold = cms.untracked.string('WARNING')
0143     ),
0144     debugModules = cms.untracked.vstring(),
0145     default = cms.untracked.PSet(
0146 
0147     ),
0148     suppressDebug = cms.untracked.vstring(),
0149     suppressInfo = cms.untracked.vstring(),
0150     suppressWarning = cms.untracked.vstring()
0151 )
0152 #added line for additional output summary `
0153 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0154 
0155 
0156 process.schedule = cms.Schedule(*[ process.pathALCARECOPromptCalibProdPCC, process.ALCARECOStreamPromptCalibProdOutPath ])