#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <TSystem.h>
#include <TServerSocket.h>
#include <TSocket.h>
#include <TMessage.h>
#include <TBits.h>
#include <TMath.h>
#include "Conventions/Units.h"
#include "EVGCore/EventRecord.h"
#include "EVGDrivers/GEVGDriver.h"
#include "EVGDrivers/GEVGPool.h"
#include "EVGDrivers/GMCJMonitor.h"
#include "GHEP/GHepFlags.h"
#include "GHEP/GHepParticle.h"
#include "GHEP/GHepRecord.h"
#include "Interaction/Interaction.h"
#include "Messenger/Messenger.h"
#include "Numerical/Spline.h"
#include "PDG/PDGCodeList.h"
#include "Utils/XSecSplineList.h"
#include "Utils/StringUtils.h"
#include "Utils/CmdLnArgParser.h"
Go to the source code of this file.
Functions | |
void | GetCommandLineArgs (int argc, char **argv) |
void | PrintSyntax (void) |
void | RunInitChecks (void) |
void | HandleMesg (string mesg) |
void | Handshake (void) |
void | Configure (string mesg) |
void | CalcTotalXSec (string mesg) |
void | GenerateEvent (string mesg) |
void | Shutdown (void) |
int | main (int argc, char **argv) |
Variables | |
const int | kDefPortNum = 9090 |
const string | kHandshakeCmdRecv = "RUB GENIE LAMP" |
const string | kHandshakeMesgSent = "YOU HAVE 3 WISHES!" |
const string | kConfigCmdRecv = "CONFIG" |
const string | kConfigOkMesgSent = "CONFIG COMPLETED" |
const string | kConfigCmdLdSpl = "load-splines" |
const string | kConfigCmdNeuList = "neutrino-list" |
const string | kConfigCmdTgtList = "target-list" |
const string | kXSecCmdRecv = "XSEC" |
const string | kXSecCmdSent = "XSECSPL" |
const string | kXSecOkMesgSent = "XSEC SENT" |
const string | kEvgenCmdRecv = "EVTVTX" |
const string | kEvgenHdrCmdSent = "EVTREC" |
const string | kEvgenStdhepCmdSent = "STDHEP" |
const string | kEvgenOkMesgSent = "EVENT GENERATED" |
const string | kShutdownCmdRecv = "SHUTDOWN" |
const string | kShutdownOkMesgSent = "SHUTTING DOWN" |
const string | kErrNoConf = "*** NOT CONFIGURED! ***" |
const string | kErrNoDriver = "*** NO EVENT GENERATION DRIVER! ***" |
const string | kErrNoEvent = "*** NULL OR UNPHYSICAL EVENT! ***" |
const string | kErr = "FAILED" |
int | gOptPortNum |
TSocket * | gSock = 0 |
bool | gShutDown = false |
bool | gConfigured = false |
GEVGPool | gGPool |
Definition at line 315 of file gEvServ.cxx.
References ana::assert(), genie::InitialState::AsString(), genie::units::cm2, genie::GEVGDriver::CreateXSecSumSpline(), dE, E, Emax, genie::Spline::Evaluate(), genie::utils::str::FilterString(), genie::GEVGPool::FindDriver(), gConfigured, gSock, makeTrainCVSamples::int, ip, kErr, kErrNoConf, kErrNoDriver, kXSecCmdRecv, kXSecCmdSent, kXSecOkMesgSent, LOG, pERROR, pINFO, pNOTICE, genie::utils::str::Split(), genie::utils::str::TrimSpaces(), and genie::GEVGDriver::XSecSumSpline().
Referenced by HandleMesg().
Definition at line 196 of file gEvServ.cxx.
References ana::assert(), genie::InitialState::AsString(), genie::GEVGDriver::Configure(), genie::utils::str::FilterString(), gConfigured, gSock, genie::XSecSplineList::Instance(), kConfigCmdLdSpl, kConfigCmdNeuList, kConfigCmdRecv, kConfigCmdTgtList, kConfigOkMesgSent, LOG, pINFO, pNOTICE, genie::PDGCodeList::push_back(), genie::utils::str::Split(), genie::utils::str::TrimSpaces(), and genie::GEVGDriver::UseSplines().
Referenced by genie::Algorithm::AdoptConfig(), genie::Algorithm::Configure(), genie::GEVGDriver::Configure(), HandleMesg(), make_sk_xsec_table(), and cafrwgt::CAFReweight::WgtBestNeutrino().
Definition at line 390 of file gEvServ.cxx.
References ana::assert(), genie::InitialState::AsString(), E, genie::GHepParticle::E(), genie::utils::str::FilterString(), genie::GEVGPool::FindDriver(), genie::GHepParticle::FirstDaughter(), genie::GHepParticle::FirstMother(), gConfigured, genie::GEVGDriver::GenerateEvent(), gSock, genie::Target::HitQrkPdg(), MECModelEnuComparisons::i, genie::Interaction::InitState(), genie::ProcessInfo::IsCoherent(), genie::ProcessInfo::IsDeepInelastic(), genie::ProcessInfo::IsInverseMuDecay(), genie::ProcessInfo::IsNuElectronElastic(), genie::ProcessInfo::IsQuasiElastic(), genie::ProcessInfo::IsResonant(), genie::GHepRecord::IsUnphysical(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakNC(), kErr, kErrNoConf, kErrNoDriver, kErrNoEvent, kEvgenCmdRecv, kEvgenHdrCmdSent, kEvgenOkMesgSent, kEvgenStdhepCmdSent, genie::Interaction::Kine(), genie::GHepParticle::LastDaughter(), genie::GHepParticle::LastMother(), LOG, genie::GHepParticle::Mass(), make_associated_cosmic_defs::p4, genie::GHepParticle::Pdg(), pERROR, pINFO, pNOTICE, genie::Interaction::ProcInfo(), pWARN, genie::GHepParticle::Px(), genie::GHepParticle::Py(), genie::GHepParticle::Pz(), genie::Kinematics::Q2(), genie::utils::str::Split(), ana::Sqrt(), genie::GHepParticle::Status(), genie::InitialState::Tgt(), genie::utils::str::TrimSpaces(), genie::GHepParticle::Vt(), vtxx, vtxy, vtxz, genie::GHepParticle::Vx(), genie::GHepParticle::Vy(), genie::GHepParticle::Vz(), genie::Kinematics::W(), genie::Kinematics::x(), and genie::Kinematics::y().
Referenced by genie::GEVGDriver::GenerateEvent(), and HandleMesg().
Definition at line 590 of file gEvServ.cxx.
References genie::CmdLnArgParser::ArgAsInt(), gOptPortNum, kDefPortNum, LOG, genie::CmdLnArgParser::OptionExists(), plot_validation_datamc::parser, pINFO, and pNOTICE.
Referenced by main().
Definition at line 156 of file gEvServ.cxx.
References CalcTotalXSec(), Configure(), GenerateEvent(), Handshake(), kConfigCmdRecv, kEvgenCmdRecv, kHandshakeCmdRecv, kShutdownCmdRecv, kXSecCmdRecv, and Shutdown().
Referenced by main().
Definition at line 184 of file gEvServ.cxx.
References gSock, kHandshakeMesgSent, LOG, pINFO, and pNOTICE.
Referenced by HandleMesg().
Definition at line 110 of file gEvServ.cxx.
References exit(), GetCommandLineArgs(), gOptPortNum, gShutDown, gSock, HandleMesg(), LOG, pNOTICE, and RunInitChecks().
Definition at line 607 of file gEvServ.cxx.
Definition at line 572 of file gEvServ.cxx.
Referenced by main().
Definition at line 561 of file gEvServ.cxx.
References gShutDown, gSock, kShutdownOkMesgSent, LOG, pINFO, and pNOTICE.
Referenced by HandleMesg().
bool gConfigured = false |
Definition at line 106 of file gEvServ.cxx.
Referenced by CalcTotalXSec(), Configure(), and GenerateEvent().
GEVGPool gGPool |
Definition at line 107 of file gEvServ.cxx.
int gOptPortNum |
Definition at line 100 of file gEvServ.cxx.
Referenced by GetCommandLineArgs(), and main().
bool gShutDown = false |
Definition at line 105 of file gEvServ.cxx.
Referenced by main(), and Shutdown().
TSocket* gSock = 0 |
Definition at line 104 of file gEvServ.cxx.
Referenced by CalcTotalXSec(), Configure(), GenerateEvent(), Handshake(), main(), and Shutdown().
const string kConfigCmdLdSpl = "load-splines" |
Definition at line 81 of file gEvServ.cxx.
Referenced by Configure().
const string kConfigCmdNeuList = "neutrino-list" |
Definition at line 82 of file gEvServ.cxx.
Referenced by Configure().
const string kConfigCmdRecv = "CONFIG" |
Definition at line 79 of file gEvServ.cxx.
Referenced by Configure(), and HandleMesg().
const string kConfigCmdTgtList = "target-list" |
Definition at line 83 of file gEvServ.cxx.
Referenced by Configure().
const string kConfigOkMesgSent = "CONFIG COMPLETED" |
Definition at line 80 of file gEvServ.cxx.
Referenced by Configure().
const int kDefPortNum = 9090 |
Definition at line 76 of file gEvServ.cxx.
Referenced by GetCommandLineArgs().
const string kErr = "FAILED" |
Definition at line 96 of file gEvServ.cxx.
Referenced by CalcTotalXSec(), and GenerateEvent().
const string kErrNoConf = "*** NOT CONFIGURED! ***" |
Definition at line 93 of file gEvServ.cxx.
Referenced by CalcTotalXSec(), and GenerateEvent().
const string kErrNoDriver = "*** NO EVENT GENERATION DRIVER! ***" |
Definition at line 94 of file gEvServ.cxx.
Referenced by CalcTotalXSec(), and GenerateEvent().
const string kErrNoEvent = "*** NULL OR UNPHYSICAL EVENT! ***" |
Definition at line 95 of file gEvServ.cxx.
Referenced by GenerateEvent().
const string kEvgenCmdRecv = "EVTVTX" |
Definition at line 87 of file gEvServ.cxx.
Referenced by GenerateEvent(), and HandleMesg().
const string kEvgenHdrCmdSent = "EVTREC" |
Definition at line 88 of file gEvServ.cxx.
Referenced by GenerateEvent().
const string kEvgenOkMesgSent = "EVENT GENERATED" |
Definition at line 90 of file gEvServ.cxx.
Referenced by GenerateEvent().
const string kEvgenStdhepCmdSent = "STDHEP" |
Definition at line 89 of file gEvServ.cxx.
Referenced by GenerateEvent().
const string kHandshakeCmdRecv = "RUB GENIE LAMP" |
Definition at line 77 of file gEvServ.cxx.
Referenced by HandleMesg().
const string kHandshakeMesgSent = "YOU HAVE 3 WISHES!" |
Definition at line 78 of file gEvServ.cxx.
Referenced by Handshake().
const string kShutdownCmdRecv = "SHUTDOWN" |
Definition at line 91 of file gEvServ.cxx.
Referenced by HandleMesg().
const string kShutdownOkMesgSent = "SHUTTING DOWN" |
Definition at line 92 of file gEvServ.cxx.
Referenced by Shutdown().
const string kXSecCmdRecv = "XSEC" |
Definition at line 84 of file gEvServ.cxx.
Referenced by CalcTotalXSec(), and HandleMesg().
const string kXSecCmdSent = "XSECSPL" |
Definition at line 85 of file gEvServ.cxx.
Referenced by CalcTotalXSec().
const string kXSecOkMesgSent = "XSEC SENT" |
Definition at line 86 of file gEvServ.cxx.
Referenced by CalcTotalXSec().