|
GENIEGenerator
|
#include <cassert>#include <string>#include <sstream>#include <vector>#include <TSystem.h>#include <TFile.h>#include <TTree.h>#include <TDirectory.h>#include <TPostScript.h>#include <TCanvas.h>#include <TLegend.h>#include <TGraph.h>#include <TPaveText.h>#include <TString.h>#include <TH1F.h>#include "Framework/ParticleData/BaryonResonance.h"#include "Framework/ParticleData/BaryonResUtils.h"#include "Framework/Conventions/XmlParserStatus.h"#include "Framework/Conventions/Units.h"#include "Framework/Conventions/Controls.h"#include "Framework/EventGen/InteractionList.h"#include "Framework/EventGen/GEVGDriver.h"#include "Framework/Interaction/Interaction.h"#include "Framework/Messenger/Messenger.h"#include "Framework/Numerical/Spline.h"#include "Framework/ParticleData/PDGCodes.h"#include "Framework/ParticleData/PDGCodeList.h"#include "Framework/ParticleData/PDGUtils.h"#include "Framework/ParticleData/PDGLibrary.h"#include "Framework/Utils/AppInit.h"#include "Framework/Utils/RunOpt.h"#include "Framework/Utils/XSecSplineList.h"#include "Framework/Utils/StringUtils.h"#include "Framework/Utils/CmdLnArgParser.h"#include "Framework/Registry/Registry.h"#include "Framework/Algorithm/AlgConfigPool.h"
Go to the source code of this file.
Functions | |
| void | LoadSplines (void) |
| GEVGDriver | GetEventGenDriver (void) |
| void | SaveToPsFile (void) |
| void | SaveGraphsToRootFile (void) |
| void | SaveNtupleToRootFile (void) |
| void | GetCommandLineArgs (int argc, char **argv) |
| void | PrintSyntax (void) |
| PDGCodeList | GetPDGCodeListFromString (std::string s) |
| int | main (int argc, char **argv) |
| void | FormatXSecGraph (TGraph *g) |
Variables | |
| string | gOptXMLFilename |
| string | gOptROOTFilename |
| PDGCodeList | gOptProbePdgList |
| PDGCodeList | gOptTgtPdgList |
| int | gOptProbePdgCode |
| int | gOptTgtPdgCode |
| bool | gWriteOutPlots |
| double | gEmin |
| double | gEmax |
| bool | gInlogE |
| int | kNP = 300 |
| int | kNSplineP = 1000 |
| const int | kPsType = 111 |
| void FormatXSecGraph | ( | TGraph * | g | ) |
| void GetCommandLineArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
| GEVGDriver GetEventGenDriver | ( | void | ) |
Definition at line 200 of file gSplineXml2Root.cxx.
References genie::GEVGDriver::Configure(), genie::GEVGDriver::CreateSplines(), genie::GEVGDriver::CreateXSecSumSpline(), gEmax, gEmin, gOptProbePdgCode, gOptTgtPdgCode, genie::RunOpt::Instance(), and genie::GEVGDriver::SetEventGeneratorList().
Referenced by SaveGraphsToRootFile(), and SaveToPsFile().
| PDGCodeList GetPDGCodeListFromString | ( | std::string | s | ) |
Definition at line 1575 of file gSplineXml2Root.cxx.
References genie::PDGCodeList::push_back(), and genie::utils::str::Split().
| void LoadSplines | ( | void | ) |
Definition at line 191 of file gSplineXml2Root.cxx.
References gOptXMLFilename, genie::XSecSplineList::Instance(), genie::kXmlOK, and genie::XSecSplineList::LoadFromXml().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 158 of file gSplineXml2Root.cxx.
References genie::RunOpt::BuildTune(), GetCommandLineArgs(), gOptProbePdgCode, gOptProbePdgList, gOptTgtPdgCode, gOptTgtPdgList, genie::RunOpt::Instance(), genie::XSecSplineList::Instance(), LoadSplines(), LOG, genie::utils::app_init::MesgThresholds(), pFATAL, pWARN, SaveGraphsToRootFile(), and SaveToPsFile().
| void PrintSyntax | ( | void | ) |
| void SaveGraphsToRootFile | ( | void | ) |
Definition at line 523 of file gSplineXml2Root.cxx.
References genie::utils::res::AsString(), genie::XclsTag::CharmHadronPdg(), genie::units::cm2, e, genie::Spline::Evaluate(), genie::Interaction::ExclTag(), genie::utils::str::FilterString(), genie::XclsTag::FinalLeptonPdg(), genie::XclsTag::FinalQuarkPdg(), genie::PDGLibrary::Find(), FormatXSecGraph(), gEmax, gEmin, GetEventGenDriver(), gInlogE, gOptProbePdgCode, gOptROOTFilename, gOptTgtPdgCode, genie::Target::HitNucIsSet(), genie::Target::HitNucPdg(), genie::Target::HitQrkIsSet(), genie::Target::HitQrkPdg(), genie::Target::HitSeaQrk(), genie::Interaction::InitState(), genie::PDGLibrary::Instance(), genie::GEVGDriver::Interactions(), genie::pdg::Is2NucleonCluster(), genie::pdg::IsAntiBQuark(), genie::pdg::IsAntiCQuark(), genie::pdg::IsAntiDQuark(), genie::pdg::IsAntiSQuark(), genie::pdg::IsAntiTQuark(), genie::pdg::IsAntiUQuark(), genie::pdg::IsBQuark(), genie::pdg::IsChargedLepton(), genie::XclsTag::IsCharmEvent(), genie::ProcessInfo::IsCoherentElastic(), genie::ProcessInfo::IsCoherentProduction(), genie::pdg::IsCQuark(), genie::ProcessInfo::IsDarkNeutralCurrent(), genie::ProcessInfo::IsDeepInelastic(), genie::ProcessInfo::IsDiffractive(), genie::pdg::IsDQuark(), genie::pdg::IsElectron(), genie::ProcessInfo::IsEM(), genie::XclsTag::IsFinalLeptonEvent(), genie::XclsTag::IsFinalQuarkEvent(), genie::ProcessInfo::IsGlashowResonance(), genie::ProcessInfo::IsIMDAnnihilation(), genie::XclsTag::IsInclusiveCharm(), genie::XclsTag::IsInclusiveStrange(), genie::ProcessInfo::IsInverseMuDecay(), genie::ProcessInfo::IsMEC(), genie::pdg::IsMuon(), genie::pdg::IsNeutralLepton(), genie::pdg::IsNeutron(), genie::ProcessInfo::IsNuElectronElastic(), genie::ProcessInfo::IsPhotonCoherent(), genie::ProcessInfo::IsPhotonResonance(), genie::pdg::IsPion(), genie::pdg::IsProton(), genie::ProcessInfo::IsQuasiElastic(), genie::ProcessInfo::IsResonant(), genie::pdg::IsSQuark(), genie::XclsTag::IsStrangeEvent(), genie::pdg::IsTau(), genie::pdg::IsTQuark(), genie::pdg::IsUQuark(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakMix(), genie::ProcessInfo::IsWeakNC(), genie::XclsTag::KnownResonance(), kNSplineP, genie::kPdgClusterNN, genie::kPdgClusterNP, genie::kPdgClusterPP, LOG, genie::XclsTag::NPi0(), genie::XclsTag::NPiMinus(), genie::XclsTag::NPions(), genie::XclsTag::NPiPlus(), genie::XclsTag::NRhos(), genie::XclsTag::NSingleGammas(), pINFO, genie::Interaction::ProcInfo(), pWARN, genie::XclsTag::Resonance(), genie::XclsTag::StrangeHadronPdg(), genie::InitialState::Tgt(), and genie::GEVGDriver::XSecSpline().
Referenced by main().
| void SaveNtupleToRootFile | ( | void | ) |
Definition at line 1427 of file gSplineXml2Root.cxx.
| void SaveToPsFile | ( | void | ) |
Definition at line 217 of file gSplineXml2Root.cxx.
References genie::Interaction::AsString(), genie::units::cm2, genie::Interaction::ExclTag(), genie::PDGLibrary::Find(), gEmax, gEmin, genie::Spline::GetAsTGraph(), GetEventGenDriver(), gOptProbePdgCode, gOptTgtPdgCode, gWriteOutPlots, genie::PDGLibrary::Instance(), genie::GEVGDriver::Interactions(), genie::XclsTag::IsCharmEvent(), genie::ProcessInfo::IsCoherentProduction(), genie::ProcessInfo::IsDeepInelastic(), genie::ProcessInfo::IsIMDAnnihilation(), genie::ProcessInfo::IsInverseMuDecay(), genie::ProcessInfo::IsNuElectronElastic(), genie::ProcessInfo::IsQuasiElastic(), genie::ProcessInfo::IsResonant(), kNP, kPsType, LOG, pINFO, genie::Interaction::ProcInfo(), genie::units::ps, pWARN, genie::GEVGDriver::XSecSpline(), and genie::GEVGDriver::XSecSumSpline().
Referenced by main().
| double gEmax |
Definition at line 151 of file gSplineXml2Root.cxx.
Referenced by GetEventGenDriver(), SaveGraphsToRootFile(), and SaveToPsFile().
| double gEmin |
Definition at line 150 of file gSplineXml2Root.cxx.
Referenced by GetEventGenDriver(), SaveGraphsToRootFile(), and SaveToPsFile().
| bool gInlogE |
Definition at line 152 of file gSplineXml2Root.cxx.
Referenced by SaveGraphsToRootFile().
| int gOptProbePdgCode |
Definition at line 144 of file gSplineXml2Root.cxx.
| PDGCodeList gOptProbePdgList |
Definition at line 142 of file gSplineXml2Root.cxx.
Referenced by main().
| string gOptROOTFilename |
Definition at line 141 of file gSplineXml2Root.cxx.
Referenced by SaveGraphsToRootFile().
| int gOptTgtPdgCode |
Definition at line 145 of file gSplineXml2Root.cxx.
| PDGCodeList gOptTgtPdgList |
Definition at line 143 of file gSplineXml2Root.cxx.
Referenced by main().
| string gOptXMLFilename |
Definition at line 140 of file gSplineXml2Root.cxx.
| bool gWriteOutPlots |
Definition at line 146 of file gSplineXml2Root.cxx.
Referenced by SaveToPsFile().
| int kNP = 300 |
Definition at line 153 of file gSplineXml2Root.cxx.
Referenced by SaveToPsFile().
| int kNSplineP = 1000 |
Definition at line 154 of file gSplineXml2Root.cxx.
Referenced by SaveGraphsToRootFile().
| const int kPsType = 111 |
Definition at line 155 of file gSplineXml2Root.cxx.
Referenced by SaveToPsFile().
1.8.5