GENIEGenerator
Loading...
Searching...
No Matches
DipoleAxialFormFactorModel.cxx
Go to the documentation of this file.
1//____________________________________________________________________________
2/*
3 Copyright (c) 2003-2025, The GENIE Collaboration
4 For the full text of the license visit http://copyright.genie-mc.org
5
6 Aaron Meyer <asmeyer2012 \at uchicago.edu>
7
8 based off DipoleELFormFactorsModel by
9 Costas Andreopoulos <c.andreopoulos \at cern.ch>
10 University of Liverpool
11*/
12//____________________________________________________________________________
13
14#include <TMath.h>
15
20
21using namespace genie;
22
23//____________________________________________________________________________
25AxialFormFactorModelI("genie::DipoleAxialFormFactorModel")
26{
27
28}
29//____________________________________________________________________________
31AxialFormFactorModelI("genie::DipoleAxialFormFactorModel", config)
32{
33
34}
35//____________________________________________________________________________
40//____________________________________________________________________________
41double DipoleAxialFormFactorModel::FA(const Interaction * interaction) const
42{
43 // calculate and return FA
44 double q2 = interaction->Kine().q2();
45 double fa = fFA0 / TMath::Power(1-q2/fMa2, 2);
46
47 LOG("AxialFormFactor", pDEBUG) << "FA(q^2 = " << q2 << ") = " << fa;
48 return fa;
49}
50//____________________________________________________________________________
52{
54 this->LoadConfig();
55}
56//____________________________________________________________________________
58{
59 Algorithm::Configure(param_set);
60 this->LoadConfig();
61}
62//____________________________________________________________________________
64{
65 GetParam( "QEL-Ma", fMa ) ;
66 fMa2 = TMath::Power(fMa,2);
67
68 // FA(q2 = 0)
69 GetParam( "QEL-FA0", fFA0 ) ;
70}
71//____________________________________________________________________________
#define pDEBUG
Definition Messenger.h:63
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
virtual void Configure(const Registry &config)
Definition Algorithm.cxx:62
double FA(const Interaction *interaction) const
Compute the axial form factor.
Summary information for an interaction.
Definition Interaction.h:56
const Kinematics & Kine(void) const
Definition Interaction.h:71
double q2(bool selected=false) const
A registry. Provides the container for algorithm configuration parameters.
Definition Registry.h:65
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25