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
anaRecoTuple_cfg.py
Go to the documentation of this file.
1import HpstrConf
2import sys
3import os
4import baseConfig as base
5
6
7options = base.parser.parse_args()
8
9
10# Use the input file to set the output file name
11infile = options.inFilename
12outfile = options.outFilename
13
14print('Input file: %s' % infile)
15print('Output file: %s' % outfile)
16
18
19p.run_mode = 1
20p.skip_events = options.skip_events
21p.max_events = options.nevents
22
23#p.max_events = 1000
24
25# Library containing processors
26p.add_library("libprocessors")
27
28
31
32recoana = HpstrConf.Processor('recoana', 'RecoHitAnaProcessor')
33
34
38recoana.parameters["debug"] = 0
39recoana.parameters["anaName"] = "recoHitAna"
40recoana.parameters["trkColl"] = "GBLTracks"
41recoana.parameters["trkrHitColl"] = "RotatedHelicalTrackHits"
42recoana.parameters["ecalHitColl"] = "RecoEcalHits"
43recoana.parameters["ecalClusColl"] = "RecoEcalClusters"
44recoana.parameters["histCfg"] = os.environ['HPSTR_BASE']+'/analysis/plotconfigs/reco/basicRecoHit.json'
45recoana.parameters["mcHistoCfg"] = os.environ['HPSTR_BASE']+'/analysis/plotconfigs/mc/basicMC.json'
46recoana.parameters["analysis"] = options.analysis
47
48# Sequence which the processors will run.
49p.sequence = [recoana]
50
51p.input_files = infile
52p.output_files = [outfile]
53
54p.printProcess()
Process python class.
Definition HpstrConf.py:20
Processor python class.
Definition HpstrConf.py:4