VertexGen_ES Class Reference

Ratpac-two: RAT::VertexGen_ES Class Reference
Ratpac-two
RAT::VertexGen_ES Class Reference

Vertex generator for neutrino-electron elastic scattering. More...

#include <VertexGen_ES.hh>

Inheritance diagram for RAT::VertexGen_ES:
GLG4VertexGen

Public Member Functions

 VertexGen_ES (const char *arg_dbname="solar")
 
virtual void GeneratePrimaryVertex (G4Event *argEvent, G4ThreeVector &dx, G4double dt)
 
virtual void SetState (G4String newValues)
 
virtual G4String GetState ()
 
void SetFlux (const G4String flux)
 
G4String GetFlux ()
 
void SetNuFlavor (const G4String flavor)
 
G4String GetNuFlavor ()
 
ESgenGetHelper ()
 
const G4String GetDBName () const
 
void SetDBName (const G4String name)
 
- Public Member Functions inherited from GLG4VertexGen
 GLG4VertexGen (const char *arg_dbname="vertex")
 
virtual bool ELimitable ()
 
virtual void LimitEnergies (double, double)
 
virtual double EMaximum ()
 
virtual double EMinimum ()
 

Additional Inherited Members

- Protected Attributes inherited from GLG4VertexGen
G4String _dbname
 

Detailed Description

Vertex generator for neutrino-electron elastic scattering.

Author
Nuno Barros nfbar.nosp@m.ros@.nosp@m.hep.u.nosp@m.penn.nosp@m..edu – contact person
Date
18-Feb-2011

This class generates a vertex of a neutrino-electron elastic scattering. It is strongly based in an initial implementation by Joe Formaggio and an adaptation for a beam by Bill Seligman. The event generation for solar neutrinos is a bit more complicated and therefore the whole class was virtually re-written since then. The ES cross-section is now determined in a separate class. This class is responsible for performing the kinematic propagation.

REVISION HISTORY:

  • 02/09/2005 J. Formaggio (UW):
    • Original implementation
  • 21-Jan-2006 Bill Seligman:
    • Converted to Geant4+GLG4Sim+RAT
  • 18-Feb-2011 Nuno Barros:
    • Updated to accommodate the new solar generator, which is now used by default.
    • Completely refactored to improve the cross-section calculation on a different class (imported from QSNO).
    • Prepare ground to return both the electron in the neutrino in the generated event (only electron for now).
  • 02-Jul-2012 N. Barros:
    • Removed the usage of Geant4 default streamers (G4cout) to use RAT Log mechanism instead.
  • 02-Aug-2012 N. Barros:
    • Reintroduced the compatibility with the combo generator, for simulation of simple cases.
    • The messenger options are available or not depending on who is the parent generator (disabled if it is solar).
    • Changed the "simple" data types from G4XXX to C++ core types.
  • 14-Aug-2012 N. Barros:
    • Solved some issues with the compatibility with the combo generator.
    • If the direction is set to 0,0,0 the generator now produces a random direction at each event.
  • 26-Nov-2014: Matt Strait: Doxygen fixes.
  • 17-Jul-2017: Modified for RAT-PAC

Member Function Documentation

◆ GetDBName()

const G4String RAT::VertexGen_ES::GetDBName ( ) const
inline

Getter of the DB entry to input the spectrum from.

Returns
name of the DB name.

◆ GetFlux()

G4String RAT::VertexGen_ES::GetFlux ( )
inline

Return the flux being generated.

Returns
Database key of the flux being used in this instance of the generator.

◆ GetHelper()

ESgen* RAT::VertexGen_ES::GetHelper ( )
inline
Returns
the helper elastic scattering generator object.

◆ GetNuFlavor()

G4String RAT::VertexGen_ES::GetNuFlavor ( )
inline

Returns the neutrino flavor being generated.

◆ SetDBName()

void RAT::VertexGen_ES::SetDBName ( const G4String  name)

Setter of the DB name. Defaults to \'SOLAR\'

Parameters
[in]nameof the database entry to look at.

◆ SetFlux()

void RAT::VertexGen_ES::SetFlux ( const G4String  flux)

Auxiliary method to set the flux to be generated.

The flux can be any entry existing in the database defined in the constructor. For the case of solar it should be one of the solar fluxes (pp,pep,hep,be7,b8,n13,o15,f17). It looks up the corresponding spectrum in the SOLAR.ratdb file.

Parameters
fluxKey to the database entry. In case of solar it should be the corresponding flux.

◆ SetNuFlavor()

void RAT::VertexGen_ES::SetNuFlavor ( const G4String  flavor)

Auxiliary method to set the neutrino flavor being generated.

Parameters
flavorFlavor key passed to the RAT::ESCrossSec class. It can be one of (nue,numu,nuebar,numubar).

The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/VertexGen_ES.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/src/VertexGen_ES.cc