GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VertexGenerator.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::VertexGenerator
5 
6 \brief
7 
8 \author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created June 16, 2007
12 
13 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _VERTEX_GENERATOR_H_
19 #define _VERTEX_GENERATOR_H_
20 
24 
25 namespace genie {
26 
28 
29 public :
31  VertexGenerator(string config);
33 
34  //-- implement the EventRecordVisitorI interface
35  void ProcessEventRecord (GHepRecord * event_rec) const;
36 
37  //-- override the Algorithm::Configure methods to load configuration
38  // data to private data members
39  void Configure (const Registry & config);
40  void Configure (string param_set);
41 
42  //-- Generate the vertex position
43  // public so other classes can reuse this code to generate a position
44  TVector3 GenerateVertex(const Interaction * in,double A) const;
45 
46 private:
47  void LoadConfig (void);
48 
49  int fVtxGenMethod; ///< vtx generation method (0: uniform, 1: according to nuclear density [def])
50  double fR0; ///< parameter controlling nuclear sizes
51 };
52 
53 } // genie namespace
54 #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
Defines the EventRecordVisitorI interface. Concrete implementations of this interface use the &#39;Visito...
Summary information for an interaction.
Definition: Interaction.h:56
static constexpr double A
Definition: Units.h:74
void Configure(const Registry &config)
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:65
GENIE&#39;s GHEP MC event record.
Definition: GHepRecord.h:45
void ProcessEventRecord(GHepRecord *event_rec) const