Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
calypso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
faser
calypso
Merge requests
!311
Update foresee sample config to 13.6 TeV and add ability to sample hists in 1 or 2D
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update foresee sample config to 13.6 TeV and add ability to sample hists in 1 or 2D
gwilliam/calypso:derivation_code
into
master
Overview
1
Commits
1
Pipelines
1
Changes
6
Merged
Carl Gwilliam
requested to merge
gwilliam/calypso:derivation_code
into
master
2 years ago
Overview
1
Commits
1
Pipelines
1
Changes
6
Expand
Two changes:
Updated foresee config to ECoM = 13.6 TeV
Allow sampling energy with 1D hist or energy vs theta with 2D hist via 1D: --sampler hist --hist_name filename.root:histname 2D: --sampler hist2D --hist_name filename.root:histname --angle None
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
84a46329
1 commit,
2 years ago
6 files
+
54
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
Control/CalypsoExample/Generation/python/faser_parser.py
+
12
−
2
Options
@@ -4,6 +4,13 @@
#
# Parser function for particle gun samples
#
def
float_or_none
(
arg
):
if
arg
is
None
or
arg
==
"
None
"
:
return
None
return
float
(
arg
)
def
faser_pgparser
():
import
sys
@@ -35,13 +42,16 @@ def faser_pgparser():
help
=
"
Specify particle mass (in MeV)
"
)
parser
.
add_argument
(
"
--radius
"
,
default
=
100.
,
type
=
float
,
help
=
"
Specify radius (in mm)
"
)
parser
.
add_argument
(
"
--angle
"
,
default
=
0.005
,
type
=
float
,
parser
.
add_argument
(
"
--angle
"
,
default
=
0.005
,
type
=
float
_or_none
,
help
=
"
Specify angular width (in Rad)
"
)
parser
.
add_argument
(
"
--zpos
"
,
default
=
None
,
type
=
float
,
help
=
"
Specify z position of particles (in mm) (helpful to avoid FASERnu)
"
)
parser
.
add_argument
(
"
--sampler
"
,
default
=
"
log
"
,
help
=
"
Specify energy sampling (log, lin, const)
"
)
help
=
"
Specify energy sampling (log, lin, const, hist, hist2D)
"
)
parser
.
add_argument
(
"
--hist_name
"
,
default
=
"
log
"
,
help
=
"
Specify energy sampling name for hist sampler file.root:hist
"
)
parser
.
add_argument
(
"
--minE
"
,
default
=
10.
,
type
=
float
,
help
=
"
Minimum energy in GeV (for log or lin sampler)
"
)
parser
.
add_argument
(
"
--maxE
"
,
default
=
1000.
,
type
=
float
,
Loading