-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest_acceptance_cfg.py
58 lines (46 loc) · 1.65 KB
/
test_acceptance_cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import FWCore.ParameterSet.Config as cms
# load common code
import direct_simu_reco_cff as profile
process = cms.Process('CTPPSTestAcceptance', profile.era)
profile.LoadConfig(process)
# minimal logger settings
process.MessageLogger = cms.Service("MessageLogger",
statistics = cms.untracked.vstring(),
destinations = cms.untracked.vstring('cerr'),
cerr = cms.untracked.PSet(
threshold = cms.untracked.string('WARNING')
)
)
# number of events
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(100000)
)
# acceptance plotter
process.ctppsAcceptancePlotter = cms.EDAnalyzer("CTPPSAcceptancePlotter",
tagHepMC = cms.InputTag("generator", "unsmeared"),
tagTracks = cms.InputTag("ctppsLocalTrackLiteProducer"),
rpId_45_F = process.rpIds.rp_45_F,
rpId_45_N = process.rpIds.rp_45_N,
rpId_56_N = process.rpIds.rp_56_N,
rpId_56_F = process.rpIds.rp_56_F,
outputFile = cms.string("test_acceptance.root")
)
# distribution plotter
process.ctppsTrackDistributionPlotter = cms.EDAnalyzer("CTPPSTrackDistributionPlotter",
tagTracks = cms.InputTag("ctppsLocalTrackLiteProducer"),
x_pitch_pixels = cms.untracked.double(80E-3), # to be synchronised with process.ctppsDirectProtonSimulation.pitchPixelsVer
rpId_45_F = process.rpIds.rp_45_F,
rpId_45_N = process.rpIds.rp_45_N,
rpId_56_N = process.rpIds.rp_56_N,
rpId_56_F = process.rpIds.rp_56_F,
outputFile = cms.string("test_acceptance_xy.root")
)
# processing path
process.p = cms.Path(
process.generator
* process.beamDivergenceVtxGenerator
* process.ctppsDirectProtonSimulation
* process.reco_local
* process.ctppsAcceptancePlotter
* process.ctppsTrackDistributionPlotter
)