Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
EIC
benchmarks
reconstruction_benchmarks
Merge requests
!9
Default number of events
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Default number of events
cleanup
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Whitney Armstrong
requested to merge
cleanup
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Changed the default number of events to 100
0
0
Merge request reports
Compare
master
version 1
a5a655a0
4 years ago
master (base)
and
latest version
latest version
27388635
1 commit,
4 years ago
version 1
a5a655a0
3 commits,
4 years ago
2 files
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
ecal/scripts/emcal_electrons.cxx
+
3
−
1
Options
@@ -19,7 +19,7 @@
using
namespace
HepMC3
;
void
emcal_electrons
(
int
n_events
=
1e
6
,
const
char
*
out_fname
=
"./data/emcal_electron_0GeVto30GeV_100kEvt.hepmc"
)
void
emcal_electrons
(
int
n_events
=
1e
3
,
const
char
*
out_fname
=
"./data/emcal_electron_0GeVto30GeV_100kEvt.hepmc"
)
{
WriterAscii
hepmc_output
(
out_fname
);
int
events_parsed
=
0
;
@@ -48,6 +48,8 @@ void emcal_electrons(int n_events = 1e6, const char* out_fname = "./data/emcal_e
// sphere of given radius, in this case momentum.
r1
->
Sphere
(
px
,
py
,
pz
,
p
);
//std::cout << std::sqrt(px*px + py*py + pz*pz) - p << " is zero? \n";
// type 1 is final state
// pdgid 11 - electron 0.510 MeV/c^2
GenParticlePtr
p3
=
std
::
make_shared
<
GenParticle
>
(
Loading