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
rawSvtHits_cfg.py
Go to the documentation of this file.
1import HpstrConf
2import sys
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
15
16p.run_mode = 0
17p.skip_events = options.skip_events
18p.max_events = options.nevents
19#p.max_events = 1000
20
21# Library containing processors
22p.add_library("libprocessors")
23
24
27
28header = HpstrConf.Processor('header', 'EventProcessor')
29rawsvt = HpstrConf.Processor('svt', 'SvtRawDataProcessor')
30
31
35header.parameters["debug"] = 0
36header.parameters["headCollRoot"] = "EventHeader"
37header.parameters["trigCollLcio"] = "TriggerBank"
38header.parameters["rfCollLcio"] = "RFHits"
39header.parameters["vtpCollLcio"] = "VTPBank"
40header.parameters["vtpCollRoot"] = "VTPBank"
41header.parameters["tsCollLcio"] = "TSBank"
42header.parameters["tsCollRoot"] = "TSBank"
43
44#SvtRawData
45rawsvt.parameters["debug"] = 0
46rawsvt.parameters["hitCollLcio"] = 'SVTRawTrackerHits'
47rawsvt.parameters["hitfitCollLcio"] = 'SVTFittedRawTrackerHits'
48rawsvt.parameters["hitCollRoot"] = 'SVTRawTrackerHits'
49
50# Sequence which the processors will run.
51p.sequence = [header, rawsvt]
52
53p.input_files = [lcio_file]
54p.output_files = [root_file]
55
56p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4