CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PomwigHadronizer.h
Go to the documentation of this file.
1 #ifndef gen_PomwigHadronizer_h
2 #define gen_PomwigHadronizer_h
3 
5 
9 
10 #include <HepMC/IO_HERWIG.h>
11 
12 #include <string>
13 #include <vector>
14 
15 namespace CLHEP {
16  class HepRandomEngine;
17 }
18 
19 namespace gen {
21  public:
23  ~PomwigHadronizer() override;
24 
25  bool readSettings(int);
28 
29  bool declareStableParticles(const std::vector<int>& pdgIds);
30  bool declareSpecialSettings(const std::vector<std::string>&) { return true; }
31  void statistics();
32 
34  bool hadronize();
35  bool decay();
36  bool residualDecay();
37  void finalizeEvent();
38 
39  const char* classname() const { return "PomwigHadronizer"; }
40 
41  private:
42  void doSetRandomEngine(CLHEP::HepRandomEngine* v) override;
43  std::vector<std::string> const& doSharedResources() const override { return theSharedResources; }
44 
45  void clear();
46  bool initializeDPDF();
47 
48  static const std::vector<std::string> theSharedResources;
49 
50  bool needClear;
51 
56  bool printCards;
57 
58  double comEnergy;
61  int h1fit;
62 
63  bool useJimmy;
65  int numTrials;
66 
68 
69  HepMC::IO_HERWIG conv;
70  };
71 } // namespace gen
72 #endif
bool declareStableParticles(const std::vector< int > &pdgIds)
std::vector< std::string > const & doSharedResources() const override
gen::ParameterCollector parameters
double v[5][pyjets_maxn]
static const std::vector< std::string > theSharedResources
HepMC::IO_HERWIG conv
const char * classname() const
bool declareSpecialSettings(const std::vector< std::string > &)
void doSetRandomEngine(CLHEP::HepRandomEngine *v) override
PomwigHadronizer(const edm::ParameterSet &params)