Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-12 22:39:16

0001 #########################
0002 #Author: Attila Radl (attila.radl@cern.ch) 
0003 #Purpose: To investigate the AlCaPCCEventProducer 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.alcaPCCEventProducer = cms.EDProducer("AlcaPCCEventProducer",
0024      pixelClusterLabel = cms.InputTag("siPixelClustersForLumi"),
0025      #Mod factor to count lumi and the string to specify output 
0026      trigstring = cms.untracked.string("alcaPCCRandom") 
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 #HLT filter for PCC
0077 process.ALCARECOHltFilterForPCC = cms.EDFilter("HLTHighLevel",
0078     HLTPaths = cms.vstring("*Random*"),
0079     eventSetupPathsKey = cms.string(""),
0080     TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0081     andOr = cms.bool(True),
0082     throw = cms.bool(False)
0083 )
0084 #From the end path, this is where we specify format for our output.
0085 process.ALCARECOStreamPromptCalibProdPCC = cms.OutputModule("PoolOutputModule",
0086     SelectEvents = cms.untracked.PSet(
0087         SelectEvents = cms.vstring('pathALCARECOPromptCalibProdPCC')
0088     ),
0089     dataset = cms.untracked.PSet(
0090         dataTier = cms.untracked.string('ALCAPROMPT'),
0091         filterName = cms.untracked.string('PromptCalibProdPCC')
0092     ),
0093     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0094     fileName = cms.untracked.string('ProdPCC_Random_Event_100.root'),
0095     outputCommands = cms.untracked.vstring('drop *', 
0096         'keep *_alcaPCCEventProducer_*_*', 
0097         'keep *_MEtoEDMConvertSiStrip_*_*')
0098 )
0099 
0100 #This is the key sequence that we are adding first...
0101 process.seqALCARECOPromptCalibProdPCC = cms.Sequence(process.ALCARECOHltFilterForPCC+process.alcaPCCEventProducer)
0102 
0103 process.pathALCARECOPromptCalibProdPCC = cms.Path(process.seqALCARECOPromptCalibProdPCC)
0104 
0105 process.seqALCARECOLumiPixels = cms.Sequence(process.siPixelDigisForLumi+process.siPixelClustersForLumi)
0106 
0107 process.pathALCARECOLumiPixels = cms.Path(process.seqALCARECOLumiPixels)
0108 
0109 process.ALCARECOStreamPromptCalibProdOutPath = cms.EndPath(process.ALCARECOStreamPromptCalibProdPCC)
0110 
0111 process.MessageLogger = cms.Service("MessageLogger",
0112         default = cms.untracked.PSet(
0113             limit = cms.untracked.int32(0)
0114         ),
0115         optionalPSet = cms.untracked.bool(True)
0116     ),
0117     categories = cms.untracked.vstring('FwkJob', 
0118         'FwkReport', 
0119         'FwkSummary', 
0120         'Root_NoDictionary'),
0121     cerr = cms.untracked.PSet(
0122         FwkJob = cms.untracked.PSet(
0123             limit = cms.untracked.int32(0),
0124             optionalPSet = cms.untracked.bool(True)
0125         ),
0126         FwkReport = cms.untracked.PSet(
0127             limit = cms.untracked.int32(10000000),
0128             optionalPSet = cms.untracked.bool(True),
0129             reportEvery = cms.untracked.int32(100000)
0130         ),
0131         FwkSummary = cms.untracked.PSet(
0132             limit = cms.untracked.int32(10000000),
0133             optionalPSet = cms.untracked.bool(True),
0134             reportEvery = cms.untracked.int32(1)
0135         ),
0136         INFO = cms.untracked.PSet(
0137             limit = cms.untracked.int32(0)
0138         ),
0139         Root_NoDictionary = cms.untracked.PSet(
0140             limit = cms.untracked.int32(0),
0141             optionalPSet = cms.untracked.bool(True)
0142         ),
0143         default = cms.untracked.PSet(
0144             limit = cms.untracked.int32(10000000)
0145         ),
0146         noTimeStamps = cms.untracked.bool(False),
0147         optionalPSet = cms.untracked.bool(True),
0148         threshold = cms.untracked.string('INFO')
0149     ),
0150     cerr_stats = cms.untracked.PSet(
0151         optionalPSet = cms.untracked.bool(True),
0152         output = cms.untracked.string('cerr'),
0153         threshold = cms.untracked.string('WARNING')
0154     ),
0155     cout = cms.untracked.PSet(
0156         placeholder = cms.untracked.bool(True)
0157     ),
0158     debugModules = cms.untracked.vstring(),
0159     debugs = cms.untracked.PSet(
0160         placeholder = cms.untracked.bool(True)
0161     ),
0162     default = cms.untracked.PSet(
0163 
0164     ),
0165     destinations = cms.untracked.vstring('warnings', 
0166         'errors', 
0167         'infos', 
0168         'debugs', 
0169         'cout', 
0170         'cerr'),
0171     errors = cms.untracked.PSet(
0172         placeholder = cms.untracked.bool(True)
0173     ),
0174     infos = cms.untracked.PSet(
0175         Root_NoDictionary = cms.untracked.PSet(
0176             limit = cms.untracked.int32(0),
0177             optionalPSet = cms.untracked.bool(True)
0178         ),
0179         optionalPSet = cms.untracked.bool(True),
0180         placeholder = cms.untracked.bool(True)
0181     ),
0182     statistics = cms.untracked.vstring('cerr_stats'),
0183     suppressDebug = cms.untracked.vstring(),
0184     suppressInfo = cms.untracked.vstring(),
0185     suppressWarning = cms.untracked.vstring(),
0186     warnings = cms.untracked.PSet(
0187         placeholder = cms.untracked.bool(True)
0188     )
0189 )
0190 #added line for additional output summary `
0191 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0192 
0193 
0194 process.schedule = cms.Schedule(*[ process.pathALCARECOPromptCalibProdPCC, process.ALCARECOStreamPromptCalibProdOutPath ])