Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-23 03:14:24

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_$ERA_cff import *
0004 process = cms.Process('CTPPSTest', $ERA)
0005 
0006 # load config
0007 import Validation.CTPPS.simu_config.year_$CONFIG_cff as config
0008 process.load("Validation.CTPPS.simu_config.year_$CONFIG_cff")
0009 
0010 # minimal logger settings
0011 process.MessageLogger = cms.Service("MessageLogger",
0012   statistics = cms.untracked.vstring(),
0013   destinations = cms.untracked.vstring('cout'),
0014   cout = cms.untracked.PSet(
0015     threshold = cms.untracked.string('WARNING')
0016   )
0017 )
0018 
0019 # number of events
0020 process.maxEvents = cms.untracked.PSet(
0021   input = cms.untracked.int32(int($N_EVENTS))
0022 )
0023 
0024 # LHCInfo plotter
0025 process.load("Validation.CTPPS.ctppsLHCInfoPlotter_cfi")
0026 process.ctppsLHCInfoPlotter.outputFile = "$OUT_LHCINFO"
0027 
0028 # track distribution plotter
0029 process.ctppsTrackDistributionPlotter = cms.EDAnalyzer("CTPPSTrackDistributionPlotter",
0030   tagTracks = cms.InputTag("ctppsLocalTrackLiteProducer"),
0031 
0032   rpId_45_F = process.rpIds.rp_45_F,
0033   rpId_45_N = process.rpIds.rp_45_N,
0034   rpId_56_N = process.rpIds.rp_56_N,
0035   rpId_56_F = process.rpIds.rp_56_F,
0036 
0037   outputFile = cms.string("$OUT_TRACKS")
0038 )
0039 
0040 # reconstruction plotter
0041 process.ctppsProtonReconstructionPlotter = cms.EDAnalyzer("CTPPSProtonReconstructionPlotter",
0042   tagTracks = cms.InputTag("ctppsLocalTrackLiteProducer"),
0043   tagRecoProtonsSingleRP = cms.InputTag("ctppsProtons", "singleRP"),
0044   tagRecoProtonsMultiRP = cms.InputTag("ctppsProtons", "multiRP"),
0045 
0046   rpId_45_F = process.rpIds.rp_45_F,
0047   rpId_45_N = process.rpIds.rp_45_N,
0048   rpId_56_N = process.rpIds.rp_56_N,
0049   rpId_56_F = process.rpIds.rp_56_F,
0050 
0051   outputFile = cms.string("$OUT_PROTONS")
0052 )
0053 
0054 # processing path
0055 process.p = cms.Path(
0056   process.generator
0057   * process.beamDivergenceVtxGenerator
0058   * process.ctppsDirectProtonSimulation
0059 
0060   * process.reco_local
0061   * process.ctppsProtons
0062 
0063   * process.ctppsLHCInfoPlotter
0064   * process.ctppsTrackDistributionPlotter
0065   * process.ctppsProtonReconstructionPlotter
0066 )