|
GENIEGenerator
|
#include <cassert>#include <string>#include <sstream>#include <TSystem.h>#include <TFile.h>#include <TTree.h>#include <TChain.h>#include <TChainElement.h>#include "Framework/Conventions/GBuild.h"#include "Framework/EventGen/EventRecord.h"#include "Framework/GHEP/GHepStatus.h"#include "Framework/GHEP/GHepParticle.h"#include "Framework/GHEP/GHepUtils.h"#include "Framework/Ntuple/NtpMCFormat.h"#include "Framework/Ntuple/NtpMCTreeHeader.h"#include "Framework/Ntuple/NtpMCEventRecord.h"#include "Framework/Ntuple/NtpWriter.h"#include "Framework/Messenger/Messenger.h"#include "Framework/ParticleData/PDGCodes.h"#include "Framework/ParticleData/PDGUtils.h"#include "Framework/ParticleData/PDGLibrary.h"#include "Framework/Utils/AppInit.h"#include "Framework/Utils/CmdLnArgParser.h"#include "Framework/Utils/SystemUtils.h"#include "Framework/Utils/RunOpt.h"
Go to the source code of this file.
Typedefs | |
| typedef enum EGPickType | GPickType_t |
Functions | |
| void | GetCommandLineArgs (int argc, char **argv) |
| void | RunCherryPicker (void) |
| bool | AcceptEvent (const EventRecord &event) |
| void | PrintSyntax (void) |
| string | DefaultOutputFile (void) |
| int | main (int argc, char **argv) |
Variables | |
| string | gOptInpFileNames |
| input file name More... | |
| string | gOptOutFileName |
| output file name More... | |
| string | gPickedTypeStr |
| output file name More... | |
| GPickType_t | gPickedType |
| output file format id More... | |
| typedef enum EGPickType GPickType_t |
| enum EGPickType |
Definition at line 183 of file gEvPick.cxx.
| bool AcceptEvent | ( | const EventRecord & | event | ) |
Definition at line 331 of file gEvPick.cxx.
References genie::Interaction::ExclTag(), genie::GHepParticle::FirstMother(), gPickedType, genie::XclsTag::IsCharmEvent(), genie::ProcessInfo::IsMEC(), genie::pdg::IsPseudoParticle(), genie::ProcessInfo::IsQuasiElastic(), genie::XclsTag::IsStrangeEvent(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakNC(), genie::kIStStableFinalState, genie::kPdgAntiK0, genie::kPdgAntiNeutron, genie::kPdgAntiNuMu, genie::kPdgAntiProton, genie::kPdgK0, genie::kPdgKM, genie::kPdgKP, genie::kPdgLambda, genie::kPdgNeutron, genie::kPdgNuMu, genie::kPdgOmegaM, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, genie::kPdgProton, genie::kPdgSigma0, genie::kPdgSigmaM, genie::kPdgSigmaP, genie::kPdgXi0, genie::kPdgXiM, kPtAll, kPtReacModeCCMEC, kPtReacModeCCNotQEMEC, kPtReacModeCCQE, kPtReacModeCCQEMEC, kPtReacModeNotCCQEMEC, kPtReacModeNotNumuCCQEMEC, kPtReacModeNumuCCMEC, kPtReacModeNumuCCQE, kPtReacModeNumuCCQEMEC, kPtReacModeNumuNotCCQEMEC, kPtTopoCChyperon, kPtTopoNumubarCChyperon, kPtTopoNumuCC1pi0, kPtTopoNumuCC1pim, kPtTopoNumuCC1pip, kPtTopoNumuCChyperon, kPtTopoNumuNC1pi0, kPtTopoNumuNC1pim, kPtTopoNumuNC1pip, kPtUndefined, genie::GHepRecord::Particle(), genie::GHepParticle::Pdg(), genie::Interaction::ProcInfo(), and genie::GHepParticle::Status().
Referenced by RunCherryPicker().
| string DefaultOutputFile | ( | void | ) |
Definition at line 577 of file gEvPick.cxx.
References gPickedType, kPtAll, kPtReacModeCCMEC, kPtReacModeCCNotQEMEC, kPtReacModeCCQE, kPtReacModeCCQEMEC, kPtReacModeNotCCQEMEC, kPtReacModeNotNumuCCQEMEC, kPtReacModeNumuCCMEC, kPtReacModeNumuCCQE, kPtReacModeNumuCCQEMEC, kPtReacModeNumuNotCCQEMEC, kPtTopoCChyperon, kPtTopoNumubarCChyperon, kPtTopoNumuCC1pi0, kPtTopoNumuCC1pim, kPtTopoNumuCC1pip, kPtTopoNumuCChyperon, kPtTopoNumuNC1pi0, kPtTopoNumuNC1pim, and kPtTopoNumuNC1pip.
| void GetCommandLineArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 221 of file gEvPick.cxx.
References GetCommandLineArgs(), genie::RunOpt::Instance(), genie::utils::app_init::MesgThresholds(), RunCherryPicker(), and genie::GHepRecord::SetPrintLevel().
| void PrintSyntax | ( | void | ) |
| void RunCherryPicker | ( | void | ) |
Definition at line 233 of file gEvPick.cxx.
References AcceptEvent(), genie::NtpWriter::AddEventRecord(), genie::NtpMCEventRecord::Clear(), genie::NtpWriter::CustomizeFilename(), genie::NtpMCEventRecord::event, genie::NtpWriter::EventTree(), gOptInpFileNames, gOptOutFileName, gPickedTypeStr, genie::NtpMCRecordI::hdr, genie::NtpWriter::Initialize(), genie::kNFGHEP, LOG, pDEBUG, pERROR, pNOTICE, pWARN, and genie::NtpWriter::Save().
Referenced by main().
| string gOptInpFileNames |
| string gOptOutFileName |
output file name
Definition at line 216 of file gEvPick.cxx.
| GPickType_t gPickedType |
output file format id
Definition at line 218 of file gEvPick.cxx.
Referenced by AcceptEvent(), and DefaultOutputFile().
| string gPickedTypeStr |
1.8.5