GENIEGenerator
|
#include <string>
#include <sstream>
#include <TFile.h>
#include <TTree.h>
#include "Framework/Algorithm/Algorithm.h"
#include "Framework/Algorithm/AlgFactory.h"
#include "Framework/Algorithm/AlgConfigPool.h"
#include "Framework/Conventions/Constants.h"
#include "Framework/GHEP/GHepParticle.h"
#include "Physics/QuasiElastic/XSection/AxialFormFactorModelI.h"
#include "Physics/QuasiElastic/XSection/AxialFormFactor.h"
#include "Framework/Interaction/Interaction.h"
#include "Framework/Messenger/Messenger.h"
#include "Framework/ParticleData/PDGCodes.h"
#include "Framework/ParticleData/PDGLibrary.h"
#include "Framework/ParticleData/PDGUtils.h"
#include "Framework/Utils/CmdLnArgParser.h"
#include "Framework/Utils/StringUtils.h"
Go to the source code of this file.
Classes | |
struct | tdata |
Macros | |
#define | MAX_COEF 3 |
Program used for testing / debugging the axial form factor. More... | |
#define | Q2_LIN 4 |
#define | Q2_LOG_MIN 0.1 |
#define | Q2_LOG_MAX 100 |
#define | N_TREE 100 |
Functions | |
void | GetCommandLineArgs (int argc, char **argv) |
void | CalculateFormFactor (AxialFormFactor axff, TTree *affnt, tdata params, AlgFactory *algf, Registry *r, const Registry *gc, Interaction *interaction, double t0) |
bool | IncrementCoefficients (double *coefmin, double *coefmax, double *coefinc, int kmaxinc, tdata params, AlgFactory *algf, Registry *r, const Registry *gc) |
int | main (int argc, char **argv) |
Variables | |
string | kDefOptEvFilePrefix = "test.axialff" |
string | gOptEvFilePrefix |
bool | gOptDoLogarithmicQ2 |
double | gOptCoeffMin [MAX_COEF] = {0.} |
double | gOptCoeffMax [MAX_COEF] = {0.} |
double | gOptCoeffInc [MAX_COEF] = {0.} |
int | gOptKmaxInc = 0 |
#define MAX_COEF 3 |
Program used for testing / debugging the axial form factor.
gtestAxialFormFactor
gtestAxialFormFactor [-l] [-o output_filename_prefix] [-c min,max,inc[,min,max,inc...]]
[] denotes an optionan argument -l switch which evaluates over logarithmic Q^2 -o output filename prefix for root file output -c allows scanning over z-expansion coefficients – must give a multiple of 3 numbers as arguments: min, max, increment – will scan over at most MAX_COEF coefficients and fill ntuple tree with all entries – can change MAX_COEF and recompile as necessary – to skip scanning over a coefficient, put max < min for that coefficient note that Kmax in UserPhysicsOptions should match the number of scanned coeffs
Definition at line 57 of file gtestAxialFormFactor.cxx.
Referenced by main().
#define N_TREE 100 |
Definition at line 62 of file gtestAxialFormFactor.cxx.
Referenced by CalculateFormFactor().
#define Q2_LIN 4 |
Definition at line 59 of file gtestAxialFormFactor.cxx.
Referenced by CalculateFormFactor().
#define Q2_LOG_MAX 100 |
Definition at line 61 of file gtestAxialFormFactor.cxx.
Referenced by CalculateFormFactor().
#define Q2_LOG_MIN 0.1 |
Definition at line 60 of file gtestAxialFormFactor.cxx.
Referenced by CalculateFormFactor().
void CalculateFormFactor | ( | AxialFormFactor | axff, |
TTree * | affnt, | ||
tdata | params, | ||
AlgFactory * | algf, | ||
Registry * | r, | ||
const Registry * | gc, | ||
Interaction * | interaction, | ||
double | t0 | ||
) |
Definition at line 227 of file gtestAxialFormFactor.cxx.
References genie::AxialFormFactor::Calculate(), genie::AxialFormFactor::FA(), genie::AlgFactory::GetAlgorithm(), gOptDoLogarithmicQ2, genie::Interaction::KinePtr(), genie::constants::kPi0Mass, LOG, N_TREE, pERROR, tdata::pFA, tdata::pmod, tdata::pQ2, tdata::pz, genie::Kinematics::q2(), genie::utils::kinematics::Q2(), Q2_LIN, Q2_LOG_MAX, Q2_LOG_MIN, genie::AxialFormFactor::SetModel(), and genie::Kinematics::SetQ2().
Referenced by main().
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
bool IncrementCoefficients | ( | double * | coefmin, |
double * | coefmax, | ||
double * | coefinc, | ||
int | kmaxinc, | ||
tdata | params, | ||
AlgFactory * | algf, | ||
Registry * | r, | ||
const Registry * | gc | ||
) |
Definition at line 282 of file gtestAxialFormFactor.cxx.
References genie::AlgFactory::ForceReconfiguration(), LOG, tdata::pcAn, pERROR, and genie::Registry::Set().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 98 of file gtestAxialFormFactor.cxx.
References CalculateFormFactor(), genie::AlgConfigPool::FindRegistry(), genie::AlgFactory::ForceReconfiguration(), genie::AlgFactory::GetAlgorithm(), genie::Registry::GetBool(), genie::Registry::GetBoolDef(), GetCommandLineArgs(), genie::Registry::GetDouble(), genie::Registry::GetDoubleDef(), genie::Registry::GetInt(), genie::Registry::GetIntDef(), genie::AlgConfigPool::GlobalParameterList(), gOptCoeffInc, gOptCoeffMax, gOptCoeffMin, gOptEvFilePrefix, gOptKmaxInc, IncrementCoefficients(), genie::AlgFactory::Instance(), genie::AlgConfigPool::Instance(), genie::kPdgNuMu, genie::kPdgProton, genie::kPdgTgtFe56, LOG, MAX_COEF, tdata::pcAn, tdata::pFA, pINFO, tdata::pKmax, tdata::pmod, tdata::pQ2, pWARN, tdata::pz, genie::utils::kinematics::Q2(), genie::Interaction::QELCC(), genie::Registry::Set(), and genie::Registry::UnLock().
double gOptCoeffInc[MAX_COEF] = {0.} |
Definition at line 94 of file gtestAxialFormFactor.cxx.
Referenced by main().
double gOptCoeffMax[MAX_COEF] = {0.} |
Definition at line 93 of file gtestAxialFormFactor.cxx.
Referenced by main().
double gOptCoeffMin[MAX_COEF] = {0.} |
Definition at line 92 of file gtestAxialFormFactor.cxx.
Referenced by main().
bool gOptDoLogarithmicQ2 |
Definition at line 91 of file gtestAxialFormFactor.cxx.
Referenced by CalculateFormFactor().
string gOptEvFilePrefix |
Definition at line 90 of file gtestAxialFormFactor.cxx.
int gOptKmaxInc = 0 |
Definition at line 95 of file gtestAxialFormFactor.cxx.
Referenced by main().
string kDefOptEvFilePrefix = "test.axialff" |
Definition at line 89 of file gtestAxialFormFactor.cxx.