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
trkNtuple_cfg.py
Go to the documentation of this file.
1import HpstrConf
2import sys
3
4# Use the input file to set the output file name
5lcio_file = sys.argv[1].strip()
6root_file = '%s_tracks.root' % lcio_file[:-6]
7#root_file = 'testRun.root'
8
9print 'LCIO file: %s' % lcio_file
10print 'Root file: %s' % root_file
11
13
14p.run_mode = 0
15p.skip_events = options.skip_events
16p.max_events = options.nevents
17
18#p.max_events = 1000
19
20# Library containing processors
21p.add_library("libprocessors")
22
23
26
27header = HpstrConf.Processor('header', 'EventProcessor')
28tracks = HpstrConf.Processor('tracks', 'TrackingProcessor')
29
30
34header.parameters["debug"] = 0
35header.parameters["headCollRoot"] = "EventHeader"
36header.parameters["trigCollLcio"] = "TriggerBank"
37header.parameters["rfCollLcio"] = "RFHits"
38header.parameters["vtpCollLcio"] = "VTPBank"
39header.parameters["vtpCollRoot"] = "VTPBank"
40header.parameters["tsCollLcio"] = "TSBank"
41header.parameters["tsCollRoot"] = "TSBank"
42
43#Tracking
44track.parameters["debug"] = 0
45track.parameters["trkCollLcio"] = 'GBLTracks'
46track.parameters["trkCollRoot"] = 'GBLTracks'
47track.parameters["kinkRelCollLcio"] = 'GBLKinkDataRelations'
48track.parameters["trkRelCollLcio"] = 'TrackDataRelations'
49track.parameters["trkhitCollRoot"] = 'RotatedHelicalOnTrackHits'
50track.parameters["hitFitsCollLcio"] = 'SVTFittedRawTrackerHits'
51track.parameters["rawhitCollRoot"] = 'SVTRawHitsOnTrack'
52
53
54# Sequence which the processors will run.
55p.sequence = [header, tracks]
56
57p.input_files = [lcio_file]
58p.output_files = [root_file]
59
60p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4