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
baseConfig_x.py
Go to the documentation of this file.
1from optparse import OptionParser
2
3parser = OptionParser()
4
5parser.add_option("-i", "--inFile", type="string", dest="inFilename",
6 help="Input filename.", metavar="inFilename", default="")
7parser.add_option("-d", "--outDir", type="string", dest="outDir",
8 help="Specify the output directory.", metavar="outDir", default=".")
9parser.add_option("-o", "--outFile", type="string", dest="outFilename",
10 help="Output filename.", metavar="outFilename", default="out.root")
11parser.add_option("-t", "--isData", type="int", dest="isData",
12 help="Type of lcio ntuple: 1=data, 0=MC", metavar="isData", default=-1)
13parser.add_option("-y", "--year", type="int", dest="year",
14 help="Select year of the data", metavar="year", default=2019)
15parser.add_option("-n", "--nevents", type="int", dest="nevents",
16 help="Number of events to process", metavar="nevents", default=-1)
17
18
19beamE = {}
20beamE["2016"] = 2.3
21beamE["2019"] = 4.55
22
23bfield = {}
24bfield["2016"] = 0.52
25bfield["2019"] = 1.034