#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
August 20, 2013
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
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 57 of file gtestAxialFormFactor.cxx.
#define N_TREE 100 |
Definition at line 62 of file gtestAxialFormFactor.cxx.
#define Q2_LIN 4 |
Definition at line 59 of file gtestAxialFormFactor.cxx.
#define Q2_LOG_MAX 100 |
Definition at line 61 of file gtestAxialFormFactor.cxx.
#define Q2_LOG_MIN 0.1 |
Definition at line 60 of file gtestAxialFormFactor.cxx.
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.
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 323 of file gtestAxialFormFactor.cxx.
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.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 98 of file gtestAxialFormFactor.cxx.
double gOptCoeffInc[MAX_COEF] = {0.} |
Definition at line 94 of file gtestAxialFormFactor.cxx.
double gOptCoeffMax[MAX_COEF] = {0.} |
Definition at line 93 of file gtestAxialFormFactor.cxx.
double gOptCoeffMin[MAX_COEF] = {0.} |
Definition at line 92 of file gtestAxialFormFactor.cxx.
bool gOptDoLogarithmicQ2 |
Definition at line 91 of file gtestAxialFormFactor.cxx.
string gOptEvFilePrefix |
Definition at line 90 of file gtestAxialFormFactor.cxx.
int gOptKmaxInc = 0 |
Definition at line 95 of file gtestAxialFormFactor.cxx.
string kDefOptEvFilePrefix = "test.axialff" |
Definition at line 89 of file gtestAxialFormFactor.cxx.