12 #include <gsl/gsl_randist.h>
67 PHG4InEvent *ineve = findNode::getClass<PHG4InEvent>(topNode,
"PHG4INEVENT");
75 vector<PHG4Particle *>::const_iterator iter;
83 double pt = mom/cosh(eta);
86 particle->
set_px(pt*cos(phi));
87 particle->
set_py(pt*sin(phi));
88 particle->
set_pz(pt*sinh(eta));
int verbosity
The verbosity level. 0 means not verbose at all.
int AddParticle(const int vtxid, PHG4Particle *particle)
int AddVtx(const double x, const double y, const double z, const double t)
virtual void identify(std::ostream &os=std::cout) const
virtual int ReuseExistingVertex(PHCompositeNode *topNode)
std::vector< PHG4Particle * > particlelist
void SetParticleId(PHG4Particle *particle, PHG4InEvent *ineve)
gsl_rng * RandomGenerator
int process_event(PHCompositeNode *topNode)
void set_mom_range(const double mom_min, const double mom_max)
void set_eta_range(const double eta_min, const double eta_max)
void set_phi_range(const double phi_min, const double phi_max)
void set_z_range(const double z_min, const double z_max)
PHG4ParticleGenerator(const std::string &name="PGENERATOR")
virtual void set_e(const double e)
virtual void set_py(const double x)
virtual void set_px(const double x)
virtual void set_pz(const double x)