CMS 3D CMS Logo

Cascade2Hadronizer.h
Go to the documentation of this file.
1 #ifndef gen_Cascade2Hadronizer_h
2 #define gen_Cascade2Hadronizer_h
3 
4 #include <memory>
5 #include <string>
6 #include <vector>
7 
11 
12 namespace HepMC {
13  class GenEvent;
14 }
15 
16 namespace CLHEP {
17  class HepRandomEngine;
18 }
19 
20 namespace gen {
21 
22  class Pythia6Service;
23 
25  public:
27  ~Cascade2Hadronizer() override;
28 
29  bool readSettings(int);
30  bool initializeForExternalPartons(); //-- initializer for the LHE input
32 
33  //-- Read the parameters and pass them to the common blocks
34  bool cascadeReadParameters(const std::string& ParameterString);
37  bool declareStableParticles(const std::vector<int>&);
38  bool declareSpecialSettings(const std::vector<std::string>&) { return true; }
39  void statistics();
40 
42  bool hadronize(); //-- hadronizer for the LHE input
43  bool decay();
44  bool residualDecay();
45  void finalizeEvent();
46 
47  const char* classname() const;
48 
49  private:
50  void doSetRandomEngine(CLHEP::HepRandomEngine* v) override;
51  std::vector<std::string> const& doSharedResources() const override { return theSharedResources; }
52 
53  static const std::vector<std::string> theSharedResources;
54 
55  //-- methods
56 
57  void flushTmpStorage();
58  void fillTmpStorage();
59  void imposeProperTime(); //-- to correctly treat particle decay
60 
61  //-- data members
62 
64 
66 
67  double
68  fComEnergy; //-- irrelevant for setting py6 as hadronizer (or if anything, it should be picked up from LHERunInfoProduct)
72 
73  unsigned int fMaxEventsToPrint;
75  unsigned int fPythiaListVerbosity; //-- p6 specific
76 
77  bool fDisplayPythiaBanner; //-- p6 specific
78  bool fDisplayPythiaCards; //-- p6 specific
79 
80  bool fConvertToPDG; //-- conversion of Py6 PID's into PDG convention
81  };
82 } // namespace gen
83 
84 #endif
gen::Cascade2Hadronizer::finalizeEvent
void finalizeEvent()
Definition: Cascade2Hadronizer.cc:159
gen::Cascade2Hadronizer::initializeForExternalPartons
bool initializeForExternalPartons()
Definition: Cascade2Hadronizer.cc:443
BaseHadronizer.h
gen::Cascade2Hadronizer::fDisplayPythiaBanner
bool fDisplayPythiaBanner
Definition: Cascade2Hadronizer.h:77
gen::Cascade2Hadronizer::declareSpecialSettings
bool declareSpecialSettings(const std::vector< std::string > &)
Definition: Cascade2Hadronizer.h:38
gen::Cascade2Hadronizer::fillTmpStorage
void fillTmpStorage()
Definition: Cascade2Hadronizer.cc:145
gen::Cascade2Hadronizer::cascadePrintParameters
void cascadePrintParameters()
Definition: Cascade2Hadronizer.cc:724
gen::Cascade2Hadronizer::doSetRandomEngine
void doSetRandomEngine(CLHEP::HepRandomEngine *v) override
Definition: Cascade2Hadronizer.cc:126
gen::Cascade2Hadronizer::fMaxEventsToPrint
unsigned int fMaxEventsToPrint
Definition: Cascade2Hadronizer.h:73
gen::BaseHadronizer
Definition: BaseHadronizer.h:46
gen::Cascade2Hadronizer::generatePartonsAndHadronize
bool generatePartonsAndHadronize()
Definition: Cascade2Hadronizer.cc:247
gen::Cascade2Hadronizer::fextCrossSection
double fextCrossSection
Definition: Cascade2Hadronizer.h:69
gen::Cascade2Hadronizer::fHepMCVerbosity
bool fHepMCVerbosity
Definition: Cascade2Hadronizer.h:74
ParameterCollector.h
gen::Cascade2Hadronizer::fComEnergy
double fComEnergy
Definition: Cascade2Hadronizer.h:68
gen
Definition: PythiaDecays.h:13
gen::Cascade2Hadronizer::hadronize
bool hadronize()
Definition: Cascade2Hadronizer.cc:245
gen::Cascade2Hadronizer::cascadeReadParameters
bool cascadeReadParameters(const std::string &ParameterString)
Definition: Cascade2Hadronizer.cc:624
CLHEP
Definition: CocoaGlobals.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
gen::Cascade2Hadronizer::residualDecay
bool residualDecay()
Definition: Cascade2Hadronizer.cc:277
edm::ParameterSet
Definition: ParameterSet.h:36
gen::Cascade2Hadronizer::fParameters
edm::ParameterSet fParameters
Definition: Cascade2Hadronizer.h:63
gen::Cascade2Hadronizer::fFilterEfficiency
double fFilterEfficiency
Definition: Cascade2Hadronizer.h:71
gen::v
double v[5][pyjets_maxn]
Definition: Cascade2Hadronizer.cc:74
gen::Cascade2Hadronizer::fPythiaListVerbosity
unsigned int fPythiaListVerbosity
Definition: Cascade2Hadronizer.h:75
gen::Cascade2Hadronizer::theSharedResources
static const std::vector< std::string > theSharedResources
Definition: Cascade2Hadronizer.h:53
gen::Cascade2Hadronizer::doSharedResources
std::vector< std::string > const & doSharedResources() const override
Definition: Cascade2Hadronizer.h:51
gen::Cascade2Hadronizer::fPy6Service
Pythia6Service * fPy6Service
Definition: Cascade2Hadronizer.h:65
gen::Cascade2Hadronizer
Definition: Cascade2Hadronizer.h:24
gen::Cascade2Hadronizer::imposeProperTime
void imposeProperTime()
Definition: Cascade2Hadronizer.cc:533
gen::Cascade2Hadronizer::classname
const char * classname() const
Definition: Cascade2Hadronizer.cc:620
gen::Cascade2Hadronizer::pythia6PrintParameters
void pythia6PrintParameters()
Definition: Cascade2Hadronizer.cc:787
gen::Cascade2Hadronizer::fextCrossSectionError
double fextCrossSectionError
Definition: Cascade2Hadronizer.h:70
gen::Cascade2Hadronizer::fConvertToPDG
bool fConvertToPDG
Definition: Cascade2Hadronizer.h:80
gen::Cascade2Hadronizer::flushTmpStorage
void flushTmpStorage()
Definition: Cascade2Hadronizer.cc:131
gen::Cascade2Hadronizer::Cascade2Hadronizer
Cascade2Hadronizer(edm::ParameterSet const &ps)
Definition: Cascade2Hadronizer.cc:80
gen::Cascade2Hadronizer::decay
bool decay()
Definition: Cascade2Hadronizer.cc:275
gen::Cascade2Hadronizer::initializeForInternalPartons
bool initializeForInternalPartons()
Definition: Cascade2Hadronizer.cc:445
HepMC
Definition: GenParticle.h:15
gen::Cascade2Hadronizer::statistics
void statistics()
Definition: Cascade2Hadronizer.cc:600
ParameterSetfwd.h
gen::Cascade2Hadronizer::declareStableParticles
bool declareStableParticles(const std::vector< int > &)
Definition: Cascade2Hadronizer.cc:515
gen::Cascade2Hadronizer::~Cascade2Hadronizer
~Cascade2Hadronizer() override
Definition: Cascade2Hadronizer.cc:121
gen::Pythia6Service
Definition: Pythia6Service.h:24
gen::Cascade2Hadronizer::fDisplayPythiaCards
bool fDisplayPythiaCards
Definition: Cascade2Hadronizer.h:78
gen::Cascade2Hadronizer::readSettings
bool readSettings(int)
Definition: Cascade2Hadronizer.cc:430