Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FermimotionAfterburner.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FermimotionAfterburner.cc
2 
3 #include "FermiMotion.h"
4 
7 
9 #include <fun4all/SubsysReco.h> // for SubsysReco
10 
11 #include <phool/PHRandomSeed.h>
12 #include <phool/getClass.h>
13 #include <phool/phool.h>
14 
15 #include <gsl/gsl_rng.h>
16 
17 #include <iostream>
18 #include <set> // for set, _Rb_tree_const_ite...
19 #include <string>
20 #include <utility>
21 
22 namespace HepMC
23 {
24  class GenEvent;
25 }
26 
27 //____________________________________________________________________________..
29  : SubsysReco(name)
30 
31 {
32  RandomGenerator = gsl_rng_alloc(gsl_rng_mt19937);
33  m_pTspec = pTspec;
34 }
35 
36 //____________________________________________________________________________..
38 {
39  gsl_rng_free(RandomGenerator);
40 }
41 
42 //____________________________________________________________________________..
44 {
45  unsigned int seed = PHRandomSeed();
47 
49 }
50 
51 //____________________________________________________________________________..
53 {
54  AddpF(topNode);
55 
57 }
58 
59 //____________________________________________________________________________..
60 
62 {
63  PHHepMCGenEventMap *genevtmap = findNode::getClass<PHHepMCGenEventMap>(topNode, "PHHepMCGenEventMap");
64  for (PHHepMCGenEventMap::Iter iter = genevtmap->begin(); iter != genevtmap->end(); ++iter)
65  {
66  PHHepMCGenEvent *genevt = iter->second;
67  HepMC::GenEvent *evt = genevt->getEvent();
68  if (!evt)
69  {
70  std::cout << PHWHERE << " no evt pointer under HEPMC Node found" << std::endl;
71  }
73  }
74 }