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
anaTrackHits_cfg.py
Go to the documentation of this file.
1import HpstrConf
2import os
3import sys
4import baseConfig as base
5
6options = base.parser.parse_args()
7
8# Use the input file to set the output file name
9inFilename = options.inFilename
10outFilename = options.outFilename
11
12print('Input file: %s' % inFilename)
13print('Output file: %s' % outFilename)
14
16
17p.run_mode = 1
18p.skip_events = options.skip_events
19p.max_events = options.nevents
20
21
22#p.max_events = 1000
23
24# Library containing processors
25p.add_library("libprocessors")
26
27
30anaTrks = HpstrConf.Processor('anaTrks', 'TrackHitAnaProcessor')
31
32
35anaTrks.parameters["debug"] = 0
36anaTrks.parameters["trkCollName"] = 'KalmanFullTracks'
37#anaTrks.parameters["trkCollName"] = 'GBLTracks'
38anaTrks.parameters["histCfg"] = os.environ['HPSTR_BASE']+'/analysis/plotconfigs/tracking/trackHit.json'
39anaTrks.parameters["selectionjson"] = os.environ['HPSTR_BASE']+'/analysis/selections/trackHit/trackHitAna.json'
40
41RegionPath = os.environ['HPSTR_BASE']+"/analysis/selections/trackHit/"
42anaTrks.parameters["regionDefinitions"] = [RegionPath+'hc15_1111.json',
43 RegionPath+'hc14_1110.json',
44 RegionPath+'hc13_1101.json',
45 RegionPath+'hc12_1100.json',
46 RegionPath+'hc11_1011.json',
47 RegionPath+'hc10_1010.json',
48 RegionPath+'hc9_1001.json',
49 RegionPath+'hc8_1000.json',
50 RegionPath+'hc7_0111.json',
51 RegionPath+'hc6_0110.json',
52 RegionPath+'hc5_0101.json',
53 RegionPath+'hc4_0100.json',
54 RegionPath+'hc3_0011.json',
55 RegionPath+'hc2_0010.json',
56 RegionPath+'hc1_0001.json',
57 RegionPath+'hc0_0000.json',
58 RegionPath+'noHCreq.json'
59 ]
60
61# Sequence which the processors will run.
62p.sequence = [anaTrks]
63
64p.input_files = inFilename
65p.output_files = [outFilename]
66
67p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4