#include <string>
#include <sstream>
#include <TSystem.h>
#include <TFile.h>
#include <TTree.h>
#include <TArrayF.h>
#include "Algorithm/AlgConfigPool.h"
#include "Algorithm/AlgFactory.h"
#include "Base/XSecAlgorithmI.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 reweight the GENIE z-expansion axial form factor from one set of z-expansion parameters directly to another. More... | |
Functions | |
void | PrintSyntax () |
void | GetEventRange (Long64_t nev_in_file, Long64_t &nfirst, Long64_t &nlast) |
void | GetCommandLineArgs (int argc, char **argv) |
GSyst_t | GetZExpSystematic (int ip) |
int | main (int argc, char **argv) |
Variables | |
string | gOptInpFilename |
string | gOptOutFilename |
Long64_t | gOptNEvt1 |
Long64_t | gOptNEvt2 |
bool | gOptDoNorm = false |
double | gOptNormValue = 1. |
double | gOptParameterValue [MAX_COEF] = {0.} |
#define MAX_COEF 4 |
A simple program to reweight the GENIE z-expansion axial form factor from one set of z-expansion parameters directly to another.
gRwghtZExpDirect
grwghtzexpaxff -f filename -v val1,val2,val3,val4 [-n nev] [-o fileOutName] [-m norm]
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) -v z-expansion values to reweight to -m reweight normalization of form factor (default: 1)
based on gtestRewght by
Costas Andreopoulos <constantinos.andreopoulos cern.ch> STFC, Rutherford Appleton Laboratory
Mar 14, 2016
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 74 of file gRwghtZExpDirect.cxx.
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 282 of file gRwghtZExpDirect.cxx.
void GetEventRange | ( | Long64_t | nev_in_file, |
Long64_t & | nfirst, | ||
Long64_t & | nlast | ||
) |
Definition at line 369 of file gRwghtZExpDirect.cxx.
GSyst_t GetZExpSystematic | ( | int | ip | ) |
Definition at line 399 of file gRwghtZExpDirect.cxx.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 95 of file gRwghtZExpDirect.cxx.
void PrintSyntax | ( | void | ) |
Definition at line 414 of file gRwghtZExpDirect.cxx.
bool gOptDoNorm = false |
Definition at line 90 of file gRwghtZExpDirect.cxx.
string gOptInpFilename |
Definition at line 86 of file gRwghtZExpDirect.cxx.
Long64_t gOptNEvt1 |
Definition at line 88 of file gRwghtZExpDirect.cxx.
Long64_t gOptNEvt2 |
Definition at line 89 of file gRwghtZExpDirect.cxx.
double gOptNormValue = 1. |
Definition at line 91 of file gRwghtZExpDirect.cxx.
string gOptOutFilename |
Definition at line 87 of file gRwghtZExpDirect.cxx.
double gOptParameterValue[MAX_COEF] = {0.} |
Definition at line 92 of file gRwghtZExpDirect.cxx.