hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
anaMCTuple_cfg.py
Go to the documentation of this file.
1import HpstrConf
2import sys
3import os
4import baseConfig as base
5
6#options = base.parser.parse_args()
7
8
9base.parser.add_argument("-w", "--tracking", type=str, dest="tracking",
10 help="Which tracking to use to make plots", metavar="tracking", default="KF")
11options = base.parser.parse_args()
12
13
14print(options)
15
16# Use the input file to set the output file name
17infile = options.inFilename
18outfile = options.outFilename
19
20analysis = options.analysis
21
22
23print('Input file: %s' % infile)
24print('Output file: %s' % outfile)
25print('Analysis : %s' % analysis)
26
28
29p.run_mode = 1
30p.skip_events = options.skip_events
31p.max_events = options.nevents
32
33#p.max_events = 1000
34
35# Library containing processors
36p.add_library("libprocessors")
37
38
41
42mcana = HpstrConf.Processor('mcana', 'MCAnaProcessor')
43
44
48mcana.parameters["debug"] = 0
49mcana.parameters["anaName"] = "mcAna"
50mcana.parameters["partColl"] = "MCParticle"
51mcana.parameters["trkrHitColl"] = "TrackerHits"
52mcana.parameters["ecalHitColl"] = "EcalHits"
53mcana.parameters["analysis"] = analysis
54mcana.parameters["histCfg"] = os.environ['HPSTR_BASE']+'/analysis/plotconfigs/mc/basicMC.json'
55
56# Sequence which the processors will run.
57p.sequence = [mcana]
58
59p.input_files = infile
60p.output_files = [outfile]
61
62p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4