GSNovaModel.h
Go to the documentation of this file.
1 #ifndef SNOVAMODEL__H
2 #define SNOVAMODEL__H
3 
4 // C++ includes
5 #include <list>
6 
7 // GENIE includes
8 #include "GENIE/Framework/ParticleData/PDGCodeList.h"
9 
10 // NOvASoft includes
14 
15 namespace genie {
16  namespace supernova {
17  class GSNovaModel: public GeneratorBase {
18 
19  public:
21  void ReadModel(std::string filename);
22 
23  /// Get model features
24  const genie::PDGCodeList& PdgList();
25 
26  /// Populate model with generators
28 
29  /// Generate next particle
31 
32  /// Check if there are no active generators left
33  bool End();
34 
35  /// Reactivate all generators
36  void Reload();
37  void SetEmin(double Emin);
38  void SetProbScale(double Scale);
39 
40  /// Access to generators
41  const std::list<GFluxGenerator> ActiveGenerators();
42 
43  protected:
44  std::list<GFluxGenerator>::iterator SelectGenerator();
45  genie::PDGCodeList fPdgList; /// list of particles
46 
47  /// Flux containers
48  std::list<GFluxGenerator> fGeneratorsActive;
49  std::list<GFluxGenerator> fGeneratorsDead;
50 
51  };
52 
53  } // end of namespace supernova
54 } // end of namespace genie
55 #endif
bool End()
Check if there are no active generators left.
genie::PDGCodeList fPdgList
Definition: GSNovaModel.h:45
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
std::list< GFluxGenerator > fGeneratorsDead
Definition: GSNovaModel.h:49
string filename
Definition: shutoffs.py:106
std::list< GFluxGenerator >::iterator SelectGenerator()
A list of PDG codes.
Definition: PDGCodeList.h:33
const std::list< GFluxGenerator > ActiveGenerators()
Access to generators.
std::list< GFluxGenerator > fGeneratorsActive
list of particles
Definition: GSNovaModel.h:48
const genie::PDGCodeList & PdgList()
Get model features.
Definition: GSNovaModel.cxx:79
void GenerateNext(GenParticle &)
Generate next particle.
void Reload()
Reactivate all generators.
An ART module for generating supernova events via GENIE.
void AddGenerator(GFluxGenerator)
Populate model with generators.
Definition: GSNovaModel.cxx:86
void SetProbScale(double Scale)
simulatedPeak Scale(1/simulationNormalisationFactor)
void ReadModel(std::string filename)
Definition: GSNovaModel.cxx:42
GSNovaModel(std::string filename)
Definition: GSNovaModel.cxx:18
enum BeamMode string