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
anaApv25xTalk_cfg.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
9infile = options.inFilename
10outfile = options.outFilename
11
12print('Input file: %s' % infile)
13print('Output file: %s' % outfile)
14
16
17p.run_mode = 1
18p.skip_events = options.skip_events
19p.max_events = options.nevents
20
21#p.max_events = 1000
22
23# Library containing processors
24p.add_library("libprocessors")
25
26
29
30apvana = HpstrConf.Processor('apvana', 'Apv25RoXtalkAnaProcessor')
31
32
36apvana.parameters["debug"] = 0
37apvana.parameters["anaName"] = "apvAna"
38apvana.parameters["rawHitColl"] = "SVTRawTrackerHits"
39apvana.parameters["syncPhase"] = 168
40apvana.parameters["trigDel"] = 6696
41apvana.parameters["histCfg"] = os.environ['HPSTR_BASE']+'/analysis/plotconfigs/mc/basicMC.json'
42
43# Sequence which the processors will run.
44p.sequence = [apvana]
45
46p.input_files = infile
47p.output_files = [outfile]
48
49p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4