Skip to content
Snippets Groups Projects
Commit 27388635 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Removed dummies and moved scripts around.

- Each benchmark or set ofcommon benchmarks will have their own
directory.

	modified:   emcal_electrons.sh
	new file:   scripts/emcal_electrons.cxx
	new file:   scripts/emcal_electrons_reader.cxx

	modified:   emcal_electrons.sh
	modified:   scripts/emcal_electrons.cxx
parent ebcafd32
No related branches found
No related tags found
1 merge request!9Default number of events
...@@ -5,7 +5,7 @@ if [[ ! -n "${JUGGLER_DETECTOR}" ]] ; then ...@@ -5,7 +5,7 @@ if [[ ! -n "${JUGGLER_DETECTOR}" ]] ; then
fi fi
if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then
export JUGGLER_N_EVENTS=1000 export JUGGLER_N_EVENTS=100
fi fi
export JUGGLER_FILE_NAME_TAG="emcal_uniform_electrons" export JUGGLER_FILE_NAME_TAG="emcal_uniform_electrons"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
using namespace HepMC3; using namespace HepMC3;
void emcal_electrons(int n_events = 1e6, const char* out_fname = "./data/emcal_electron_0GeVto30GeV_100kEvt.hepmc") void emcal_electrons(int n_events = 1e3, const char* out_fname = "./data/emcal_electron_0GeVto30GeV_100kEvt.hepmc")
{ {
WriterAscii hepmc_output(out_fname); WriterAscii hepmc_output(out_fname);
int events_parsed = 0; int events_parsed = 0;
...@@ -48,6 +48,8 @@ void emcal_electrons(int n_events = 1e6, const char* out_fname = "./data/emcal_e ...@@ -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. // sphere of given radius, in this case momentum.
r1->Sphere(px, py, pz, p); 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 // type 1 is final state
// pdgid 11 - electron 0.510 MeV/c^2 // pdgid 11 - electron 0.510 MeV/c^2
GenParticlePtr p3 = std::make_shared<GenParticle>( GenParticlePtr p3 = std::make_shared<GenParticle>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment