#include <string>
#include <sstream>
#include <TSystem.h>
#include <TFile.h>
#include <TTree.h>
#include <TArrayF.h>
#include "Algorithm/AlgConfigPool.h"
#include "Conventions/Controls.h"
#include "EVGCore/EventRecord.h"
#include "Ntuple/NtpMCFormat.h"
#include "Ntuple/NtpMCTreeHeader.h"
#include "Ntuple/NtpMCEventRecord.h"
#include "Messenger/Messenger.h"
#include "ReWeight/GReWeightI.h"
#include "ReWeight/GSystSet.h"
#include "ReWeight/GReWeight.h"
#include "ReWeight/GReWeightNuXSecCCQE.h"
#include "ReWeight/GReWeightNuXSecCCQEvec.h"
#include "ReWeight/GReWeightNuXSecCCRES.h"
#include "ReWeight/GReWeightNuXSecNCRES.h"
#include "ReWeight/GReWeightNuXSecDIS.h"
#include "ReWeight/GReWeightNuXSecCOH.h"
#include "ReWeight/GReWeightNonResonanceBkg.h"
#include "ReWeight/GReWeightFGM.h"
#include "ReWeight/GReWeightDISNuclMod.h"
#include "ReWeight/GReWeightResonanceDecay.h"
#include "ReWeight/GReWeightFZone.h"
#include "ReWeight/GReWeightINuke.h"
#include "ReWeight/GReWeightAGKY.h"
#include "ReWeight/GSystUncertainty.h"
#include "Utils/CmdLnArgParser.h"
#include "Utils/StringUtils.h"
Go to the source code of this file.
Macros | |
#define | MAX_COEF 4 |
A simple program to illustrate how to use the GENIE event reweighting for use with the z-expansion axial form factor. More... | |
Functions | |
void | PrintSyntax () |
void | GetEventRange (Long64_t nev_in_file, Long64_t &nfirst, Long64_t &nlast) |
void | GetCommandLineArgs (int argc, char **argv) |
int | GetNumberOfWeights (int *ntwk, int kmaxinc, int normtwk, bool donorm) |
bool | IncrementCoefficients (int *ntwk, int kmaxinc, int normtwk, bool donorm, float *twkvals, GSystSet &syst) |
GSyst_t | GetZExpSystematic (int ip) |
int | main (int argc, char **argv) |
Variables | |
string | gOptInpFilename |
string | gOptOutFilename |
Long64_t | gOptNEvt1 |
Long64_t | gOptNEvt2 |
int | gOptKmaxInc = 0 |
int | gOptNormTweaks = 0 |
bool | gOptDoNorm = false |
bool | gOptSigmaDefined = false |
int | gOptNTweaks [MAX_COEF] = {0 } |
float | gOptSigMin [MAX_COEF] = {0.} |
float | gOptSigMax [MAX_COEF] = {0.} |
#define MAX_COEF 4 |
A simple program to illustrate how to use the GENIE event reweighting for use with the z-expansion axial form factor.
gRwghtZExpAxFF
grwghtzexpaxff -f filename -t NTwk1,NTwk2,... [-n nev] [-o fileOutName] [-s SigmaLo1,SigmaHi1,SigmaLo2,SigmaHi2,...] [-m NTwkN]
where [] is an optional argument -f specifies a GENIE event file (GHEP format) -o specifies a GENIE output filename -n specifies the number of events to process (default: all) -t specify number of tweaks on each z-expansion coefficient values are comma separated (# < 2 are ignored) -s specify +- one-sigma bounds on all coefficients up to max values are comma separated, given as percentages requires 2x number of fields from -t option default value is 10% on all coefficients -m number of tweaks on normalization puts reweighting into norm+shape mode
based on gtestRewght by
Costas Andreopoulos <constantinos.andreopoulos cern.ch> STFC, Rutherford Appleton Laboratory
Dec 26, 2014
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 79 of file gRwghtZExpAxFF.cxx.
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 324 of file gRwghtZExpAxFF.cxx.
void GetEventRange | ( | Long64_t | nev_in_file, |
Long64_t & | nfirst, | ||
Long64_t & | nlast | ||
) |
Definition at line 453 of file gRwghtZExpAxFF.cxx.
int GetNumberOfWeights | ( | int * | ntwk, |
int | kmaxinc, | ||
int | normtwk, | ||
bool | donorm | ||
) |
Definition at line 547 of file gRwghtZExpAxFF.cxx.
GSyst_t GetZExpSystematic | ( | int | ip | ) |
Definition at line 561 of file gRwghtZExpAxFF.cxx.
bool IncrementCoefficients | ( | int * | ntwk, |
int | kmaxinc, | ||
int | normtwk, | ||
bool | donorm, | ||
float * | twkvals, | ||
GSystSet & | syst | ||
) |
Definition at line 483 of file gRwghtZExpAxFF.cxx.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 108 of file gRwghtZExpAxFF.cxx.
void PrintSyntax | ( | void | ) |
Definition at line 576 of file gRwghtZExpAxFF.cxx.
bool gOptDoNorm = false |
Definition at line 101 of file gRwghtZExpAxFF.cxx.
string gOptInpFilename |
Definition at line 94 of file gRwghtZExpAxFF.cxx.
int gOptKmaxInc = 0 |
Definition at line 99 of file gRwghtZExpAxFF.cxx.
Long64_t gOptNEvt1 |
Definition at line 97 of file gRwghtZExpAxFF.cxx.
Long64_t gOptNEvt2 |
Definition at line 98 of file gRwghtZExpAxFF.cxx.
int gOptNormTweaks = 0 |
Definition at line 100 of file gRwghtZExpAxFF.cxx.
int gOptNTweaks[MAX_COEF] = {0 } |
Definition at line 103 of file gRwghtZExpAxFF.cxx.
string gOptOutFilename |
Definition at line 95 of file gRwghtZExpAxFF.cxx.
bool gOptSigmaDefined = false |
Definition at line 102 of file gRwghtZExpAxFF.cxx.
float gOptSigMax[MAX_COEF] = {0.} |
Definition at line 105 of file gRwghtZExpAxFF.cxx.
float gOptSigMin[MAX_COEF] = {0.} |
Definition at line 104 of file gRwghtZExpAxFF.cxx.