GENIEGenerator
Loading...
Searching...
No Matches
gMakeHEDISStrucFunc.cxx File Reference
Include dependency graph for gMakeHEDISStrucFunc.cxx:

Go to the source code of this file.

Functions

void PrintSyntax (void)
int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 46 of file gMakeHEDISStrucFunc.cxx.

47{
48
50
51 if ( ! RunOpt::Instance()->Tune() ) {
52 LOG("gmkhedissf", pFATAL) << " No TuneId in RunOption";
53 exit(-1);
54 }
56
58
59 GEVGDriver evg_driver;
60 InitialState init_state(1000010020, 14);
61 evg_driver.SetEventGeneratorList("CCHEDIS");
62 evg_driver.Configure(init_state);
63
64 const InteractionList * intlst = evg_driver.Interactions();
65 InteractionList::const_iterator intliter = intlst->begin();
66 Interaction * interaction = *intliter;
67 const XSecAlgorithmI * xsec_alg = evg_driver.FindGenerator(interaction)->CrossSectionAlg();
68 interaction->SetBit(kISkipKinematicChk);
69 xsec_alg->XSec(interaction, kPSxQ2fE);
70
71}//____________________________________________________________________________
#define pFATAL
Definition Messenger.h:56
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
virtual const XSecAlgorithmI * CrossSectionAlg(void) const =0
GENIE Event Generation Driver. A minimalist user interface object for generating neutrino interaction...
Definition GEVGDriver.h:54
void Configure(int nu_pdgc, int Z, int A)
const InteractionList * Interactions(void) const
void SetEventGeneratorList(string listname)
const EventGeneratorI * FindGenerator(const Interaction *interaction) const
Initial State information.
A vector of Interaction objects.
Summary information for an interaction.
Definition Interaction.h:56
void ReadFromCommandLine(int argc, char **argv)
Definition RunOpt.cxx:99
void BuildTune()
build tune and inform XSecSplineList
Definition RunOpt.cxx:92
static RunOpt * Instance(void)
Definition RunOpt.cxx:54
Cross Section Calculation Interface.
virtual double XSec(const Interaction *i, KinePhaseSpace_t k=kPSfE) const =0
Compute the cross section for the input interaction.
void MesgThresholds(string inpfile)
Definition AppInit.cxx:99
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
Definition Interaction.h:48

References genie::RunOpt::BuildTune(), genie::GEVGDriver::Configure(), genie::EventGeneratorI::CrossSectionAlg(), genie::GEVGDriver::FindGenerator(), genie::RunOpt::Instance(), genie::GEVGDriver::Interactions(), genie::kISkipKinematicChk, genie::kPSxQ2fE, LOG, genie::utils::app_init::MesgThresholds(), pFATAL, genie::RunOpt::ReadFromCommandLine(), genie::GEVGDriver::SetEventGeneratorList(), and genie::XSecAlgorithmI::XSec().

◆ PrintSyntax()

void PrintSyntax ( void )

Definition at line 72 of file gMakeHEDISStrucFunc.cxx.

73{
74 LOG("gmkhedissf", pNOTICE)
75 << "\n\n" << "Syntax:" << "\n"
76 << "\n gmkhedissf [-h]"
77 << "\n --tune genie_tune"
78 << "\n --message-thresholds xml_file"
79 << "\n";
80}
#define pNOTICE
Definition Messenger.h:61

References LOG, and pNOTICE.