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
anaSvtBl2D_cfg.py
Go to the documentation of this file.
1import HpstrConf
2import os
3import baseConfig as base
4
5options = base.parser.parse_args()
6
7# Use the input file to set the output file name
8lcio_file = options.inFilename[0]
9root_file = options.outFilename
10
11print('LCIO file: %s' % lcio_file)
12print('Root file: %s' % root_file)
13
15p.run_mode = 1
16p.skip_events = options.skip_events
17p.max_events = options.nevents
18
19#Set files to process
20p.input_files = [lcio_file]
21p.output_files = [root_file]
22
23# Library containing processors
24p.libraries.append("libprocessors.so")
25
26
29
30svtblana = HpstrConf.Processor('svtblana', 'SvtBl2DAnaProcessor')
31
32
36svtblana.parameters["debug"] = 1
37svtblana.parameters["rawSvtHitsColl"] = "SVTRawTrackerHits"
38svtblana.parameters["histCfg"] = os.environ['HPSTR_BASE']+'/analysis/plotconfigs/svt/Svt2DBl.json'
39svtblana.parameters["triggerBankColl"] = "TSBank"
40svtblana.parameters["triggerBankCfg"] = os.environ['HPSTR_BASE']+'/analysis/selections/triggerSelection.json'
41
42# Sequence which the processors will run.
43p.sequence = [svtblana]
44
45p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4