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
rawSvtAnaHits_cfgChannel.py
Go to the documentation of this file.
1import HpstrConf
2import sys
3import os
4import baseConfig as base
5
6options = base.parser.parse_args()
7
8# Use the input file to set the output file name
9root1_file = options.inFilename[0]
10root2_file = options.outFilename
11
12print('Root file Input: %s' % root1_file)
13print('Root file Output: %s' % root2_file)
14
16
17p.run_mode = 1
18p.skip_events = options.skip_events
19p.max_events = options.nevents
20
21#Library containing processors
22p.add_library("libprocessors")
23
24
27
28rawAnaSvt = HpstrConf.Processor('svtana', 'SvtRawDataAnaProcessor')
29
30
33
34#SvtRawAnaData
35
36rawAnaSvt.parameters["debug"] = 0
37rawAnaSvt.parameters["anaName"] = 'rawSvtHitAna'
38rawAnaSvt.parameters["trkrHitColl"] = 'SVTRawTrackerHits'
39rawAnaSvt.parameters["histCfg"] = os.environ['HPSTR_BASE']+'/analysis/plotconfigs/svt/rawSvtAnaHits.json'
40
41rawAnaSvt.parameters["sample"] = 1.0
42
43RegionPath = os.environ['HPSTR_BASE']+"/analysis/selections/svtHit/"
44
45rawAnaSvt.parameters["baselineFile"] = os.environ['HPSTR_BASE']+"/processors/dat/hps_14552_offline_baselines.dat"
46rawAnaSvt.parameters["timeProfiles"] = os.environ['HPSTR_BASE'] + "/processors/dat/hpssvt_014393_database_svt_pulse_shapes_final.dat"
47
48rawAnaSvt.parameters["regionDefinitions"] =
49
50[RegionPath+'OneFit.json',
51 #RegionPath+'FirstFit.json',
52 #RegionPath+'SecondFit.json',
53 #RegionPath+'BothFit.json',
54 #RegionPath+'CTFit.json',
55 RegionPath+'FTFit.json',
56 #RegionPath+'CTFitErr.json',
57 #RegionPath+'FTFitErr.json',
58 RegionPath+'SecondFitTimeCT.json',
59 #RegionPath+'TimeResolution.json',
60 #RegionPath+'OneFitHitChi.json',
61 #RegionPath+'FirstFitHitChi.json',
62 #RegionPath+'SecondFitHitChi.json',
63 #RegionPath+'FirstFitChannel0.json',
64 #RegionPath+'FirstFitChannel1.json',
65 #RegionPath+'FirstFitChannel2.json',
66 #RegionPath+'FirstFitChannel3.json',
67 #RegionPath+'FirstFitChannel4.json',
68 #RegionPath+'FirstFitChannel5.json',
69 #RegionPath+'FirstFitChannel6.json',
70 #RegionPath+'FirstFitChannel7.json',
71 #RegionPath+'SecondFitChannel0.json',
72 #RegionPath+'SecondFitChannel1.json',
73 #RegionPath+'SecondFitChannel2.json',
74 #RegionPath+'SecondFitChannel3.json',
75 #RegionPath+'SecondFitChannel4.json',
76 #RegionPath+'SecondFitChannel5.json',
77 #RegionPath+'SecondFitChannel6.json',
78 #RegionPath+'SecondFitChannel7.json',
79 #RegionPath+'OneFitChannel0.json',
80 #RegionPath+'OneFitChannel1.json',
81 #RegionPath+'OneFitChannel2.json',
82 #RegionPath+'OneFitChannel3.json',
83 #RegionPath+'OneFitChannel4.json',
84 #RegionPath+'OneFitChannel5.json',
85 #RegionPath+'OneFitChannel6.json',
86 #RegionPath+'OneFitChannel7.json',
87 #RegionPath+'TimeResolution.json']
88 RegionPath+'LowTimeDiff.json']
89
90rawAnaSvt.parameters["MatchList"] = ['OneFit', 'CTFit', 'SecondFitTimeCT']
91rawAnaSvt.parameters["timeref"] = 0.0
92rawAnaSvt.parameters["ampref"] = 0.0
93rawAnaSvt.parameters["sample"] = 1
94
95p.sequence = [rawAnaSvt]
96
97p.input_files = [root1_file]
98p.output_files = [root2_file]
99
100p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4