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
clustersOnTracks.py
Go to the documentation of this file.
1import HpstrConf
2import sys
3import os
4#import baseConfig as base
5
6#base.parser.add_argument('-b', '--baselines', type=str, dest="baselines",default="",
7# help="input offline baseline analysis root file")
8
9# Use the input file to set the output file name
10infilename = sys.argv[1].strip()
11outfilename = sys.argv[2].strip()
12
13#options = base.parser.parse_args()
14#infilename = options.inFilename
15#outfilename = options.outFilename
16
17print('Input file: %s' % infilename)
18print('Output file: %s' % outfilename)
19
21
22p.run_mode = 1
23p.skip_events = options.skip_events
24p.max_events = options.nevents
25
26#p.max_events = 1000
27
28# Library containing processors
29p.add_library("libprocessors")
30
31#Processors
32clusters = HpstrConf.Processor('clusters', 'ClusterOnTrackAnaProcessor')
33
34#Processor Configurations
35clusters.parameters["debug"] = 1
36clusters.parameters["anaName"] = 'anaClusOnTrk'
37clusters.parameters["trkColl"] = 'KalmanFullTracks'
38#clusters.parameters["BaselineFits"] = "/home/alic/HPS/projects/baselines/jlab/clusters_on_track/"
39clusters.parameters["BaselineFits"] = "/home/alic/HPS/projects/baselines/jlab/clusters_on_track/hps_14552_offline_analysis.root"
40#clusters.parameters["BaselineFits"] = options.baselines
41clusters.parameters["BaselineRun"] = "010705"
42
43p.sequence = [clusters]
44
45p.input_files = [infilename]
46
47p.output_files = [outfilename]
48
49p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4