Skip to content
Snippets Groups Projects

Default number of events

Merged Whitney Armstrong requested to merge cleanup into master
2 files
+ 4
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -19,7 +19,7 @@
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);
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