VertexGenerator.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::VertexGenerator
5 
6 \brief
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created June 16, 2007
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _VERTEX_GENERATOR_H_
20 #define _VERTEX_GENERATOR_H_
21 
25 
26 namespace genie {
27 
29 
30 public :
32  VertexGenerator(string config);
34 
35  //-- implement the EventRecordVisitorI interface
36  void ProcessEventRecord (GHepRecord * event_rec) const;
37 
38  //-- override the Algorithm::Configure methods to load configuration
39  // data to private data members
40  void Configure (const Registry & config);
41  void Configure (string param_set);
42 
43  //-- Generate the vertex position
44  // public so other classes can reuse this code to generate a position
45  TVector3 GenerateVertex(const Interaction * in,double A) const;
46 
47 private:
48  void LoadConfig (void);
49 
50  int fVtxGenMethod; ///< vtx generation method (0: uniform, 1: according to nuclear density [def])
51  double fR0; ///< parameter controlling nuclear sizes
52 };
53 
54 } // genie namespace
55 #endif // _VERTEX_GENERATOR_H_
TVector3 GenerateVertex(const Interaction *in, double A) const
int fVtxGenMethod
vtx generation method (0: uniform, 1: according to nuclear density [def])
double fR0
parameter controlling nuclear sizes
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
Defines the EventRecordVisitorI interface. Concrete implementations of this interface use the &#39;Visito...
Definition: config.py:1
Summary information for an interaction.
Definition: Interaction.h:56
void Configure(const Registry &config)
static const double A
Definition: Units.h:82
ifstream in
Definition: comparison.C:7
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66
GENIE&#39;s GHEP MC event record.
Definition: GHepRecord.h:46
void ProcessEventRecord(GHepRecord *event_rec) const