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.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
c
d
f
i
j
l
m
n
p
r
s
u
Functions
c
d
f
i
m
n
r
s
u
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
processors
config
baseConfig.py
Go to the documentation of this file.
1
import
argparse
2
3
parser = argparse.ArgumentParser(description=
"The baseConfig options for hpstr. "
)
4
5
parser.add_argument(
'--debug'
,
'-D'
, action=
"count"
, dest=
"debug"
, help=
"Increase debug level."
, default=0)
6
7
#parser.add_option("-i", "--inFile", type="string", dest="inFilename",
8
# help="Input filename.", metavar="inFilename", default="")
9
parser.add_argument(
'--outDir'
,
'-d'
, type=str, dest=
"outDir"
, action=
'store'
,
10
help=
"Specify the output directory."
, metavar=
"outDir"
, default=
"."
)
11
parser.add_argument(
"-o"
,
"--outFile"
, type=str, dest=
"outFilename"
, action=
'store'
,
12
help=
"Output filename."
, metavar=
"outFilename"
, default=
"out.root"
)
13
parser.add_argument(
"-t"
,
"--isData"
, type=int, dest=
"isData"
,
14
help=
"Type of lcio ntuple: 1=data, 0=MC"
, metavar=
"isData"
, default=-1)
15
parser.add_argument(
"-y"
,
"--year"
, type=int, dest=
"year"
,
16
help=
"Select year of the data"
, metavar=
"year"
, default=2019)
17
parser.add_argument(
"-n"
,
"--nevents"
, type=int, dest=
"nevents"
,
18
help=
"Number of events to process"
, metavar=
"nevents"
, default=-1)
19
parser.add_argument(
"-sk"
,
"--skip"
, type=int, dest=
"skip_events"
,
20
help=
"What event would you like to run on first"
, metavar=
"skip_events"
, default=0)
21
parser.add_argument(
"-a"
,
"--analysis"
, type=str, dest=
"analysis"
,
22
help=
"Which analysis is being run "
, metavar=
"analysis"
, default=
"vertex"
)
23
parser.add_argument(
'--infile'
,
'-i'
, type=str, dest=
"inFilename"
, metavar=
'infiles'
, nargs=
"+"
,
24
help=
"Input files, specify on or more."
)
25
parser.add_argument(
'--seed'
,
'-s'
, type=int, dest=
'seed'
,metavar=
'seed'
,default=42)
26
27
28
#options = parser.parse_args()
29
#if options.analysis != "simps" and options.analysis != "vertex":
30
# print("WARNING analysis not set to simps or vertex -- truth info will be weird")
31
32
beamE = {}
33
beamE[
"2016"
] = 2.3
34
beamE[
"2019"
] = 4.55
35
beamE[
"2021"
] = 3.74
36
beamE[
"2022"
] = 1.92
37
38
bfield = {}
39
bfield[
"2016"
] = 0.52
40
bfield[
"2019"
] = 1.034
41
bfield[
"2021"
] = 0.85
42
bfield[
"2022"
] = 0.437
Generated by
1.9.8