GENIEGenerator
|
#include <string>
#include <vector>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <TSystem.h>
#include <TFile.h>
#include <TTree.h>
#include <TH1D.h>
#include <TLorentzVector.h>
#include "Framework/Conventions/Constants.h"
#include "Framework/EventGen/EventRecord.h"
#include "Framework/GHEP/GHepParticle.h"
#include "Framework/Ntuple/NtpMCFormat.h"
#include "Framework/Ntuple/NtpMCTreeHeader.h"
#include "Framework/Ntuple/NtpMCEventRecord.h"
#include "Framework/ParticleData/PDGLibrary.h"
#include "Framework/ParticleData/PDGCodes.h"
#include "Framework/ParticleData/PDGUtils.h"
#include "Framework/ParticleData/PDGCodeList.h"
#include "Framework/Messenger/Messenger.h"
#include "Physics/NuclearState/NuclearUtils.h"
#include "Framework/Utils/CmdLnArgParser.h"
#include "Framework/Utils/RunOpt.h"
Go to the source code of this file.
Functions | |
void | GetCommandLineArgs (int argc, char **argv) |
void | PrintSyntax (void) |
bool | CheckRootFilename (string filename) |
void | CheckEnergyMomentumConservation (void) |
void | CheckChargeConservation (void) |
void | CheckForPseudoParticlesInFinState (void) |
void | CheckForOffMassShellParticlesInFinState (void) |
void | CheckForNumFinStateNucleonsInconsistentWithTarget (void) |
void | CheckVertexDistribution (void) |
void | CheckDecayerConsistency (void) |
int | main (int argc, char **argv) |
Variables | |
string | gOptInpFilename = "" |
string | gOptOutFilename = "" |
Long64_t | gOptNEvtL = -1 |
Long64_t | gOptNEvtH = -1 |
int | gOptMaxNumErrs = -1 |
bool | gOptAddEventPrintoutInErrLog = false |
bool | gOptCheckEnergyMomentumConservation = false |
bool | gOptCheckChargeConservation = false |
bool | gOptCheckForPseudoParticlesInFinState = false |
bool | gOptCheckForOffMassShellParticlesInFinState = false |
bool | gOptCheckForNumFinStateNucleonsInconsistentWithTarget = false |
bool | gOptCheckVertexDistribution = false |
bool | gOptCheckDecayerConsistency = false |
Long64_t | gFirstEventNum = -1 |
Long64_t | gLastEventNum = -1 |
TTree * | gEventTree = 0 |
NtpMCEventRecord * | gMCRec = 0 |
ofstream | gErrLog |
void CheckChargeConservation | ( | void | ) |
Definition at line 290 of file gEvScan.cxx.
References genie::GHepParticle::Charge(), genie::NtpMCEventRecord::Clear(), epsilon, genie::NtpMCEventRecord::event, gErrLog, gEventTree, gFirstEventNum, gLastEventNum, gMCRec, gOptAddEventPrintoutInErrLog, gOptMaxNumErrs, genie::NtpMCRecordI::hdr, genie::kIStInitialState, genie::kIStStableFinalState, LOG, pERROR, pINFO, pNOTICE, and genie::GHepParticle::Status().
Referenced by main().
void CheckDecayerConsistency | ( | void | ) |
ok
Definition at line 710 of file gEvScan.cxx.
References genie::NtpMCEventRecord::Clear(), genie::NtpMCEventRecord::event, genie::PDGCodeList::ExistsInPDGCodeList(), genie::PDGLibrary::Find(), gErrLog, gEventTree, gFirstEventNum, gLastEventNum, gMCRec, gOptAddEventPrintoutInErrLog, genie::NtpMCRecordI::hdr, genie::PDGLibrary::Instance(), genie::kIStDecayedState, genie::kIStStableFinalState, LOG, genie::GHepParticle::Pdg(), pINFO, pNOTICE, genie::PDGCodeList::push_back(), and genie::GHepParticle::Status().
Referenced by main().
void CheckEnergyMomentumConservation | ( | void | ) |
Definition at line 199 of file gEvScan.cxx.
References genie::NtpMCEventRecord::Clear(), genie::GHepParticle::E(), epsilon, genie::NtpMCEventRecord::event, gErrLog, gEventTree, gFirstEventNum, gLastEventNum, gMCRec, gOptAddEventPrintoutInErrLog, gOptMaxNumErrs, genie::NtpMCRecordI::hdr, genie::kIStFinalStateNuclearRemnant, genie::kIStInitialState, genie::kIStStableFinalState, LOG, pERROR, pINFO, pNOTICE, genie::GHepParticle::Px(), genie::GHepParticle::Py(), genie::GHepParticle::Pz(), and genie::GHepParticle::Status().
Referenced by main().
void CheckForNumFinStateNucleonsInconsistentWithTarget | ( | void | ) |
Definition at line 506 of file gEvScan.cxx.
References genie::GHepParticle::A(), genie::NtpMCEventRecord::Clear(), genie::NtpMCEventRecord::event, genie::GHepParticle::FirstDaughter(), gErrLog, gEventTree, gFirstEventNum, gLastEventNum, gMCRec, gOptAddEventPrintoutInErrLog, gOptMaxNumErrs, genie::NtpMCRecordI::hdr, genie::pdg::IsIon(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::kIStHadronInTheNucleus, genie::kIStStableFinalState, genie::GHepParticle::LastDaughter(), LOG, genie::GHepParticle::Pdg(), pERROR, pINFO, pNOTICE, genie::GHepParticle::Status(), and genie::GHepParticle::Z().
Referenced by main().
void CheckForOffMassShellParticlesInFinState | ( | void | ) |
Definition at line 440 of file gEvScan.cxx.
References genie::NtpMCEventRecord::Clear(), genie::NtpMCEventRecord::event, gErrLog, gEventTree, gFirstEventNum, gLastEventNum, gMCRec, gOptAddEventPrintoutInErrLog, gOptMaxNumErrs, genie::NtpMCRecordI::hdr, genie::GHepParticle::IsOffMassShell(), genie::kIStStableFinalState, LOG, pERROR, pINFO, pNOTICE, and genie::GHepParticle::Status().
Referenced by main().
void CheckForPseudoParticlesInFinState | ( | void | ) |
Definition at line 373 of file gEvScan.cxx.
References genie::NtpMCEventRecord::Clear(), genie::NtpMCEventRecord::event, gErrLog, gEventTree, gFirstEventNum, gLastEventNum, gMCRec, gOptAddEventPrintoutInErrLog, gOptMaxNumErrs, genie::NtpMCRecordI::hdr, genie::pdg::IsPseudoParticle(), genie::kIStStableFinalState, LOG, genie::GHepParticle::Pdg(), pERROR, pINFO, pNOTICE, and genie::GHepParticle::Status().
Referenced by main().
bool CheckRootFilename | ( | string | filename | ) |
Definition at line 2033 of file gEvComp.cxx.
void CheckVertexDistribution | ( | void | ) |
Definition at line 612 of file gEvScan.cxx.
References genie::units::A, genie::GHepParticle::A(), genie::NtpMCEventRecord::Clear(), genie::utils::nuclear::Density(), genie::NtpMCEventRecord::event, gErrLog, gEventTree, gFirstEventNum, gLastEventNum, gMCRec, genie::NtpMCRecordI::hdr, genie::constants::kPi, LOG, pINFO, pNOTICE, Write(), genie::GHepParticle::X4(), and genie::GHepParticle::Z().
Referenced by main().
void GetCommandLineArgs | ( | int | argc, |
char ** | argv | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 114 of file gEvScan.cxx.
References genie::NtpMCFormat::AsString(), CheckChargeConservation(), CheckDecayerConsistency(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), CheckForPseudoParticlesInFinState(), CheckVertexDistribution(), genie::gAbortingInErr, gErrLog, GetCommandLineArgs(), gEventTree, gFirstEventNum, gLastEventNum, gMCRec, gOptCheckChargeConservation, gOptCheckDecayerConsistency, gOptCheckEnergyMomentumConservation, gOptCheckForNumFinStateNucleonsInconsistentWithTarget, gOptCheckForOffMassShellParticlesInFinState, gOptCheckForPseudoParticlesInFinState, gOptCheckVertexDistribution, gOptInpFilename, gOptNEvtH, gOptNEvtL, gOptOutFilename, genie::RunOpt::Instance(), genie::kNFGHEP, LOG, pERROR, pFATAL, pINFO, PrintSyntax(), and genie::GHepRecord::SetPrintLevel().
void PrintSyntax | ( | void | ) |
ofstream gErrLog |
Definition at line 111 of file gEvScan.cxx.
Referenced by CheckChargeConservation(), CheckDecayerConsistency(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), CheckForPseudoParticlesInFinState(), CheckVertexDistribution(), and main().
TTree* gEventTree = 0 |
Definition at line 109 of file gEvScan.cxx.
Referenced by CheckChargeConservation(), CheckDecayerConsistency(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), CheckForPseudoParticlesInFinState(), CheckVertexDistribution(), and main().
Long64_t gFirstEventNum = -1 |
Definition at line 106 of file gEvScan.cxx.
Referenced by CheckChargeConservation(), CheckDecayerConsistency(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), CheckForPseudoParticlesInFinState(), CheckVertexDistribution(), and main().
Long64_t gLastEventNum = -1 |
Definition at line 107 of file gEvScan.cxx.
Referenced by CheckChargeConservation(), CheckDecayerConsistency(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), CheckForPseudoParticlesInFinState(), CheckVertexDistribution(), and main().
NtpMCEventRecord* gMCRec = 0 |
Definition at line 110 of file gEvScan.cxx.
Referenced by CheckChargeConservation(), CheckDecayerConsistency(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), CheckForPseudoParticlesInFinState(), CheckVertexDistribution(), and main().
bool gOptAddEventPrintoutInErrLog = false |
Definition at line 97 of file gEvScan.cxx.
Referenced by CheckChargeConservation(), CheckDecayerConsistency(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), and CheckForPseudoParticlesInFinState().
bool gOptCheckChargeConservation = false |
Definition at line 99 of file gEvScan.cxx.
Referenced by main().
bool gOptCheckDecayerConsistency = false |
Definition at line 104 of file gEvScan.cxx.
Referenced by main().
bool gOptCheckEnergyMomentumConservation = false |
Definition at line 98 of file gEvScan.cxx.
Referenced by main().
bool gOptCheckForNumFinStateNucleonsInconsistentWithTarget = false |
Definition at line 102 of file gEvScan.cxx.
Referenced by main().
bool gOptCheckForOffMassShellParticlesInFinState = false |
Definition at line 101 of file gEvScan.cxx.
Referenced by main().
bool gOptCheckForPseudoParticlesInFinState = false |
Definition at line 100 of file gEvScan.cxx.
Referenced by main().
bool gOptCheckVertexDistribution = false |
Definition at line 103 of file gEvScan.cxx.
Referenced by main().
string gOptInpFilename = "" |
Definition at line 92 of file gEvScan.cxx.
int gOptMaxNumErrs = -1 |
Definition at line 96 of file gEvScan.cxx.
Referenced by CheckChargeConservation(), CheckEnergyMomentumConservation(), CheckForNumFinStateNucleonsInconsistentWithTarget(), CheckForOffMassShellParticlesInFinState(), and CheckForPseudoParticlesInFinState().
Long64_t gOptNEvtH = -1 |
Definition at line 95 of file gEvScan.cxx.
Long64_t gOptNEvtL = -1 |
Definition at line 94 of file gEvScan.cxx.
string gOptOutFilename = "" |
Definition at line 93 of file gEvScan.cxx.
Referenced by main().