ACTARSim
ACTAR TPC Simulation Reference Guide
Public Member Functions | Private Attributes | List of all members
ActarSimCinePrimGenerator Class Reference

Description: PROGRAM CINE CINEMATIQUE RELATIVISTIQUE. Original FORTRAN code by Wolfgang Mittig translated to C++.

Definition at line 16 of file ActarSimCinePrimGenerator.hh.

Public Member Functions

 ActarSimCinePrimGenerator ()
 
 ~ActarSimCinePrimGenerator ()
 Destructor. More...
 
void SetS1 (G4double value)
 
void SetS2 (G4double value)
 
void SetS3 (G4double value)
 
void SetS4 (G4double value)
 
void SetQM (G4double value)
 
void SetEI (G4double value)
 
void SetEN (G4double value)
 
void SetENI (G4double value)
 
void SetANGAV (G4int place, G4double value)
 
void SetANGAR (G4int place, G4double value)
 
void SetIncidentMass (G4double value)
 
void SetTargetMass (G4double value)
 
void SetScatteredMass (G4double value)
 
void SetRecoilMass (G4double value)
 
void SetReactionQ (G4double value)
 
void SetLabEnergy (G4double value)
 
void SetTargetExcitationEnergy (G4double value)
 
void SetProjectileExcitationEnergy (G4double value)
 
void SetThetaLabAngle (G4double value)
 
G4double GetS1 (void)
 
G4double GetS2 (void)
 
G4double GetS3 (void)
 
G4double GetS4 (void)
 
G4double GetQM (void)
 
G4double GetEI (void)
 
G4double GetEN (void)
 
G4double GetENI (void)
 
G4double GetANGAV (G4int place)
 
G4double GetANGAR (G4int place)
 
G4double GetThetaLabAngle (void)
 
void RelativisticKinematics ()
 
void Dump ()
 Dump the status of the variables. More...
 
void printResults (G4int sel)
 Print the results for each solution. More...
 

Private Attributes

G4double S1
 Mass of the incident particle. More...
 
G4double S2
 Mass of the target. More...
 
G4double S3
 Mass of the scattered particle. More...
 
G4double S4
 Mass of the recoil. More...
 
G4double QM
 Reaction Q. More...
 
G4double TH
 Theta Lab angle. More...
 
G4double EI
 LAB energy (total Lab energy in MeV) More...
 
G4double EN
 Target excitation energy (positive) More...
 
G4double ENI
 Projectile excitation energy (positive) More...
 
G4double * ANGAV
 First solution vector. More...
 
G4double * ANGAR
 Second solution vector. More...
 

#include <ActarSimCinePrimGenerator.hh>

Constructor & Destructor Documentation

ActarSimCinePrimGenerator::ActarSimCinePrimGenerator ( )

Constructor Original program needs the following data:

char: 1 Title

G4double: - 1-4 Masses 1 to 4, (CIRE)

  • 5 Reaction Q, (CIRE)
  • 6 Excitation of scattered particle,
  • 7 Excitation of the recoil
  • 8-9 Lab Energy 1 and 2 (min/max energies when making the table?) (ELAB1 is isued in CIRE)
  • 10 Delta E (step for energies when making the table?)
  • 11-13 Theta angles 1 and 2
  • 14 Delta Theta

Definition at line 39 of file ActarSimCinePrimGenerator.cc.

ActarSimCinePrimGenerator::~ActarSimCinePrimGenerator ( )

Destructor.

Definition at line 67 of file ActarSimCinePrimGenerator.cc.

Member Function Documentation

void ActarSimCinePrimGenerator::Dump ( )

Dump the status of the variables.

Definition at line 320 of file ActarSimCinePrimGenerator.cc.

Referenced by GetThetaLabAngle().

G4double ActarSimCinePrimGenerator::GetANGAR ( G4int  place)
inline
G4double ActarSimCinePrimGenerator::GetANGAV ( G4int  place)
inline
G4double ActarSimCinePrimGenerator::GetEI ( void  )
inline
G4double ActarSimCinePrimGenerator::GetEN ( void  )
inline
G4double ActarSimCinePrimGenerator::GetENI ( void  )
inline
G4double ActarSimCinePrimGenerator::GetQM ( void  )
inline
G4double ActarSimCinePrimGenerator::GetS1 ( void  )
inline
G4double ActarSimCinePrimGenerator::GetS2 ( void  )
inline
G4double ActarSimCinePrimGenerator::GetS3 ( void  )
inline
G4double ActarSimCinePrimGenerator::GetS4 ( void  )
inline
G4double ActarSimCinePrimGenerator::GetThetaLabAngle ( void  )
inline
void ActarSimCinePrimGenerator::printResults ( G4int  sel)

Print the results for each solution.

Definition at line 339 of file ActarSimCinePrimGenerator.cc.

Referenced by ActarSimPrimaryGeneratorAction::GeneratePrimaries(), and GetThetaLabAngle().

void ActarSimCinePrimGenerator::RelativisticKinematics ( )

Reproduces the relativistic kinematics calculations from CIRE2 subroutine in the original CINE.for code.

Arguments:

  • masses: S1, S2, S3, S4 (for incident, target, scattered and recoil masses)
  • reaction q: QM
  • energies: EI, EN, ENI (for lab, excitation of target (positive) and excitation of the projectile (positive))
  • angles: TH (theta lab angle)

Output: given in two vectors called ANGAV and ANGAR (1st and 2nd solutions) the elements are:

  • 0: Theta CM
  • 1: ELAB
  • 2: De/D(Theta)
  • 3: Jacobian
  • 4: Theta Lab
  • 5: Elab S4
  • 6: Recoil Jacobian
  • 7:

Using ANGAV[1] and ANGAR[1] it is possible to check the number of solutions

  • if(ANGAV[1] < 0.) No solution
  • if(ANGAV[1] >= 0.) Test ANGAR[1]
  • if(ANGAR[1] < 0.) 1 Solution (ANGAV)
  • if(ANGAR[1] >= 0.) 2 Solutions (ANGAV and ANGAR)

Definition at line 103 of file ActarSimCinePrimGenerator.cc.

Referenced by ActarSimPrimaryGeneratorAction::GeneratePrimaries(), and GetThetaLabAngle().

void ActarSimCinePrimGenerator::SetANGAR ( G4int  place,
G4double  value 
)
inline

Definition at line 47 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetANGAV ( G4int  place,
G4double  value 
)
inline

Definition at line 46 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetEI ( G4double  value)
inline

Definition at line 43 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetEN ( G4double  value)
inline

Definition at line 44 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetENI ( G4double  value)
inline

Definition at line 45 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetIncidentMass ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetLabEnergy ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetProjectileExcitationEnergy ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetQM ( G4double  value)
inline

Definition at line 42 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetReactionQ ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetRecoilMass ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetS1 ( G4double  value)
inline

Definition at line 38 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetS2 ( G4double  value)
inline

Definition at line 39 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetS3 ( G4double  value)
inline

Definition at line 40 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetS4 ( G4double  value)
inline

Definition at line 41 of file ActarSimCinePrimGenerator.hh.

void ActarSimCinePrimGenerator::SetScatteredMass ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetTargetExcitationEnergy ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetTargetMass ( G4double  value)
inline
void ActarSimCinePrimGenerator::SetThetaLabAngle ( G4double  value)
inline

Member Data Documentation

G4double* ActarSimCinePrimGenerator::ANGAR
private

Second solution vector.

Definition at line 32 of file ActarSimCinePrimGenerator.hh.

G4double* ActarSimCinePrimGenerator::ANGAV
private

First solution vector.

Definition at line 31 of file ActarSimCinePrimGenerator.hh.

G4double ActarSimCinePrimGenerator::EI
private

LAB energy (total Lab energy in MeV)

Definition at line 27 of file ActarSimCinePrimGenerator.hh.

Referenced by GetEI().

G4double ActarSimCinePrimGenerator::EN
private

Target excitation energy (positive)

Definition at line 28 of file ActarSimCinePrimGenerator.hh.

Referenced by GetEN().

G4double ActarSimCinePrimGenerator::ENI
private

Projectile excitation energy (positive)

Definition at line 29 of file ActarSimCinePrimGenerator.hh.

Referenced by GetENI().

G4double ActarSimCinePrimGenerator::QM
private

Reaction Q.

Definition at line 23 of file ActarSimCinePrimGenerator.hh.

Referenced by GetQM().

G4double ActarSimCinePrimGenerator::S1
private

Mass of the incident particle.

Definition at line 18 of file ActarSimCinePrimGenerator.hh.

Referenced by GetS1().

G4double ActarSimCinePrimGenerator::S2
private

Mass of the target.

Definition at line 19 of file ActarSimCinePrimGenerator.hh.

Referenced by GetS2().

G4double ActarSimCinePrimGenerator::S3
private

Mass of the scattered particle.

Definition at line 20 of file ActarSimCinePrimGenerator.hh.

Referenced by GetS3().

G4double ActarSimCinePrimGenerator::S4
private

Mass of the recoil.

Definition at line 21 of file ActarSimCinePrimGenerator.hh.

Referenced by GetS4().

G4double ActarSimCinePrimGenerator::TH
private

Theta Lab angle.

Definition at line 25 of file ActarSimCinePrimGenerator.hh.

Referenced by GetThetaLabAngle().


The documentation for this class was generated from the following files: