GENIEGenerator
|
#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 <c.andreopoulos cern.ch> University of Liverpool
Definition at line 74 of file gRwghtZExpDirect.cxx.
Referenced by main().
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
void GetEventRange | ( | Long64_t | nev_in_file, |
Long64_t & | nfirst, | ||
Long64_t & | nlast | ||
) |
GSyst_t GetZExpSystematic | ( | int | ip | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 95 of file gRwghtZExpDirect.cxx.
References genie::AlgFactory::AdoptAlgorithm(), genie::Algorithm::AdoptSubstructure(), genie::NtpMCEventRecord::Clear(), genie::NtpMCEventRecord::event, genie::gAbortingInErr, GetCommandLineArgs(), genie::Algorithm::GetConfig(), genie::Registry::GetDouble(), genie::Registry::GetDoubleDef(), GetEventRange(), GetZExpSystematic(), gOptDoNorm, gOptInpFilename, gOptNormValue, gOptOutFilename, gOptParameterValue, genie::AlgFactory::Instance(), genie::AlgConfigPool::Instance(), LOG, MAX_COEF, pFATAL, pINFO, pNOTICE, and PrintSyntax().
void PrintSyntax | ( | void | ) |
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.
Referenced by main().
string gOptOutFilename |
Definition at line 87 of file gRwghtZExpDirect.cxx.
double gOptParameterValue[MAX_COEF] = {0.} |
Definition at line 92 of file gRwghtZExpDirect.cxx.
Referenced by main().